]> gerrit.simantics Code Review - simantics/district.git/blobdiff - org.simantics.district.network.ontology/graph/DistrictNetworkTechType.pgraph
Adding new mappable attributes for vertices and edges
[simantics/district.git] / org.simantics.district.network.ontology / graph / DistrictNetworkTechType.pgraph
index adebe0132193114a9168b1624b43841533cd9b58..16f315c28c9096a99fdebff539ad8659549fec88 100644 (file)
@@ -1,5 +1,6 @@
 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>
 
@@ -9,7 +10,21 @@ table = TT.TechTypeTable <T L0.Entity
     // Table data as a CSV string literal
     >-- table.HasData <R L0.HasProperty : L0.TotalFunction
         --> L0.String
+    >-- table.HasEnabledItems <R L0.HasProperty : L0.FunctionalRelation
+        --> L0.IntegerArray
     
     // Link to corresponding component type
     >-- table.HasComponentType <R L0.IsRelatedTo : L0.FunctionalRelation
         --> STR.ComponentType
+        
+    @L0.assert table.HasEnabledItems
+        [] : L0.IntegerArray
+
+TT.Functions : L0.Library
+TT.Functions.techTypeCodeValueAccessor : L0.ExternalValue
+  L0.HasValueType "ValueAccessor"
+TT.Functions.techTypeKeys : L0.Function
+  L0.HasValueType "ReadGraph -> Resource -> a -> b"
+
+TT.TechTypeCodeParameterType : SEL.GenericParameterType
+    @L0.assert L0.valueAccessor TT.Functions.techTypeCodeValueAccessor