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