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