5 <component-name>?</component-name>
6 <interface-name>?</interface-name>
7 <node-name>GraphPyFunctions</node-name>
9 <coupled-node>?</coupled-node>
11 <service-name>GraphPyFunctions</service-name>
14 <inParameter-type>long</inParameter-type>
15 <inParameter-name>InitLoop\Index</inParameter-name> </inParameter>
17 <inParameter-type>long</inParameter-type>
18 <inParameter-name>InitLoop\Min</inParameter-name> </inParameter>
20 <inParameter-type>long</inParameter-type>
21 <inParameter-name>InitLoop\Max</inParameter-name> </inParameter>
23 <inParameter-type>long</inParameter-type>
24 <inParameter-name>InitLoop_1\Index</inParameter-name> </inParameter>
26 <inParameter-type>long</inParameter-type>
27 <inParameter-name>InitLoop_1\Min</inParameter-name> </inParameter>
29 <inParameter-type>long</inParameter-type>
30 <inParameter-name>InitLoop_1\Max</inParameter-name> </inParameter> </inParameter-list>
33 <outParameter-type>long</outParameter-type>
34 <outParameter-name>EndOfInitLoop\Index</outParameter-name> </outParameter>
36 <outParameter-type>long</outParameter-type>
37 <outParameter-name>EndOfInitLoop\Min</outParameter-name> </outParameter>
39 <outParameter-type>long</outParameter-type>
40 <outParameter-name>EndOfInitLoop\Max</outParameter-name> </outParameter>
42 <outParameter-type>long</outParameter-type>
43 <outParameter-name>EndOfInitLoop_1\Index</outParameter-name> </outParameter>
45 <outParameter-type>long</outParameter-type>
46 <outParameter-name>EndOfInitLoop_1\Min</outParameter-name> </outParameter>
48 <outParameter-type>long</outParameter-type>
49 <outParameter-name>EndOfInitLoop_1\Max</outParameter-name> </outParameter>
51 <outParameter-type>int</outParameter-type>
52 <outParameter-name>Switch\Even</outParameter-name> </outParameter> </outParameter-list> </service>
55 <creation-date>23/10/2003 - 17:46:20</creation-date>
56 <lastmodification-date>23/10/2003 - 17:47:28</lastmodification-date>
57 <editor-release>1.05</editor-release>
59 <container>?</container>
61 <x-position>0</x-position>
62 <y-position>0</y-position> </node> </info-list>
65 <component-name>?</component-name>
66 <interface-name>?</interface-name>
67 <node-name>IsOdd</node-name>
69 <coupled-node>?</coupled-node>
71 <service-name>IsOdd</service-name>
74 <inParameter-type>long</inParameter-type>
75 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
78 <outParameter-type>long</outParameter-type>
79 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
83 <FuncName>IsOdd</FuncName>
84 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
85 <creation-date>23/10/2003 - 17:46:20</creation-date>
86 <lastmodification-date>23/10/2003 - 17:46:20</lastmodification-date>
87 <editor-release>1.05</editor-release>
89 <container>?</container>
90 <comment>Python function</comment>
91 <x-position>388</x-position>
92 <y-position>50</y-position> </node>
94 <component-name>?</component-name>
95 <interface-name>?</interface-name>
96 <node-name>IsOdd_1</node-name>
98 <coupled-node>?</coupled-node>
100 <service-name>IsOdd_1</service-name>
103 <inParameter-type>long</inParameter-type>
104 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
107 <outParameter-type>long</outParameter-type>
108 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
112 <FuncName>IsOdd</FuncName>
113 <PyFunc><![CDATA[from time import * ]]></PyFunc>
114 <PyFunc><![CDATA[def IsOdd(a) : ]]></PyFunc>
115 <PyFunc><![CDATA[ print a,"IsOdd" ]]></PyFunc>
116 <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
117 <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
118 <creation-date>23/10/2003 - 17:46:21</creation-date>
119 <lastmodification-date>23/10/2003 - 17:46:21</lastmodification-date>
120 <editor-release>1.05</editor-release>
122 <container>?</container>
123 <comment>Python function</comment>
124 <x-position>391</x-position>
125 <y-position>288</y-position> </node>
127 <component-name>?</component-name>
128 <interface-name>?</interface-name>
129 <node-name>InitLoop</node-name>
131 <coupled-node>EndOfInitLoop</coupled-node>
133 <service-name>InitLoop</service-name>
136 <inParameter-type>long</inParameter-type>
137 <inParameter-name>Index</inParameter-name> </inParameter>
139 <inParameter-type>long</inParameter-type>
140 <inParameter-name>Min</inParameter-name> </inParameter>
142 <inParameter-type>long</inParameter-type>
143 <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
146 <outParameter-type>long</outParameter-type>
147 <outParameter-name>Index</outParameter-name> </outParameter>
149 <outParameter-type>long</outParameter-type>
150 <outParameter-name>Min</outParameter-name> </outParameter>
152 <outParameter-type>long</outParameter-type>
153 <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
157 <FuncName>InitLoop</FuncName>
158 <PyFunc><![CDATA[def InitLoop(Index,Min,Max) : ]]></PyFunc>
159 <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction>
161 <FuncName>MoreLoop</FuncName>
162 <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) : ]]></PyFunc>
163 <PyFunc><![CDATA[ if Index <= Max : ]]></PyFunc>
164 <PyFunc><![CDATA[ DoLoop = 1 ]]></PyFunc>
165 <PyFunc><![CDATA[ else : ]]></PyFunc>
166 <PyFunc><![CDATA[ DoLoop = 0 ]]></PyFunc>
167 <PyFunc><![CDATA[ return DoLoop,Index,Min,Max ]]></PyFunc> </PyFunction>
169 <FuncName>NextLoop</FuncName>
170 <PyFunc><![CDATA[def NextLoop(Index,Min,Max) : ]]></PyFunc>
171 <PyFunc><![CDATA[ Index = Index + 1 ]]></PyFunc>
172 <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction> </PyFunction-list>
173 <creation-date>23/10/2003 - 17:46:23</creation-date>
174 <lastmodification-date>23/10/2003 - 17:46:23</lastmodification-date>
175 <editor-release>1.05</editor-release>
177 <container>?</container>
179 <x-position>10</x-position>
180 <y-position>129</y-position> </node>
182 <component-name>?</component-name>
183 <interface-name>?</interface-name>
184 <node-name>EndOfInitLoop</node-name>
186 <coupled-node>InitLoop</coupled-node>
188 <service-name>EndInitLoop</service-name>
191 <inParameter-type>long</inParameter-type>
192 <inParameter-name>Index</inParameter-name> </inParameter>
194 <inParameter-type>long</inParameter-type>
195 <inParameter-name>Min</inParameter-name> </inParameter>
197 <inParameter-type>long</inParameter-type>
198 <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
201 <outParameter-type>long</outParameter-type>
202 <outParameter-name>Index</outParameter-name> </outParameter>
204 <outParameter-type>long</outParameter-type>
205 <outParameter-name>Min</outParameter-name> </outParameter>
207 <outParameter-type>long</outParameter-type>
208 <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
212 <FuncName>EndInitLoop</FuncName>
213 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
214 <creation-date>23/10/2003 - 17:46:23</creation-date>
215 <lastmodification-date>23/10/2003 - 17:46:23</lastmodification-date>
216 <editor-release>1.05</editor-release>
218 <container>?</container>
220 <x-position>766</x-position>
221 <y-position>127</y-position> </node>
223 <component-name>?</component-name>
224 <interface-name>?</interface-name>
225 <node-name>InitLoop_1</node-name>
227 <coupled-node>EndOfInitLoop_1</coupled-node>
229 <service-name>InitLoop_1</service-name>
232 <inParameter-type>long</inParameter-type>
233 <inParameter-name>Index</inParameter-name> </inParameter>
235 <inParameter-type>long</inParameter-type>
236 <inParameter-name>Min</inParameter-name> </inParameter>
238 <inParameter-type>long</inParameter-type>
239 <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
242 <outParameter-type>long</outParameter-type>
243 <outParameter-name>Index</outParameter-name> </outParameter>
245 <outParameter-type>long</outParameter-type>
246 <outParameter-name>Min</outParameter-name> </outParameter>
248 <outParameter-type>long</outParameter-type>
249 <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
253 <FuncName>InitLoop</FuncName>
254 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction>
256 <FuncName>MoreLoop</FuncName>
257 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction>
259 <FuncName>NextLoop</FuncName>
260 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
261 <creation-date>23/10/2003 - 17:46:24</creation-date>
262 <lastmodification-date>23/10/2003 - 17:46:24</lastmodification-date>
263 <editor-release>1.05</editor-release>
265 <container>?</container>
267 <x-position>12</x-position>
268 <y-position>369</y-position> </node>
270 <component-name>?</component-name>
271 <interface-name>?</interface-name>
272 <node-name>EndOfInitLoop_1</node-name>
274 <coupled-node>InitLoop_1</coupled-node>
276 <service-name>EndInitLoop</service-name>
279 <inParameter-type>long</inParameter-type>
280 <inParameter-name>Index</inParameter-name> </inParameter>
282 <inParameter-type>long</inParameter-type>
283 <inParameter-name>Min</inParameter-name> </inParameter>
285 <inParameter-type>long</inParameter-type>
286 <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
289 <outParameter-type>long</outParameter-type>
290 <outParameter-name>Index</outParameter-name> </outParameter>
292 <outParameter-type>long</outParameter-type>
293 <outParameter-name>Min</outParameter-name> </outParameter>
295 <outParameter-type>long</outParameter-type>
296 <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
300 <FuncName>EndInitLoop</FuncName>
301 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
302 <creation-date>23/10/2003 - 17:46:24</creation-date>
303 <lastmodification-date>23/10/2003 - 17:46:24</lastmodification-date>
304 <editor-release>1.05</editor-release>
306 <container>?</container>
308 <x-position>784</x-position>
309 <y-position>361</y-position> </node>
311 <component-name>?</component-name>
312 <interface-name>?</interface-name>
313 <node-name>Switch</node-name>
315 <coupled-node>EndOfSwitch</coupled-node>
317 <service-name>Switch</service-name>
320 <inParameter-type>long</inParameter-type>
321 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
324 <outParameter-type>long</outParameter-type>
325 <outParameter-name>Odd</outParameter-name> </outParameter>
327 <outParameter-type>int</outParameter-type>
328 <outParameter-name>Even</outParameter-name> </outParameter>
330 <outParameter-type>int</outParameter-type>
331 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
335 <FuncName>Switch</FuncName>
336 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
337 <creation-date>23/10/2003 - 17:46:26</creation-date>
338 <lastmodification-date>23/10/2003 - 17:46:26</lastmodification-date>
339 <editor-release>1.05</editor-release>
341 <container>?</container>
343 <x-position>186</x-position>
344 <y-position>130</y-position> </node>
346 <component-name>?</component-name>
347 <interface-name>?</interface-name>
348 <node-name>EndOfSwitch</node-name>
350 <coupled-node>Switch</coupled-node>
352 <service-name>EndSwitch</service-name>
355 <inParameter-type>long</inParameter-type>
356 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
359 <outParameter-type>long</outParameter-type>
360 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
364 <FuncName>EndOfSwitch_1</FuncName>
365 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
366 <creation-date>23/10/2003 - 17:46:26</creation-date>
367 <lastmodification-date>23/10/2003 - 17:46:26</lastmodification-date>
368 <editor-release>1.05</editor-release>
370 <container>?</container>
372 <x-position>587</x-position>
373 <y-position>126</y-position> </node>
375 <component-name>?</component-name>
376 <interface-name>?</interface-name>
377 <node-name>Switch_1</node-name>
379 <coupled-node>EndOfSwitch_1</coupled-node>
381 <service-name>Switch_1</service-name>
384 <inParameter-type>long</inParameter-type>
385 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
388 <outParameter-type>long</outParameter-type>
389 <outParameter-name>Odd</outParameter-name> </outParameter>
391 <outParameter-type>int</outParameter-type>
392 <outParameter-name>Even</outParameter-name> </outParameter>
394 <outParameter-type>int</outParameter-type>
395 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
399 <FuncName>Switch</FuncName>
400 <PyFunc><![CDATA[from time import * ]]></PyFunc>
401 <PyFunc><![CDATA[def Switch(a) : ]]></PyFunc>
402 <PyFunc><![CDATA[ if ( a & 1 ) == 0 : ]]></PyFunc>
403 <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
404 <PyFunc><![CDATA[ return a & 1,1-(a&1),a ]]></PyFunc> </PyFunction> </PyFunction-list>
405 <creation-date>23/10/2003 - 17:46:27</creation-date>
406 <lastmodification-date>23/10/2003 - 17:46:27</lastmodification-date>
407 <editor-release>1.05</editor-release>
409 <container>?</container>
411 <x-position>185</x-position>
412 <y-position>368</y-position> </node>
414 <component-name>?</component-name>
415 <interface-name>?</interface-name>
416 <node-name>EndOfSwitch_1</node-name>
418 <coupled-node>Switch_1</coupled-node>
420 <service-name>EndSwitch</service-name>
423 <inParameter-type>long</inParameter-type>
424 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
427 <outParameter-type>long</outParameter-type>
428 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
432 <FuncName>EndOfSwitch_1</FuncName>
433 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
434 <creation-date>23/10/2003 - 17:46:27</creation-date>
435 <lastmodification-date>23/10/2003 - 17:46:27</lastmodification-date>
436 <editor-release>1.05</editor-release>
438 <container>?</container>
440 <x-position>594</x-position>
441 <y-position>362</y-position> </node> </node-list>
444 <fromnode-name>IsOdd</fromnode-name>
445 <fromserviceparameter-name>a</fromserviceparameter-name>
446 <tonode-name>EndOfSwitch</tonode-name>
447 <toserviceparameter-name>a</toserviceparameter-name>
454 <y>129</y> </coord> </coord-list> </link>
456 <fromnode-name>IsOdd_1</fromnode-name>
457 <fromserviceparameter-name>a</fromserviceparameter-name>
458 <tonode-name>EndOfSwitch_1</tonode-name>
459 <toserviceparameter-name>a</toserviceparameter-name>
466 <y>368</y> </coord> </coord-list> </link>
468 <fromnode-name>InitLoop</fromnode-name>
469 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
470 <tonode-name>EndOfInitLoop</tonode-name>
471 <toserviceparameter-name>DoLoop</toserviceparameter-name>
472 <coord-list/> </link>
474 <fromnode-name>InitLoop</fromnode-name>
475 <fromserviceparameter-name>Index</fromserviceparameter-name>
476 <tonode-name>Switch</tonode-name>
477 <toserviceparameter-name>a</toserviceparameter-name>
478 <coord-list/> </link>
480 <fromnode-name>InitLoop</fromnode-name>
481 <fromserviceparameter-name>Min</fromserviceparameter-name>
482 <tonode-name>EndOfInitLoop</tonode-name>
483 <toserviceparameter-name>Min</toserviceparameter-name>
484 <coord-list/> </link>
486 <fromnode-name>InitLoop</fromnode-name>
487 <fromserviceparameter-name>Max</fromserviceparameter-name>
488 <tonode-name>EndOfInitLoop</tonode-name>
489 <toserviceparameter-name>Max</toserviceparameter-name>
490 <coord-list/> </link>
492 <fromnode-name>EndOfInitLoop</fromnode-name>
493 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
494 <tonode-name>InitLoop</tonode-name>
495 <toserviceparameter-name>InitLoop</toserviceparameter-name>
496 <coord-list/> </link>
498 <fromnode-name>InitLoop_1</fromnode-name>
499 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
500 <tonode-name>EndOfInitLoop_1</tonode-name>
501 <toserviceparameter-name>DoLoop</toserviceparameter-name>
502 <coord-list/> </link>
504 <fromnode-name>InitLoop_1</fromnode-name>
505 <fromserviceparameter-name>Index</fromserviceparameter-name>
506 <tonode-name>Switch_1</tonode-name>
507 <toserviceparameter-name>a</toserviceparameter-name>
508 <coord-list/> </link>
510 <fromnode-name>InitLoop_1</fromnode-name>
511 <fromserviceparameter-name>Min</fromserviceparameter-name>
512 <tonode-name>EndOfInitLoop_1</tonode-name>
513 <toserviceparameter-name>Min</toserviceparameter-name>
514 <coord-list/> </link>
516 <fromnode-name>InitLoop_1</fromnode-name>
517 <fromserviceparameter-name>Max</fromserviceparameter-name>
518 <tonode-name>EndOfInitLoop_1</tonode-name>
519 <toserviceparameter-name>Max</toserviceparameter-name>
520 <coord-list/> </link>
522 <fromnode-name>EndOfInitLoop_1</fromnode-name>
523 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
524 <tonode-name>InitLoop_1</tonode-name>
525 <toserviceparameter-name>InitLoop</toserviceparameter-name>
526 <coord-list/> </link>
528 <fromnode-name>Switch</fromnode-name>
529 <fromserviceparameter-name>Odd</fromserviceparameter-name>
530 <tonode-name>IsOdd</tonode-name>
531 <toserviceparameter-name>InGate</toserviceparameter-name>
532 <coord-list/> </link>
534 <fromnode-name>Switch</fromnode-name>
535 <fromserviceparameter-name>a</fromserviceparameter-name>
536 <tonode-name>IsOdd</tonode-name>
537 <toserviceparameter-name>a</toserviceparameter-name>
544 <y>223</y> </coord> </coord-list> </link>
546 <fromnode-name>Switch</fromnode-name>
547 <fromserviceparameter-name>Default</fromserviceparameter-name>
548 <tonode-name>EndOfSwitch</tonode-name>
549 <toserviceparameter-name>Default</toserviceparameter-name>
556 <y>257</y> </coord> </coord-list> </link>
558 <fromnode-name>EndOfSwitch</fromnode-name>
559 <fromserviceparameter-name>a</fromserviceparameter-name>
560 <tonode-name>EndOfInitLoop</tonode-name>
561 <toserviceparameter-name>Index</toserviceparameter-name>
562 <coord-list/> </link>
564 <fromnode-name>Switch_1</fromnode-name>
565 <fromserviceparameter-name>Odd</fromserviceparameter-name>
566 <tonode-name>IsOdd_1</tonode-name>
567 <toserviceparameter-name>InGate</toserviceparameter-name>
568 <coord-list/> </link>
570 <fromnode-name>Switch_1</fromnode-name>
571 <fromserviceparameter-name>Even</fromserviceparameter-name>
572 <tonode-name>EndOfSwitch_1</tonode-name>
573 <toserviceparameter-name>Default</toserviceparameter-name>
574 <coord-list/> </link>
576 <fromnode-name>Switch_1</fromnode-name>
577 <fromserviceparameter-name>a</fromserviceparameter-name>
578 <tonode-name>IsOdd_1</tonode-name>
579 <toserviceparameter-name>a</toserviceparameter-name>
586 <y>460</y> </coord> </coord-list> </link>
588 <fromnode-name>EndOfSwitch_1</fromnode-name>
589 <fromserviceparameter-name>a</fromserviceparameter-name>
590 <tonode-name>EndOfInitLoop_1</tonode-name>
591 <toserviceparameter-name>Index</toserviceparameter-name>
592 <coord-list/> </link> </link-list>
595 <fromnode-name>GraphPyFunctions</fromnode-name>
596 <fromserviceparameter-name>InitLoop\Index</fromserviceparameter-name>
597 <tonode-name>InitLoop</tonode-name>
598 <toserviceparameter-name>Index</toserviceparameter-name>
600 <value-type>3</value-type>
601 <value>0</value> </data-value>
602 <coord-list/> </data>
604 <fromnode-name>GraphPyFunctions</fromnode-name>
605 <fromserviceparameter-name>InitLoop\Min</fromserviceparameter-name>
606 <tonode-name>InitLoop</tonode-name>
607 <toserviceparameter-name>Min</toserviceparameter-name>
609 <value-type>3</value-type>
610 <value>0</value> </data-value>
611 <coord-list/> </data>
613 <fromnode-name>GraphPyFunctions</fromnode-name>
614 <fromserviceparameter-name>InitLoop\Max</fromserviceparameter-name>
615 <tonode-name>InitLoop</tonode-name>
616 <toserviceparameter-name>Max</toserviceparameter-name>
618 <value-type>3</value-type>
619 <value>100</value> </data-value>
620 <coord-list/> </data>
622 <fromnode-name>GraphPyFunctions</fromnode-name>
623 <fromserviceparameter-name>InitLoop_1\Index</fromserviceparameter-name>
624 <tonode-name>InitLoop_1</tonode-name>
625 <toserviceparameter-name>Index</toserviceparameter-name>
627 <value-type>3</value-type>
628 <value>0</value> </data-value>
629 <coord-list/> </data>
631 <fromnode-name>GraphPyFunctions</fromnode-name>
632 <fromserviceparameter-name>InitLoop_1\Min</fromserviceparameter-name>
633 <tonode-name>InitLoop_1</tonode-name>
634 <toserviceparameter-name>Min</toserviceparameter-name>
636 <value-type>3</value-type>
637 <value>0</value> </data-value>
638 <coord-list/> </data>
640 <fromnode-name>GraphPyFunctions</fromnode-name>
641 <fromserviceparameter-name>InitLoop_1\Max</fromserviceparameter-name>
642 <tonode-name>InitLoop_1</tonode-name>
643 <toserviceparameter-name>Max</toserviceparameter-name>
645 <value-type>3</value-type>
646 <value>100</value> </data-value>
647 <coord-list/> </data> </data-list></dataflow>