fieldSelectors.add(createComboField("wallThicknessValue", "Wall Thickness", model::setWallThicknessIndex, parent));
fieldSelectors.add(createComboField("insulationConductivityValue", "Insulation Conductivity", model::setInsulationConductivityIndex, parent));
fieldSelectors.add(createComboField("roughnessValue", "Roughness", model::setRoughnessIndex, parent));
+ fieldSelectors.add(createComboField("conductanceValue", "Conductance", model::setConductanceIndex, parent));
}
private void updateCombos() {
setPipeSizeDNIndex :: CSVImportModel -> Integer -> <Proc> ()
setRoughnessIndex :: CSVImportModel -> Integer -> <Proc> ()
setStructureIndex :: CSVImportModel -> Integer -> <Proc> ()
+ setConductanceIndex :: CSVImportModel -> Integer -> <Proc> ()
// Common
setSourceCRS :: CSVImportModel -> String -> <Proc> ()
private int pipeSizeDNIndex = -1;
private int roughnessIndex = -1;
private int structureIndex = -1;
+ private int conductanceIndex = -1;
// Third page
public void setStructureIndex(int structureIndex) {
this.structureIndex = structureIndex;
}
+
+ public int getConductanceIndex() {
+ return conductanceIndex;
+ }
+
+ public void setConductanceIndex(int conductanceIndex) {
+ this.conductanceIndex = conductanceIndex;
+ }
}
int pipeSizeDNIndex = model.getPipeSizeDNIndex();
int roughnessIndex = model.getRoughnessIndex();
int structureIndex = model.getStructureIndex();
+ int conductanceIndex = model.getConductanceIndex();
int mappingColumn = model.getComponentMappingIndex();
int idColumn = model.getIdIndex();
writeIntegerValue(graph, row, pipeSizeDNIndex, edge, DN.Edge_HasPipeSizeDN);
writeValue(graph, row, roughnessIndex, edge, DN.Edge_HasRoughness);
writeStringValue(graph, row, structureIndex, edge, DN.Edge_HasStructure);
+ writeValue(graph, row, conductanceIndex, edge, DN.Edge_HasConductance);
}
}
return true;
@defProperty "Structure" L0.String
>-- DN.Edge.HasInsulationClass
@defProperty "Insulation Class" L0.String
+ >-- DN.Edge.HasConductance
+ @defProperty "Conductance" L0.Double
@L0.assert DN.Edge.HasDiameter 100.0
@L0.assert DN.Edge.HasOuterDiameter 125.0
DN.Mapping.HasPropertyRelation DN.Edge.HasStructure
>-- DN.Mapping.EdgeMapping.InsulationClassAttribute --> L0.String <R L0.HasProperty
DN.Mapping.HasPropertyRelation DN.Edge.HasInsulationClass
+ >-- DN.Mapping.EdgeMapping.ConductanceAttribute --> L0.String <R L0.HasProperty
+ DN.Mapping.HasPropertyRelation DN.Edge.HasConductance
// Allowed connection types
DN.SupplyConnectionType <T STR.ConnectionType