]> SALOME platform Git repositories - modules/superv.git/blob - examples/GraphEditGraphSwitchs_3.xml
Salome HOME
Preparation of 3.1.0a2: version ID. compilation with new KERNEL
[modules/superv.git] / examples / GraphEditGraphSwitchs_3.xml
1 <!DOCTYPE SuperGraph>
2 <supergraph>
3 <dataflow>
4 <info-list>
5 <node>
6 <component-name>?</component-name>
7     <interface-name>?</interface-name>
8     <node-name>GraphEditSwitchs</node-name>
9     <kind>1</kind>
10     <coupled-node>?</coupled-node>
11     <service>
12 <service-name>GraphEditSwitchs</service-name>
13      <inParameter-list>
14 <inParameter>
15 <inParameter-type>long</inParameter-type>
16        <inParameter-name>InitLoop__Index</inParameter-name>      </inParameter>
17       <inParameter>
18 <inParameter-type>long</inParameter-type>
19        <inParameter-name>InitLoop__Min</inParameter-name>      </inParameter>
20       <inParameter>
21 <inParameter-type>long</inParameter-type>
22        <inParameter-name>InitLoop__Max</inParameter-name>      </inParameter>     </inParameter-list>
23      <outParameter-list>
24 <outParameter>
25 <outParameter-type>long</outParameter-type>
26        <outParameter-name>EndOfInitLoop__Index</outParameter-name>      </outParameter>
27       <outParameter>
28 <outParameter-type>long</outParameter-type>
29        <outParameter-name>EndOfInitLoop__Min</outParameter-name>      </outParameter>
30       <outParameter>
31 <outParameter-type>long</outParameter-type>
32        <outParameter-name>EndOfInitLoop__Max</outParameter-name>      </outParameter>
33       <outParameter>
34 <outParameter-type>int</outParameter-type>
35        <outParameter-name>Switch__Even</outParameter-name>      </outParameter>
36       <outParameter>
37 <outParameter-type>long</outParameter-type>
38        <outParameter-name>EndSwitch__a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
39     <DataStream-list/>
40     <PyFunction-list/>
41     <creation-date>3/2/2005 - 16:14:10</creation-date>
42     <lastmodification-date>3/2/2005 - 16:14:12</lastmodification-date>
43     <editor-release>2.0</editor-release>
44     <author>?</author>
45     <container>?</container>
46     <comment>?</comment>
47     <x-position>0</x-position>
48     <y-position>0</y-position>   </node>  </info-list>
49   <node-list>
50 <node>
51 <component-name>?</component-name>
52     <interface-name>?</interface-name>
53     <node-name>IsOdd</node-name>
54     <kind>3</kind>
55     <coupled-node>?</coupled-node>
56     <service>
57 <service-name>IsOdd</service-name>
58      <inParameter-list>
59 <inParameter>
60 <inParameter-type>long</inParameter-type>
61        <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
62      <outParameter-list>
63 <outParameter>
64 <outParameter-type>long</outParameter-type>
65        <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
66     <DataStream-list/>
67     <PyFunction-list>
68 <PyFunction>
69 <FuncName>IsOdd</FuncName>
70       <PyFunc><![CDATA[from time import *   ]]></PyFunc>
71       <PyFunc><![CDATA[def IsOdd(a) :       ]]></PyFunc>
72       <PyFunc><![CDATA[    print a,"IsOdd (GraphSwitchs)"      ]]></PyFunc>
73       <PyFunc><![CDATA[    sleep( 1 )   ]]></PyFunc>
74       <PyFunc><![CDATA[    return a     ]]></PyFunc>     </PyFunction>    </PyFunction-list>
75     <creation-date>3/2/2005 - 16:14:10</creation-date>
76     <lastmodification-date>3/2/2005 - 16:14:10</lastmodification-date>
77     <editor-release>2.0</editor-release>
78     <author>?</author>
79     <container>?</container>
80     <comment>Python function</comment>
81     <x-position>388</x-position>
82     <y-position>50</y-position>   </node>
83    <node>
84 <component-name>?</component-name>
85     <interface-name>?</interface-name>
86     <node-name>IsOdd_1</node-name>
87     <kind>3</kind>
88     <coupled-node>?</coupled-node>
89     <service>
90 <service-name>IsOdd_1</service-name>
91      <inParameter-list>
92 <inParameter>
93 <inParameter-type>long</inParameter-type>
94        <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
95      <outParameter-list>
96 <outParameter>
97 <outParameter-type>long</outParameter-type>
98        <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
99     <DataStream-list/>
100     <PyFunction-list>
101 <PyFunction>
102 <FuncName>IsOdd</FuncName>
103       <PyFunc><![CDATA[from time import *   ]]></PyFunc>
104       <PyFunc><![CDATA[def IsOdd(a) :       ]]></PyFunc>
105       <PyFunc><![CDATA[    print a,"IsOdd_1 (GraphSwitchs)"      ]]></PyFunc>
106       <PyFunc><![CDATA[    sleep( 1 )   ]]></PyFunc>
107       <PyFunc><![CDATA[    return a     ]]></PyFunc>     </PyFunction>    </PyFunction-list>
108     <creation-date>3/2/2005 - 16:14:10</creation-date>
109     <lastmodification-date>3/2/2005 - 16:14:10</lastmodification-date>
110     <editor-release>2.0</editor-release>
111     <author>?</author>
112     <container>?</container>
113     <comment>Python function</comment>
114     <x-position>419</x-position>
115     <y-position>308</y-position>   </node>
116    <node>
117 <component-name>?</component-name>
118     <interface-name>?</interface-name>
119     <node-name>InitLoop</node-name>
120     <kind>4</kind>
121     <coupled-node>EndOfInitLoop</coupled-node>
122     <service>
123 <service-name>InitLoop</service-name>
124      <inParameter-list>
125 <inParameter>
126 <inParameter-type>long</inParameter-type>
127        <inParameter-name>Index</inParameter-name>      </inParameter>
128       <inParameter>
129 <inParameter-type>long</inParameter-type>
130        <inParameter-name>Min</inParameter-name>      </inParameter>
131       <inParameter>
132 <inParameter-type>long</inParameter-type>
133        <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
134      <outParameter-list>
135 <outParameter>
136 <outParameter-type>long</outParameter-type>
137        <outParameter-name>Index</outParameter-name>      </outParameter>
138       <outParameter>
139 <outParameter-type>long</outParameter-type>
140        <outParameter-name>Min</outParameter-name>      </outParameter>
141       <outParameter>
142 <outParameter-type>long</outParameter-type>
143        <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
144     <DataStream-list/>
145     <PyFunction-list>
146 <PyFunction>
147 <FuncName>InitLoop</FuncName>
148       <PyFunc><![CDATA[def InitLoop(Index,Min,Max) :      ]]></PyFunc>
149       <PyFunc><![CDATA[ return Index,Min,Max     ]]></PyFunc>     </PyFunction>
150      <PyFunction>
151 <FuncName>MoreLoop</FuncName>
152       <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) :     ]]></PyFunc>
153       <PyFunc><![CDATA[ if Index <= Max :   ]]></PyFunc>
154       <PyFunc><![CDATA[         DoLoop = 1     ]]></PyFunc>
155       <PyFunc><![CDATA[ else :     ]]></PyFunc>
156       <PyFunc><![CDATA[         DoLoop = 0     ]]></PyFunc>
157       <PyFunc><![CDATA[ return DoLoop,Index,Min,Max     ]]></PyFunc>     </PyFunction>
158      <PyFunction>
159 <FuncName>NextLoop</FuncName>
160       <PyFunc><![CDATA[def NextLoop(Index,Min,Max) :     ]]></PyFunc>
161       <PyFunc><![CDATA[ Index = Index + 1     ]]></PyFunc>
162       <PyFunc><![CDATA[ return Index,Min,Max     ]]></PyFunc>     </PyFunction>    </PyFunction-list>
163     <creation-date>3/2/2005 - 16:14:10</creation-date>
164     <lastmodification-date>3/2/2005 - 16:14:10</lastmodification-date>
165     <editor-release>2.0</editor-release>
166     <author>?</author>
167     <container>?</container>
168     <comment>Compute Node</comment>
169     <x-position>10</x-position>
170     <y-position>388</y-position>   </node>
171    <node>
172 <component-name>?</component-name>
173     <interface-name>?</interface-name>
174     <node-name>EndOfInitLoop</node-name>
175     <kind>5</kind>
176     <coupled-node>InitLoop</coupled-node>
177     <service>
178 <service-name>EndInitLoop</service-name>
179      <inParameter-list>
180 <inParameter>
181 <inParameter-type>long</inParameter-type>
182        <inParameter-name>Index</inParameter-name>      </inParameter>
183       <inParameter>
184 <inParameter-type>long</inParameter-type>
185        <inParameter-name>Min</inParameter-name>      </inParameter>
186       <inParameter>
187 <inParameter-type>long</inParameter-type>
188        <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
189      <outParameter-list>
190 <outParameter>
191 <outParameter-type>long</outParameter-type>
192        <outParameter-name>Index</outParameter-name>      </outParameter>
193       <outParameter>
194 <outParameter-type>long</outParameter-type>
195        <outParameter-name>Min</outParameter-name>      </outParameter>
196       <outParameter>
197 <outParameter-type>long</outParameter-type>
198        <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
199     <DataStream-list/>
200     <PyFunction-list>
201 <PyFunction>
202 <FuncName>?</FuncName>
203       <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
204     <creation-date>3/2/2005 - 16:14:10</creation-date>
205     <lastmodification-date>3/2/2005 - 16:14:10</lastmodification-date>
206     <editor-release>2.0</editor-release>
207     <author>?</author>
208     <container>?</container>
209     <comment>Compute Node</comment>
210     <x-position>783</x-position>
211     <y-position>381</y-position>   </node>
212    <node>
213 <component-name>?</component-name>
214     <interface-name>?</interface-name>
215     <node-name>Switch</node-name>
216     <kind>6</kind>
217     <coupled-node>EndOfSwitch</coupled-node>
218     <service>
219 <service-name>Switch</service-name>
220      <inParameter-list>
221 <inParameter>
222 <inParameter-type>long</inParameter-type>
223        <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
224      <outParameter-list>
225 <outParameter>
226 <outParameter-type>long</outParameter-type>
227        <outParameter-name>Odd</outParameter-name>      </outParameter>
228       <outParameter>
229 <outParameter-type>int</outParameter-type>
230        <outParameter-name>Even</outParameter-name>      </outParameter>
231       <outParameter>
232 <outParameter-type>int</outParameter-type>
233        <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
234     <DataStream-list/>
235     <PyFunction-list>
236 <PyFunction>
237 <FuncName>Switch</FuncName>
238       <PyFunc><![CDATA[from time import * ]]></PyFunc>
239       <PyFunc><![CDATA[def Switch(a) :   ]]></PyFunc>
240       <PyFunc><![CDATA[    if ( a & 1 ) == 0 : ]]></PyFunc>
241       <PyFunc><![CDATA[        sleep(1)    ]]></PyFunc>
242       <PyFunc><![CDATA[    return a & 1,1-(a&1),a    ]]></PyFunc>     </PyFunction>    </PyFunction-list>
243     <creation-date>3/2/2005 - 16:14:10</creation-date>
244     <lastmodification-date>3/2/2005 - 16:14:10</lastmodification-date>
245     <editor-release>2.0</editor-release>
246     <author>?</author>
247     <container>?</container>
248     <comment>Compute Node</comment>
249     <x-position>186</x-position>
250     <y-position>130</y-position>   </node>
251    <node>
252 <component-name>?</component-name>
253     <interface-name>?</interface-name>
254     <node-name>EndOfSwitch</node-name>
255     <kind>7</kind>
256     <coupled-node>Switch</coupled-node>
257     <service>
258 <service-name>EndSwitch</service-name>
259      <inParameter-list>
260 <inParameter>
261 <inParameter-type>long</inParameter-type>
262        <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
263      <outParameter-list>
264 <outParameter>
265 <outParameter-type>long</outParameter-type>
266        <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
267     <DataStream-list/>
268     <PyFunction-list>
269 <PyFunction>
270 <FuncName>?</FuncName>
271       <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
272     <creation-date>3/2/2005 - 16:14:10</creation-date>
273     <lastmodification-date>3/2/2005 - 16:14:10</lastmodification-date>
274     <editor-release>2.0</editor-release>
275     <author>?</author>
276     <container>?</container>
277     <comment>Compute Node</comment>
278     <x-position>587</x-position>
279     <y-position>126</y-position>   </node>
280    <node>
281 <component-name>?</component-name>
282     <interface-name>?</interface-name>
283     <node-name>Switch_1</node-name>
284     <kind>6</kind>
285     <coupled-node>EndSwitch</coupled-node>
286     <service>
287 <service-name>Switch_1</service-name>
288      <inParameter-list>
289 <inParameter>
290 <inParameter-type>long</inParameter-type>
291        <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
292      <outParameter-list>
293 <outParameter>
294 <outParameter-type>long</outParameter-type>
295        <outParameter-name>Odd</outParameter-name>      </outParameter>
296       <outParameter>
297 <outParameter-type>int</outParameter-type>
298        <outParameter-name>Even</outParameter-name>      </outParameter>
299       <outParameter>
300 <outParameter-type>int</outParameter-type>
301        <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
302     <DataStream-list/>
303     <PyFunction-list>
304 <PyFunction>
305 <FuncName>Switch</FuncName>
306       <PyFunc><![CDATA[from time import *  ]]></PyFunc>
307       <PyFunc><![CDATA[def Switch(a) :    ]]></PyFunc>
308       <PyFunc><![CDATA[    if ( a & 1 ) == 0 :  ]]></PyFunc>
309       <PyFunc><![CDATA[        sleep(1)  ]]></PyFunc>
310       <PyFunc><![CDATA[    return a & 1,1-(a&1),a    ]]></PyFunc>     </PyFunction>    </PyFunction-list>
311     <creation-date>3/2/2005 - 16:14:11</creation-date>
312     <lastmodification-date>3/2/2005 - 16:14:11</lastmodification-date>
313     <editor-release>2.0</editor-release>
314     <author>?</author>
315     <container>?</container>
316     <comment>Compute Node</comment>
317     <x-position>193</x-position>
318     <y-position>388</y-position>   </node>
319    <node>
320 <component-name>?</component-name>
321     <interface-name>?</interface-name>
322     <node-name>EndSwitch</node-name>
323     <kind>7</kind>
324     <coupled-node>Switch_1</coupled-node>
325     <service>
326 <service-name>EndSwitch</service-name>
327      <inParameter-list>
328 <inParameter>
329 <inParameter-type>long</inParameter-type>
330        <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
331      <outParameter-list>
332 <outParameter>
333 <outParameter-type>long</outParameter-type>
334        <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
335     <DataStream-list/>
336     <PyFunction-list>
337 <PyFunction>
338 <FuncName>?</FuncName>
339       <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
340     <creation-date>3/2/2005 - 16:14:11</creation-date>
341     <lastmodification-date>3/2/2005 - 16:14:11</lastmodification-date>
342     <editor-release>2.0</editor-release>
343     <author>?</author>
344     <container>?</container>
345     <comment>Compute Node</comment>
346     <x-position>605</x-position>
347     <y-position>382</y-position>   </node>  </node-list>
348   <link-list>
349 <link>
350 <fromnode-name>IsOdd</fromnode-name>
351     <fromserviceparameter-name>a</fromserviceparameter-name>
352     <tonode-name>EndOfSwitch</tonode-name>
353     <toserviceparameter-name>a</toserviceparameter-name>
354     <coord-list>
355 <coord>
356 <x>573</x>
357       <y>160</y>     </coord>
358      <coord>
359 <x>572</x>
360       <y>130</y>     </coord>    </coord-list>   </link>
361    <link>
362 <fromnode-name>IsOdd_1</fromnode-name>
363     <fromserviceparameter-name>a</fromserviceparameter-name>
364     <tonode-name>EndSwitch</tonode-name>
365     <toserviceparameter-name>a</toserviceparameter-name>
366     <coord-list>
367 <coord>
368 <x>599</x>
369       <y>416</y>     </coord>
370      <coord>
371 <x>598</x>
372       <y>389</y>     </coord>    </coord-list>   </link>
373    <link>
374 <fromnode-name>InitLoop</fromnode-name>
375     <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
376     <tonode-name>EndOfInitLoop</tonode-name>
377     <toserviceparameter-name>DoLoop</toserviceparameter-name>
378     <coord-list/>   </link>
379    <link>
380 <fromnode-name>InitLoop</fromnode-name>
381     <fromserviceparameter-name>Index</fromserviceparameter-name>
382     <tonode-name>Switch_1</tonode-name>
383     <toserviceparameter-name>a</toserviceparameter-name>
384     <coord-list/>   </link>
385    <link>
386 <fromnode-name>InitLoop</fromnode-name>
387     <fromserviceparameter-name>Index</fromserviceparameter-name>
388     <tonode-name>Switch</tonode-name>
389     <toserviceparameter-name>a</toserviceparameter-name>
390     <coord-list/>   </link>
391    <link>
392 <fromnode-name>InitLoop</fromnode-name>
393     <fromserviceparameter-name>Min</fromserviceparameter-name>
394     <tonode-name>EndOfInitLoop</tonode-name>
395     <toserviceparameter-name>Min</toserviceparameter-name>
396     <coord-list/>   </link>
397    <link>
398 <fromnode-name>InitLoop</fromnode-name>
399     <fromserviceparameter-name>Max</fromserviceparameter-name>
400     <tonode-name>EndOfInitLoop</tonode-name>
401     <toserviceparameter-name>Max</toserviceparameter-name>
402     <coord-list/>   </link>
403    <link>
404 <fromnode-name>EndOfInitLoop</fromnode-name>
405     <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
406     <tonode-name>InitLoop</tonode-name>
407     <toserviceparameter-name>DoLoop</toserviceparameter-name>
408     <coord-list/>   </link>
409    <link>
410 <fromnode-name>Switch</fromnode-name>
411     <fromserviceparameter-name>Odd</fromserviceparameter-name>
412     <tonode-name>IsOdd</tonode-name>
413     <toserviceparameter-name>Gate</toserviceparameter-name>
414     <coord-list/>   </link>
415    <link>
416 <fromnode-name>Switch</fromnode-name>
417     <fromserviceparameter-name>a</fromserviceparameter-name>
418     <tonode-name>IsOdd</tonode-name>
419     <toserviceparameter-name>a</toserviceparameter-name>
420     <coord-list>
421 <coord>
422 <x>365</x>
423       <y>129</y>     </coord>
424      <coord>
425 <x>365</x>
426       <y>222</y>     </coord>    </coord-list>   </link>
427    <link>
428 <fromnode-name>Switch</fromnode-name>
429     <fromserviceparameter-name>Default</fromserviceparameter-name>
430     <tonode-name>EndOfSwitch</tonode-name>
431     <toserviceparameter-name>Default</toserviceparameter-name>
432     <coord-list>
433 <coord>
434 <x>572</x>
435       <y>194</y>     </coord>
436      <coord>
437 <x>571</x>
438       <y>257</y>     </coord>    </coord-list>   </link>
439    <link>
440 <fromnode-name>EndOfSwitch</fromnode-name>
441     <fromserviceparameter-name>a</fromserviceparameter-name>
442     <tonode-name>EndOfInitLoop</tonode-name>
443     <toserviceparameter-name>Index</toserviceparameter-name>
444     <coord-list/>   </link>
445    <link>
446 <fromnode-name>Switch_1</fromnode-name>
447     <fromserviceparameter-name>Odd</fromserviceparameter-name>
448     <tonode-name>IsOdd_1</tonode-name>
449     <toserviceparameter-name>Gate</toserviceparameter-name>
450     <coord-list/>   </link>
451    <link>
452 <fromnode-name>Switch_1</fromnode-name>
453     <fromserviceparameter-name>Even</fromserviceparameter-name>
454     <tonode-name>EndSwitch</tonode-name>
455     <toserviceparameter-name>Default</toserviceparameter-name>
456     <coord-list/>   </link>
457    <link>
458 <fromnode-name>Switch_1</fromnode-name>
459     <fromserviceparameter-name>a</fromserviceparameter-name>
460     <tonode-name>IsOdd_1</tonode-name>
461     <toserviceparameter-name>a</toserviceparameter-name>
462     <coord-list>
463 <coord>
464 <x>379</x>
465       <y>387</y>     </coord>
466      <coord>
467 <x>378</x>
468       <y>481</y>     </coord>    </coord-list>   </link>
469    <link>
470 <fromnode-name>EndSwitch</fromnode-name>
471     <fromserviceparameter-name>Gate</fromserviceparameter-name>
472     <tonode-name>EndOfInitLoop</tonode-name>
473     <toserviceparameter-name>Gate</toserviceparameter-name>
474     <coord-list/>   </link>  </link-list>
475   <data-list>
476 <data>
477 <fromnode-name>GraphEditSwitchs</fromnode-name>
478     <fromserviceparameter-name>InitLoop__Index</fromserviceparameter-name>
479     <tonode-name>InitLoop</tonode-name>
480     <toserviceparameter-name>Index</toserviceparameter-name>
481     <data-value>
482 <value-type>3</value-type>
483      <value>0</value>    </data-value>
484     <coord-list/>   </data>
485    <data>
486 <fromnode-name>GraphEditSwitchs</fromnode-name>
487     <fromserviceparameter-name>InitLoop__Min</fromserviceparameter-name>
488     <tonode-name>InitLoop</tonode-name>
489     <toserviceparameter-name>Min</toserviceparameter-name>
490     <data-value>
491 <value-type>3</value-type>
492      <value>0</value>    </data-value>
493     <coord-list/>   </data>
494    <data>
495 <fromnode-name>GraphEditSwitchs</fromnode-name>
496     <fromserviceparameter-name>InitLoop__Max</fromserviceparameter-name>
497     <tonode-name>InitLoop</tonode-name>
498     <toserviceparameter-name>Max</toserviceparameter-name>
499     <data-value>
500 <value-type>3</value-type>
501      <value>20</value>    </data-value>
502     <coord-list/>   </data>  </data-list> </dataflow></supergraph>