Salome HOME
5de67578260369002a3d2582df1c254387741d32
[samples/datafiles.git] / Superv / Graphs / GraphNotClosedChainInsideLoop.xml
1 <!DOCTYPE SuperGraph>
2 <!--
3   Copyright (C) 2007-2008  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.
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>GraphSwitch</node-name>
32     <kind>1</kind>
33     <coupled-node>?</coupled-node>
34     <service>
35      <service-name>GraphSwitch</service-name>
36      <inParameter-list>
37       <inParameter>
38        <inParameter-type>long</inParameter-type>
39        <inParameter-name>InitLoopSwitch__Index</inParameter-name>
40       </inParameter>
41       <inParameter>
42        <inParameter-type>long</inParameter-type>
43        <inParameter-name>InitLoopSwitch__Min</inParameter-name>
44       </inParameter>
45       <inParameter>
46        <inParameter-type>long</inParameter-type>
47        <inParameter-name>InitLoopSwitch__Max</inParameter-name>
48       </inParameter>
49      </inParameter-list>
50      <outParameter-list>
51       <outParameter>
52        <outParameter-type>long</outParameter-type>
53        <outParameter-name>EndOfInitLoopSwitch__Index</outParameter-name>
54       </outParameter>
55       <outParameter>
56        <outParameter-type>long</outParameter-type>
57        <outParameter-name>EndOfInitLoopSwitch__Min</outParameter-name>
58       </outParameter>
59       <outParameter>
60        <outParameter-type>long</outParameter-type>
61        <outParameter-name>EndOfInitLoopSwitch__Max</outParameter-name>
62       </outParameter>
63       <outParameter>
64        <outParameter-type>int</outParameter-type>
65        <outParameter-name>Switch__Even</outParameter-name>
66       </outParameter>
67       <outParameter>
68        <outParameter-type>long</outParameter-type>
69        <outParameter-name>EndOfSwitch__a</outParameter-name>
70       </outParameter>
71      </outParameter-list>
72     </service>
73     <DataStream-list/>
74     <PyFunction-list/>
75     <creation-date>1/10/2003 - 17:23:54</creation-date>
76     <lastmodification-date>14/4/2006 - 15:47:47</lastmodification-date>
77     <editor-release>1.05</editor-release>
78     <author>?</author>
79     <container>?</container>
80     <comment>?</comment>
81     <x-position>0</x-position>
82     <y-position>0</y-position>
83    </node>
84   </info-list>
85   <node-list>
86    <node>
87     <component-name>?</component-name>
88     <interface-name>?</interface-name>
89     <node-name>IsOdd</node-name>
90     <kind>3</kind>
91     <coupled-node>?</coupled-node>
92     <service>
93      <service-name>IsOdd</service-name>
94      <inParameter-list>
95       <inParameter>
96        <inParameter-type>long</inParameter-type>
97        <inParameter-name>a</inParameter-name>
98       </inParameter>
99      </inParameter-list>
100      <outParameter-list>
101       <outParameter>
102        <outParameter-type>long</outParameter-type>
103        <outParameter-name>a</outParameter-name>
104       </outParameter>
105      </outParameter-list>
106     </service>
107     <DataStream-list/>
108     <PyFunction-list>
109      <PyFunction>
110       <FuncName>IsOdd</FuncName>
111       <PyFunc><![CDATA[from time import *   ]]></PyFunc>
112       <PyFunc><![CDATA[def IsOdd(a) :       ]]></PyFunc>
113       <PyFunc><![CDATA[    print a,"IsOdd (GraphSwitch)"      ]]></PyFunc>
114       <PyFunc><![CDATA[    sleep( 1 )   ]]></PyFunc>
115       <PyFunc><![CDATA[    return a     ]]></PyFunc>
116      </PyFunction>
117     </PyFunction-list>
118     <creation-date>14/4/2006 - 15:42:11</creation-date>
119     <lastmodification-date>14/4/2006 - 15:42:11</lastmodification-date>
120     <editor-release>1.05</editor-release>
121     <author>?</author>
122     <container>?</container>
123     <comment>Python function</comment>
124     <x-position>389</x-position>
125     <y-position>65</y-position>
126    </node>
127    <node>
128     <component-name>?</component-name>
129     <interface-name>?</interface-name>
130     <node-name>InitLoopSwitch</node-name>
131     <kind>4</kind>
132     <coupled-node>EndOfInitLoopSwitch</coupled-node>
133     <service>
134      <service-name>InitLoopSwitch</service-name>
135      <inParameter-list>
136       <inParameter>
137        <inParameter-type>long</inParameter-type>
138        <inParameter-name>Index</inParameter-name>
139       </inParameter>
140       <inParameter>
141        <inParameter-type>long</inParameter-type>
142        <inParameter-name>Min</inParameter-name>
143       </inParameter>
144       <inParameter>
145        <inParameter-type>long</inParameter-type>
146        <inParameter-name>Max</inParameter-name>
147       </inParameter>
148      </inParameter-list>
149      <outParameter-list>
150       <outParameter>
151        <outParameter-type>long</outParameter-type>
152        <outParameter-name>Index</outParameter-name>
153       </outParameter>
154       <outParameter>
155        <outParameter-type>long</outParameter-type>
156        <outParameter-name>Min</outParameter-name>
157       </outParameter>
158       <outParameter>
159        <outParameter-type>long</outParameter-type>
160        <outParameter-name>Max</outParameter-name>
161       </outParameter>
162      </outParameter-list>
163     </service>
164     <DataStream-list/>
165     <PyFunction-list>
166      <PyFunction>
167       <FuncName>InitLoop</FuncName>
168       <PyFunc><![CDATA[def InitLoop(Index,Min,Max) :      ]]></PyFunc>
169       <PyFunc><![CDATA[ return Index,Min,Max     ]]></PyFunc>
170      </PyFunction>
171      <PyFunction>
172       <FuncName>MoreLoop</FuncName>
173       <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) :     ]]></PyFunc>
174       <PyFunc><![CDATA[ if Index <= Max :   ]]></PyFunc>
175       <PyFunc><![CDATA[         DoLoop = 1     ]]></PyFunc>
176       <PyFunc><![CDATA[ else :     ]]></PyFunc>
177       <PyFunc><![CDATA[         DoLoop = 0     ]]></PyFunc>
178       <PyFunc><![CDATA[ return DoLoop,Index,Min,Max     ]]></PyFunc>
179      </PyFunction>
180      <PyFunction>
181       <FuncName>NextLoop</FuncName>
182       <PyFunc><![CDATA[def NextLoop(Index,Min,Max) :     ]]></PyFunc>
183       <PyFunc><![CDATA[ Index = Index + 1     ]]></PyFunc>
184       <PyFunc><![CDATA[ return Index,Min,Max     ]]></PyFunc>
185      </PyFunction>
186     </PyFunction-list>
187     <creation-date>14/4/2006 - 15:42:11</creation-date>
188     <lastmodification-date>14/4/2006 - 15:42:11</lastmodification-date>
189     <editor-release>1.05</editor-release>
190     <author>?</author>
191     <container>?</container>
192     <comment>Compute Node</comment>
193     <x-position>10</x-position>
194     <y-position>129</y-position>
195    </node>
196    <node>
197     <component-name>?</component-name>
198     <interface-name>?</interface-name>
199     <node-name>EndOfInitLoopSwitch</node-name>
200     <kind>5</kind>
201     <coupled-node>InitLoopSwitch</coupled-node>
202     <service>
203      <service-name>EndOfInitLoopSwitch</service-name>
204      <inParameter-list>
205       <inParameter>
206        <inParameter-type>long</inParameter-type>
207        <inParameter-name>Index</inParameter-name>
208       </inParameter>
209       <inParameter>
210        <inParameter-type>long</inParameter-type>
211        <inParameter-name>Min</inParameter-name>
212       </inParameter>
213       <inParameter>
214        <inParameter-type>long</inParameter-type>
215        <inParameter-name>Max</inParameter-name>
216       </inParameter>
217      </inParameter-list>
218      <outParameter-list>
219       <outParameter>
220        <outParameter-type>long</outParameter-type>
221        <outParameter-name>Index</outParameter-name>
222       </outParameter>
223       <outParameter>
224        <outParameter-type>long</outParameter-type>
225        <outParameter-name>Min</outParameter-name>
226       </outParameter>
227       <outParameter>
228        <outParameter-type>long</outParameter-type>
229        <outParameter-name>Max</outParameter-name>
230       </outParameter>
231      </outParameter-list>
232     </service>
233     <DataStream-list/>
234     <PyFunction-list>
235      <PyFunction>
236       <FuncName>?</FuncName>
237       <PyFunc><![CDATA[?]]></PyFunc>
238      </PyFunction>
239     </PyFunction-list>
240     <creation-date>14/4/2006 - 15:42:11</creation-date>
241     <lastmodification-date>14/4/2006 - 15:42:11</lastmodification-date>
242     <editor-release>1.05</editor-release>
243     <author>?</author>
244     <container>?</container>
245     <comment>Compute Node</comment>
246     <x-position>776</x-position>
247     <y-position>170</y-position>
248    </node>
249    <node>
250     <component-name>?</component-name>
251     <interface-name>?</interface-name>
252     <node-name>Switch</node-name>
253     <kind>6</kind>
254     <coupled-node>EndOfSwitch</coupled-node>
255     <service>
256      <service-name>Switch</service-name>
257      <inParameter-list>
258       <inParameter>
259        <inParameter-type>long</inParameter-type>
260        <inParameter-name>a</inParameter-name>
261       </inParameter>
262      </inParameter-list>
263      <outParameter-list>
264       <outParameter>
265        <outParameter-type>long</outParameter-type>
266        <outParameter-name>Odd</outParameter-name>
267       </outParameter>
268       <outParameter>
269        <outParameter-type>int</outParameter-type>
270        <outParameter-name>Even</outParameter-name>
271       </outParameter>
272       <outParameter>
273        <outParameter-type>int</outParameter-type>
274        <outParameter-name>a</outParameter-name>
275       </outParameter>
276      </outParameter-list>
277     </service>
278     <DataStream-list/>
279     <PyFunction-list>
280      <PyFunction>
281       <FuncName>Switch</FuncName>
282       <PyFunc><![CDATA[from time import * ]]></PyFunc>
283       <PyFunc><![CDATA[def Switch(a) :   ]]></PyFunc>
284       <PyFunc><![CDATA[    if ( a & 1 ) == 0 : ]]></PyFunc>
285       <PyFunc><![CDATA[        sleep(1)    ]]></PyFunc>
286       <PyFunc><![CDATA[    return a & 1,1-(a&1),a    ]]></PyFunc>
287      </PyFunction>
288     </PyFunction-list>
289     <creation-date>14/4/2006 - 15:42:11</creation-date>
290     <lastmodification-date>14/4/2006 - 15:42:11</lastmodification-date>
291     <editor-release>1.05</editor-release>
292     <author>?</author>
293     <container>?</container>
294     <comment>Compute Node</comment>
295     <x-position>194</x-position>
296     <y-position>129</y-position>
297    </node>
298    <node>
299     <component-name>?</component-name>
300     <interface-name>?</interface-name>
301     <node-name>EndOfSwitch</node-name>
302     <kind>7</kind>
303     <coupled-node>Switch</coupled-node>
304     <service>
305      <service-name>EndOfSwitch</service-name>
306      <inParameter-list>
307       <inParameter>
308        <inParameter-type>long</inParameter-type>
309        <inParameter-name>a</inParameter-name>
310       </inParameter>
311      </inParameter-list>
312      <outParameter-list>
313       <outParameter>
314        <outParameter-type>long</outParameter-type>
315        <outParameter-name>a</outParameter-name>
316       </outParameter>
317      </outParameter-list>
318     </service>
319     <DataStream-list/>
320     <PyFunction-list>
321      <PyFunction>
322       <FuncName>?</FuncName>
323       <PyFunc><![CDATA[?]]></PyFunc>
324      </PyFunction>
325     </PyFunction-list>
326     <creation-date>14/4/2006 - 15:42:11</creation-date>
327     <lastmodification-date>14/4/2006 - 15:42:11</lastmodification-date>
328     <editor-release>1.05</editor-release>
329     <author>?</author>
330     <container>?</container>
331     <comment>Compute Node</comment>
332     <x-position>582</x-position>
333     <y-position>170</y-position>
334    </node>
335   </node-list>
336   <link-list>
337    <link>
338     <fromnode-name>IsOdd</fromnode-name>
339     <fromserviceparameter-name>a</fromserviceparameter-name>
340     <tonode-name>EndOfSwitch</tonode-name>
341     <toserviceparameter-name>a</toserviceparameter-name>
342     <coord-list>
343      <coord>
344       <x>564</x>
345       <y>201</y>
346      </coord>
347      <coord>
348       <x>564</x>
349       <y>134</y>
350      </coord>
351     </coord-list>
352    </link>
353    <link>
354     <fromnode-name>InitLoopSwitch</fromnode-name>
355     <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
356     <tonode-name>EndOfInitLoopSwitch</tonode-name>
357     <toserviceparameter-name>DoLoop</toserviceparameter-name>
358     <coord-list/>
359    </link>
360    <link>
361     <fromnode-name>InitLoopSwitch</fromnode-name>
362     <fromserviceparameter-name>Index</fromserviceparameter-name>
363     <tonode-name>Switch</tonode-name>
364     <toserviceparameter-name>a</toserviceparameter-name>
365     <coord-list/>
366    </link>
367    <link>
368     <fromnode-name>InitLoopSwitch</fromnode-name>
369     <fromserviceparameter-name>Min</fromserviceparameter-name>
370     <tonode-name>EndOfInitLoopSwitch</tonode-name>
371     <toserviceparameter-name>Min</toserviceparameter-name>
372     <coord-list/>
373    </link>
374    <link>
375     <fromnode-name>InitLoopSwitch</fromnode-name>
376     <fromserviceparameter-name>Max</fromserviceparameter-name>
377     <tonode-name>EndOfInitLoopSwitch</tonode-name>
378     <toserviceparameter-name>Max</toserviceparameter-name>
379     <coord-list/>
380    </link>
381    <link>
382     <fromnode-name>EndOfInitLoopSwitch</fromnode-name>
383     <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
384     <tonode-name>InitLoopSwitch</tonode-name>
385     <toserviceparameter-name>DoLoop</toserviceparameter-name>
386     <coord-list/>
387    </link>
388    <link>
389     <fromnode-name>Switch</fromnode-name>
390     <fromserviceparameter-name>Odd</fromserviceparameter-name>
391     <tonode-name>IsOdd</tonode-name>
392     <toserviceparameter-name>Gate</toserviceparameter-name>
393     <coord-list/>
394    </link>
395    <link>
396     <fromnode-name>Switch</fromnode-name>
397     <fromserviceparameter-name>a</fromserviceparameter-name>
398     <tonode-name>IsOdd</tonode-name>
399     <toserviceparameter-name>a</toserviceparameter-name>
400     <coord-list>
401      <coord>
402       <x>371</x>
403       <y>136</y>
404      </coord>
405      <coord>
406       <x>371</x>
407       <y>200</y>
408      </coord>
409     </coord-list>
410    </link>
411    <link>
412     <fromnode-name>Switch</fromnode-name>
413     <fromserviceparameter-name>Default</fromserviceparameter-name>
414     <tonode-name>EndOfSwitch</tonode-name>
415     <toserviceparameter-name>Default</toserviceparameter-name>
416     <coord-list/>
417    </link>
418   </link-list>
419   <data-list>
420    <data>
421     <fromnode-name>GraphSwitch</fromnode-name>
422     <fromserviceparameter-name>InitLoopSwitch__Index</fromserviceparameter-name>
423     <tonode-name>InitLoopSwitch</tonode-name>
424     <toserviceparameter-name>Index</toserviceparameter-name>
425     <data-value>
426      <value-type>3</value-type>
427      <value>0</value>
428     </data-value>
429     <coord-list/>
430    </data>
431    <data>
432     <fromnode-name>GraphSwitch</fromnode-name>
433     <fromserviceparameter-name>InitLoopSwitch__Min</fromserviceparameter-name>
434     <tonode-name>InitLoopSwitch</tonode-name>
435     <toserviceparameter-name>Min</toserviceparameter-name>
436     <data-value>
437      <value-type>3</value-type>
438      <value>0</value>
439     </data-value>
440     <coord-list/>
441    </data>
442    <data>
443     <fromnode-name>GraphSwitch</fromnode-name>
444     <fromserviceparameter-name>InitLoopSwitch__Max</fromserviceparameter-name>
445     <tonode-name>InitLoopSwitch</tonode-name>
446     <toserviceparameter-name>Max</toserviceparameter-name>
447     <data-value>
448      <value-type>3</value-type>
449      <value>35</value>
450     </data-value>
451     <coord-list/>
452    </data>
453   </data-list>
454  </dataflow>
455 </supergraph>
456