3 Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
5 Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
6 CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
22 See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
29 <component-name>?</component-name>
30 <interface-name>?</interface-name>
31 <node-name>GraphSwitchOutputNOTValid</node-name>
33 <coupled-node>?</coupled-node>
35 <service-name>GraphSwitchOutputNOTValid</service-name>
38 <inParameter-type>long</inParameter-type>
39 <inParameter-name>InitLoopSwitch__Index</inParameter-name> </inParameter>
41 <inParameter-type>long</inParameter-type>
42 <inParameter-name>InitLoopSwitch__Min</inParameter-name> </inParameter>
44 <inParameter-type>long</inParameter-type>
45 <inParameter-name>InitLoopSwitch__Max</inParameter-name> </inParameter> </inParameter-list>
48 <outParameter-type>long</outParameter-type>
49 <outParameter-name>EndOfInitLoopSwitch__Index</outParameter-name> </outParameter>
51 <outParameter-type>long</outParameter-type>
52 <outParameter-name>EndOfInitLoopSwitch__Min</outParameter-name> </outParameter>
54 <outParameter-type>long</outParameter-type>
55 <outParameter-name>EndOfInitLoopSwitch__Max</outParameter-name> </outParameter>
57 <outParameter-type>boolean</outParameter-type>
58 <outParameter-name>Switch__default</outParameter-name> </outParameter>
60 <outParameter-type>string</outParameter-type>
61 <outParameter-name>Print__Branch</outParameter-name> </outParameter>
63 <outParameter-type>string</outParameter-type>
64 <outParameter-name>Print_1__Branch</outParameter-name> </outParameter> </outParameter-list> </service>
67 <creation-date>1/10/2003 - 17:23:54</creation-date>
68 <lastmodification-date>8/3/2005 - 17:1:28</lastmodification-date>
69 <editor-release>1.05</editor-release>
71 <container>?</container>
73 <x-position>0</x-position>
74 <y-position>0</y-position> </node> </info-list>
77 <component-name>?</component-name>
78 <interface-name>?</interface-name>
79 <node-name>IsOdd</node-name>
81 <coupled-node>?</coupled-node>
83 <service-name>IsOdd</service-name>
86 <inParameter-type>long</inParameter-type>
87 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
90 <outParameter-type>long</outParameter-type>
91 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
95 <FuncName>IsOdd</FuncName>
96 <PyFunc><![CDATA[from time import * ]]></PyFunc>
97 <PyFunc><![CDATA[def IsOdd(a) : ]]></PyFunc>
98 <PyFunc><![CDATA[ print a,"IsOdd (GraphSwitch)" ]]></PyFunc>
99 <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
100 <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
101 <creation-date>8/3/2005 - 17:1:28</creation-date>
102 <lastmodification-date>8/3/2005 - 17:1:28</lastmodification-date>
103 <editor-release>1.05</editor-release>
105 <container>?</container>
106 <comment>Python function</comment>
107 <x-position>388</x-position>
108 <y-position>50</y-position> </node>
110 <component-name>?</component-name>
111 <interface-name>?</interface-name>
112 <node-name>InitLoopSwitch</node-name>
114 <coupled-node>EndOfInitLoopSwitch</coupled-node>
116 <service-name>InitLoopSwitch</service-name>
119 <inParameter-type>long</inParameter-type>
120 <inParameter-name>Index</inParameter-name> </inParameter>
122 <inParameter-type>long</inParameter-type>
123 <inParameter-name>Min</inParameter-name> </inParameter>
125 <inParameter-type>long</inParameter-type>
126 <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
129 <outParameter-type>long</outParameter-type>
130 <outParameter-name>Index</outParameter-name> </outParameter>
132 <outParameter-type>long</outParameter-type>
133 <outParameter-name>Min</outParameter-name> </outParameter>
135 <outParameter-type>long</outParameter-type>
136 <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
140 <FuncName>InitLoop</FuncName>
141 <PyFunc><![CDATA[def InitLoop(Index,Min,Max) : ]]></PyFunc>
142 <PyFunc><![CDATA[ Index = Max ]]></PyFunc>
143 <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction>
145 <FuncName>MoreLoop</FuncName>
146 <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) : ]]></PyFunc>
147 <PyFunc><![CDATA[ if Index >= Min : ]]></PyFunc>
148 <PyFunc><![CDATA[ DoLoop = 1 ]]></PyFunc>
149 <PyFunc><![CDATA[ else : ]]></PyFunc>
150 <PyFunc><![CDATA[ DoLoop = 0 ]]></PyFunc>
151 <PyFunc><![CDATA[ return DoLoop,Index,Min,Max ]]></PyFunc> </PyFunction>
153 <FuncName>NextLoop</FuncName>
154 <PyFunc><![CDATA[def NextLoop(Index,Min,Max) : ]]></PyFunc>
155 <PyFunc><![CDATA[ Index = Index - 1 ]]></PyFunc>
156 <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction> </PyFunction-list>
157 <creation-date>8/3/2005 - 17:1:28</creation-date>
158 <lastmodification-date>8/3/2005 - 17:1:28</lastmodification-date>
159 <editor-release>1.05</editor-release>
161 <container>?</container>
162 <comment>Compute Node</comment>
163 <x-position>10</x-position>
164 <y-position>129</y-position> </node>
166 <component-name>?</component-name>
167 <interface-name>?</interface-name>
168 <node-name>EndOfInitLoopSwitch</node-name>
170 <coupled-node>InitLoopSwitch</coupled-node>
172 <service-name>EndOfInitLoopSwitch</service-name>
175 <inParameter-type>long</inParameter-type>
176 <inParameter-name>Index</inParameter-name> </inParameter>
178 <inParameter-type>long</inParameter-type>
179 <inParameter-name>Min</inParameter-name> </inParameter>
181 <inParameter-type>long</inParameter-type>
182 <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
185 <outParameter-type>long</outParameter-type>
186 <outParameter-name>Index</outParameter-name> </outParameter>
188 <outParameter-type>long</outParameter-type>
189 <outParameter-name>Min</outParameter-name> </outParameter>
191 <outParameter-type>long</outParameter-type>
192 <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
196 <FuncName>?</FuncName>
197 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
198 <creation-date>8/3/2005 - 17:1:28</creation-date>
199 <lastmodification-date>8/3/2005 - 17:1:28</lastmodification-date>
200 <editor-release>1.05</editor-release>
202 <container>?</container>
203 <comment>Compute Node</comment>
204 <x-position>1082</x-position>
205 <y-position>150</y-position> </node>
207 <component-name>?</component-name>
208 <interface-name>?</interface-name>
209 <node-name>IsEven</node-name>
211 <coupled-node>?</coupled-node>
213 <service-name>IsEven</service-name>
216 <inParameter-type>long</inParameter-type>
217 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
220 <outParameter-type>long</outParameter-type>
221 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
225 <FuncName>IsEven</FuncName>
226 <PyFunc><![CDATA[from time import * ]]></PyFunc>
227 <PyFunc><![CDATA[def IsEven(a) : ]]></PyFunc>
228 <PyFunc><![CDATA[ print a,"IsEven (GraphSwitch)" ]]></PyFunc>
229 <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
230 <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
231 <creation-date>8/3/2005 - 17:1:28</creation-date>
232 <lastmodification-date>8/3/2005 - 17:1:28</lastmodification-date>
233 <editor-release>2.0</editor-release>
235 <container>?</container>
236 <comment>Compute Node</comment>
237 <x-position>432</x-position>
238 <y-position>337</y-position> </node>
240 <component-name>?</component-name>
241 <interface-name>?</interface-name>
242 <node-name>Switch</node-name>
244 <coupled-node>EndOfSwitch</coupled-node>
246 <service-name>Switch</service-name>
249 <inParameter-type>long</inParameter-type>
250 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
253 <outParameter-type>long</outParameter-type>
254 <outParameter-name>Odd</outParameter-name> </outParameter>
256 <outParameter-type>int</outParameter-type>
257 <outParameter-name>Even</outParameter-name> </outParameter>
259 <outParameter-type>int</outParameter-type>
260 <outParameter-name>a</outParameter-name> </outParameter>
262 <outParameter-type>string</outParameter-type>
263 <outParameter-name>Branch</outParameter-name> </outParameter>
265 <outParameter-type>boolean</outParameter-type>
266 <outParameter-name>default</outParameter-name> </outParameter> </outParameter-list> </service>
270 <FuncName>Switch</FuncName>
271 <PyFunc><![CDATA[from time import * ]]></PyFunc>
272 <PyFunc><![CDATA[def Switch(a) : ]]></PyFunc>
273 <PyFunc><![CDATA[ Branch = 'Negative or null' ]]></PyFunc>
274 <PyFunc><![CDATA[ if a <= 0 : ]]></PyFunc>
275 <PyFunc><![CDATA[ return 0,0,a,Branch,1 ]]></PyFunc>
276 <PyFunc><![CDATA[ if ( a & 1 ) == 0 : ]]></PyFunc>
277 <PyFunc><![CDATA[ Branch = 'Even' ]]></PyFunc>
278 <PyFunc><![CDATA[ else : ]]></PyFunc>
279 <PyFunc><![CDATA[ Branch = 'Odd' ]]></PyFunc>
280 <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
281 <PyFunc><![CDATA[ return a & 1,1-(a&1),a,Branch,0 ]]></PyFunc> </PyFunction> </PyFunction-list>
282 <creation-date>8/3/2005 - 17:1:28</creation-date>
283 <lastmodification-date>8/3/2005 - 17:1:28</lastmodification-date>
284 <editor-release>2.0</editor-release>
286 <container>?</container>
287 <comment>Compute Node</comment>
288 <x-position>195</x-position>
289 <y-position>129</y-position> </node>
291 <component-name>?</component-name>
292 <interface-name>?</interface-name>
293 <node-name>EndOfSwitch</node-name>
295 <coupled-node>Switch</coupled-node>
297 <service-name>EndOfSwitch</service-name>
300 <inParameter-type>long</inParameter-type>
301 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
304 <outParameter-type>long</outParameter-type>
305 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
309 <FuncName>EndSwitch_1</FuncName>
310 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
311 <creation-date>8/3/2005 - 17:1:28</creation-date>
312 <lastmodification-date>8/3/2005 - 17:1:28</lastmodification-date>
313 <editor-release>2.0</editor-release>
315 <container>?</container>
316 <comment>Compute Node</comment>
317 <x-position>880</x-position>
318 <y-position>150</y-position> </node>
320 <component-name>?</component-name>
321 <interface-name>?</interface-name>
322 <node-name>Print</node-name>
324 <coupled-node>?</coupled-node>
326 <service-name>Print</service-name>
329 <inParameter-type>long</inParameter-type>
330 <inParameter-name>a</inParameter-name> </inParameter>
332 <inParameter-type>string</inParameter-type>
333 <inParameter-name>Branch</inParameter-name> </inParameter> </inParameter-list>
336 <outParameter-type>long</outParameter-type>
337 <outParameter-name>a</outParameter-name> </outParameter>
339 <outParameter-type>string</outParameter-type>
340 <outParameter-name>Branch</outParameter-name> </outParameter> </outParameter-list> </service>
344 <FuncName>Print</FuncName>
345 <PyFunc><![CDATA[def Print(a,Branch) : ]]></PyFunc>
346 <PyFunc><![CDATA[ print "Print ",Branch ]]></PyFunc>
347 <PyFunc><![CDATA[ return a,Branch ]]></PyFunc> </PyFunction> </PyFunction-list>
348 <creation-date>8/3/2005 - 17:1:28</creation-date>
349 <lastmodification-date>8/3/2005 - 17:1:28</lastmodification-date>
350 <editor-release>2.0</editor-release>
352 <container>?</container>
353 <comment>Compute Node</comment>
354 <x-position>639</x-position>
355 <y-position>50</y-position> </node>
357 <component-name>?</component-name>
358 <interface-name>?</interface-name>
359 <node-name>Print_1</node-name>
361 <coupled-node>?</coupled-node>
363 <service-name>Print_1</service-name>
366 <inParameter-type>long</inParameter-type>
367 <inParameter-name>a</inParameter-name> </inParameter>
369 <inParameter-type>string</inParameter-type>
370 <inParameter-name>Branch</inParameter-name> </inParameter> </inParameter-list>
373 <outParameter-type>long</outParameter-type>
374 <outParameter-name>a</outParameter-name> </outParameter>
376 <outParameter-type>string</outParameter-type>
377 <outParameter-name>Branch</outParameter-name> </outParameter> </outParameter-list> </service>
381 <FuncName>Print_1</FuncName>
382 <PyFunc><![CDATA[def Print_1(a,Branch) : ]]></PyFunc>
383 <PyFunc><![CDATA[ print "Print ",Branch ]]></PyFunc>
384 <PyFunc><![CDATA[ return a,Branch ]]></PyFunc> </PyFunction> </PyFunction-list>
385 <creation-date>8/3/2005 - 17:1:28</creation-date>
386 <lastmodification-date>8/3/2005 - 17:1:28</lastmodification-date>
387 <editor-release>2.0</editor-release>
389 <container>?</container>
390 <comment>Compute Node</comment>
391 <x-position>645</x-position>
392 <y-position>250</y-position> </node> </node-list>
395 <fromnode-name>IsOdd</fromnode-name>
396 <fromserviceparameter-name>a</fromserviceparameter-name>
397 <tonode-name>Print</tonode-name>
398 <toserviceparameter-name>a</toserviceparameter-name>
399 <coord-list/> </link>
401 <fromnode-name>InitLoopSwitch</fromnode-name>
402 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
403 <tonode-name>EndOfInitLoopSwitch</tonode-name>
404 <toserviceparameter-name>DoLoop</toserviceparameter-name>
405 <coord-list/> </link>
407 <fromnode-name>InitLoopSwitch</fromnode-name>
408 <fromserviceparameter-name>Index</fromserviceparameter-name>
409 <tonode-name>Switch</tonode-name>
410 <toserviceparameter-name>a</toserviceparameter-name>
411 <coord-list/> </link>
413 <fromnode-name>InitLoopSwitch</fromnode-name>
414 <fromserviceparameter-name>Min</fromserviceparameter-name>
415 <tonode-name>EndOfInitLoopSwitch</tonode-name>
416 <toserviceparameter-name>Min</toserviceparameter-name>
417 <coord-list/> </link>
419 <fromnode-name>InitLoopSwitch</fromnode-name>
420 <fromserviceparameter-name>Max</fromserviceparameter-name>
421 <tonode-name>EndOfInitLoopSwitch</tonode-name>
422 <toserviceparameter-name>Max</toserviceparameter-name>
423 <coord-list/> </link>
425 <fromnode-name>EndOfInitLoopSwitch</fromnode-name>
426 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
427 <tonode-name>InitLoopSwitch</tonode-name>
428 <toserviceparameter-name>DoLoop</toserviceparameter-name>
429 <coord-list/> </link>
431 <fromnode-name>IsEven</fromnode-name>
432 <fromserviceparameter-name>a</fromserviceparameter-name>
433 <tonode-name>Print_1</tonode-name>
434 <toserviceparameter-name>a</toserviceparameter-name>
435 <coord-list/> </link>
437 <fromnode-name>Switch</fromnode-name>
438 <fromserviceparameter-name>Odd</fromserviceparameter-name>
439 <tonode-name>IsOdd</tonode-name>
440 <toserviceparameter-name>Gate</toserviceparameter-name>
441 <coord-list/> </link>
443 <fromnode-name>Switch</fromnode-name>
444 <fromserviceparameter-name>Even</fromserviceparameter-name>
445 <tonode-name>IsEven</tonode-name>
446 <toserviceparameter-name>Gate</toserviceparameter-name>
447 <coord-list/> </link>
449 <fromnode-name>Switch</fromnode-name>
450 <fromserviceparameter-name>a</fromserviceparameter-name>
451 <tonode-name>IsOdd</tonode-name>
452 <toserviceparameter-name>a</toserviceparameter-name>
453 <coord-list/> </link>
455 <fromnode-name>Switch</fromnode-name>
456 <fromserviceparameter-name>a</fromserviceparameter-name>
457 <tonode-name>IsEven</tonode-name>
458 <toserviceparameter-name>a</toserviceparameter-name>
459 <coord-list/> </link>
461 <fromnode-name>Switch</fromnode-name>
462 <fromserviceparameter-name>Branch</fromserviceparameter-name>
463 <tonode-name>Print</tonode-name>
464 <toserviceparameter-name>Branch</toserviceparameter-name>
465 <coord-list/> </link>
467 <fromnode-name>Switch</fromnode-name>
468 <fromserviceparameter-name>Branch</fromserviceparameter-name>
469 <tonode-name>Print_1</tonode-name>
470 <toserviceparameter-name>Branch</toserviceparameter-name>
471 <coord-list/> </link>
473 <fromnode-name>Switch</fromnode-name>
474 <fromserviceparameter-name>Default</fromserviceparameter-name>
475 <tonode-name>EndOfSwitch</tonode-name>
476 <toserviceparameter-name>Default</toserviceparameter-name>
477 <coord-list/> </link>
479 <fromnode-name>EndOfSwitch</fromnode-name>
480 <fromserviceparameter-name>a</fromserviceparameter-name>
481 <tonode-name>EndOfInitLoopSwitch</tonode-name>
482 <toserviceparameter-name>Index</toserviceparameter-name>
483 <coord-list/> </link>
485 <fromnode-name>Print</fromnode-name>
486 <fromserviceparameter-name>a</fromserviceparameter-name>
487 <tonode-name>EndOfSwitch</tonode-name>
488 <toserviceparameter-name>a</toserviceparameter-name>
489 <coord-list/> </link>
491 <fromnode-name>Print_1</fromnode-name>
492 <fromserviceparameter-name>a</fromserviceparameter-name>
493 <tonode-name>EndOfSwitch</tonode-name>
494 <toserviceparameter-name>a</toserviceparameter-name>
495 <coord-list/> </link> </link-list>
498 <fromnode-name>GraphSwitchOutputNOTValid</fromnode-name>
499 <fromserviceparameter-name>InitLoopSwitch__Index</fromserviceparameter-name>
500 <tonode-name>InitLoopSwitch</tonode-name>
501 <toserviceparameter-name>Index</toserviceparameter-name>
503 <value-type>3</value-type>
504 <value>0</value> </data-value>
505 <coord-list/> </data>
507 <fromnode-name>GraphSwitchOutputNOTValid</fromnode-name>
508 <fromserviceparameter-name>InitLoopSwitch__Min</fromserviceparameter-name>
509 <tonode-name>InitLoopSwitch</tonode-name>
510 <toserviceparameter-name>Min</toserviceparameter-name>
512 <value-type>3</value-type>
513 <value>-5</value> </data-value>
514 <coord-list/> </data>
516 <fromnode-name>GraphSwitchOutputNOTValid</fromnode-name>
517 <fromserviceparameter-name>InitLoopSwitch__Max</fromserviceparameter-name>
518 <tonode-name>InitLoopSwitch</tonode-name>
519 <toserviceparameter-name>Max</toserviceparameter-name>
521 <value-type>3</value-type>
522 <value>10</value> </data-value>
523 <coord-list/> </data> </data-list> </dataflow></supergraph>