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