]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.district.network.ontology/graph/DistrictNetworkDiagramSettings.pgraph
c3d7cdfe1d451d4546a33a2492e24bb5bd2f7fc2
[simantics/district.git] / org.simantics.district.network.ontology / graph / DistrictNetworkDiagramSettings.pgraph
1 L0 = <http://www.simantics.org/Layer0-1.1>
2 L0X = <http://www.simantics.org/Layer0X-1.1>
3 DIA = <http://www.simantics.org/Diagram-2.2>
4 STR = <http://www.simantics.org/Structural-1.2>
5 MOD = <http://www.simantics.org/Modeling-1.2>
6 VP = <http://www.simantics.org/Viewpoint-1.2>
7 IMAGE = <http://www.simantics.org/Image2-1.2>
8 SEL = <http://www.simantics.org/SelectionView-1.2>
9 SEL_UI = <http://www.simantics.org/SelectionViewUI-1.1>
10 G2D = <http://www.simantics.org/G2D-1.1>
11 DN = <http://www.simantics.org/DistrictNetwork-1.0>
12 DATATYPES = <http://www.simantics.org/Datatypes-1.1>
13
14 // ----------------------------------------------------------------------------
15
16 DN.ArrowLengthPropertyParameterType <T SEL.GenericParameterType
17     @L0.assert SEL.HasDisplayValue
18         _ : SEL.DisplayValue
19             SEL.HasEnumerationValues DN.Functions.arrowLengthPropertyEnumerationValues : L0.Function
20             SEL.HasCustomModifier DN.Functions.arrowLengthPropertyModifier : L0.Function
21
22 DN.Edge.ArrowLengthProperty <T L0.Value
23     @L0.assert L0.ConvertsToValueWith DN.Functions.convertToValue
24     >-- DN.Edge.ArrowLengthProperty.value ==> "Resource -> <ReadGraph> Maybe Double" <R L0.HasProperty : SEL.GenericParameterType
25         L0.readOnly true
26     >-- DN.Edge.ArrowLengthProperty.gain --> L0.Double <R L0.HasProperty : SEL.GenericParameterType
27         L0.readOnly true
28     >-- DN.Edge.ArrowLengthProperty.bias --> L0.Double <R L0.HasProperty : SEL.GenericParameterType
29         L0.readOnly true
30     @L0.assert DN.Edge.ArrowLengthProperty.gain 1.0
31     @L0.assert DN.Edge.ArrowLengthProperty.bias 0.0
32
33 // these should be deprecated
34 DN.Edge.ThicknessProperty <T L0.Value
35
36 DN.Diagram
37     >-- DN.Diagram.arrowLengthGain ==> "Double" <R L0.HasProperty : SEL.GenericParameterType
38         L0.HasLabel "Arrow Length Gain"
39     >-- DN.Diagram.arrowLengthBias ==> "Double" <R L0.HasProperty : SEL.GenericParameterType
40         L0.HasLabel "Arrow Length Bias"
41     >-- DN.Diagram.arrowLengthProperty --> DN.Edge.ArrowLengthProperty <R L0.HasProperty : DN.ArrowLengthPropertyParameterType
42         L0.HasLabel "Arrow Length Property"
43     >-- DN.Diagram.backgroundColor --> DATATYPES.RGB.Integer <R L0.HasProperty : SEL.ColorParameterType
44         L0.HasLabel "Diagram Background Color"
45     >-- DN.Diagram.drawMapEnabled ==> "Boolean" <R L0.HasProperty : SEL.GenericParameterType
46         L0.HasLabel "Draw Map"
47     >-- DN.Diagram.hasVisualisation --> DN.Diagram.Visualisations <R L0.HasProperty
48         L0.HasLabel "Visualisation"
49     >-- DN.Diagram.hasActiveVisualisation --> DN.Diagram.Visualisations <R L0.HasProperty
50     >-- DN.Diagram.profileUpdateInterval ==> "Long" <R L0.HasProperty : SEL.GenericParameterType
51         L0.HasLabel "Profile update interval"
52
53     @L0.assert DN.Diagram.arrowLengthGain 1.0
54     @L0.assert DN.Diagram.arrowLengthBias 0.0
55     @L0.assert DN.Diagram.arrowLengthProperty DN.Edge.ArrowLengthProperty.FlowRate
56     @L0.assert DN.Diagram.drawMapEnabled true
57     @L0.assert DN.Diagram.profileUpdateInterval
58         2000 : L0.Long
59     @L0.assert DN.Diagram.DefaultPipeTechTypeId 0
60
61 // ----------------------------------------------------------------------------
62 // Built-in enumerated ScaleProperty & ThicknessProperty instances
63
64 DN.Functions.constantOne : L0.Function
65     L0.HasValueType "Resource -> <ReadGraph> Maybe Double"
66
67 DN.Functions.hasNominalMassFlowValue : L0.Function
68     L0.HasValueType "Resource -> <ReadGraph> Maybe Double"
69
70 DN.Edge.ArrowLengthProperty.FlowRate : DN.Edge.ArrowLengthProperty
71     L0.HasLabel "Nominal Mass Flow"
72     DN.Edge.ArrowLengthProperty.value
73         DN.Functions.hasNominalMassFlowValue
74     DN.Edge.ArrowLengthProperty.gain 1.0