]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling.ontology/graph/Subscription.pgraph
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.modeling.ontology / graph / Subscription.pgraph
diff --git a/bundles/org.simantics.modeling.ontology/graph/Subscription.pgraph b/bundles/org.simantics.modeling.ontology/graph/Subscription.pgraph
new file mode 100644 (file)
index 0000000..4f79d68
--- /dev/null
@@ -0,0 +1,80 @@
+L0 = <http://www.simantics.org/Layer0-1.1>\r
+MOD = <http://www.simantics.org/Modeling-1.2>\r
+SEL = <http://www.simantics.org/SelectionView-1.2>\r
+\r
+MOD.Subscription <T L0.Entity\r
+    @L0.singlePropertyDefault MOD.Subscription.Enabled true\r
+    @L0.singleProperty L0.HasName\r
+    @L0.singleProperty L0.HasLabel\r
+    @L0.property L0.ConsistsOf\r
+    // TODO [L0.ConsistsOf all SubscriptionItem]\r
+\r
+MOD.Subscription.Enabled <R L0.HasProperty : L0.FunctionalRelation : SEL.GenericParameterType\r
+    L0.HasLabel "Is Enabled"\r
+    L0.HasRange L0.Boolean\r
+\r
+MOD.Subscription.Item <T L0.Entity\r
+    @L0.singleProperty L0.HasName\r
+    @L0.assert L0.HasLabel ""\r
+    @L0.optionalProperty MOD.Subscription.Item.VariableId\r
+    @L0.optionalProperty MOD.Subscription.Item.Datatype\r
+    @L0.optionalProperty MOD.Subscription.Item.Deadband\r
+    @L0.optionalProperty MOD.Subscription.Item.Gain\r
+    @L0.optionalProperty MOD.Subscription.Item.Bias\r
+    @L0.assert MOD.Subscription.Item.Deadband 0.0\r
+    @L0.assert MOD.Subscription.Item.Gain 1.0\r
+    @L0.assert MOD.Subscription.Item.Bias 0.0\r
+    @L0.optionalProperty MOD.Subscription.Item.SamplingInterval\r
+    @L0.assert MOD.Subscription.Item.SamplingInterval 0.0\r
+    @L0.optionalProperty MOD.Subscription.Item.Unit\r
+    @L0.assert MOD.Subscription.Item.Unit ""\r
+    //@L0.optionalProperty MOD.Chart.Item.Min\r
+    //@L0.optionalProperty MOD.Chart.Item.Max\r
+    //@L0.optionalProperty MOD.Chart.Item.EU\r
+\r
+MOD.Subscription.Item.Unit <R L0.HasProperty : L0.FunctionalRelation : SEL.GenericParameterType\r
+    L0.HasLabel "Unit"\r
+    L0.HasRange L0.String\r
+\r
+MOD.Subscription.Item.VariableId <R L0.HasProperty : L0.FunctionalRelation : SEL.GenericParameterType\r
+    L0.HasLabel "Variable Id"\r
+    --> L0.RVI\r
+    L0.readOnly true\r
+    SEL.HasDisplayValue MOD.Functions.variableIdDisplayValue : L0.Function\r
+\r
+MOD.Subscription.Item.Datatype <R L0.HasProperty : L0.FunctionalRelation\r
+    L0.HasLabel "Datatype"\r
+    --> L0.DataType\r
+    L0.readOnly true\r
+\r
+MOD.Subscription.Item.Deadband <R L0.HasProperty : L0.FunctionalRelation  : SEL.GenericParameterType\r
+    L0.HasLabel "Deadband"\r
+    --> L0.Double\r
+    L0.readOnly true\r
+\r
+MOD.Subscription.Item.Gain <R L0.HasProperty : L0.FunctionalRelation  : SEL.GenericParameterType\r
+    L0.HasLabel "Gain"\r
+    --> L0.Double\r
+\r
+MOD.Subscription.Item.Bias <R L0.HasProperty : L0.FunctionalRelation  : SEL.GenericParameterType\r
+    L0.HasLabel "Bias"\r
+    --> L0.Double\r
+\r
+MOD.Subscription.Item.SamplingInterval <R L0.HasProperty : L0.FunctionalRelation  : SEL.GenericParameterType\r
+    L0.HasLabel "Sampling Interval"\r
+    --> L0.Double\r
+    L0.readOnly true\r
+\r
+/*\r
+MOD.Chart.Item.Min <R L0.HasProperty : L0.FunctionalRelation\r
+    L0.HasLabel "Assumed Min value"\r
+    --> L0.Double\r
+    \r
+MOD.Chart.Item.Max <R L0.HasProperty : L0.FunctionalRelation\r
+    L0.HasLabel "Assumed Max value"\r
+    --> L0.Double\r
+    \r
+MOD.Chart.Item.EU <R L0.HasProperty : L0.FunctionalRelation\r
+    L0.HasLabel "Engineering Uint"\r
+    --> L0.String\r
+*/
\ No newline at end of file