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