]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.modeling.ontology/graph/Subscription.pgraph
SVG editor tab contribution did not work due to missing SCL include
[simantics/platform.git] / bundles / org.simantics.modeling.ontology / graph / Subscription.pgraph
1 L0 = <http://www.simantics.org/Layer0-1.1>\r
2 MOD = <http://www.simantics.org/Modeling-1.2>\r
3 SEL = <http://www.simantics.org/SelectionView-1.2>\r
4 \r
5 MOD.Subscription <T L0.Entity\r
6     @L0.singlePropertyDefault MOD.Subscription.Enabled true\r
7     @L0.singleProperty L0.HasName\r
8     @L0.singleProperty L0.HasLabel\r
9     @L0.property L0.ConsistsOf\r
10     // TODO [L0.ConsistsOf all SubscriptionItem]\r
11 \r
12 MOD.Subscription.Enabled <R L0.HasProperty : L0.FunctionalRelation : SEL.GenericParameterType\r
13     L0.HasLabel "Is Enabled"\r
14     L0.HasRange L0.Boolean\r
15 \r
16 MOD.Subscription.Item <T L0.Entity\r
17     @L0.singleProperty L0.HasName\r
18     @L0.assert L0.HasLabel ""\r
19     @L0.optionalProperty MOD.Subscription.Item.VariableId\r
20     @L0.optionalProperty MOD.Subscription.Item.Datatype\r
21     @L0.optionalProperty MOD.Subscription.Item.Deadband\r
22     @L0.optionalProperty MOD.Subscription.Item.Gain\r
23     @L0.optionalProperty MOD.Subscription.Item.Bias\r
24     @L0.assert MOD.Subscription.Item.Deadband 0.0\r
25     @L0.assert MOD.Subscription.Item.Gain 1.0\r
26     @L0.assert MOD.Subscription.Item.Bias 0.0\r
27     @L0.optionalProperty MOD.Subscription.Item.SamplingInterval\r
28     @L0.assert MOD.Subscription.Item.SamplingInterval 0.0\r
29     @L0.optionalProperty MOD.Subscription.Item.Unit\r
30     @L0.assert MOD.Subscription.Item.Unit ""\r
31     //@L0.optionalProperty MOD.Chart.Item.Min\r
32     //@L0.optionalProperty MOD.Chart.Item.Max\r
33     //@L0.optionalProperty MOD.Chart.Item.EU\r
34 \r
35 MOD.Subscription.Item.Unit <R L0.HasProperty : L0.FunctionalRelation : SEL.GenericParameterType\r
36     L0.HasLabel "Unit"\r
37     L0.HasRange L0.String\r
38 \r
39 MOD.Subscription.Item.VariableId <R L0.HasProperty : L0.FunctionalRelation : SEL.GenericParameterType\r
40     L0.HasLabel "Variable Id"\r
41     --> L0.RVI\r
42     L0.readOnly true\r
43     SEL.HasDisplayValue MOD.Functions.variableIdDisplayValue : L0.Function\r
44 \r
45 MOD.Subscription.Item.Datatype <R L0.HasProperty : L0.FunctionalRelation\r
46     L0.HasLabel "Datatype"\r
47     --> L0.DataType\r
48     L0.readOnly true\r
49 \r
50 MOD.Subscription.Item.Deadband <R L0.HasProperty : L0.FunctionalRelation  : SEL.GenericParameterType\r
51     L0.HasLabel "Deadband"\r
52     --> L0.Double\r
53     L0.readOnly true\r
54 \r
55 MOD.Subscription.Item.Gain <R L0.HasProperty : L0.FunctionalRelation  : SEL.GenericParameterType\r
56     L0.HasLabel "Gain"\r
57     --> L0.Double\r
58 \r
59 MOD.Subscription.Item.Bias <R L0.HasProperty : L0.FunctionalRelation  : SEL.GenericParameterType\r
60     L0.HasLabel "Bias"\r
61     --> L0.Double\r
62 \r
63 MOD.Subscription.Item.SamplingInterval <R L0.HasProperty : L0.FunctionalRelation  : SEL.GenericParameterType\r
64     L0.HasLabel "Sampling Interval"\r
65     --> L0.Double\r
66     L0.readOnly true\r
67 \r
68 /*\r
69 MOD.Chart.Item.Min <R L0.HasProperty : L0.FunctionalRelation\r
70     L0.HasLabel "Assumed Min value"\r
71     --> L0.Double\r
72     \r
73 MOD.Chart.Item.Max <R L0.HasProperty : L0.FunctionalRelation\r
74     L0.HasLabel "Assumed Max value"\r
75     --> L0.Double\r
76     \r
77 MOD.Chart.Item.EU <R L0.HasProperty : L0.FunctionalRelation\r
78     L0.HasLabel "Engineering Uint"\r
79     --> L0.String\r
80 */