]> SALOME platform Git repositories - modules/superv.git/blob - examples/GraphBadOutputOfLoop1.xml
Salome HOME
PAL8521
[modules/superv.git] / examples / GraphBadOutputOfLoop1.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>GraphBadOutputOfLoop1</node-name>
9     <kind>1</kind>
10     <coupled-node>?</coupled-node>
11     <service>
12 <service-name>GraphBadOutputOfLoop1</service-name>
13      <inParameter-list>
14 <inParameter>
15 <inParameter-type>boolean</inParameter-type>
16        <inParameter-name>IsOdd__InputInLoop</inParameter-name>      </inParameter>
17       <inParameter>
18 <inParameter-type>long</inParameter-type>
19        <inParameter-name>InitLoop__Index</inParameter-name>      </inParameter>
20       <inParameter>
21 <inParameter-type>long</inParameter-type>
22        <inParameter-name>InitLoop__Min</inParameter-name>      </inParameter>
23       <inParameter>
24 <inParameter-type>long</inParameter-type>
25        <inParameter-name>InitLoop__Max</inParameter-name>      </inParameter>
26       <inParameter>
27 <inParameter-type>long</inParameter-type>
28        <inParameter-name>EndOfInitLoop__Max</inParameter-name>      </inParameter>     </inParameter-list>
29      <outParameter-list>
30 <outParameter>
31 <outParameter-type>long</outParameter-type>
32        <outParameter-name>EndOfInitLoop__Index</outParameter-name>      </outParameter>
33       <outParameter>
34 <outParameter-type>long</outParameter-type>
35        <outParameter-name>EndOfInitLoop__Min</outParameter-name>      </outParameter>
36       <outParameter>
37 <outParameter-type>long</outParameter-type>
38        <outParameter-name>EndOfInitLoop__Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
39     <DataStream-list/>
40     <PyFunction-list/>
41     <creation-date>22/10/2003 - 10:36:39</creation-date>
42     <lastmodification-date>14/12/2004 - 15:59:22</lastmodification-date>
43     <editor-release>1.05</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>
62       <inParameter>
63 <inParameter-type>boolean</inParameter-type>
64        <inParameter-name>Even</inParameter-name>      </inParameter>
65       <inParameter>
66 <inParameter-type>boolean</inParameter-type>
67        <inParameter-name>InputInLoop</inParameter-name>      </inParameter>     </inParameter-list>
68      <outParameter-list>
69 <outParameter>
70 <outParameter-type>long</outParameter-type>
71        <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
72     <DataStream-list/>
73     <PyFunction-list>
74 <PyFunction>
75 <FuncName>IsOdd</FuncName>
76       <PyFunc><![CDATA[from time import *     ]]></PyFunc>
77       <PyFunc><![CDATA[def IsOdd(a,Even,InputInLoop) :         ]]></PyFunc>
78       <PyFunc><![CDATA[    print a,"IsOdd (GraphLoopSwitch1)"        ]]></PyFunc>
79       <PyFunc><![CDATA[    sleep( 1 )     ]]></PyFunc>
80       <PyFunc><![CDATA[    return a       ]]></PyFunc>     </PyFunction>    </PyFunction-list>
81     <creation-date>14/12/2004 - 15:59:22</creation-date>
82     <lastmodification-date>14/12/2004 - 15:59:22</lastmodification-date>
83     <editor-release>1.05</editor-release>
84     <author>?</author>
85     <container>?</container>
86     <comment>Python function</comment>
87     <x-position>397</x-position>
88     <y-position>1</y-position>   </node>
89    <node>
90 <component-name>?</component-name>
91     <interface-name>?</interface-name>
92     <node-name>InitLoop</node-name>
93     <kind>4</kind>
94     <coupled-node>EndOfInitLoop</coupled-node>
95     <service>
96 <service-name>InitLoop</service-name>
97      <inParameter-list>
98 <inParameter>
99 <inParameter-type>long</inParameter-type>
100        <inParameter-name>Index</inParameter-name>      </inParameter>
101       <inParameter>
102 <inParameter-type>long</inParameter-type>
103        <inParameter-name>Min</inParameter-name>      </inParameter>
104       <inParameter>
105 <inParameter-type>long</inParameter-type>
106        <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
107      <outParameter-list>
108 <outParameter>
109 <outParameter-type>long</outParameter-type>
110        <outParameter-name>Index</outParameter-name>      </outParameter>
111       <outParameter>
112 <outParameter-type>long</outParameter-type>
113        <outParameter-name>Min</outParameter-name>      </outParameter>
114       <outParameter>
115 <outParameter-type>long</outParameter-type>
116        <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
117     <DataStream-list/>
118     <PyFunction-list>
119 <PyFunction>
120 <FuncName>?</FuncName>
121       <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>
122      <PyFunction>
123 <FuncName>?</FuncName>
124       <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>
125      <PyFunction>
126 <FuncName>?</FuncName>
127       <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
128     <creation-date>14/12/2004 - 15:59:22</creation-date>
129     <lastmodification-date>14/12/2004 - 15:59:22</lastmodification-date>
130     <editor-release>1.05</editor-release>
131     <author>?</author>
132     <container>?</container>
133     <comment>Compute Node</comment>
134     <x-position>10</x-position>
135     <y-position>108</y-position>   </node>
136    <node>
137 <component-name>?</component-name>
138     <interface-name>?</interface-name>
139     <node-name>EndOfInitLoop</node-name>
140     <kind>5</kind>
141     <coupled-node>InitLoop</coupled-node>
142     <service>
143 <service-name>EndOfInitLoop</service-name>
144      <inParameter-list>
145 <inParameter>
146 <inParameter-type>long</inParameter-type>
147        <inParameter-name>Index</inParameter-name>      </inParameter>
148       <inParameter>
149 <inParameter-type>long</inParameter-type>
150        <inParameter-name>Min</inParameter-name>      </inParameter>
151       <inParameter>
152 <inParameter-type>long</inParameter-type>
153        <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
154      <outParameter-list>
155 <outParameter>
156 <outParameter-type>long</outParameter-type>
157        <outParameter-name>Index</outParameter-name>      </outParameter>
158       <outParameter>
159 <outParameter-type>long</outParameter-type>
160        <outParameter-name>Min</outParameter-name>      </outParameter>
161       <outParameter>
162 <outParameter-type>long</outParameter-type>
163        <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
164     <DataStream-list/>
165     <PyFunction-list>
166 <PyFunction>
167 <FuncName>EndOfInitLoop</FuncName>
168       <PyFunc><![CDATA[def EndOfInitLoop( DoLoop , Index , Min , Max ) :]]></PyFunc>
169       <PyFunc><![CDATA[ Index = Index + 1     ]]></PyFunc>
170       <PyFunc><![CDATA[ if Index <= Max :   ]]></PyFunc>
171       <PyFunc><![CDATA[         DoLoop = 1     ]]></PyFunc>
172       <PyFunc><![CDATA[ else :     ]]></PyFunc>
173       <PyFunc><![CDATA[         DoLoop = 0     ]]></PyFunc>
174       <PyFunc><![CDATA[ return DoLoop,Index,Min,Max     ]]></PyFunc>     </PyFunction>    </PyFunction-list>
175     <creation-date>14/12/2004 - 15:59:22</creation-date>
176     <lastmodification-date>14/12/2004 - 15:59:22</lastmodification-date>
177     <editor-release>1.05</editor-release>
178     <author>?</author>
179     <container>?</container>
180     <comment>Compute Node</comment>
181     <x-position>767</x-position>
182     <y-position>102</y-position>   </node>
183    <node>
184 <component-name>?</component-name>
185     <interface-name>?</interface-name>
186     <node-name>Switch</node-name>
187     <kind>6</kind>
188     <coupled-node>EndSwitch</coupled-node>
189     <service>
190 <service-name>Switch</service-name>
191      <inParameter-list>
192 <inParameter>
193 <inParameter-type>long</inParameter-type>
194        <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
195      <outParameter-list>
196 <outParameter>
197 <outParameter-type>long</outParameter-type>
198        <outParameter-name>Odd</outParameter-name>      </outParameter>
199       <outParameter>
200 <outParameter-type>int</outParameter-type>
201        <outParameter-name>Even</outParameter-name>      </outParameter>
202       <outParameter>
203 <outParameter-type>int</outParameter-type>
204        <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
205     <DataStream-list/>
206     <PyFunction-list>
207 <PyFunction>
208 <FuncName>Switch</FuncName>
209       <PyFunc><![CDATA[from time import *  ]]></PyFunc>
210       <PyFunc><![CDATA[def Switch(a) :    ]]></PyFunc>
211       <PyFunc><![CDATA[    if ( a & 1 ) == 0 :  ]]></PyFunc>
212       <PyFunc><![CDATA[        sleep(1)  ]]></PyFunc>
213       <PyFunc><![CDATA[    return a & 1,1-(a&1),a    ]]></PyFunc>     </PyFunction>    </PyFunction-list>
214     <creation-date>14/12/2004 - 15:59:22</creation-date>
215     <lastmodification-date>14/12/2004 - 15:59:22</lastmodification-date>
216     <editor-release>1.05</editor-release>
217     <author>?</author>
218     <container>?</container>
219     <comment>Compute Node</comment>
220     <x-position>194</x-position>
221     <y-position>109</y-position>   </node>
222    <node>
223 <component-name>?</component-name>
224     <interface-name>?</interface-name>
225     <node-name>EndSwitch</node-name>
226     <kind>7</kind>
227     <coupled-node>Switch</coupled-node>
228     <service>
229 <service-name>EndSwitch</service-name>
230      <inParameter-list>
231 <inParameter>
232 <inParameter-type>long</inParameter-type>
233        <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
234      <outParameter-list>
235 <outParameter>
236 <outParameter-type>long</outParameter-type>
237        <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
238     <DataStream-list/>
239     <PyFunction-list>
240 <PyFunction>
241 <FuncName>EndSwitch</FuncName>
242       <PyFunc><![CDATA[def EndSwitch(a) :    ]]></PyFunc>
243       <PyFunc><![CDATA[    if ( a & 1 ) == 0 :  ]]></PyFunc>
244       <PyFunc><![CDATA[        sleep(1)  ]]></PyFunc>
245       <PyFunc><![CDATA[    return a    ]]></PyFunc>     </PyFunction>    </PyFunction-list>
246     <creation-date>14/12/2004 - 15:59:22</creation-date>
247     <lastmodification-date>14/12/2004 - 15:59:22</lastmodification-date>
248     <editor-release>1.05</editor-release>
249     <author>?</author>
250     <container>?</container>
251     <comment>Compute Node</comment>
252     <x-position>587</x-position>
253     <y-position>103</y-position>   </node>
254    <node>
255 <component-name>?</component-name>
256     <interface-name>?</interface-name>
257     <node-name>BadOutputOfLoop</node-name>
258     <kind>3</kind>
259     <coupled-node>?</coupled-node>
260     <service>
261 <service-name>BadOutputOfLoop</service-name>
262      <inParameter-list>
263 <inParameter>
264 <inParameter-type>long</inParameter-type>
265        <inParameter-name>OutputOfLoop</inParameter-name>      </inParameter>     </inParameter-list>
266      <outParameter-list/>    </service>
267     <DataStream-list/>
268     <PyFunction-list>
269 <PyFunction>
270 <FuncName>BadOutputOfLoop</FuncName>
271       <PyFunc><![CDATA[def BadOutputOfLoop() : ]]></PyFunc>
272       <PyFunc><![CDATA[ return 1 ]]></PyFunc>
273       <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
274     <creation-date>14/12/2004 - 15:59:22</creation-date>
275     <lastmodification-date>14/12/2004 - 15:59:22</lastmodification-date>
276     <editor-release>2.0</editor-release>
277     <author>?</author>
278     <container>?</container>
279     <comment>Compute Node</comment>
280     <x-position>287</x-position>
281     <y-position>349</y-position>   </node>  </node-list>
282   <link-list>
283 <link>
284 <fromnode-name>IsOdd</fromnode-name>
285     <fromserviceparameter-name>a</fromserviceparameter-name>
286     <tonode-name>EndSwitch</tonode-name>
287     <toserviceparameter-name>a</toserviceparameter-name>
288     <coord-list>
289 <coord>
290 <x>576</x>
291       <y>136</y>     </coord>
292      <coord>
293 <x>575</x>
294       <y>81</y>     </coord>    </coord-list>   </link>
295    <link>
296 <fromnode-name>InitLoop</fromnode-name>
297     <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
298     <tonode-name>EndOfInitLoop</tonode-name>
299     <toserviceparameter-name>DoLoop</toserviceparameter-name>
300     <coord-list/>   </link>
301    <link>
302 <fromnode-name>InitLoop</fromnode-name>
303     <fromserviceparameter-name>Index</fromserviceparameter-name>
304     <tonode-name>Switch</tonode-name>
305     <toserviceparameter-name>a</toserviceparameter-name>
306     <coord-list/>   </link>
307    <link>
308 <fromnode-name>InitLoop</fromnode-name>
309     <fromserviceparameter-name>Min</fromserviceparameter-name>
310     <tonode-name>EndOfInitLoop</tonode-name>
311     <toserviceparameter-name>Min</toserviceparameter-name>
312     <coord-list/>   </link>
313    <link>
314 <fromnode-name>InitLoop</fromnode-name>
315     <fromserviceparameter-name>Max</fromserviceparameter-name>
316     <tonode-name>BadOutputOfLoop</tonode-name>
317     <toserviceparameter-name>OutputOfLoop</toserviceparameter-name>
318     <coord-list/>   </link>
319    <link>
320 <fromnode-name>EndOfInitLoop</fromnode-name>
321     <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
322     <tonode-name>InitLoop</tonode-name>
323     <toserviceparameter-name>InitLoop</toserviceparameter-name>
324     <coord-list/>   </link>
325    <link>
326 <fromnode-name>Switch</fromnode-name>
327     <fromserviceparameter-name>Odd</fromserviceparameter-name>
328     <tonode-name>IsOdd</tonode-name>
329     <toserviceparameter-name>Gate</toserviceparameter-name>
330     <coord-list/>   </link>
331    <link>
332 <fromnode-name>Switch</fromnode-name>
333     <fromserviceparameter-name>Even</fromserviceparameter-name>
334     <tonode-name>EndSwitch</tonode-name>
335     <toserviceparameter-name>Default</toserviceparameter-name>
336     <coord-list/>   </link>
337    <link>
338 <fromnode-name>Switch</fromnode-name>
339     <fromserviceparameter-name>Even</fromserviceparameter-name>
340     <tonode-name>IsOdd</tonode-name>
341     <toserviceparameter-name>Even</toserviceparameter-name>
342     <coord-list>
343 <coord>
344 <x>375</x>
345       <y>111</y>     </coord>
346      <coord>
347 <x>375</x>
348       <y>172</y>     </coord>    </coord-list>   </link>
349    <link>
350 <fromnode-name>Switch</fromnode-name>
351     <fromserviceparameter-name>a</fromserviceparameter-name>
352     <tonode-name>IsOdd</tonode-name>
353     <toserviceparameter-name>a</toserviceparameter-name>
354     <coord-list>
355 <coord>
356 <x>362</x>
357       <y>82</y>     </coord>
358      <coord>
359 <x>360</x>
360       <y>201</y>     </coord>    </coord-list>   </link>
361    <link>
362 <fromnode-name>EndSwitch</fromnode-name>
363     <fromserviceparameter-name>a</fromserviceparameter-name>
364     <tonode-name>EndOfInitLoop</tonode-name>
365     <toserviceparameter-name>Index</toserviceparameter-name>
366     <coord-list/>   </link>  </link-list>
367   <data-list>
368 <data>
369 <fromnode-name>GraphBadOutputOfLoop1</fromnode-name>
370     <fromserviceparameter-name>IsOdd__InputInLoop</fromserviceparameter-name>
371     <tonode-name>IsOdd</tonode-name>
372     <toserviceparameter-name>InputInLoop</toserviceparameter-name>
373     <data-value>
374 <value-type>3</value-type>
375      <value>136306160</value>    </data-value>
376     <coord-list/>   </data>
377    <data>
378 <fromnode-name>GraphBadOutputOfLoop1</fromnode-name>
379     <fromserviceparameter-name>InitLoop__Index</fromserviceparameter-name>
380     <tonode-name>InitLoop</tonode-name>
381     <toserviceparameter-name>Index</toserviceparameter-name>
382     <data-value>
383 <value-type>3</value-type>
384      <value>0</value>    </data-value>
385     <coord-list/>   </data>
386    <data>
387 <fromnode-name>GraphBadOutputOfLoop1</fromnode-name>
388     <fromserviceparameter-name>InitLoop__Min</fromserviceparameter-name>
389     <tonode-name>InitLoop</tonode-name>
390     <toserviceparameter-name>Min</toserviceparameter-name>
391     <data-value>
392 <value-type>3</value-type>
393      <value>0</value>    </data-value>
394     <coord-list/>   </data>
395    <data>
396 <fromnode-name>GraphBadOutputOfLoop1</fromnode-name>
397     <fromserviceparameter-name>InitLoop__Max</fromserviceparameter-name>
398     <tonode-name>InitLoop</tonode-name>
399     <toserviceparameter-name>Max</toserviceparameter-name>
400     <data-value>
401 <value-type>3</value-type>
402      <value>100</value>    </data-value>
403     <coord-list/>   </data>
404    <data>
405 <fromnode-name>GraphBadOutputOfLoop1</fromnode-name>
406     <fromserviceparameter-name>EndOfInitLoop__Max</fromserviceparameter-name>
407     <tonode-name>EndOfInitLoop</tonode-name>
408     <toserviceparameter-name>Max</toserviceparameter-name>
409     <data-value>
410 <value-type>3</value-type>
411      <value>136221856</value>    </data-value>
412     <coord-list/>   </data>  </data-list> </dataflow></supergraph>