private void step5(IfcDistributionPort distributionPort) { IfcElement unknown = distributionPort.getContainedIn().getRelatedElement(); String name = unknown.getName(); if (unknown instanceof IfcFlowSegment) { LOGGER.info("Step 5: FlowSegment = " + name); step3(unknown, distributionPort); } else if (unknown instanceof IfcFlowFitting) { LOGGER.info("Step 5: FlowFitting = " + name); step6((IfcFlowFitting) unknown, distributionPort); } else if (unknown instanceof IfcFlowTerminal) { LOGGER.info("Step 5: Endpoint (terminal) = " + name); } else { LOGGER.info("Step5: Incorrect entity found"); } }
private Door createDoor(IfcElement ifcRelatedBuildingElement) throws SerializerException { IfcDoor ifcDoor = (IfcDoor) ifcRelatedBuildingElement; Door door = new Door(); setName(door.getName(), ifcRelatedBuildingElement.getName()); setGlobalId(door, ifcRelatedBuildingElement); MultiSurfaceProperty doorMSP = new MultiSurfaceProperty(); MultiSurface doorMs = new MultiSurface(); doorMSP.setMultiSurface(doorMs); door.setLod4MultiSurface(doorMSP); setGeometry(doorMs, ifcRelatedBuildingElement); DoubleAttribute genericAttributeWidth = new DoubleAttribute(); genericAttributeWidth.setName("OverallWidth"); genericAttributeWidth.setValue((double) ifcDoor.getOverallWidth()); door.addGenericAttribute(genericAttributeWidth); DoubleAttribute genericAttributeHeight = new DoubleAttribute(); genericAttributeHeight.setValue((double) ifcDoor.getOverallHeight()); genericAttributeHeight.setName("OverallHeight"); door.addGenericAttribute(genericAttributeHeight); return door; }
private void step2(IfcDistributionPort distributionPort) { IfcElement relatedElement = distributionPort.getContainedIn().getRelatedElement(); LOGGER.info("Step 2: FlowSegment = " + relatedElement.getName()); step3(relatedElement, distributionPort); }