]> gerrit.simantics Code Review - simantics/district.git/blobdiff - org.simantics.district.network.ontology/graph/DistrictNetworkTechType.pgraph
Add enable/disable feature for tech type tables
[simantics/district.git] / org.simantics.district.network.ontology / graph / DistrictNetworkTechType.pgraph
index d63271af5befbfb607c17943885690851cfdd8c8..16f315c28c9096a99fdebff539ad8659549fec88 100644 (file)
@@ -10,10 +10,15 @@ 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