Salome HOME
Copyrights update 2015.
[samples/datafiles.git] / Superv / Graphs / GraphInputInLoop.xml
1 <!DOCTYPE SuperGraph>
2 <!--
3   Copyright (C) 2007-2015  CEA/DEN, EDF R&D, OPEN CASCADE
4
5   Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
6   CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
7
8   This library is free software; you can redistribute it and/or
9   modify it under the terms of the GNU Lesser General Public
10   License as published by the Free Software Foundation; either
11   version 2.1 of the License, or (at your option) any later version.
12
13   This library is distributed in the hope that it will be useful,
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16   Lesser General Public License for more details.
17
18   You should have received a copy of the GNU Lesser General Public
19   License along with this library; if not, write to the Free Software
20   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
21
22   See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23
24 -->
25 <supergraph>
26 <dataflow>
27 <info-list>
28 <node>
29 <component-name>?</component-name>
30     <interface-name>?</interface-name>
31     <node-name>GraphInputInLoop_2_1</node-name>
32     <kind>1</kind>
33     <coupled-node>?</coupled-node>
34     <service>
35 <service-name>GraphInputInLoop_2_1</service-name>
36      <inParameter-list>
37 <inParameter>
38 <inParameter-type>string</inParameter-type>
39        <inParameter-name>IsOdd__Const</inParameter-name>      </inParameter>
40       <inParameter>
41 <inParameter-type>long</inParameter-type>
42        <inParameter-name>InitLoop__Index</inParameter-name>      </inParameter>
43       <inParameter>
44 <inParameter-type>long</inParameter-type>
45        <inParameter-name>InitLoop__Min</inParameter-name>      </inParameter>
46       <inParameter>
47 <inParameter-type>long</inParameter-type>
48        <inParameter-name>InitLoop__Max</inParameter-name>      </inParameter>     </inParameter-list>
49      <outParameter-list>
50 <outParameter>
51 <outParameter-type>string</outParameter-type>
52        <outParameter-name>IsOdd__Const</outParameter-name>      </outParameter>
53       <outParameter>
54 <outParameter-type>long</outParameter-type>
55        <outParameter-name>EndOfInitLoop__Index</outParameter-name>      </outParameter>
56       <outParameter>
57 <outParameter-type>long</outParameter-type>
58        <outParameter-name>EndOfInitLoop__Min</outParameter-name>      </outParameter>
59       <outParameter>
60 <outParameter-type>long</outParameter-type>
61        <outParameter-name>EndOfInitLoop__Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
62     <DataStream-list/>
63     <PyFunction-list/>
64     <creation-date>22/10/2003 - 10:36:39</creation-date>
65     <lastmodification-date>8/3/2005 - 15:2:42</lastmodification-date>
66     <editor-release>1.05</editor-release>
67     <author>?</author>
68     <container>?</container>
69     <comment>?</comment>
70     <x-position>0</x-position>
71     <y-position>0</y-position>   </node>  </info-list>
72   <node-list>
73 <node>
74 <component-name>?</component-name>
75     <interface-name>?</interface-name>
76     <node-name>IsOdd</node-name>
77     <kind>3</kind>
78     <coupled-node>?</coupled-node>
79     <service>
80 <service-name>IsOdd</service-name>
81      <inParameter-list>
82 <inParameter>
83 <inParameter-type>long</inParameter-type>
84        <inParameter-name>a</inParameter-name>      </inParameter>
85       <inParameter>
86 <inParameter-type>boolean</inParameter-type>
87        <inParameter-name>Even</inParameter-name>      </inParameter>
88       <inParameter>
89 <inParameter-type>string</inParameter-type>
90        <inParameter-name>Const</inParameter-name>      </inParameter>     </inParameter-list>
91      <outParameter-list>
92 <outParameter>
93 <outParameter-type>long</outParameter-type>
94        <outParameter-name>a</outParameter-name>      </outParameter>
95       <outParameter>
96 <outParameter-type>string</outParameter-type>
97        <outParameter-name>Const</outParameter-name>      </outParameter>     </outParameter-list>    </service>
98     <DataStream-list/>
99     <PyFunction-list>
100 <PyFunction>
101 <FuncName>IsOdd</FuncName>
102       <PyFunc><![CDATA[from time import *      ]]></PyFunc>
103       <PyFunc><![CDATA[def IsOdd(a,Even,Const) :  ]]></PyFunc>
104       <PyFunc><![CDATA[    print 'IsOdd',a,Even,Const  ]]></PyFunc>
105       <PyFunc><![CDATA[    sleep( 1 )      ]]></PyFunc>
106       <PyFunc><![CDATA[    return a,Const ]]></PyFunc>     </PyFunction>    </PyFunction-list>
107     <creation-date>8/3/2005 - 15:2:42</creation-date>
108     <lastmodification-date>8/3/2005 - 15:2:42</lastmodification-date>
109     <editor-release>1.05</editor-release>
110     <author>?</author>
111     <container>?</container>
112     <comment>Python function</comment>
113     <x-position>397</x-position>
114     <y-position>5</y-position>   </node>
115    <node>
116 <component-name>?</component-name>
117     <interface-name>?</interface-name>
118     <node-name>InitLoop</node-name>
119     <kind>4</kind>
120     <coupled-node>EndOfInitLoop</coupled-node>
121     <service>
122 <service-name>InitLoop</service-name>
123      <inParameter-list>
124 <inParameter>
125 <inParameter-type>long</inParameter-type>
126        <inParameter-name>Index</inParameter-name>      </inParameter>
127       <inParameter>
128 <inParameter-type>long</inParameter-type>
129        <inParameter-name>Min</inParameter-name>      </inParameter>
130       <inParameter>
131 <inParameter-type>long</inParameter-type>
132        <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
133      <outParameter-list>
134 <outParameter>
135 <outParameter-type>long</outParameter-type>
136        <outParameter-name>Index</outParameter-name>      </outParameter>
137       <outParameter>
138 <outParameter-type>long</outParameter-type>
139        <outParameter-name>Min</outParameter-name>      </outParameter>
140       <outParameter>
141 <outParameter-type>long</outParameter-type>
142        <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
143     <DataStream-list/>
144     <PyFunction-list>
145 <PyFunction>
146 <FuncName>?</FuncName>
147       <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>
148      <PyFunction>
149 <FuncName>?</FuncName>
150       <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>
151      <PyFunction>
152 <FuncName>?</FuncName>
153       <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
154     <creation-date>8/3/2005 - 15:2:42</creation-date>
155     <lastmodification-date>8/3/2005 - 15:2:42</lastmodification-date>
156     <editor-release>1.05</editor-release>
157     <author>?</author>
158     <container>?</container>
159     <comment>Compute Node</comment>
160     <x-position>10</x-position>
161     <y-position>108</y-position>   </node>
162    <node>
163 <component-name>?</component-name>
164     <interface-name>?</interface-name>
165     <node-name>EndOfInitLoop</node-name>
166     <kind>5</kind>
167     <coupled-node>InitLoop</coupled-node>
168     <service>
169 <service-name>EndOfInitLoop</service-name>
170      <inParameter-list>
171 <inParameter>
172 <inParameter-type>long</inParameter-type>
173        <inParameter-name>Index</inParameter-name>      </inParameter>
174       <inParameter>
175 <inParameter-type>long</inParameter-type>
176        <inParameter-name>Min</inParameter-name>      </inParameter>
177       <inParameter>
178 <inParameter-type>long</inParameter-type>
179        <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
180      <outParameter-list>
181 <outParameter>
182 <outParameter-type>long</outParameter-type>
183        <outParameter-name>Index</outParameter-name>      </outParameter>
184       <outParameter>
185 <outParameter-type>long</outParameter-type>
186        <outParameter-name>Min</outParameter-name>      </outParameter>
187       <outParameter>
188 <outParameter-type>long</outParameter-type>
189        <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
190     <DataStream-list/>
191     <PyFunction-list>
192 <PyFunction>
193 <FuncName>EndOfInitLoop</FuncName>
194       <PyFunc><![CDATA[def EndOfInitLoop( DoLoop , Index , Min , Max ) :]]></PyFunc>
195       <PyFunc><![CDATA[ Index = Index + 1     ]]></PyFunc>
196       <PyFunc><![CDATA[ if Index <= Max :   ]]></PyFunc>
197       <PyFunc><![CDATA[         DoLoop = 1     ]]></PyFunc>
198       <PyFunc><![CDATA[ else :     ]]></PyFunc>
199       <PyFunc><![CDATA[         DoLoop = 0     ]]></PyFunc>
200       <PyFunc><![CDATA[ return DoLoop,Index,Min,Max     ]]></PyFunc>     </PyFunction>    </PyFunction-list>
201     <creation-date>8/3/2005 - 15:2:42</creation-date>
202     <lastmodification-date>8/3/2005 - 15:2:42</lastmodification-date>
203     <editor-release>1.05</editor-release>
204     <author>?</author>
205     <container>?</container>
206     <comment>Compute Node</comment>
207     <x-position>770</x-position>
208     <y-position>147</y-position>   </node>
209    <node>
210 <component-name>?</component-name>
211     <interface-name>?</interface-name>
212     <node-name>Switch</node-name>
213     <kind>6</kind>
214     <coupled-node>EndSwitch</coupled-node>
215     <service>
216 <service-name>Switch</service-name>
217      <inParameter-list>
218 <inParameter>
219 <inParameter-type>long</inParameter-type>
220        <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
221      <outParameter-list>
222 <outParameter>
223 <outParameter-type>long</outParameter-type>
224        <outParameter-name>Odd</outParameter-name>      </outParameter>
225       <outParameter>
226 <outParameter-type>int</outParameter-type>
227        <outParameter-name>Even</outParameter-name>      </outParameter>
228       <outParameter>
229 <outParameter-type>int</outParameter-type>
230        <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
231     <DataStream-list/>
232     <PyFunction-list>
233 <PyFunction>
234 <FuncName>Switch</FuncName>
235       <PyFunc><![CDATA[from time import *  ]]></PyFunc>
236       <PyFunc><![CDATA[def Switch(a) :    ]]></PyFunc>
237       <PyFunc><![CDATA[    if ( a & 1 ) == 0 :  ]]></PyFunc>
238       <PyFunc><![CDATA[        sleep(1)  ]]></PyFunc>
239       <PyFunc><![CDATA[    return a & 1,1-(a&1),a    ]]></PyFunc>     </PyFunction>    </PyFunction-list>
240     <creation-date>8/3/2005 - 15:2:42</creation-date>
241     <lastmodification-date>8/3/2005 - 15:2:42</lastmodification-date>
242     <editor-release>1.05</editor-release>
243     <author>?</author>
244     <container>?</container>
245     <comment>Compute Node</comment>
246     <x-position>194</x-position>
247     <y-position>109</y-position>   </node>
248    <node>
249 <component-name>?</component-name>
250     <interface-name>?</interface-name>
251     <node-name>EndSwitch</node-name>
252     <kind>7</kind>
253     <coupled-node>Switch</coupled-node>
254     <service>
255 <service-name>EndSwitch</service-name>
256      <inParameter-list>
257 <inParameter>
258 <inParameter-type>long</inParameter-type>
259        <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
260      <outParameter-list>
261 <outParameter>
262 <outParameter-type>long</outParameter-type>
263        <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
264     <DataStream-list/>
265     <PyFunction-list>
266 <PyFunction>
267 <FuncName>EndSwitch</FuncName>
268       <PyFunc><![CDATA[def EndSwitch(a) :    ]]></PyFunc>
269       <PyFunc><![CDATA[    if ( a & 1 ) == 0 :  ]]></PyFunc>
270       <PyFunc><![CDATA[        sleep(1)  ]]></PyFunc>
271       <PyFunc><![CDATA[    return a    ]]></PyFunc>     </PyFunction>    </PyFunction-list>
272     <creation-date>8/3/2005 - 15:2:42</creation-date>
273     <lastmodification-date>8/3/2005 - 15:2:42</lastmodification-date>
274     <editor-release>1.05</editor-release>
275     <author>?</author>
276     <container>?</container>
277     <comment>Compute Node</comment>
278     <x-position>588</x-position>
279     <y-position>147</y-position>   </node>  </node-list>
280   <link-list>
281 <link>
282 <fromnode-name>IsOdd</fromnode-name>
283     <fromserviceparameter-name>a</fromserviceparameter-name>
284     <tonode-name>EndSwitch</tonode-name>
285     <toserviceparameter-name>a</toserviceparameter-name>
286     <coord-list>
287 <coord>
288 <x>573</x>
289       <y>178</y>     </coord>
290      <coord>
291 <x>573</x>
292       <y>76</y>     </coord>    </coord-list>   </link>
293    <link>
294 <fromnode-name>InitLoop</fromnode-name>
295     <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
296     <tonode-name>EndOfInitLoop</tonode-name>
297     <toserviceparameter-name>DoLoop</toserviceparameter-name>
298     <coord-list/>   </link>
299    <link>
300 <fromnode-name>InitLoop</fromnode-name>
301     <fromserviceparameter-name>Index</fromserviceparameter-name>
302     <tonode-name>Switch</tonode-name>
303     <toserviceparameter-name>a</toserviceparameter-name>
304     <coord-list/>   </link>
305    <link>
306 <fromnode-name>InitLoop</fromnode-name>
307     <fromserviceparameter-name>Min</fromserviceparameter-name>
308     <tonode-name>EndOfInitLoop</tonode-name>
309     <toserviceparameter-name>Min</toserviceparameter-name>
310     <coord-list/>   </link>
311    <link>
312 <fromnode-name>InitLoop</fromnode-name>
313     <fromserviceparameter-name>Max</fromserviceparameter-name>
314     <tonode-name>EndOfInitLoop</tonode-name>
315     <toserviceparameter-name>Max</toserviceparameter-name>
316     <coord-list/>   </link>
317    <link>
318 <fromnode-name>EndOfInitLoop</fromnode-name>
319     <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
320     <tonode-name>InitLoop</tonode-name>
321     <toserviceparameter-name>DoLoop</toserviceparameter-name>
322     <coord-list/>   </link>
323    <link>
324 <fromnode-name>Switch</fromnode-name>
325     <fromserviceparameter-name>Odd</fromserviceparameter-name>
326     <tonode-name>IsOdd</tonode-name>
327     <toserviceparameter-name>Gate</toserviceparameter-name>
328     <coord-list/>   </link>
329    <link>
330 <fromnode-name>Switch</fromnode-name>
331     <fromserviceparameter-name>Even</fromserviceparameter-name>
332     <tonode-name>IsOdd</tonode-name>
333     <toserviceparameter-name>Even</toserviceparameter-name>
334     <coord-list/>   </link>
335    <link>
336 <fromnode-name>Switch</fromnode-name>
337     <fromserviceparameter-name>a</fromserviceparameter-name>
338     <tonode-name>IsOdd</tonode-name>
339     <toserviceparameter-name>a</toserviceparameter-name>
340     <coord-list>
341 <coord>
342 <x>366</x>
343       <y>71</y>     </coord>
344      <coord>
345 <x>366</x>
346       <y>182</y>     </coord>    </coord-list>   </link>
347    <link>
348 <fromnode-name>Switch</fromnode-name>
349     <fromserviceparameter-name>Default</fromserviceparameter-name>
350     <tonode-name>EndSwitch</tonode-name>
351     <toserviceparameter-name>Default</toserviceparameter-name>
352     <coord-list/>   </link>
353    <link>
354 <fromnode-name>EndSwitch</fromnode-name>
355     <fromserviceparameter-name>a</fromserviceparameter-name>
356     <tonode-name>EndOfInitLoop</tonode-name>
357     <toserviceparameter-name>Index</toserviceparameter-name>
358     <coord-list/>   </link>  </link-list>
359   <data-list>
360 <data>
361 <fromnode-name>GraphInputInLoop_2_1</fromnode-name>
362     <fromserviceparameter-name>IsOdd__Const</fromserviceparameter-name>
363     <tonode-name>IsOdd</tonode-name>
364     <toserviceparameter-name>Const</toserviceparameter-name>
365     <data-value>
366 <value-type>18</value-type>
367      <value>Const Input Value</value>    </data-value>
368     <coord-list/>   </data>
369    <data>
370 <fromnode-name>GraphInputInLoop_2_1</fromnode-name>
371     <fromserviceparameter-name>InitLoop__Index</fromserviceparameter-name>
372     <tonode-name>InitLoop</tonode-name>
373     <toserviceparameter-name>Index</toserviceparameter-name>
374     <data-value>
375 <value-type>3</value-type>
376      <value>0</value>    </data-value>
377     <coord-list/>   </data>
378    <data>
379 <fromnode-name>GraphInputInLoop_2_1</fromnode-name>
380     <fromserviceparameter-name>InitLoop__Min</fromserviceparameter-name>
381     <tonode-name>InitLoop</tonode-name>
382     <toserviceparameter-name>Min</toserviceparameter-name>
383     <data-value>
384 <value-type>3</value-type>
385      <value>0</value>    </data-value>
386     <coord-list/>   </data>
387    <data>
388 <fromnode-name>GraphInputInLoop_2_1</fromnode-name>
389     <fromserviceparameter-name>InitLoop__Max</fromserviceparameter-name>
390     <tonode-name>InitLoop</tonode-name>
391     <toserviceparameter-name>Max</toserviceparameter-name>
392     <data-value>
393 <value-type>3</value-type>
394      <value>23</value>    </data-value>
395     <coord-list/>   </data>  </data-list> </dataflow></supergraph>