]> SALOME platform Git repositories - modules/superv.git/blob - examples/GraphTestMacroNodes.py
Salome HOME
PAL8521
[modules/superv.git] / examples / GraphTestMacroNodes.py
1
2 from SuperV import *
3
4 GraphMacroNodes = Graph( '/home/Salome2/Ecole_Ete_a6/SUPERV_install/examples/GraphEssai.xml' )
5
6 GraphMacroNodes.PrintLinks()
7
8 GraphMacroNodes.SetName('GraphMacroNodes')
9
10 Macro_SyrStruct = GraphMacroNodes.MNode( '/home/Salome2/Ecole_Ete_a6/SUPERV_install/examples/SyrStruct.xml' )
11
12 Macro_SyrStruct.PrintPorts()
13
14 GraphMacroNodes.PrintPorts()
15
16 GraphMacroNodes.PrintLinks()
17
18 GraphMacroNodes.Print()
19
20 Macro_SyrStruct.Print()
21
22 exec GraphMacroNodes.ListNodes('GraphMacroNodes')
23
24 Macro_SyrStruct.Print()
25
26 Macro_SyrStruct.IsMacro()
27 Macro_SyrStruct.IsFlowMacro()
28 Macro_SyrStruct.IsStreamMacro()
29
30 SyrStruct = Macro_SyrStruct.FlowObjRef()
31
32 SyrStruct.Print()
33
34 SyrStruct.PrintPorts()
35
36 SyrStruct.PrintLinks()
37
38 SyrStruct.IsValid()
39 SyrStruct.IsExecutable()
40
41 exec SyrStruct.ListNodes('SyrStruct')
42
43 m3incr.Print()
44
45 m3incr.PrintPorts()
46
47 m3incr.PrintLinks()
48
49 EndOffori.Print()
50
51 EndOffori.PrintPorts()
52
53 EndOffori.PrintLinks()
54
55 EndOfwhileEven.Print()
56
57 EndOfwhileEven.PrintPorts()
58
59 EndOfwhileEven.PrintLinks()
60
61 MSyrStruct = SyrStruct.FlowObjRef()
62
63 MSyrStruct.Print()
64
65 MSyrStruct.PrintPorts()
66
67 GraphMacroNodes.IsValid()
68 GraphMacroNodes.IsExecutable()
69
70 GraphMacroNodes.PrintPorts()
71
72 Macro_SyrStruct_1 = GraphMacroNodes.MNode( '/home/Salome2/Ecole_Ete_a6/SUPERV_install/examples/SyrStruct.xml' )
73
74 Macro_SyrStruct_1.Print()
75
76 Macro_SyrStruct_1.IsMacro()
77 Macro_SyrStruct_1.IsFlowMacro()
78 Macro_SyrStruct_1.IsStreamMacro()
79
80 SyrStruct_1 = Macro_SyrStruct_1.FlowObjRef()
81
82 SyrStruct_1.Print()
83
84 GraphMacroNodes.IsValid()
85 GraphMacroNodes.IsExecutable()
86
87 GraphMacroNodes.PrintPorts()
88
89 MSyrStruct_1 = SyrStruct_1.FlowObjRef()
90
91 MSyrStruct_1.Print()
92
93 MSyrStruct_1.PrintPorts()
94
95
96
97 GraphMacroNodes.Export( '/home/Salome2/Ecole_Ete_a6/SUPERV_build/examples/GraphMacroNodes.xml' )
98
99 SyrStruct.Name()
100 SyrStruct_1.Name()
101
102 GraphMacroNodes.Run()
103
104 GraphMacroNodes.DoneW()
105
106 GraphMacroNodes.State()
107
108 Macro_SyrStruct.State()
109
110 Macro_SyrStruct_1.State()
111
112
113
114
115
116 from SuperV import *
117
118 GraphMacroNodes = Graph( '/home/Salome2/Ecole_Ete_a6/SUPERV_build/examples/GraphMacroNodes.xml' )
119
120 GraphMacroNodes.Name()
121
122 GraphMacroNodes.Export( '/tmp/GraphMacroNodes.xml' )
123
124 exec GraphMacroNodes.ListNodes('GraphMacroNodes')
125
126 GraphMacroNodes.PrintPorts()
127
128 GraphMacroNodes.PrintLinks()
129
130 Macro_SyrStruct.IsMacro()
131 Macro_SyrStruct.IsFlowMacro()
132 Macro_SyrStruct.IsStreamMacro()
133
134 Macro_SyrStruct.Print()
135
136 SyrStruct = Macro_SyrStruct.FlowObjRef()
137
138 SyrStruct.Print()
139
140 SyrStruct.PrintPorts()
141
142 SyrStruct.PrintLinks()
143
144 exec SyrStruct.ListNodes('SyrStruct')
145
146 Macro_SyrStruct.IsMacro()
147 Macro_SyrStruct.IsFlowMacro()
148 Macro_SyrStruct.IsStreamMacro()
149
150 Macro_SyrStruct.IsValid()
151
152 Macro_SyrStruct.IsExecutable()
153
154 Macro_SyrStruct_1.Print()
155
156 SyrStruct_1 = Macro_SyrStruct_1.FlowObjRef()
157
158 SyrStruct_1.Print()
159
160 SyrStruct_1.PrintPorts()
161
162 SyrStruct_1.PrintLinks()
163
164 exec SyrStruct_1.ListNodes('SyrStruct_1')
165
166 MSyrStruct = SyrStruct.FlowObjRef()
167
168 MSyrStruct.Print()
169
170 MSyrStruct_1 = SyrStruct_1.FlowObjRef()
171
172 MSyrStruct_1.Print()
173
174 GraphMacroNodes.Run()
175
176 GraphMacroNodes.DoneW()
177
178 GraphMacroNodes.State()
179
180 Macro_SyrStruct.State()
181
182 Macro_SyrStruct_1.State()
183
184
185
186
187 from SuperV import *
188
189 from GraphMacroNodes import *
190
191 GraphMacroNodes.IsExecutable()
192
193 GraphMacroNodes.Run()
194
195 exec GraphMacroNodes.ListNodes('GraphMacroNodes')
196
197 SyrStruct = Macro_SyrStruct.FlowObjRef()
198
199 SyrStruct.IsExecutable()
200
201 GraphMacroNodes.DoneW()
202
203 GraphMacroNodes.State()
204
205 Macro_SyrStruct.State()
206
207 Macro_SyrStruct_1.State()
208
209 SyrStruct = Macro_SyrStruct.FlowObjRef()
210
211 exec SyrStruct.ListNodes('SyrStruct')
212
213 EndOfforN.State()
214
215 SyrStruct.DoneW()
216
217 SyrStruct.State()
218
219 SyrStruct_1 = Macro_SyrStruct_1.FlowObjRef()
220
221 exec SyrStruct_1.ListNodes('SyrStruct')
222
223 EndOfforN.State()
224
225 SyrStruct_1.DoneW()
226
227 SyrStruct_1.State()
228
229 SyrStruct.PrintPorts()
230
231 Macro_SyrStruct.PrintPorts()
232
233 GraphMacroNodes.PrintPorts()
234
235 GraphMacroNodes.Run()
236
237 GraphMacroNodes.DoneW()
238
239 GraphMacroNodes.State()
240
241 Macro_SyrStruct.State()
242
243 Macro_SyrStruct_1.State()
244
245
246
247
248 SyrStruct.Export('/tmp/SubSyrStruct.xml')
249
250
251 SubSyrStruct = Graph('/tmp/SubSyrStruct.xml')
252
253 SubSyrStruct.IsValid()
254
255 SubSyrStruct.IsExecutable()
256
257 SubSyrStruct.Run()
258
259 SubSyrStruct.DoneW()
260
261 SubSyrStruct.State()
262
263 SubSyrStruct.PrintPorts()
264
265
266
267
268
269 from SuperV import *
270
271 from GraphMacroNodes import *
272
273 exec GraphMacroNodes.ListNodes('GraphMacroNodes')
274
275 SyrStruct = Macro_SyrStruct.FlowObjRef()
276
277 exec SyrStruct.ListNodes('SyrStruct')
278
279 Unused = SyrComponent.InPort('Unused','long')
280
281 SyrComponent.PrintPorts()
282
283 SyrComponent.Print()
284
285 SyrStruct.IsValid()
286
287 SyrStruct.PrintPorts()
288
289 Macro_SyrStruct.PrintPorts()
290
291 GraphMacroNodes.PrintPorts()
292
293 Unused.Destroy()
294
295 GraphMacroNodes.PrintPorts()
296
297 Macro_SyrStruct.PrintPorts()
298
299 SyrStruct.PrintPorts()
300
301 GraphMacroNodes.Run()
302
303 GraphMacroNodes.DoneW()
304
305 GraphMacroNodes.State()
306
307 Macro_SyrStruct.State()
308
309 Macro_SyrStruct_1.State()