]> gerrit.simantics Code Review - simantics/district.git/blobdiff - org.simantics.district.network.ontology/graph/DistrictNetworkTechType.pgraph
Updating of component properties when type code changes
[simantics/district.git] / org.simantics.district.network.ontology / graph / DistrictNetworkTechType.pgraph
index adebe0132193114a9168b1624b43841533cd9b58..96865b343055ba1450562a50759048c0f20f2552 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>
 
@@ -13,3 +14,10 @@ table = TT.TechTypeTable <T L0.Entity
     // 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