Plant3D p3d = Plant3D.getInstance(graph);
String name = graph.getRelatedValue(r, l0.HasName);
String uri = graph.getURI(r);
- Item item = new Item(uri, name);
+ String label = graph.getPossibleRelatedValue(r, l0.HasLabel);
+ Item item = new Item(uri, name, label);
if (graph.isInstanceOf(r, p3d.Equipment))
item.setType(Type.EQUIPMENT);
else if (graph.isInstanceOf(r, p3d.InlineComponent))
public static void finalizeDBLoad(P3DRootNode rootNode) throws Exception{
for (INode node : rootNode.getChild()) {
if (node instanceof PipeRun) {
- for (PipelineComponent pc : ((PipeRun) node).getChild())
+ for (PipelineComponent pc : ((PipeRun) node).getChild()) {
pc.sync();
+ pc.updateParameters();
+ }
} else if (node instanceof Equipment) {
- for (PipelineComponent pc : ((Equipment) node).getChild())
+ for (PipelineComponent pc : ((Equipment) node).getChild()) {
pc.sync();
+ pc.updateParameters();
+ }
}
}