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