6 <component-name>?</component-name>
7 <interface-name>?</interface-name>
8 <node-name>GraphEditSwitchs</node-name>
10 <coupled-node>?</coupled-node>
12 <service-name>GraphEditSwitchs</service-name>
15 <inParameter-type>long</inParameter-type>
16 <inParameter-name>InitLoop__Index</inParameter-name> </inParameter>
18 <inParameter-type>long</inParameter-type>
19 <inParameter-name>InitLoop__Min</inParameter-name> </inParameter>
21 <inParameter-type>long</inParameter-type>
22 <inParameter-name>InitLoop__Max</inParameter-name> </inParameter> </inParameter-list>
25 <outParameter-type>long</outParameter-type>
26 <outParameter-name>EndOfInitLoop__Index</outParameter-name> </outParameter>
28 <outParameter-type>long</outParameter-type>
29 <outParameter-name>EndOfInitLoop__Min</outParameter-name> </outParameter>
31 <outParameter-type>long</outParameter-type>
32 <outParameter-name>EndOfInitLoop__Max</outParameter-name> </outParameter>
34 <outParameter-type>int</outParameter-type>
35 <outParameter-name>Switch__Even</outParameter-name> </outParameter>
37 <outParameter-type>long</outParameter-type>
38 <outParameter-name>EndSwitch__a</outParameter-name> </outParameter> </outParameter-list> </service>
41 <creation-date>3/2/2005 - 16:14:10</creation-date>
42 <lastmodification-date>3/2/2005 - 16:14:12</lastmodification-date>
43 <editor-release>2.0</editor-release>
45 <container>?</container>
47 <x-position>0</x-position>
48 <y-position>0</y-position> </node> </info-list>
51 <component-name>?</component-name>
52 <interface-name>?</interface-name>
53 <node-name>IsOdd</node-name>
55 <coupled-node>?</coupled-node>
57 <service-name>IsOdd</service-name>
60 <inParameter-type>long</inParameter-type>
61 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
64 <outParameter-type>long</outParameter-type>
65 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
69 <FuncName>IsOdd</FuncName>
70 <PyFunc><![CDATA[from time import * ]]></PyFunc>
71 <PyFunc><![CDATA[def IsOdd(a) : ]]></PyFunc>
72 <PyFunc><![CDATA[ print a,"IsOdd (GraphSwitchs)" ]]></PyFunc>
73 <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
74 <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
75 <creation-date>3/2/2005 - 16:14:10</creation-date>
76 <lastmodification-date>3/2/2005 - 16:14:10</lastmodification-date>
77 <editor-release>2.0</editor-release>
79 <container>?</container>
80 <comment>Python function</comment>
81 <x-position>388</x-position>
82 <y-position>50</y-position> </node>
84 <component-name>?</component-name>
85 <interface-name>?</interface-name>
86 <node-name>IsOdd_1</node-name>
88 <coupled-node>?</coupled-node>
90 <service-name>IsOdd_1</service-name>
93 <inParameter-type>long</inParameter-type>
94 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
97 <outParameter-type>long</outParameter-type>
98 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
102 <FuncName>IsOdd</FuncName>
103 <PyFunc><![CDATA[from time import * ]]></PyFunc>
104 <PyFunc><![CDATA[def IsOdd(a) : ]]></PyFunc>
105 <PyFunc><![CDATA[ print a,"IsOdd_1 (GraphSwitchs)" ]]></PyFunc>
106 <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
107 <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
108 <creation-date>3/2/2005 - 16:14:10</creation-date>
109 <lastmodification-date>3/2/2005 - 16:14:10</lastmodification-date>
110 <editor-release>2.0</editor-release>
112 <container>?</container>
113 <comment>Python function</comment>
114 <x-position>419</x-position>
115 <y-position>308</y-position> </node>
117 <component-name>?</component-name>
118 <interface-name>?</interface-name>
119 <node-name>InitLoop</node-name>
121 <coupled-node>EndOfInitLoop</coupled-node>
123 <service-name>InitLoop</service-name>
126 <inParameter-type>long</inParameter-type>
127 <inParameter-name>Index</inParameter-name> </inParameter>
129 <inParameter-type>long</inParameter-type>
130 <inParameter-name>Min</inParameter-name> </inParameter>
132 <inParameter-type>long</inParameter-type>
133 <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
136 <outParameter-type>long</outParameter-type>
137 <outParameter-name>Index</outParameter-name> </outParameter>
139 <outParameter-type>long</outParameter-type>
140 <outParameter-name>Min</outParameter-name> </outParameter>
142 <outParameter-type>long</outParameter-type>
143 <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
147 <FuncName>InitLoop</FuncName>
148 <PyFunc><![CDATA[def InitLoop(Index,Min,Max) : ]]></PyFunc>
149 <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction>
151 <FuncName>MoreLoop</FuncName>
152 <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) : ]]></PyFunc>
153 <PyFunc><![CDATA[ if Index <= Max : ]]></PyFunc>
154 <PyFunc><![CDATA[ DoLoop = 1 ]]></PyFunc>
155 <PyFunc><![CDATA[ else : ]]></PyFunc>
156 <PyFunc><![CDATA[ DoLoop = 0 ]]></PyFunc>
157 <PyFunc><![CDATA[ return DoLoop,Index,Min,Max ]]></PyFunc> </PyFunction>
159 <FuncName>NextLoop</FuncName>
160 <PyFunc><![CDATA[def NextLoop(Index,Min,Max) : ]]></PyFunc>
161 <PyFunc><![CDATA[ Index = Index + 1 ]]></PyFunc>
162 <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction> </PyFunction-list>
163 <creation-date>3/2/2005 - 16:14:10</creation-date>
164 <lastmodification-date>3/2/2005 - 16:14:10</lastmodification-date>
165 <editor-release>2.0</editor-release>
167 <container>?</container>
168 <comment>Compute Node</comment>
169 <x-position>10</x-position>
170 <y-position>388</y-position> </node>
172 <component-name>?</component-name>
173 <interface-name>?</interface-name>
174 <node-name>EndOfInitLoop</node-name>
176 <coupled-node>InitLoop</coupled-node>
178 <service-name>EndInitLoop</service-name>
181 <inParameter-type>long</inParameter-type>
182 <inParameter-name>Index</inParameter-name> </inParameter>
184 <inParameter-type>long</inParameter-type>
185 <inParameter-name>Min</inParameter-name> </inParameter>
187 <inParameter-type>long</inParameter-type>
188 <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
191 <outParameter-type>long</outParameter-type>
192 <outParameter-name>Index</outParameter-name> </outParameter>
194 <outParameter-type>long</outParameter-type>
195 <outParameter-name>Min</outParameter-name> </outParameter>
197 <outParameter-type>long</outParameter-type>
198 <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
202 <FuncName>?</FuncName>
203 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
204 <creation-date>3/2/2005 - 16:14:10</creation-date>
205 <lastmodification-date>3/2/2005 - 16:14:10</lastmodification-date>
206 <editor-release>2.0</editor-release>
208 <container>?</container>
209 <comment>Compute Node</comment>
210 <x-position>783</x-position>
211 <y-position>381</y-position> </node>
213 <component-name>?</component-name>
214 <interface-name>?</interface-name>
215 <node-name>Switch</node-name>
217 <coupled-node>EndOfSwitch</coupled-node>
219 <service-name>Switch</service-name>
222 <inParameter-type>long</inParameter-type>
223 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
226 <outParameter-type>long</outParameter-type>
227 <outParameter-name>Odd</outParameter-name> </outParameter>
229 <outParameter-type>int</outParameter-type>
230 <outParameter-name>Even</outParameter-name> </outParameter>
232 <outParameter-type>int</outParameter-type>
233 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
237 <FuncName>Switch</FuncName>
238 <PyFunc><![CDATA[from time import * ]]></PyFunc>
239 <PyFunc><![CDATA[def Switch(a) : ]]></PyFunc>
240 <PyFunc><![CDATA[ if ( a & 1 ) == 0 : ]]></PyFunc>
241 <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
242 <PyFunc><![CDATA[ return a & 1,1-(a&1),a ]]></PyFunc> </PyFunction> </PyFunction-list>
243 <creation-date>3/2/2005 - 16:14:10</creation-date>
244 <lastmodification-date>3/2/2005 - 16:14:10</lastmodification-date>
245 <editor-release>2.0</editor-release>
247 <container>?</container>
248 <comment>Compute Node</comment>
249 <x-position>186</x-position>
250 <y-position>130</y-position> </node>
252 <component-name>?</component-name>
253 <interface-name>?</interface-name>
254 <node-name>EndOfSwitch</node-name>
256 <coupled-node>Switch</coupled-node>
258 <service-name>EndSwitch</service-name>
261 <inParameter-type>long</inParameter-type>
262 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
265 <outParameter-type>long</outParameter-type>
266 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
270 <FuncName>?</FuncName>
271 <PyFunc><![CDATA[?]]></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>
276 <container>?</container>
277 <comment>Compute Node</comment>
278 <x-position>587</x-position>
279 <y-position>126</y-position> </node>
281 <component-name>?</component-name>
282 <interface-name>?</interface-name>
283 <node-name>Switch_1</node-name>
285 <coupled-node>EndSwitch</coupled-node>
287 <service-name>Switch_1</service-name>
290 <inParameter-type>long</inParameter-type>
291 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
294 <outParameter-type>long</outParameter-type>
295 <outParameter-name>Odd</outParameter-name> </outParameter>
297 <outParameter-type>int</outParameter-type>
298 <outParameter-name>Even</outParameter-name> </outParameter>
300 <outParameter-type>int</outParameter-type>
301 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
305 <FuncName>Switch</FuncName>
306 <PyFunc><![CDATA[from time import * ]]></PyFunc>
307 <PyFunc><![CDATA[def Switch(a) : ]]></PyFunc>
308 <PyFunc><![CDATA[ if ( a & 1 ) == 0 : ]]></PyFunc>
309 <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
310 <PyFunc><![CDATA[ return a & 1,1-(a&1),a ]]></PyFunc> </PyFunction> </PyFunction-list>
311 <creation-date>3/2/2005 - 16:14:11</creation-date>
312 <lastmodification-date>3/2/2005 - 16:14:11</lastmodification-date>
313 <editor-release>2.0</editor-release>
315 <container>?</container>
316 <comment>Compute Node</comment>
317 <x-position>193</x-position>
318 <y-position>388</y-position> </node>
320 <component-name>?</component-name>
321 <interface-name>?</interface-name>
322 <node-name>EndSwitch</node-name>
324 <coupled-node>Switch_1</coupled-node>
326 <service-name>EndSwitch</service-name>
329 <inParameter-type>long</inParameter-type>
330 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
333 <outParameter-type>long</outParameter-type>
334 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
338 <FuncName>?</FuncName>
339 <PyFunc><![CDATA[?]]></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>
344 <container>?</container>
345 <comment>Compute Node</comment>
346 <x-position>605</x-position>
347 <y-position>382</y-position> </node> </node-list>
350 <fromnode-name>IsOdd</fromnode-name>
351 <fromserviceparameter-name>a</fromserviceparameter-name>
352 <tonode-name>EndOfSwitch</tonode-name>
353 <toserviceparameter-name>a</toserviceparameter-name>
360 <y>130</y> </coord> </coord-list> </link>
362 <fromnode-name>IsOdd_1</fromnode-name>
363 <fromserviceparameter-name>a</fromserviceparameter-name>
364 <tonode-name>EndSwitch</tonode-name>
365 <toserviceparameter-name>a</toserviceparameter-name>
372 <y>389</y> </coord> </coord-list> </link>
374 <fromnode-name>InitLoop</fromnode-name>
375 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
376 <tonode-name>EndOfInitLoop</tonode-name>
377 <toserviceparameter-name>DoLoop</toserviceparameter-name>
378 <coord-list/> </link>
380 <fromnode-name>InitLoop</fromnode-name>
381 <fromserviceparameter-name>Index</fromserviceparameter-name>
382 <tonode-name>Switch_1</tonode-name>
383 <toserviceparameter-name>a</toserviceparameter-name>
384 <coord-list/> </link>
386 <fromnode-name>InitLoop</fromnode-name>
387 <fromserviceparameter-name>Index</fromserviceparameter-name>
388 <tonode-name>Switch</tonode-name>
389 <toserviceparameter-name>a</toserviceparameter-name>
390 <coord-list/> </link>
392 <fromnode-name>InitLoop</fromnode-name>
393 <fromserviceparameter-name>Min</fromserviceparameter-name>
394 <tonode-name>EndOfInitLoop</tonode-name>
395 <toserviceparameter-name>Min</toserviceparameter-name>
396 <coord-list/> </link>
398 <fromnode-name>InitLoop</fromnode-name>
399 <fromserviceparameter-name>Max</fromserviceparameter-name>
400 <tonode-name>EndOfInitLoop</tonode-name>
401 <toserviceparameter-name>Max</toserviceparameter-name>
402 <coord-list/> </link>
404 <fromnode-name>EndOfInitLoop</fromnode-name>
405 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
406 <tonode-name>InitLoop</tonode-name>
407 <toserviceparameter-name>DoLoop</toserviceparameter-name>
408 <coord-list/> </link>
410 <fromnode-name>Switch</fromnode-name>
411 <fromserviceparameter-name>Odd</fromserviceparameter-name>
412 <tonode-name>IsOdd</tonode-name>
413 <toserviceparameter-name>Gate</toserviceparameter-name>
414 <coord-list/> </link>
416 <fromnode-name>Switch</fromnode-name>
417 <fromserviceparameter-name>a</fromserviceparameter-name>
418 <tonode-name>IsOdd</tonode-name>
419 <toserviceparameter-name>a</toserviceparameter-name>
426 <y>222</y> </coord> </coord-list> </link>
428 <fromnode-name>Switch</fromnode-name>
429 <fromserviceparameter-name>Default</fromserviceparameter-name>
430 <tonode-name>EndOfSwitch</tonode-name>
431 <toserviceparameter-name>Default</toserviceparameter-name>
438 <y>257</y> </coord> </coord-list> </link>
440 <fromnode-name>EndOfSwitch</fromnode-name>
441 <fromserviceparameter-name>a</fromserviceparameter-name>
442 <tonode-name>EndOfInitLoop</tonode-name>
443 <toserviceparameter-name>Index</toserviceparameter-name>
444 <coord-list/> </link>
446 <fromnode-name>Switch_1</fromnode-name>
447 <fromserviceparameter-name>Odd</fromserviceparameter-name>
448 <tonode-name>IsOdd_1</tonode-name>
449 <toserviceparameter-name>Gate</toserviceparameter-name>
450 <coord-list/> </link>
452 <fromnode-name>Switch_1</fromnode-name>
453 <fromserviceparameter-name>Even</fromserviceparameter-name>
454 <tonode-name>EndSwitch</tonode-name>
455 <toserviceparameter-name>Default</toserviceparameter-name>
456 <coord-list/> </link>
458 <fromnode-name>Switch_1</fromnode-name>
459 <fromserviceparameter-name>a</fromserviceparameter-name>
460 <tonode-name>IsOdd_1</tonode-name>
461 <toserviceparameter-name>a</toserviceparameter-name>
468 <y>481</y> </coord> </coord-list> </link>
470 <fromnode-name>EndSwitch</fromnode-name>
471 <fromserviceparameter-name>Gate</fromserviceparameter-name>
472 <tonode-name>EndOfInitLoop</tonode-name>
473 <toserviceparameter-name>Gate</toserviceparameter-name>
474 <coord-list/> </link> </link-list>
477 <fromnode-name>GraphEditSwitchs</fromnode-name>
478 <fromserviceparameter-name>InitLoop__Index</fromserviceparameter-name>
479 <tonode-name>InitLoop</tonode-name>
480 <toserviceparameter-name>Index</toserviceparameter-name>
482 <value-type>3</value-type>
483 <value>0</value> </data-value>
484 <coord-list/> </data>
486 <fromnode-name>GraphEditSwitchs</fromnode-name>
487 <fromserviceparameter-name>InitLoop__Min</fromserviceparameter-name>
488 <tonode-name>InitLoop</tonode-name>
489 <toserviceparameter-name>Min</toserviceparameter-name>
491 <value-type>3</value-type>
492 <value>0</value> </data-value>
493 <coord-list/> </data>
495 <fromnode-name>GraphEditSwitchs</fromnode-name>
496 <fromserviceparameter-name>InitLoop__Max</fromserviceparameter-name>
497 <tonode-name>InitLoop</tonode-name>
498 <toserviceparameter-name>Max</toserviceparameter-name>
500 <value-type>3</value-type>
501 <value>20</value> </data-value>
502 <coord-list/> </data> </data-list> </dataflow></supergraph>