1 L0 = <http://www.simantics.org/Layer0-1.1>
2 STR = <http://www.simantics.org/Structural-1.2>
3 DIA = <http://www.simantics.org/Diagram-2.2>
4 G2D = <http://www.simantics.org/G2D-1.1>
5 MOD = <http://www.simantics.org/Modeling-1.2>
6 DOC = <http://www.simantics.org/Documentation-1.2>
7 IMAGE = <http://www.simantics.org/Image2-1.2>
8 RELATIONS = <http://www.simantics.org/Documentation-1.2/Relations>
9 FUNCTIONS = <http://www.simantics.org/Documentation-1.2/Functions>
10 COMPONENTS = <http://www.simantics.org/Documentation-1.2/Components>
14 DOC.DocumentDiagram <T DIA.Diagram
15 @L0.assert STR.HasModelingRules DOC.DiagramModelingRules
16 @L0.assert DIA.HasGridSize 1.0
17 @L0.assert DIA.HasPageDescription
18 DOC.A3 : DIA.PageDescription
19 DIA.PageDescription.Size [297.0,420.0]
20 DIA.PageDescription.Orientation DIA.Orientation.Portrait
21 DIA.PageDescription.Margins _ : DIA.Margins
22 DIA.PageDescription.Margins.Bottom 12.0
23 DIA.PageDescription.Margins.Top 12.0
24 DIA.PageDescription.Margins.Left 12.0
25 DIA.PageDescription.Margins.Right 12.0
27 DOC.DiagramModelingRules : MOD.MappedModelingRules
28 MOD.HasBaseRules STR.StandardModelingRules
32 DOC.DiagramRelations : L0.Library
34 DIAGRAMRELATIONS = DOC.DiagramRelations
36 terminalRelation : L0.Template
37 @template %subject %target
38 %subject <R STR.IsConnectedTo
39 MOD.DiagramConnectionRelationToConnectionRelation %target
41 DIAGRAMRELATIONS.ParentRelation
42 @terminalRelation RELATIONS.parent
44 DIAGRAMRELATIONS.Child1
45 @terminalRelation RELATIONS.part1
47 DIAGRAMRELATIONS.Child2
48 @terminalRelation RELATIONS.part2
50 DIAGRAMRELATIONS.Child3
51 @terminalRelation RELATIONS.part3
53 DIAGRAMRELATIONS.Child4
54 @terminalRelation RELATIONS.part4
56 DIAGRAMRELATIONS.Child5
57 @terminalRelation RELATIONS.part5
59 DIAGRAMRELATIONS.Child6
60 @terminalRelation RELATIONS.part6
62 DIAGRAMRELATIONS.Child7
63 @terminalRelation RELATIONS.part7
65 DIAGRAMRELATIONS.Child8
66 @terminalRelation RELATIONS.part8
68 DIAGRAMRELATIONS.Child9
69 @terminalRelation RELATIONS.part9
71 DIAGRAMRELATIONS.Child10
72 @terminalRelation RELATIONS.part10
74 DIAGRAMRELATIONS.Child11
75 @terminalRelation RELATIONS.part11
77 DIAGRAMRELATIONS.Child12
78 @terminalRelation RELATIONS.part12
80 DIAGRAMRELATIONS.Child13
81 @terminalRelation RELATIONS.part13
83 DIAGRAMRELATIONS.Child14
84 @terminalRelation RELATIONS.part14
86 DIAGRAMRELATIONS.Child15
87 @terminalRelation RELATIONS.part15
89 DIAGRAMRELATIONS.Child16
90 @terminalRelation RELATIONS.part16
92 DIAGRAMRELATIONS.Child17
93 @terminalRelation RELATIONS.part17
95 DIAGRAMRELATIONS.Child18
96 @terminalRelation RELATIONS.part18
98 DIAGRAMRELATIONS.Child19
99 @terminalRelation RELATIONS.part19
101 DIAGRAMRELATIONS.Child20
102 @terminalRelation RELATIONS.part20
104 DIAGRAMRELATIONS.Child21
105 @terminalRelation RELATIONS.part21
107 DIAGRAMRELATIONS.Child22
108 @terminalRelation RELATIONS.part22
110 DIAGRAMRELATIONS.Child23
111 @terminalRelation RELATIONS.part23
113 DIAGRAMRELATIONS.Child24
114 @terminalRelation RELATIONS.part24
116 DIAGRAMRELATIONS.Child25
117 @terminalRelation RELATIONS.part25
119 DIAGRAMRELATIONS.Child26
120 @terminalRelation RELATIONS.part26
122 DIAGRAMRELATIONS.Child27
123 @terminalRelation RELATIONS.part27
125 DIAGRAMRELATIONS.Child28
126 @terminalRelation RELATIONS.part28
128 DIAGRAMRELATIONS.Child29
129 @terminalRelation RELATIONS.part29
131 DIAGRAMRELATIONS.Child30
132 @terminalRelation RELATIONS.part30
134 DIAGRAMRELATIONS.ChildN
135 @terminalRelation RELATIONS.partN
137 DIAGRAMRELATIONS.click
138 @terminalRelation RELATIONS.click
140 DIAGRAMRELATIONS.edit
141 @terminalRelation RELATIONS.edit
143 DIAGRAMRELATIONS.load
144 @terminalRelation RELATIONS.load
146 DIAGRAMRELATIONS.select
147 @terminalRelation RELATIONS.select
149 DIAGRAMRELATIONS.valueChanged
150 @terminalRelation RELATIONS.valueChanged
152 DIAGRAMRELATIONS.trigger
153 @terminalRelation RELATIONS.trigger
155 DIAGRAMRELATIONS.triggerTrue
156 @terminalRelation RELATIONS.triggerTrue
158 DIAGRAMRELATIONS.triggerFalse
159 @terminalRelation RELATIONS.triggerFalse
161 DIAGRAMRELATIONS.open
162 @terminalRelation RELATIONS.open
164 DIAGRAMRELATIONS.close
165 @terminalRelation RELATIONS.close
167 DIAGRAMRELATIONS.closed
168 @terminalRelation RELATIONS.closed
170 DIAGRAMRELATIONS.uploaded
171 @terminalRelation RELATIONS.uploaded
173 DIAGRAMRELATIONS.submit
174 @terminalRelation RELATIONS.submit
176 DIAGRAMRELATIONS.enter
177 @terminalRelation RELATIONS.enter
179 DIAGRAMRELATIONS.data1
180 @terminalRelation RELATIONS.data1
182 DIAGRAMRELATIONS.data2
183 @terminalRelation RELATIONS.data2
185 DIAGRAMRELATIONS.data3
186 @terminalRelation RELATIONS.data3
188 DIAGRAMRELATIONS.data4
189 @terminalRelation RELATIONS.data4
191 DIAGRAMRELATIONS.data5
192 @terminalRelation RELATIONS.data5
194 DIAGRAMRELATIONS.data6
195 @terminalRelation RELATIONS.data6
197 DIAGRAMRELATIONS.data7
198 @terminalRelation RELATIONS.data7
200 DIAGRAMRELATIONS.data8
201 @terminalRelation RELATIONS.data8
203 DIAGRAMRELATIONS.data9
204 @terminalRelation RELATIONS.data9
206 DIAGRAMRELATIONS.data10
207 @terminalRelation RELATIONS.data10
209 DIAGRAMRELATIONS.dataOut
210 @terminalRelation RELATIONS.dataOut
212 DIAGRAMRELATIONS.dataIn
213 @terminalRelation RELATIONS.dataIn
215 DIAGRAMRELATIONS.arrayDataIn
216 @terminalRelation RELATIONS.arrayDataIn
218 DIAGRAMRELATIONS.dataIn1
219 @terminalRelation RELATIONS.dataIn1
221 DIAGRAMRELATIONS.dataIn2
222 @terminalRelation RELATIONS.dataIn2
224 DIAGRAMRELATIONS.dataIn3
225 @terminalRelation RELATIONS.dataIn3
227 DIAGRAMRELATIONS.dataIn4
228 @terminalRelation RELATIONS.dataIn4
230 DIAGRAMRELATIONS.dataIn5
231 @terminalRelation RELATIONS.dataIn5
233 DIAGRAMRELATIONS.dataIn6
234 @terminalRelation RELATIONS.dataIn6
236 DIAGRAMRELATIONS.dataIn7
237 @terminalRelation RELATIONS.dataIn7
239 DIAGRAMRELATIONS.dataIn8
240 @terminalRelation RELATIONS.dataIn8
242 DIAGRAMRELATIONS.dataIn9
243 @terminalRelation RELATIONS.dataIn9
245 DIAGRAMRELATIONS.dataIn10
246 @terminalRelation RELATIONS.dataIn10
248 DIAGRAMRELATIONS.dataDefinition
249 @terminalRelation RELATIONS.dataDefinition
251 DIAGRAMRELATIONS.event
252 @terminalRelation RELATIONS.event
255 DIAGRAMRELATIONS.sequenceTrigger
256 @terminalRelation RELATIONS.sequenceTrigger
258 DIAGRAMRELATIONS.sequence1
259 @terminalRelation RELATIONS.sequence1
261 DIAGRAMRELATIONS.sequence2
262 @terminalRelation RELATIONS.sequence2
264 DIAGRAMRELATIONS.sequence3
265 @terminalRelation RELATIONS.sequence3
267 DIAGRAMRELATIONS.sequence4
268 @terminalRelation RELATIONS.sequence4
270 DIAGRAMRELATIONS.sequence5
271 @terminalRelation RELATIONS.sequence5
273 DIAGRAMRELATIONS.sequence6
274 @terminalRelation RELATIONS.sequence6
276 DIAGRAMRELATIONS.sequence7
277 @terminalRelation RELATIONS.sequence7
279 DIAGRAMRELATIONS.sequence8
280 @terminalRelation RELATIONS.sequence8
282 DIAGRAMRELATIONS.sequence9
283 @terminalRelation RELATIONS.sequence9
285 DIAGRAMRELATIONS.sequence10
286 @terminalRelation RELATIONS.sequence10
288 DIAGRAMRELATIONS.broadcast
289 @terminalRelation RELATIONS.broadcast
291 DIAGRAMRELATIONS.broadcasted
292 @terminalRelation RELATIONS.broadcasted
294 DIAGRAMRELATIONS.eventIn
295 @terminalRelation RELATIONS.eventIn
297 DIAGRAMRELATIONS.eventOut
298 @terminalRelation RELATIONS.eventOut
301 TERMINALS = DOC.Terminals : L0.Library
303 TERMINALS.ParentTerminal /* @ "Connection point to parent" */ <T DIA.DefinedElement <T DIA.Terminal
304 STR.IsDefinedBy _ : DIA.Composite
307 G2D.HasSVGDocument """<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" overflow="visible" version="1.1"><g transform="translate(-0.0,-0.0)"><rect x="-0.5" y="-0.5" width="1.0" height="1.0" fill="rgb(0,163,204)" stroke="black" stroke-width="0.1"/></g></svg>""" : L0.String
310 TERMINALS.ChildTerminal /* @ "Connection point to a child element" */ <T DIA.DefinedElement <T DIA.Terminal
311 STR.IsDefinedBy _ : DIA.Composite
314 G2D.HasSVGDocument """<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" overflow="visible" version="1.1"><g transform="translate(-0.0,-0.0)"><ellipse cx="0.0" cy="0.0" rx="0.5" ry="0.5" fill="rgb(0,163,204)" stroke="black" stroke-width="0.1"/></g></svg>""" : L0.String
316 TERMINALS.CommandTerminal /* @ "Command termina" */ <T DIA.DefinedElement <T DIA.Terminal
317 STR.IsDefinedBy _ : DIA.Composite
320 G2D.HasSVGDocument """<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" overflow="visible" version="1.1"><g transform="translate(-0.0,-0.0)"><rect x="-0.5" y="-0.5" width="1.0" height="1.0" fill="rgb(255,0,255)" stroke="black" stroke-width="0.1"/></g></svg>""" : L0.String
322 TERMINALS.CommandExecutorTerminal /* @ "Command executor terminal" */ <T DIA.DefinedElement <T DIA.Terminal
323 STR.IsDefinedBy _ : DIA.Composite
326 G2D.HasSVGDocument """<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" overflow="visible" version="1.1"><g transform="translate(-0.0,-0.0)"><ellipse cx="0.0" cy="0.0" rx="0.5" ry="0.5" fill="rgb(255,0,255)" stroke="black" stroke-width="0.1"/></g></svg>""" : L0.String
328 TERMINALS.BroadcastTerminal /* @ "Command broadcast terminal" */ <T DIA.DefinedElement <T DIA.Terminal
329 STR.IsDefinedBy _ : DIA.Composite
332 G2D.HasSVGDocument """<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" overflow="visible" version="1.1"><g transform="translate(-0.0,-0.0)"><ellipse cx="0.0" cy="0.0" rx="0.5" ry="0.5" fill="rgb(215,0,215)" stroke="black" stroke-width="0.1"/></g></svg>""" : L0.String
334 TERMINALS.BroadcastedTerminal /* @ "Command broadcasted terminal" */ <T DIA.DefinedElement <T DIA.Terminal
335 STR.IsDefinedBy _ : DIA.Composite
338 G2D.HasSVGDocument """<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" overflow="visible" version="1.1"><g transform="translate(-0.0,-0.0)"><rect x="-0.5" y="-0.5" width="1.0" height="1.0" fill="rgb(215,0,215)" stroke="black" stroke-width="0.1"/></g></svg>""" : L0.String
340 TERMINALS.DataConsumerTerminal /* @ "Data consumer, using data from a provider" */ <T DIA.DefinedElement <T DIA.Terminal
341 STR.IsDefinedBy _ : DIA.Composite
344 G2D.HasSVGDocument """<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" overflow="visible" version="1.1"><g transform="translate(-0.0,-0.0)"><ellipse cx="0.0" cy="0.0" rx="0.5" ry="0.5" fill="rgb(255,166,0)" stroke="black" stroke-width="0.1"/></g></svg>""" : L0.String
346 TERMINALS.DataProviderTerminal /* @ "Provides data to a consumer" */ <T DIA.DefinedElement <T DIA.Terminal
347 STR.IsDefinedBy _ : DIA.Composite
350 G2D.HasSVGDocument """<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" overflow="visible" version="1.1"><g transform="translate(-0.0,-0.0)"><ellipse cx="0.0" cy="0.0" rx="0.5" ry="0.5" fill="rgb(255,166,0)" stroke="black" stroke-width="0.1"/></g></svg>""" : L0.String