1 L0 = <http://www.simantics.org/Layer0-1.1>
2 DIA = <http://www.simantics.org/Diagram-2.2>
3 STR = <http://www.simantics.org/Structural-1.2>
4 MOD = <http://www.simantics.org/Modeling-1.2>
5 VP = <http://www.simantics.org/Viewpoint-1.2>
6 IMAGE = <http://www.simantics.org/Image2-1.2>
7 SEL = <http://www.simantics.org/SelectionView-1.2>
8 SEL_UI = <http://www.simantics.org/SelectionViewUI-1.1>
9 G2D = <http://www.simantics.org/G2D-1.1>
10 DN = <http://www.simantics.org/DistrictNetwork-1.0>
12 // ----------------------------------------------------------------------------
14 DN.EdgeThicknessPropertyParameterType <T SEL.GenericParameterType
15 @L0.assert SEL.HasDisplayValue
17 SEL.HasEnumerationValues DN.Functions.edgeThicknessPropertyEnumerationValues : L0.Function
18 SEL.HasCustomModifier DN.Functions.edgeThicknessPropertyModifier : L0.Function
20 DN.VertexScalePropertyParameterType <T SEL.GenericParameterType
21 @L0.assert SEL.HasDisplayValue
23 SEL.HasEnumerationValues DN.Functions.nodeScalePropertyEnumerationValues : L0.Function
24 SEL.HasCustomModifier DN.Functions.nodeScalePropertyModifier : L0.Function
26 DN.Edge.ThicknessProperty <T L0.Value
27 @L0.assert L0.ConvertsToValueWith DN.Functions.convertToValue
28 >-- DN.Edge.ThicknessProperty.value ==> "Resource -> <ReadGraph> Maybe Double" <R L0.HasProperty : SEL.GenericParameterType
30 >-- DN.Edge.ThicknessProperty.gain --> L0.Double <R L0.HasProperty : SEL.GenericParameterType
32 >-- DN.Edge.ThicknessProperty.bias --> L0.Double <R L0.HasProperty : SEL.GenericParameterType
34 @L0.assert DN.Edge.ThicknessProperty.gain 1.0
35 @L0.assert DN.Edge.ThicknessProperty.bias 0.0
37 DN.Vertex.ScaleProperty <T L0.Value
38 @L0.assert L0.ConvertsToValueWith DN.Functions.convertToValue
39 >-- DN.Vertex.ScaleProperty.value ==> "Resource -> <ReadGraph> Maybe Double" <R L0.HasProperty : SEL.GenericParameterType
41 >-- DN.Vertex.ScaleProperty.gain ==> "Double" <R L0.HasProperty : SEL.GenericParameterType
43 >-- DN.Vertex.ScaleProperty.bias ==> "Double" <R L0.HasProperty : SEL.GenericParameterType
45 @L0.assert DN.Vertex.ScaleProperty.gain 1.0
46 @L0.assert DN.Vertex.ScaleProperty.bias 0.0
49 >-- DN.Diagram.edgeThicknessGain ==> "Double" <R L0.HasProperty : SEL.GenericParameterType
50 L0.HasLabel "Edge Thickness Gain"
51 >-- DN.Diagram.edgeThicknessBias ==> "Double" <R L0.HasProperty : SEL.GenericParameterType
52 L0.HasLabel "Edge Thickness Bias"
53 >-- DN.Diagram.edgeThicknessProperty --> DN.Edge.ThicknessProperty <R L0.HasProperty : DN.EdgeThicknessPropertyParameterType
54 L0.HasLabel "Edge Thickness Property"
55 >-- DN.Diagram.nodeScaleGain ==> "Double" <R L0.HasProperty : SEL.GenericParameterType
56 L0.HasLabel "Node Scale Gain"
57 >-- DN.Diagram.nodeScaleBias ==> "Double" <R L0.HasProperty : SEL.GenericParameterType
58 L0.HasLabel "Node Scale Bias"
59 >-- DN.Diagram.nodeScaleProperty --> DN.Vertex.ScaleProperty <R L0.HasProperty : DN.VertexScalePropertyParameterType
60 L0.HasLabel "Node Scale Property"
61 @L0.assert DN.Diagram.edgeThicknessGain 1.0
62 @L0.assert DN.Diagram.edgeThicknessBias 0.0
63 @L0.assert DN.Diagram.edgeThicknessProperty DN.Edge.ThicknessProperty.Diameter
64 @L0.assert DN.Diagram.nodeScaleGain 1.0
65 @L0.assert DN.Diagram.nodeScaleBias 0.0
66 @L0.assert DN.Diagram.nodeScaleProperty DN.Vertex.ScaleProperty.NominalSupplyPressure
68 // ----------------------------------------------------------------------------
69 // Built-in enumerated ScaleProperty & ThicknessProperty instances
71 DN.Edge.ThicknessProperty.OnlyGainAndBias: DN.Edge.ThicknessProperty
72 L0.HasLabel "Only Gain and Bias"
73 DN.Edge.ThicknessProperty.value
74 DN.Functions.constantOne : L0.Function
75 L0.HasValueType "Resource -> <ReadGraph> Maybe Double"
77 DN.Edge.ThicknessProperty.Diameter : DN.Edge.ThicknessProperty
78 L0.HasLabel "Diameter"
79 DN.Edge.ThicknessProperty.value
80 DN.Functions.hasDiameterValue : L0.Function
81 L0.HasValueType "Resource -> <ReadGraph> Maybe Double"
82 DN.Edge.ThicknessProperty.gain 0.001
85 DN.Vertex.ScaleProperty.OnlyGainAndBias: DN.Vertex.ScaleProperty
86 L0.HasLabel "Only Gain and Bias"
87 DN.Vertex.ScaleProperty.value
88 DN.Functions.constantOne : L0.Function
89 L0.HasValueType "Resource -> <ReadGraph> Maybe Double"
91 DN.Vertex.ScaleProperty.NominalSupplyPressure : DN.Vertex.ScaleProperty
92 L0.HasLabel "Nominal Supply Pressure"
93 DN.Vertex.ScaleProperty.value
94 DN.Functions.hasNominalSupplyPressure : L0.Function
95 L0.HasValueType "Resource -> <ReadGraph> Maybe Double"
96 DN.Vertex.ScaleProperty.gain 0.001
98 DN.Vertex.ScaleProperty.Elevation : DN.Vertex.ScaleProperty
99 L0.HasLabel "Elevation"
100 DN.Vertex.ScaleProperty.value
101 DN.Functions.hasElevation : L0.Function
102 L0.HasValueType "Resource -> <ReadGraph> Maybe Double"
103 DN.Vertex.ScaleProperty.gain 0.1
104 DN.Vertex.ScaleProperty.bias 0.001