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