]> gerrit.simantics Code Review - simantics/district.git/blobdiff - org.simantics.district.network.ontology/graph/DistrictNetworkTechType.pgraph
TechTypeTable features
[simantics/district.git] / org.simantics.district.network.ontology / graph / DistrictNetworkTechType.pgraph
diff --git a/org.simantics.district.network.ontology/graph/DistrictNetworkTechType.pgraph b/org.simantics.district.network.ontology/graph/DistrictNetworkTechType.pgraph
new file mode 100644 (file)
index 0000000..96865b3
--- /dev/null
@@ -0,0 +1,23 @@
+L0 = <http://www.simantics.org/Layer0-1.1>
+STR = <http://www.simantics.org/Structural-1.2>
+SEL = <http://www.simantics.org/SelectionView-1.2>
+
+DN = <http://www.simantics.org/DistrictNetwork-1.0>
+
+TT = DN.TechType : L0.Library
+
+table = TT.TechTypeTable <T L0.Entity
+    // Table data as a CSV string literal
+    >-- table.HasData <R L0.HasProperty : L0.TotalFunction
+        --> L0.String
+    
+    // Link to corresponding component type
+    >-- table.HasComponentType <R L0.IsRelatedTo : L0.FunctionalRelation
+        --> STR.ComponentType
+
+TT.Functions : L0.Library
+TT.Functions.techTypeCodeValueAccessor : L0.ExternalValue
+  L0.HasValueType "ValueAccessor"
+
+TT.TechTypeCodeParameterType : SEL.GenericParameterType
+    @L0.assert L0.valueAccessor TT.Functions.techTypeCodeValueAccessor