private int detailedGeometryIndex = -1;
private int peakPowerIndex = -1;
private int regionIndex = -1;
+ private int pipeTypeIndex = -1;
// Third page
public void setPeakPowerIndex(int parseInt) {
this.peakPowerIndex = parseInt;
}
-
+
public int getPeakPowerIndex() {
return peakPowerIndex;
}
-
+
public int getRegionIndex() {
return regionIndex;
}
-
+
public void setRegionIndex(int regionIndex) {
this.regionIndex = regionIndex;
}
+
+ public int getPipeTypeIndex() {
+ return pipeTypeIndex;
+ }
+
+ public void setPipeTypeIndex(int pipeTypeIndex) {
+ this.pipeTypeIndex = pipeTypeIndex;
+ }
}
int lengthIndex = model.getLengthIndex();
int detailedGeometryIndex = model.getDetailedGeometryIndex();
int regionIndex = model.getRegionIndex();
+ int pipeTypeIndex = model.getPipeTypeIndex();
int mappingColumn = model.getComponentMappingIndex();
int idColumn = model.getIdIndex();
// Switch to (longitude, latitude)
flipAxes(startCoords);
flipAxes(endCoords);
-
- if ("6993003.00000".equals(idValue)) {
- System.err.println("ghere we are!!");
- }
Optional<Resource> oedge = DNEdgeBuilder.create(graph, existingVertices, model.getParentDiagram(), model.getComponentMappings().get(mappingValue), startCoords, startZCoord, endCoords, endZCoord, new double[0], padding, true);
if (oedge.isPresent()) {
writeValue(graph, row, edgeFlowAreaIndex, edge, DN.Edge_HasFlowArea);
writeValue(graph, row, lengthIndex, edge, DN.Edge_HasLength);
writeStringValue(graph, row, regionIndex, edge, DN.HasRegion);
+ writeStringValue(graph, row, pipeTypeIndex, edge, DN.Edge_HasType);
writeDoubleArrayFromString(graph, row, detailedGeometryIndex, edge, DN.Edge_HasGeometry, actualTransform);
}
}
@defProperty "K Supply" L0.Double
>-- DN.Edge.HasTGround
@defProperty "T Ground" L0.Double
+ >-- DN.Edge.HasType
+ @defProperty "Pipe Type" L0.String
@L0.assert DN.Edge.HasDiameter 100.0
@L0.assert DN.Edge.HasOuterDiameter 125.0
>-- DN.Mapping.EdgeMapping.KSupplyAttribute --> L0.String <R L0.HasProperty
>-- DN.Mapping.EdgeMapping.TGroundAttribute --> L0.String <R L0.HasProperty
>-- DN.Mapping.EdgeMapping.ElevationAttribute --> L0.String <R L0.HasProperty
+ >-- DN.Mapping.EdgeMapping.PipeTypeAttribute --> L0.String <R L0.HasProperty
// Allowed connection types
DN.SupplyConnectionType <T STR.ConnectionType