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