6 <component-name>?</component-name>
7 <interface-name>?</interface-name>
8 <node-name>GraphSwitch_1_1_2</node-name>
10 <coupled-node>?</coupled-node>
12 <service-name>GraphSwitch_1_1_2</service-name>
15 <inParameter-type>long</inParameter-type>
16 <inParameter-name>InitLoopSwitch__Index</inParameter-name> </inParameter>
18 <inParameter-type>long</inParameter-type>
19 <inParameter-name>InitLoopSwitch__Min</inParameter-name> </inParameter>
21 <inParameter-type>long</inParameter-type>
22 <inParameter-name>InitLoopSwitch__Max</inParameter-name> </inParameter> </inParameter-list>
25 <outParameter-type>long</outParameter-type>
26 <outParameter-name>EndOfInitLoopSwitch__Index</outParameter-name> </outParameter>
28 <outParameter-type>long</outParameter-type>
29 <outParameter-name>EndOfInitLoopSwitch__Min</outParameter-name> </outParameter>
31 <outParameter-type>long</outParameter-type>
32 <outParameter-name>EndOfInitLoopSwitch__Max</outParameter-name> </outParameter>
34 <outParameter-type>boolean</outParameter-type>
35 <outParameter-name>Switch__default</outParameter-name> </outParameter>
37 <outParameter-type>string</outParameter-type>
38 <outParameter-name>Print__Branch</outParameter-name> </outParameter>
40 <outParameter-type>string</outParameter-type>
41 <outParameter-name>Print_1__Branch</outParameter-name> </outParameter> </outParameter-list> </service>
44 <creation-date>1/10/2003 - 17:23:54</creation-date>
45 <lastmodification-date>20/1/2005 - 13:2:4</lastmodification-date>
46 <editor-release>1.05</editor-release>
48 <container>?</container>
50 <x-position>0</x-position>
51 <y-position>0</y-position> </node> </info-list>
54 <component-name>?</component-name>
55 <interface-name>?</interface-name>
56 <node-name>IsOdd</node-name>
58 <coupled-node>?</coupled-node>
60 <service-name>IsOdd</service-name>
63 <inParameter-type>long</inParameter-type>
64 <inParameter-name>a</inParameter-name> </inParameter>
66 <inParameter-type>string</inParameter-type>
67 <inParameter-name>Branch</inParameter-name> </inParameter> </inParameter-list>
70 <outParameter-type>long</outParameter-type>
71 <outParameter-name>a</outParameter-name> </outParameter>
73 <outParameter-type>string</outParameter-type>
74 <outParameter-name>Branch</outParameter-name> </outParameter> </outParameter-list> </service>
78 <FuncName>IsOdd</FuncName>
79 <PyFunc><![CDATA[from time import * ]]></PyFunc>
80 <PyFunc><![CDATA[def IsOdd(a,Branch) : ]]></PyFunc>
81 <PyFunc><![CDATA[ print a,"IsOdd (GraphSwitch)" ]]></PyFunc>
82 <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
83 <PyFunc><![CDATA[ return a,Branch ]]></PyFunc> </PyFunction> </PyFunction-list>
84 <creation-date>20/1/2005 - 13:0:10</creation-date>
85 <lastmodification-date>20/1/2005 - 13:0:10</lastmodification-date>
86 <editor-release>1.05</editor-release>
88 <container>?</container>
89 <comment>Python function</comment>
90 <x-position>388</x-position>
91 <y-position>50</y-position> </node>
93 <component-name>?</component-name>
94 <interface-name>?</interface-name>
95 <node-name>InitLoopSwitch</node-name>
97 <coupled-node>EndOfInitLoopSwitch</coupled-node>
99 <service-name>InitLoopSwitch</service-name>
102 <inParameter-type>long</inParameter-type>
103 <inParameter-name>Index</inParameter-name> </inParameter>
105 <inParameter-type>long</inParameter-type>
106 <inParameter-name>Min</inParameter-name> </inParameter>
108 <inParameter-type>long</inParameter-type>
109 <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
112 <outParameter-type>long</outParameter-type>
113 <outParameter-name>Index</outParameter-name> </outParameter>
115 <outParameter-type>long</outParameter-type>
116 <outParameter-name>Min</outParameter-name> </outParameter>
118 <outParameter-type>long</outParameter-type>
119 <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
123 <FuncName>InitLoop</FuncName>
124 <PyFunc><![CDATA[def InitLoop(Index,Min,Max) : ]]></PyFunc>
125 <PyFunc><![CDATA[ Index = Max ]]></PyFunc>
126 <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction>
128 <FuncName>MoreLoop</FuncName>
129 <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) : ]]></PyFunc>
130 <PyFunc><![CDATA[ if Index >= Min : ]]></PyFunc>
131 <PyFunc><![CDATA[ DoLoop = 1 ]]></PyFunc>
132 <PyFunc><![CDATA[ else : ]]></PyFunc>
133 <PyFunc><![CDATA[ DoLoop = 0 ]]></PyFunc>
134 <PyFunc><![CDATA[ return DoLoop,Index,Min,Max ]]></PyFunc> </PyFunction>
136 <FuncName>NextLoop</FuncName>
137 <PyFunc><![CDATA[def NextLoop(Index,Min,Max) : ]]></PyFunc>
138 <PyFunc><![CDATA[ Index = Index - 1 ]]></PyFunc>
139 <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction> </PyFunction-list>
140 <creation-date>20/1/2005 - 13:0:10</creation-date>
141 <lastmodification-date>20/1/2005 - 13:0:10</lastmodification-date>
142 <editor-release>1.05</editor-release>
144 <container>?</container>
145 <comment>Compute Node</comment>
146 <x-position>10</x-position>
147 <y-position>129</y-position> </node>
149 <component-name>?</component-name>
150 <interface-name>?</interface-name>
151 <node-name>EndOfInitLoopSwitch</node-name>
153 <coupled-node>InitLoopSwitch</coupled-node>
155 <service-name>EndOfInitLoopSwitch</service-name>
158 <inParameter-type>long</inParameter-type>
159 <inParameter-name>Index</inParameter-name> </inParameter>
161 <inParameter-type>long</inParameter-type>
162 <inParameter-name>Min</inParameter-name> </inParameter>
164 <inParameter-type>long</inParameter-type>
165 <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
168 <outParameter-type>long</outParameter-type>
169 <outParameter-name>Index</outParameter-name> </outParameter>
171 <outParameter-type>long</outParameter-type>
172 <outParameter-name>Min</outParameter-name> </outParameter>
174 <outParameter-type>long</outParameter-type>
175 <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
179 <FuncName>?</FuncName>
180 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
181 <creation-date>20/1/2005 - 13:0:10</creation-date>
182 <lastmodification-date>20/1/2005 - 13:0:10</lastmodification-date>
183 <editor-release>1.05</editor-release>
185 <container>?</container>
186 <comment>Compute Node</comment>
187 <x-position>1082</x-position>
188 <y-position>150</y-position> </node>
190 <component-name>?</component-name>
191 <interface-name>?</interface-name>
192 <node-name>IsEven</node-name>
194 <coupled-node>?</coupled-node>
196 <service-name>IsEven</service-name>
199 <inParameter-type>long</inParameter-type>
200 <inParameter-name>a</inParameter-name> </inParameter>
202 <inParameter-type>string</inParameter-type>
203 <inParameter-name>Branch</inParameter-name> </inParameter> </inParameter-list>
206 <outParameter-type>long</outParameter-type>
207 <outParameter-name>a</outParameter-name> </outParameter>
209 <outParameter-type>string</outParameter-type>
210 <outParameter-name>Branch</outParameter-name> </outParameter> </outParameter-list> </service>
214 <FuncName>IsEven</FuncName>
215 <PyFunc><![CDATA[from time import * ]]></PyFunc>
216 <PyFunc><![CDATA[def IsEven(a,Branch) : ]]></PyFunc>
217 <PyFunc><![CDATA[ print a,"IsEven (GraphSwitch)" ]]></PyFunc>
218 <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
219 <PyFunc><![CDATA[ return a,Branch ]]></PyFunc> </PyFunction> </PyFunction-list>
220 <creation-date>20/1/2005 - 13:0:10</creation-date>
221 <lastmodification-date>20/1/2005 - 13:0:10</lastmodification-date>
222 <editor-release>2.0</editor-release>
224 <container>?</container>
225 <comment>Compute Node</comment>
226 <x-position>395</x-position>
227 <y-position>334</y-position> </node>
229 <component-name>?</component-name>
230 <interface-name>?</interface-name>
231 <node-name>Switch</node-name>
233 <coupled-node>EndOfSwitch</coupled-node>
235 <service-name>Switch</service-name>
238 <inParameter-type>long</inParameter-type>
239 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
242 <outParameter-type>long</outParameter-type>
243 <outParameter-name>Odd</outParameter-name> </outParameter>
245 <outParameter-type>int</outParameter-type>
246 <outParameter-name>Even</outParameter-name> </outParameter>
248 <outParameter-type>int</outParameter-type>
249 <outParameter-name>a</outParameter-name> </outParameter>
251 <outParameter-type>string</outParameter-type>
252 <outParameter-name>Branch</outParameter-name> </outParameter>
254 <outParameter-type>boolean</outParameter-type>
255 <outParameter-name>default</outParameter-name> </outParameter> </outParameter-list> </service>
259 <FuncName>Switch</FuncName>
260 <PyFunc><![CDATA[from time import * ]]></PyFunc>
261 <PyFunc><![CDATA[def Switch(a) : ]]></PyFunc>
262 <PyFunc><![CDATA[ Branch = 'Negative or null' ]]></PyFunc>
263 <PyFunc><![CDATA[ if a <= 0 : ]]></PyFunc>
264 <PyFunc><![CDATA[ return 0,0,a,Branch,1 ]]></PyFunc>
265 <PyFunc><![CDATA[ if ( a & 1 ) == 0 : ]]></PyFunc>
266 <PyFunc><![CDATA[ Branch = 'Even' ]]></PyFunc>
267 <PyFunc><![CDATA[ else : ]]></PyFunc>
268 <PyFunc><![CDATA[ Branch = 'Odd' ]]></PyFunc>
269 <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
270 <PyFunc><![CDATA[ return a & 1,1-(a&1),a,Branch,0 ]]></PyFunc> </PyFunction> </PyFunction-list>
271 <creation-date>20/1/2005 - 13:0:10</creation-date>
272 <lastmodification-date>20/1/2005 - 13:0:10</lastmodification-date>
273 <editor-release>2.0</editor-release>
275 <container>?</container>
276 <comment>Compute Node</comment>
277 <x-position>195</x-position>
278 <y-position>129</y-position> </node>
280 <component-name>?</component-name>
281 <interface-name>?</interface-name>
282 <node-name>EndOfSwitch</node-name>
284 <coupled-node>Switch</coupled-node>
286 <service-name>EndOfSwitch</service-name>
289 <inParameter-type>long</inParameter-type>
290 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
293 <outParameter-type>long</outParameter-type>
294 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
298 <FuncName>EndSwitch_1</FuncName>
299 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
300 <creation-date>20/1/2005 - 13:0:10</creation-date>
301 <lastmodification-date>20/1/2005 - 13:0:10</lastmodification-date>
302 <editor-release>2.0</editor-release>
304 <container>?</container>
305 <comment>Compute Node</comment>
306 <x-position>880</x-position>
307 <y-position>150</y-position> </node>
309 <component-name>?</component-name>
310 <interface-name>?</interface-name>
311 <node-name>Print</node-name>
313 <coupled-node>?</coupled-node>
315 <service-name>Print</service-name>
318 <inParameter-type>long</inParameter-type>
319 <inParameter-name>a</inParameter-name> </inParameter>
321 <inParameter-type>string</inParameter-type>
322 <inParameter-name>Branch</inParameter-name> </inParameter> </inParameter-list>
325 <outParameter-type>long</outParameter-type>
326 <outParameter-name>a</outParameter-name> </outParameter>
328 <outParameter-type>string</outParameter-type>
329 <outParameter-name>Branch</outParameter-name> </outParameter> </outParameter-list> </service>
333 <FuncName>Print</FuncName>
334 <PyFunc><![CDATA[def Print(a,Branch) : ]]></PyFunc>
335 <PyFunc><![CDATA[ print "Print ",Branch ]]></PyFunc>
336 <PyFunc><![CDATA[ return a,Branch ]]></PyFunc> </PyFunction> </PyFunction-list>
337 <creation-date>20/1/2005 - 13:0:10</creation-date>
338 <lastmodification-date>20/1/2005 - 13:0:10</lastmodification-date>
339 <editor-release>2.0</editor-release>
341 <container>?</container>
342 <comment>Compute Node</comment>
343 <x-position>639</x-position>
344 <y-position>63</y-position> </node>
346 <component-name>?</component-name>
347 <interface-name>?</interface-name>
348 <node-name>Print_1</node-name>
350 <coupled-node>?</coupled-node>
352 <service-name>Print_1</service-name>
355 <inParameter-type>long</inParameter-type>
356 <inParameter-name>a</inParameter-name> </inParameter>
358 <inParameter-type>string</inParameter-type>
359 <inParameter-name>Branch</inParameter-name> </inParameter> </inParameter-list>
362 <outParameter-type>long</outParameter-type>
363 <outParameter-name>a</outParameter-name> </outParameter>
365 <outParameter-type>string</outParameter-type>
366 <outParameter-name>Branch</outParameter-name> </outParameter> </outParameter-list> </service>
370 <FuncName>Print_1</FuncName>
371 <PyFunc><![CDATA[def Print_1(a,Branch) : ]]></PyFunc>
372 <PyFunc><![CDATA[ print "Print ",Branch ]]></PyFunc>
373 <PyFunc><![CDATA[ return a,Branch ]]></PyFunc> </PyFunction> </PyFunction-list>
374 <creation-date>20/1/2005 - 13:0:10</creation-date>
375 <lastmodification-date>20/1/2005 - 13:0:10</lastmodification-date>
376 <editor-release>2.0</editor-release>
378 <container>?</container>
379 <comment>Compute Node</comment>
380 <x-position>639</x-position>
381 <y-position>263</y-position> </node> </node-list>
384 <fromnode-name>IsOdd</fromnode-name>
385 <fromserviceparameter-name>a</fromserviceparameter-name>
386 <tonode-name>Print</tonode-name>
387 <toserviceparameter-name>a</toserviceparameter-name>
388 <coord-list/> </link>
390 <fromnode-name>IsOdd</fromnode-name>
391 <fromserviceparameter-name>Branch</fromserviceparameter-name>
392 <tonode-name>Print</tonode-name>
393 <toserviceparameter-name>Branch</toserviceparameter-name>
394 <coord-list/> </link>
396 <fromnode-name>InitLoopSwitch</fromnode-name>
397 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
398 <tonode-name>EndOfInitLoopSwitch</tonode-name>
399 <toserviceparameter-name>DoLoop</toserviceparameter-name>
400 <coord-list/> </link>
402 <fromnode-name>InitLoopSwitch</fromnode-name>
403 <fromserviceparameter-name>Index</fromserviceparameter-name>
404 <tonode-name>Switch</tonode-name>
405 <toserviceparameter-name>a</toserviceparameter-name>
406 <coord-list/> </link>
408 <fromnode-name>InitLoopSwitch</fromnode-name>
409 <fromserviceparameter-name>Min</fromserviceparameter-name>
410 <tonode-name>EndOfInitLoopSwitch</tonode-name>
411 <toserviceparameter-name>Min</toserviceparameter-name>
412 <coord-list/> </link>
414 <fromnode-name>InitLoopSwitch</fromnode-name>
415 <fromserviceparameter-name>Max</fromserviceparameter-name>
416 <tonode-name>EndOfInitLoopSwitch</tonode-name>
417 <toserviceparameter-name>Max</toserviceparameter-name>
418 <coord-list/> </link>
420 <fromnode-name>EndOfInitLoopSwitch</fromnode-name>
421 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
422 <tonode-name>InitLoopSwitch</tonode-name>
423 <toserviceparameter-name>DoLoop</toserviceparameter-name>
424 <coord-list/> </link>
426 <fromnode-name>IsEven</fromnode-name>
427 <fromserviceparameter-name>a</fromserviceparameter-name>
428 <tonode-name>Print_1</tonode-name>
429 <toserviceparameter-name>a</toserviceparameter-name>
430 <coord-list/> </link>
432 <fromnode-name>IsEven</fromnode-name>
433 <fromserviceparameter-name>Branch</fromserviceparameter-name>
434 <tonode-name>Print_1</tonode-name>
435 <toserviceparameter-name>Branch</toserviceparameter-name>
436 <coord-list/> </link>
438 <fromnode-name>Switch</fromnode-name>
439 <fromserviceparameter-name>Odd</fromserviceparameter-name>
440 <tonode-name>IsOdd</tonode-name>
441 <toserviceparameter-name>Gate</toserviceparameter-name>
442 <coord-list/> </link>
444 <fromnode-name>Switch</fromnode-name>
445 <fromserviceparameter-name>Even</fromserviceparameter-name>
446 <tonode-name>IsEven</tonode-name>
447 <toserviceparameter-name>Gate</toserviceparameter-name>
448 <coord-list/> </link>
450 <fromnode-name>Switch</fromnode-name>
451 <fromserviceparameter-name>a</fromserviceparameter-name>
452 <tonode-name>IsOdd</tonode-name>
453 <toserviceparameter-name>a</toserviceparameter-name>
454 <coord-list/> </link>
456 <fromnode-name>Switch</fromnode-name>
457 <fromserviceparameter-name>a</fromserviceparameter-name>
458 <tonode-name>IsEven</tonode-name>
459 <toserviceparameter-name>a</toserviceparameter-name>
460 <coord-list/> </link>
462 <fromnode-name>Switch</fromnode-name>
463 <fromserviceparameter-name>Branch</fromserviceparameter-name>
464 <tonode-name>IsOdd</tonode-name>
465 <toserviceparameter-name>Branch</toserviceparameter-name>
466 <coord-list/> </link>
468 <fromnode-name>Switch</fromnode-name>
469 <fromserviceparameter-name>Branch</fromserviceparameter-name>
470 <tonode-name>IsEven</tonode-name>
471 <toserviceparameter-name>Branch</toserviceparameter-name>
472 <coord-list/> </link>
474 <fromnode-name>Switch</fromnode-name>
475 <fromserviceparameter-name>Default</fromserviceparameter-name>
476 <tonode-name>EndOfSwitch</tonode-name>
477 <toserviceparameter-name>Default</toserviceparameter-name>
478 <coord-list/> </link>
480 <fromnode-name>EndOfSwitch</fromnode-name>
481 <fromserviceparameter-name>a</fromserviceparameter-name>
482 <tonode-name>EndOfInitLoopSwitch</tonode-name>
483 <toserviceparameter-name>Index</toserviceparameter-name>
484 <coord-list/> </link>
486 <fromnode-name>Print</fromnode-name>
487 <fromserviceparameter-name>a</fromserviceparameter-name>
488 <tonode-name>EndOfSwitch</tonode-name>
489 <toserviceparameter-name>a</toserviceparameter-name>
490 <coord-list/> </link>
492 <fromnode-name>Print_1</fromnode-name>
493 <fromserviceparameter-name>a</fromserviceparameter-name>
494 <tonode-name>EndOfSwitch</tonode-name>
495 <toserviceparameter-name>a</toserviceparameter-name>
496 <coord-list/> </link> </link-list>
499 <fromnode-name>GraphSwitch_1_1_2</fromnode-name>
500 <fromserviceparameter-name>InitLoopSwitch__Index</fromserviceparameter-name>
501 <tonode-name>InitLoopSwitch</tonode-name>
502 <toserviceparameter-name>Index</toserviceparameter-name>
504 <value-type>3</value-type>
505 <value>0</value> </data-value>
506 <coord-list/> </data>
508 <fromnode-name>GraphSwitch_1_1_2</fromnode-name>
509 <fromserviceparameter-name>InitLoopSwitch__Min</fromserviceparameter-name>
510 <tonode-name>InitLoopSwitch</tonode-name>
511 <toserviceparameter-name>Min</toserviceparameter-name>
513 <value-type>3</value-type>
514 <value>-5</value> </data-value>
515 <coord-list/> </data>
517 <fromnode-name>GraphSwitch_1_1_2</fromnode-name>
518 <fromserviceparameter-name>InitLoopSwitch__Max</fromserviceparameter-name>
519 <tonode-name>InitLoopSwitch</tonode-name>
520 <toserviceparameter-name>Max</toserviceparameter-name>
522 <value-type>3</value-type>
523 <value>10</value> </data-value>
524 <coord-list/> </data> </data-list> </dataflow></supergraph>