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