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>
11 DN = <http://www.simantics.org/DistrictNetwork-1.0> : L0.Ontology
13 L0.Ontology.global true
14 L0.HasResourceClass "org.simantics.district.network.ontology.DistrictNetworkResource"
18 DN.Edge <T DIA.Element : L0.Type
19 @L0.assert DN.Edge.HasDiameter 0.1
20 @L0.assert DN.Edge.HasOuterDiameter 0.11
22 DN.Vertex <T DIA.Element : L0.Type
23 @L0.assert DN.Vertex.HasElevation 0.0
25 DN.EdgeDefaultMapping <R L0.HasProperty : DN.EdgeMappingParameterType
26 L0.HasLabel "Default Edge mapping"
28 DN.VertexDefaultMapping <R L0.HasProperty : DN.VertexMappingParameterType
29 L0.HasLabel "Default Vertex mapping"
31 DN.Functions : L0.Library
33 DN.VertexMappingParameterType <T SEL.GenericParameterType
34 @L0.assert SEL.HasDisplayValue
36 SEL.HasEnumerationValues DN.Functions.enumerationValues : L0.Function
37 SEL.HasCustomModifier DN.Functions.defaultVertexMappingModifier : L0.Function
39 DN.EdgeMappingParameterType <T SEL.GenericParameterType
40 @L0.assert SEL.HasDisplayValue
42 SEL.HasEnumerationValues DN.Functions.enumerationValues
43 SEL.HasCustomModifier DN.Functions.defaultEdgeMappingModifier : L0.Function
45 DN.MappingParameterType <T SEL.GenericParameterType
46 @L0.assert SEL.HasDisplayValue
48 SEL.HasEnumerationValues DN.Functions.enumerationValues
49 SEL.HasCustomModifier DN.Functions.mappingModifier : L0.Function
51 DN.HasMapping <R L0.HasProperty : DN.MappingParameterType
54 DN.HasId <R L0.HasProperty : SEL.GenericParameterType
59 DN.Vertex.HasElevation <R L0.HasProperty : SEL.GenericParameterType
60 L0.HasLabel "Elevation"
64 DN.Vertex.HasSupplyTemperature <R L0.HasProperty : SEL.GenericParameterType
65 L0.HasLabel "Supply Temperature"
69 DN.Vertex.HasReturnTemperature <R L0.HasProperty : SEL.GenericParameterType
70 L0.HasLabel "Return Temperature"
74 DN.Vertex.HasSupplyPressure <R L0.HasProperty : SEL.GenericParameterType
75 L0.HasLabel "Supply Pressure"
79 DN.Vertex.HasReturnPressure <R L0.HasProperty : SEL.GenericParameterType
80 L0.HasLabel "Return Pressure"
84 DN.Vertex.HasDeltaPressure <R L0.HasProperty : SEL.GenericParameterType
85 L0.HasLabel "Delta pressure"
89 DN.Vertex.HasDeltaTemperature <R L0.HasProperty : SEL.GenericParameterType
90 L0.HasLabel "Delta temperature"
94 DN.Vertex.HasHeatPower <R L0.HasProperty : SEL.GenericParameterType
95 L0.HasLabel "Heat Power"
99 DN.Vertex.HasNominalHeadM <R L0.HasProperty : SEL.GenericParameterType
100 L0.HasLabel "NominalHeadM"
101 L0.HasRange L0.Double
104 DN.Vertex.HasNominalHeadB <R L0.HasProperty : SEL.GenericParameterType
105 L0.HasLabel "NominalHeadB"
106 L0.HasRange L0.Double
109 DN.Vertex.HasNominalFlow <R L0.HasProperty : SEL.GenericParameterType
110 L0.HasLabel "Nominal Flow"
111 L0.HasRange L0.Double
114 DN.Vertex.HasMaximumHeadM <R L0.HasProperty : SEL.GenericParameterType
115 L0.HasLabel "Maximum head M"
116 L0.HasRange L0.Double
119 DN.Vertex.HasHeatLoadDs <R L0.HasProperty : SEL.GenericParameterType
120 L0.HasLabel "Heat Load ds"
121 L0.HasRange L0.Double
124 DN.Vertex.HasMassFlow <R L0.HasProperty : SEL.GenericParameterType
125 L0.HasLabel "Mass Flow"
126 L0.HasRange L0.Double
129 DN.Vertex.HasVolFlow <R L0.HasProperty : SEL.GenericParameterType
130 L0.HasLabel "Vol Flow"
131 L0.HasRange L0.Double
134 DN.Vertex.HasVelocity <R L0.HasProperty : SEL.GenericParameterType
135 L0.HasLabel "Velocity"
136 L0.HasRange L0.Double
139 DN.Vertex.HasFlowArea <R L0.HasProperty : SEL.GenericParameterType
140 L0.HasLabel "Flow Area"
141 L0.HasRange L0.Double
144 DN.Vertex.HasValvePosition <R L0.HasProperty : SEL.GenericParameterType
145 L0.HasLabel "Valve position"
146 L0.HasRange L0.Double
149 DN.Vertex.HasNominalPressureLoss <R L0.HasProperty : SEL.GenericParameterType
150 L0.HasLabel "Nominal Pressure Loss"
151 L0.HasRange L0.Double
154 DN.Edge.HasLength <R L0.HasProperty : SEL.GenericParameterType
156 L0.HasRange L0.Double
159 DN.Edge.HasDiameter <R L0.HasProperty : SEL.GenericParameterType
160 L0.HasLabel "Diameter"
161 L0.HasRange L0.Double
164 DN.Edge.HasOuterDiameter <R L0.HasProperty : SEL.GenericParameterType
165 L0.HasLabel "Outer Diameter"
166 L0.HasRange L0.Double
169 DN.Edge.HasNominalMassFlow <R L0.HasProperty : SEL.GenericParameterType
170 L0.HasLabel "Nominal Mass Flow"
171 L0.HasRange L0.Double
174 DN.Edge.HasFlowArea <R L0.HasProperty : SEL.GenericParameterType
175 L0.HasLabel "Flow Area"
176 L0.HasRange L0.Double
179 DN.Edge.HasKReturn <R L0.HasProperty : SEL.GenericParameterType
180 L0.HasLabel "K Return"
181 L0.HasRange L0.Double
184 DN.Edge.HasKSupply <R L0.HasProperty : SEL.GenericParameterType
185 L0.HasLabel "K Supply"
186 L0.HasRange L0.Double
189 DN.Edge.HasTGround <R L0.HasProperty : SEL.GenericParameterType
190 L0.HasLabel "T Ground"
191 L0.HasRange L0.Double
198 DN.HasInLayerTag <R L0.HasProperty
201 DN.Connection <T DIA.Connection
203 DN.Diagram.MappedDiagram <R L0.IsWeaklyRelatedTo
204 DN.MappedComponent <R L0.IsWeaklyRelatedTo
206 DN.Diagram <T DIA.Diagram
208 DN.AddLayerToDNDiagramTemplate <T L0.Template
210 DN.EPSG_4326 : DN.SpatialRefSystem
211 L0.HasLabel "EPSG:4326"
213 DN.HasSRTEXT _ : L0.String
214 @L0.loadString "epsg/EPSG_4326"
216 DN.SpatialRefSystem <T L0.Entity
218 DN.HasSpatialRefSystem <R L0.HasProperty
219 L0.HasRange DN.SpatialRefSystem
221 DN.HasSRID <R L0.HasProperty
222 L0.HasRange L0.Integer
224 DN.HasSRTEXT <R L0.HasProperty
225 L0.HasRange L0.String
227 DN.Functions.compositeInstantiator : L0.ExternalValue
229 DN.Composite <T STR.Composite
230 STR.Composite.instantiationFunction DN.Functions.compositeInstantiator
231 @L0.assert MOD.HasModelingTemplate
232 _ : MOD.DiagramTemplate
233 MOD.HasDiagramType DN.Diagram
234 @L0.assert MOD.HasModelingTemplate
235 _ : DN.AddLayerToDNDiagramTemplate
237 DN.HasStartVertex <R L0.DependsOn
239 L0.HasRange DN.Vertex
240 L0.InverseOf DN.HasStartVertex_Inverse <R L0.IsRelatedTo
242 DN.HasEndVertex <R L0.DependsOn
244 L0.HasRange DN.Vertex
245 L0.InverseOf DN.HasEndVertex_Inverse <R L0.IsRelatedTo
247 MBC = MOD.ModelingBrowseContext
249 DNAC.newDiagramContribution : L0.Template
250 @template %actionContext %label %image %action
252 VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
254 VP.ActionContribution.HasImage %image
255 VP.ActionContribution.HasCategory VP.NewActionCategory
256 VP.ActionContribution.HasNodeType MBC.Configuration
257 VP.ActionContribution.HasAction %action
259 DNAC = DN.ActionContext : VP.BrowseContext
260 VP.BrowseContext.IsIncludedIn MOD.ModelingActionContext
261 @DNAC.newDiagramContribution "Network Diagram" IMAGES.MapImage ACTIONS.NewDNDiagram
263 DNBC = DN.BrowseContext : VP.BrowseContext
264 VP.BrowseContext.IsIncludedIn MOD.ModelingBrowseContext
265 VP.BrowseContext.Includes SEL_UI.StandardPropertiesBase.BrowseContext
267 @VP.customModifierRule DN.Edge VP.ResourceLabelModifierRule
268 @VP.constantImageRule DN.Composite IMAGES.MapImage
271 ACTIONS = DN.Actions : L0.Library
273 ACTIONS.NewDNDiagram : MOD.NewComposite
274 MOD.NewComposite.HasCompositeType DN.Composite
275 MOD.NewComposite.HasDefaultName "NewNetworkDiagram"
277 IMAGES = DN.Images : L0.Library
279 IMAGES.MapImage : IMAGE.PngImage
280 @L0.loadBytes "images/map.png"
283 DN.Mapping <T L0.Library
285 DN.Functions.convertToValue : L0.ExternalValue
287 DN.Mapping.Base <T L0.Value
288 @L0.assert L0.ConvertsToValueWith DN.Functions.convertToValue
290 DN.Mapping.Terminal <T L0.Entity
292 DN.Mapping.TerminalPair <T L0.Entity
293 >-- DN.Mapping.InputTerminal --> DN.Mapping.Terminal <R L0.HasProperty
294 >-- DN.Mapping.OutputTerminal --> DN.Mapping.Terminal <R L0.HasProperty
296 DN.Mapping.VertexMapping <T DN.Mapping.Base
298 >-- DN.Mapping.Id --> L0.String <R L0.HasProperty
299 >-- DN.Mapping.ComponentType --> STR.ComponentType <R L0.DependsOn
300 >-- DN.Mapping.VertexMapping.ElevationAttribute --> L0.String <R L0.HasProperty
301 >-- DN.Mapping.VertexMapping.SupplyTemperatureAttribute --> L0.String <R L0.HasProperty
302 >-- DN.Mapping.VertexMapping.ReturnTemperatureAttribute --> L0.String <R L0.HasProperty
303 >-- DN.Mapping.VertexMapping.SupplyPressureAttribute --> L0.String <R L0.HasProperty
304 >-- DN.Mapping.VertexMapping.ReturnPressureAttribute --> L0.String <R L0.HasProperty
305 >-- DN.Mapping.VertexMapping.DeltaPressureAttribute --> L0.String <R L0.HasProperty
306 >-- DN.Mapping.VertexMapping.DeltaTemperatureAttribute --> L0.String <R L0.HasProperty
307 >-- DN.Mapping.Terminals --> DN.Mapping.TerminalPair <R L0.HasProperty
309 >-- DN.Mapping.VertexMapping.dpAttribute --> L0.String <R L0.HasProperty
310 >-- DN.Mapping.VertexMapping.dtAttribute --> L0.String <R L0.HasProperty
311 >-- DN.Mapping.VertexMapping.HeatPowerAttribute --> L0.String <R L0.HasProperty
312 >-- DN.Mapping.VertexMapping.NominalHeadMAttribute --> L0.String <R L0.HasProperty
313 >-- DN.Mapping.VertexMapping.NominalHeadBAttribute --> L0.String <R L0.HasProperty
314 >-- DN.Mapping.VertexMapping.NominalFlowAttribute --> L0.String <R L0.HasProperty
315 >-- DN.Mapping.VertexMapping.MaximumHeadMAttribute --> L0.String <R L0.HasProperty
317 >-- DN.Mapping.VertexMapping.HeatLoadDsAttribute --> L0.String <R L0.HasProperty
318 >-- DN.Mapping.VertexMapping.MassFlowAttribute --> L0.String <R L0.HasProperty
319 >-- DN.Mapping.VertexMapping.VolFlowAttribute --> L0.String <R L0.HasProperty
320 >-- DN.Mapping.VertexMapping.VelocityAttribute --> L0.String <R L0.HasProperty
321 >-- DN.Mapping.VertexMapping.FlowAreaAttribute --> L0.String <R L0.HasProperty
322 >-- DN.Mapping.VertexMapping.ValvePositionAttribute --> L0.String <R L0.HasProperty
323 >-- DN.Mapping.VertexMapping.NominalPressureLossAttribute --> L0.String <R L0.HasProperty
324 >-- DN.Mapping.VertexMapping.NominalMassFlowAttribute --> L0.String <R L0.HasProperty
326 DN.Mapping.EdgeMapping <T DN.Mapping.Base
328 >-- DN.Mapping.ComponentType
329 >-- DN.Mapping.EdgeMapping.LengthAttribute --> L0.String <R L0.HasProperty
330 >-- DN.Mapping.EdgeMapping.DiameterAttribute --> L0.String <R L0.HasProperty
331 >-- DN.Mapping.EdgeMapping.OuterDiameterAttribute --> L0.String <R L0.HasProperty
332 >-- DN.Mapping.EdgeMapping.NominalMassFlowAttribute --> L0.String <R L0.HasProperty
333 >-- DN.Mapping.EdgeMapping.FlowAreaAttribute --> L0.String <R L0.HasProperty
334 >-- DN.Mapping.EdgeMapping.KReturnAttribute --> L0.String <R L0.HasProperty
335 >-- DN.Mapping.EdgeMapping.KSupplyAttribute --> L0.String <R L0.HasProperty
336 >-- DN.Mapping.EdgeMapping.TGroundAttribute --> L0.String <R L0.HasProperty
337 >-- DN.Mapping.Terminals
339 DN.SCLMain : L0.SCLModule
340 L0.SCLModule.definition
342 include "Simantics/District/SCLMain"
345 DN.DistrictProfile : DIA.Profile
346 L0.HasLabel "District Network Profile"
347 DIA.Profile.priority 0.0
351 DN.DistrictProfile.entry
352 L0.HasLabel "Component names"
353 @DIA.groupStyleProfileEntry DN.ComponentNameStyle DN.Groups.ElementGroup
354 DN.DistrictProfile.entry1
356 @DIA.groupStyleProfileEntry DN.ComponentIdStyle DN.Groups.ElementGroup
357 DN.DistrictProfile.entry2
358 L0.HasLabel "Edge Node Styling"
359 @DIA.groupStyleProfileEntry DN.EdgeNodeStyle DN.Groups.ElementGroup
361 DN.Groups : L0.Library
363 DN.Groups.ElementGroup : DIA.TypeGroup
364 DIA.TypeGroup.HasType DIA.Element
366 DN.ComponentNameStyle : DIA.ResourceSCLTextGridStyle
367 @MOD.scl DIA.ResourceSCLTextGridStyle.texts
369 districtNetworkProfileStyle "http://www.simantics.org/Layer0-1.1/HasName"
371 "String -> Variable -> <ReadGraph> (String, String, String)"
372 @G2D.fontProperty DIA.TextElement.font "Arial" 30 G2D.FontStyle.normal_font_style
374 DN.ComponentIdStyle : DIA.ResourceSCLTextGridStyle
375 @MOD.scl DIA.ResourceSCLTextGridStyle.texts
377 districtNetworkProfileStyle "http://www.simantics.org/Layer0-1.1/HasName"
379 "String -> Variable -> <ReadGraph> (String, String, String)"
380 @G2D.fontProperty DIA.TextElement.font "Arial" 30 G2D.FontStyle.normal_font_style
382 //DN.EdgeNodeGroup : DIA.Group
384 //DN.Profiles : L0.Library
386 DN.EdgeNodeStyle : DIA.Style
390 //groupStyleEntry : L0.Template
391 // @template %subject %style %group
392 // %subject : DIA.GroupStyleProfileEntry
393 // DIA.ProfileEntry.HasStyle %style
394 // DIA.ProfileEntry.HasGroup %group
397 //DN.Profiles.EdgeNodeStyle
398 // L0.HasLabel "Edge Node Style"
399 // @groupStyleEntry DN.EdgeNodeStyle DN.EdgeNodeGroup