4 GraphMacroNodes = Graph( '/home/Salome2/Ecole_Ete_a6/SUPERV_install/examples/GraphEssai.xml' )
6 GraphMacroNodes.PrintLinks()
8 GraphMacroNodes.SetName('GraphMacroNodes')
10 Macro_SyrStruct = GraphMacroNodes.MNode( '/home/Salome2/Ecole_Ete_a6/SUPERV_install/examples/SyrStruct.xml' )
12 Macro_SyrStruct.PrintPorts()
14 GraphMacroNodes.PrintPorts()
16 GraphMacroNodes.PrintLinks()
18 GraphMacroNodes.Print()
20 Macro_SyrStruct.Print()
22 exec GraphMacroNodes.ListNodes('GraphMacroNodes')
24 Macro_SyrStruct.Print()
26 Macro_SyrStruct.IsMacro()
27 Macro_SyrStruct.IsFlowMacro()
28 Macro_SyrStruct.IsStreamMacro()
30 SyrStruct = Macro_SyrStruct.FlowObjRef()
34 SyrStruct.PrintPorts()
36 SyrStruct.PrintLinks()
39 SyrStruct.IsExecutable()
41 exec SyrStruct.ListNodes('SyrStruct')
51 EndOffori.PrintPorts()
53 EndOffori.PrintLinks()
55 EndOfwhileEven.Print()
57 EndOfwhileEven.PrintPorts()
59 EndOfwhileEven.PrintLinks()
61 MSyrStruct = SyrStruct.FlowObjRef()
65 MSyrStruct.PrintPorts()
67 GraphMacroNodes.IsValid()
68 GraphMacroNodes.IsExecutable()
70 GraphMacroNodes.PrintPorts()
72 Macro_SyrStruct_1 = GraphMacroNodes.MNode( '/home/Salome2/Ecole_Ete_a6/SUPERV_install/examples/SyrStruct.xml' )
74 Macro_SyrStruct_1.Print()
76 Macro_SyrStruct_1.IsMacro()
77 Macro_SyrStruct_1.IsFlowMacro()
78 Macro_SyrStruct_1.IsStreamMacro()
80 SyrStruct_1 = Macro_SyrStruct_1.FlowObjRef()
84 GraphMacroNodes.IsValid()
85 GraphMacroNodes.IsExecutable()
87 GraphMacroNodes.PrintPorts()
89 MSyrStruct_1 = SyrStruct_1.FlowObjRef()
93 MSyrStruct_1.PrintPorts()
97 GraphMacroNodes.Export( '/home/Salome2/Ecole_Ete_a6/SUPERV_build/examples/GraphMacroNodes.xml' )
102 GraphMacroNodes.Run()
104 GraphMacroNodes.DoneW()
106 GraphMacroNodes.State()
108 Macro_SyrStruct.State()
110 Macro_SyrStruct_1.State()
118 GraphMacroNodes = Graph( '/home/Salome2/Ecole_Ete_a6/SUPERV_build/examples/GraphMacroNodes.xml' )
120 GraphMacroNodes.Name()
122 GraphMacroNodes.Export( '/tmp/GraphMacroNodes.xml' )
124 exec GraphMacroNodes.ListNodes('GraphMacroNodes')
126 GraphMacroNodes.PrintPorts()
128 GraphMacroNodes.PrintLinks()
130 Macro_SyrStruct.IsMacro()
131 Macro_SyrStruct.IsFlowMacro()
132 Macro_SyrStruct.IsStreamMacro()
134 Macro_SyrStruct.Print()
136 SyrStruct = Macro_SyrStruct.FlowObjRef()
140 SyrStruct.PrintPorts()
142 SyrStruct.PrintLinks()
144 exec SyrStruct.ListNodes('SyrStruct')
146 Macro_SyrStruct.IsMacro()
147 Macro_SyrStruct.IsFlowMacro()
148 Macro_SyrStruct.IsStreamMacro()
150 Macro_SyrStruct.IsValid()
152 Macro_SyrStruct.IsExecutable()
154 Macro_SyrStruct_1.Print()
156 SyrStruct_1 = Macro_SyrStruct_1.FlowObjRef()
160 SyrStruct_1.PrintPorts()
162 SyrStruct_1.PrintLinks()
164 exec SyrStruct_1.ListNodes('SyrStruct_1')
166 MSyrStruct = SyrStruct.FlowObjRef()
170 MSyrStruct_1 = SyrStruct_1.FlowObjRef()
174 GraphMacroNodes.Run()
176 GraphMacroNodes.DoneW()
178 GraphMacroNodes.State()
180 Macro_SyrStruct.State()
182 Macro_SyrStruct_1.State()
189 from GraphMacroNodes import *
191 GraphMacroNodes.IsExecutable()
193 GraphMacroNodes.Run()
195 exec GraphMacroNodes.ListNodes('GraphMacroNodes')
197 SyrStruct = Macro_SyrStruct.FlowObjRef()
199 SyrStruct.IsExecutable()
201 GraphMacroNodes.DoneW()
203 GraphMacroNodes.State()
205 Macro_SyrStruct.State()
207 Macro_SyrStruct_1.State()
209 SyrStruct = Macro_SyrStruct.FlowObjRef()
211 exec SyrStruct.ListNodes('SyrStruct')
219 SyrStruct_1 = Macro_SyrStruct_1.FlowObjRef()
221 exec SyrStruct_1.ListNodes('SyrStruct')
229 SyrStruct.PrintPorts()
231 Macro_SyrStruct.PrintPorts()
233 GraphMacroNodes.PrintPorts()
235 GraphMacroNodes.Run()
237 GraphMacroNodes.DoneW()
239 GraphMacroNodes.State()
241 Macro_SyrStruct.State()
243 Macro_SyrStruct_1.State()
248 SyrStruct.Export('/tmp/SubSyrStruct.xml')
251 SubSyrStruct = Graph('/tmp/SubSyrStruct.xml')
253 SubSyrStruct.IsValid()
255 SubSyrStruct.IsExecutable()
263 SubSyrStruct.PrintPorts()
271 from GraphMacroNodes import *
273 exec GraphMacroNodes.ListNodes('GraphMacroNodes')
275 SyrStruct = Macro_SyrStruct.FlowObjRef()
277 exec SyrStruct.ListNodes('SyrStruct')
279 Unused = SyrComponent.InPort('Unused','long')
281 SyrComponent.PrintPorts()
287 SyrStruct.PrintPorts()
289 Macro_SyrStruct.PrintPorts()
291 GraphMacroNodes.PrintPorts()
295 GraphMacroNodes.PrintPorts()
297 Macro_SyrStruct.PrintPorts()
299 SyrStruct.PrintPorts()
301 GraphMacroNodes.Run()
303 GraphMacroNodes.DoneW()
305 GraphMacroNodes.State()
307 Macro_SyrStruct.State()
309 Macro_SyrStruct_1.State()