6 <component-name>?</component-name>
7 <interface-name>?</interface-name>
8 <node-name>GraphSwitch_1_1</node-name>
10 <coupled-node>?</coupled-node>
12 <service-name>GraphSwitch_1_1</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> </outParameter-list> </service>
35 <creation-date>1/10/2003 - 17:23:54</creation-date>
36 <lastmodification-date>20/1/2005 - 12:38:11</lastmodification-date>
37 <editor-release>1.05</editor-release>
39 <container>?</container>
41 <x-position>0</x-position>
42 <y-position>0</y-position> </node> </info-list>
45 <component-name>?</component-name>
46 <interface-name>?</interface-name>
47 <node-name>IsOdd</node-name>
49 <coupled-node>?</coupled-node>
51 <service-name>IsOdd</service-name>
54 <inParameter-type>long</inParameter-type>
55 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
58 <outParameter-type>long</outParameter-type>
59 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
63 <FuncName>IsOdd</FuncName>
64 <PyFunc><![CDATA[from time import * ]]></PyFunc>
65 <PyFunc><![CDATA[def IsOdd(a) : ]]></PyFunc>
66 <PyFunc><![CDATA[ print a,"IsOdd (GraphSwitch)" ]]></PyFunc>
67 <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
68 <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
69 <creation-date>20/1/2005 - 12:38:11</creation-date>
70 <lastmodification-date>20/1/2005 - 12:38:11</lastmodification-date>
71 <editor-release>1.05</editor-release>
73 <container>?</container>
74 <comment>Python function</comment>
75 <x-position>388</x-position>
76 <y-position>50</y-position> </node>
78 <component-name>?</component-name>
79 <interface-name>?</interface-name>
80 <node-name>InitLoopSwitch</node-name>
82 <coupled-node>EndOfInitLoopSwitch</coupled-node>
84 <service-name>InitLoopSwitch</service-name>
87 <inParameter-type>long</inParameter-type>
88 <inParameter-name>Index</inParameter-name> </inParameter>
90 <inParameter-type>long</inParameter-type>
91 <inParameter-name>Min</inParameter-name> </inParameter>
93 <inParameter-type>long</inParameter-type>
94 <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
97 <outParameter-type>long</outParameter-type>
98 <outParameter-name>Index</outParameter-name> </outParameter>
100 <outParameter-type>long</outParameter-type>
101 <outParameter-name>Min</outParameter-name> </outParameter>
103 <outParameter-type>long</outParameter-type>
104 <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
108 <FuncName>InitLoop</FuncName>
109 <PyFunc><![CDATA[def InitLoop(Index,Min,Max) : ]]></PyFunc>
110 <PyFunc><![CDATA[ Index = Max ]]></PyFunc>
111 <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction>
113 <FuncName>MoreLoop</FuncName>
114 <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) : ]]></PyFunc>
115 <PyFunc><![CDATA[ if Index >= Min : ]]></PyFunc>
116 <PyFunc><![CDATA[ DoLoop = 1 ]]></PyFunc>
117 <PyFunc><![CDATA[ else : ]]></PyFunc>
118 <PyFunc><![CDATA[ DoLoop = 0 ]]></PyFunc>
119 <PyFunc><![CDATA[ return DoLoop,Index,Min,Max ]]></PyFunc> </PyFunction>
121 <FuncName>NextLoop</FuncName>
122 <PyFunc><![CDATA[def NextLoop(Index,Min,Max) : ]]></PyFunc>
123 <PyFunc><![CDATA[ Index = Index - 1 ]]></PyFunc>
124 <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction> </PyFunction-list>
125 <creation-date>20/1/2005 - 12:38:11</creation-date>
126 <lastmodification-date>20/1/2005 - 12:38:11</lastmodification-date>
127 <editor-release>1.05</editor-release>
129 <container>?</container>
130 <comment>Compute Node</comment>
131 <x-position>10</x-position>
132 <y-position>129</y-position> </node>
134 <component-name>?</component-name>
135 <interface-name>?</interface-name>
136 <node-name>EndOfInitLoopSwitch</node-name>
138 <coupled-node>InitLoopSwitch</coupled-node>
140 <service-name>EndOfInitLoopSwitch</service-name>
143 <inParameter-type>long</inParameter-type>
144 <inParameter-name>Index</inParameter-name> </inParameter>
146 <inParameter-type>long</inParameter-type>
147 <inParameter-name>Min</inParameter-name> </inParameter>
149 <inParameter-type>long</inParameter-type>
150 <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
153 <outParameter-type>long</outParameter-type>
154 <outParameter-name>Index</outParameter-name> </outParameter>
156 <outParameter-type>long</outParameter-type>
157 <outParameter-name>Min</outParameter-name> </outParameter>
159 <outParameter-type>long</outParameter-type>
160 <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
164 <FuncName>?</FuncName>
165 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
166 <creation-date>20/1/2005 - 12:38:11</creation-date>
167 <lastmodification-date>20/1/2005 - 12:38:11</lastmodification-date>
168 <editor-release>1.05</editor-release>
170 <container>?</container>
171 <comment>Compute Node</comment>
172 <x-position>775</x-position>
173 <y-position>169</y-position> </node>
175 <component-name>?</component-name>
176 <interface-name>?</interface-name>
177 <node-name>IsEven</node-name>
179 <coupled-node>?</coupled-node>
181 <service-name>IsEven</service-name>
184 <inParameter-type>long</inParameter-type>
185 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
188 <outParameter-type>long</outParameter-type>
189 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
193 <FuncName>IsEven</FuncName>
194 <PyFunc><![CDATA[from time import * ]]></PyFunc>
195 <PyFunc><![CDATA[def IsEven(a) : ]]></PyFunc>
196 <PyFunc><![CDATA[ print a,"IsEven (GraphSwitch)" ]]></PyFunc>
197 <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
198 <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
199 <creation-date>20/1/2005 - 12:38:11</creation-date>
200 <lastmodification-date>20/1/2005 - 12:38:11</lastmodification-date>
201 <editor-release>2.0</editor-release>
203 <container>?</container>
204 <comment>Compute Node</comment>
205 <x-position>397</x-position>
206 <y-position>279</y-position> </node>
208 <component-name>?</component-name>
209 <interface-name>?</interface-name>
210 <node-name>Switch</node-name>
212 <coupled-node>EndOfSwitch</coupled-node>
214 <service-name>Switch</service-name>
217 <inParameter-type>long</inParameter-type>
218 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
221 <outParameter-type>long</outParameter-type>
222 <outParameter-name>Odd</outParameter-name> </outParameter>
224 <outParameter-type>int</outParameter-type>
225 <outParameter-name>Even</outParameter-name> </outParameter>
227 <outParameter-type>int</outParameter-type>
228 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
232 <FuncName>Switch</FuncName>
233 <PyFunc><![CDATA[from time import * ]]></PyFunc>
234 <PyFunc><![CDATA[def Switch(a) : ]]></PyFunc>
235 <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
236 <PyFunc><![CDATA[ if a <= 0 : ]]></PyFunc>
237 <PyFunc><![CDATA[ return 0,0,a ]]></PyFunc>
238 <PyFunc><![CDATA[ return a & 1,1-(a&1),a ]]></PyFunc> </PyFunction> </PyFunction-list>
239 <creation-date>20/1/2005 - 12:38:11</creation-date>
240 <lastmodification-date>20/1/2005 - 12:38:11</lastmodification-date>
241 <editor-release>2.0</editor-release>
243 <container>?</container>
244 <comment>Compute Node</comment>
245 <x-position>195</x-position>
246 <y-position>129</y-position> </node>
248 <component-name>?</component-name>
249 <interface-name>?</interface-name>
250 <node-name>EndOfSwitch</node-name>
252 <coupled-node>Switch</coupled-node>
254 <service-name>EndOfSwitch</service-name>
257 <inParameter-type>long</inParameter-type>
258 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
261 <outParameter-type>long</outParameter-type>
262 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
266 <FuncName>EndSwitch_1</FuncName>
267 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
268 <creation-date>20/1/2005 - 12:38:11</creation-date>
269 <lastmodification-date>20/1/2005 - 12:38:11</lastmodification-date>
270 <editor-release>2.0</editor-release>
272 <container>?</container>
273 <comment>Compute Node</comment>
274 <x-position>583</x-position>
275 <y-position>169</y-position> </node> </node-list>
278 <fromnode-name>IsOdd</fromnode-name>
279 <fromserviceparameter-name>a</fromserviceparameter-name>
280 <tonode-name>EndOfSwitch</tonode-name>
281 <toserviceparameter-name>a</toserviceparameter-name>
282 <coord-list/> </link>
284 <fromnode-name>InitLoopSwitch</fromnode-name>
285 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
286 <tonode-name>EndOfInitLoopSwitch</tonode-name>
287 <toserviceparameter-name>DoLoop</toserviceparameter-name>
288 <coord-list/> </link>
290 <fromnode-name>InitLoopSwitch</fromnode-name>
291 <fromserviceparameter-name>Index</fromserviceparameter-name>
292 <tonode-name>Switch</tonode-name>
293 <toserviceparameter-name>a</toserviceparameter-name>
294 <coord-list/> </link>
296 <fromnode-name>InitLoopSwitch</fromnode-name>
297 <fromserviceparameter-name>Min</fromserviceparameter-name>
298 <tonode-name>EndOfInitLoopSwitch</tonode-name>
299 <toserviceparameter-name>Min</toserviceparameter-name>
300 <coord-list/> </link>
302 <fromnode-name>InitLoopSwitch</fromnode-name>
303 <fromserviceparameter-name>Max</fromserviceparameter-name>
304 <tonode-name>EndOfInitLoopSwitch</tonode-name>
305 <toserviceparameter-name>Max</toserviceparameter-name>
306 <coord-list/> </link>
308 <fromnode-name>EndOfInitLoopSwitch</fromnode-name>
309 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
310 <tonode-name>InitLoopSwitch</tonode-name>
311 <toserviceparameter-name>DoLoop</toserviceparameter-name>
312 <coord-list/> </link>
314 <fromnode-name>IsEven</fromnode-name>
315 <fromserviceparameter-name>a</fromserviceparameter-name>
316 <tonode-name>EndOfSwitch</tonode-name>
317 <toserviceparameter-name>a</toserviceparameter-name>
318 <coord-list/> </link>
320 <fromnode-name>Switch</fromnode-name>
321 <fromserviceparameter-name>Odd</fromserviceparameter-name>
322 <tonode-name>IsOdd</tonode-name>
323 <toserviceparameter-name>Gate</toserviceparameter-name>
324 <coord-list/> </link>
326 <fromnode-name>Switch</fromnode-name>
327 <fromserviceparameter-name>Even</fromserviceparameter-name>
328 <tonode-name>IsEven</tonode-name>
329 <toserviceparameter-name>Gate</toserviceparameter-name>
330 <coord-list/> </link>
332 <fromnode-name>Switch</fromnode-name>
333 <fromserviceparameter-name>a</fromserviceparameter-name>
334 <tonode-name>IsOdd</tonode-name>
335 <toserviceparameter-name>a</toserviceparameter-name>
336 <coord-list/> </link>
338 <fromnode-name>Switch</fromnode-name>
339 <fromserviceparameter-name>a</fromserviceparameter-name>
340 <tonode-name>IsEven</tonode-name>
341 <toserviceparameter-name>a</toserviceparameter-name>
342 <coord-list/> </link>
344 <fromnode-name>Switch</fromnode-name>
345 <fromserviceparameter-name>Default</fromserviceparameter-name>
346 <tonode-name>EndOfSwitch</tonode-name>
347 <toserviceparameter-name>Default</toserviceparameter-name>
348 <coord-list/> </link>
350 <fromnode-name>EndOfSwitch</fromnode-name>
351 <fromserviceparameter-name>a</fromserviceparameter-name>
352 <tonode-name>EndOfInitLoopSwitch</tonode-name>
353 <toserviceparameter-name>Index</toserviceparameter-name>
354 <coord-list/> </link> </link-list>
357 <fromnode-name>GraphSwitch_1_1</fromnode-name>
358 <fromserviceparameter-name>InitLoopSwitch__Index</fromserviceparameter-name>
359 <tonode-name>InitLoopSwitch</tonode-name>
360 <toserviceparameter-name>Index</toserviceparameter-name>
362 <value-type>3</value-type>
363 <value>0</value> </data-value>
364 <coord-list/> </data>
366 <fromnode-name>GraphSwitch_1_1</fromnode-name>
367 <fromserviceparameter-name>InitLoopSwitch__Min</fromserviceparameter-name>
368 <tonode-name>InitLoopSwitch</tonode-name>
369 <toserviceparameter-name>Min</toserviceparameter-name>
371 <value-type>3</value-type>
372 <value>-5</value> </data-value>
373 <coord-list/> </data>
375 <fromnode-name>GraphSwitch_1_1</fromnode-name>
376 <fromserviceparameter-name>InitLoopSwitch__Max</fromserviceparameter-name>
377 <tonode-name>InitLoopSwitch</tonode-name>
378 <toserviceparameter-name>Max</toserviceparameter-name>
380 <value-type>3</value-type>
381 <value>10</value> </data-value>
382 <coord-list/> </data> </data-list> </dataflow></supergraph>