6 <component-name>?</component-name>
7 <interface-name>?</interface-name>
8 <node-name>GraphBadInputInLoop</node-name>
10 <coupled-node>?</coupled-node>
12 <service-name>GraphBadInputInLoop</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>
24 <inParameter-type>long</inParameter-type>
25 <inParameter-name>EndOfInitLoop__Max</inParameter-name> </inParameter> </inParameter-list>
28 <outParameter-type>long</outParameter-type>
29 <outParameter-name>InitLoop__Max</outParameter-name> </outParameter>
31 <outParameter-type>long</outParameter-type>
32 <outParameter-name>EndOfInitLoop__Index</outParameter-name> </outParameter>
34 <outParameter-type>long</outParameter-type>
35 <outParameter-name>EndOfInitLoop__Min</outParameter-name> </outParameter>
37 <outParameter-type>long</outParameter-type>
38 <outParameter-name>EndOfInitLoop__Max</outParameter-name> </outParameter> </outParameter-list> </service>
41 <creation-date>22/10/2003 - 10:36:39</creation-date>
42 <lastmodification-date>14/12/2004 - 15:56:35</lastmodification-date>
43 <editor-release>1.05</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>
63 <inParameter-type>boolean</inParameter-type>
64 <inParameter-name>Even</inParameter-name> </inParameter> </inParameter-list>
67 <outParameter-type>long</outParameter-type>
68 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
72 <FuncName>IsOdd</FuncName>
73 <PyFunc><![CDATA[from time import * ]]></PyFunc>
74 <PyFunc><![CDATA[def IsOdd(a,Even) : ]]></PyFunc>
75 <PyFunc><![CDATA[ print a,"IsOdd (GraphLoopSwitch1)" ]]></PyFunc>
76 <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
77 <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
78 <creation-date>14/12/2004 - 15:56:35</creation-date>
79 <lastmodification-date>14/12/2004 - 15:56:35</lastmodification-date>
80 <editor-release>1.05</editor-release>
82 <container>?</container>
83 <comment>Python function</comment>
84 <x-position>397</x-position>
85 <y-position>1</y-position> </node>
87 <component-name>?</component-name>
88 <interface-name>?</interface-name>
89 <node-name>InitLoop</node-name>
91 <coupled-node>EndOfInitLoop</coupled-node>
93 <service-name>InitLoop</service-name>
96 <inParameter-type>long</inParameter-type>
97 <inParameter-name>Index</inParameter-name> </inParameter>
99 <inParameter-type>long</inParameter-type>
100 <inParameter-name>Min</inParameter-name> </inParameter>
102 <inParameter-type>long</inParameter-type>
103 <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
106 <outParameter-type>long</outParameter-type>
107 <outParameter-name>Index</outParameter-name> </outParameter>
109 <outParameter-type>long</outParameter-type>
110 <outParameter-name>Min</outParameter-name> </outParameter>
112 <outParameter-type>long</outParameter-type>
113 <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
117 <FuncName>?</FuncName>
118 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction>
120 <FuncName>?</FuncName>
121 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction>
123 <FuncName>?</FuncName>
124 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
125 <creation-date>14/12/2004 - 15:56:35</creation-date>
126 <lastmodification-date>14/12/2004 - 15:56:35</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>108</y-position> </node>
134 <component-name>?</component-name>
135 <interface-name>?</interface-name>
136 <node-name>EndOfInitLoop</node-name>
138 <coupled-node>InitLoop</coupled-node>
140 <service-name>EndOfInitLoop</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>EndOfInitLoop</FuncName>
165 <PyFunc><![CDATA[def EndOfInitLoop( DoLoop , Index , Min , Max ) :]]></PyFunc>
166 <PyFunc><![CDATA[ Index = Index + 1 ]]></PyFunc>
167 <PyFunc><![CDATA[ if Index <= Max : ]]></PyFunc>
168 <PyFunc><![CDATA[ DoLoop = 1 ]]></PyFunc>
169 <PyFunc><![CDATA[ else : ]]></PyFunc>
170 <PyFunc><![CDATA[ DoLoop = 0 ]]></PyFunc>
171 <PyFunc><![CDATA[ return DoLoop,Index,Min,Max ]]></PyFunc> </PyFunction> </PyFunction-list>
172 <creation-date>14/12/2004 - 15:56:35</creation-date>
173 <lastmodification-date>14/12/2004 - 15:56:35</lastmodification-date>
174 <editor-release>1.05</editor-release>
176 <container>?</container>
177 <comment>Compute Node</comment>
178 <x-position>767</x-position>
179 <y-position>102</y-position> </node>
181 <component-name>?</component-name>
182 <interface-name>?</interface-name>
183 <node-name>Switch</node-name>
185 <coupled-node>EndSwitch</coupled-node>
187 <service-name>Switch</service-name>
190 <inParameter-type>long</inParameter-type>
191 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
194 <outParameter-type>long</outParameter-type>
195 <outParameter-name>Odd</outParameter-name> </outParameter>
197 <outParameter-type>int</outParameter-type>
198 <outParameter-name>Even</outParameter-name> </outParameter>
200 <outParameter-type>int</outParameter-type>
201 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
205 <FuncName>Switch</FuncName>
206 <PyFunc><![CDATA[from time import * ]]></PyFunc>
207 <PyFunc><![CDATA[def Switch(a) : ]]></PyFunc>
208 <PyFunc><![CDATA[ if ( a & 1 ) == 0 : ]]></PyFunc>
209 <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
210 <PyFunc><![CDATA[ return a & 1,1-(a&1),a ]]></PyFunc> </PyFunction> </PyFunction-list>
211 <creation-date>14/12/2004 - 15:56:35</creation-date>
212 <lastmodification-date>14/12/2004 - 15:56:35</lastmodification-date>
213 <editor-release>1.05</editor-release>
215 <container>?</container>
216 <comment>Compute Node</comment>
217 <x-position>194</x-position>
218 <y-position>109</y-position> </node>
220 <component-name>?</component-name>
221 <interface-name>?</interface-name>
222 <node-name>EndSwitch</node-name>
224 <coupled-node>Switch</coupled-node>
226 <service-name>EndSwitch</service-name>
229 <inParameter-type>long</inParameter-type>
230 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
233 <outParameter-type>long</outParameter-type>
234 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
238 <FuncName>EndSwitch</FuncName>
239 <PyFunc><![CDATA[def EndSwitch(a) : ]]></PyFunc>
240 <PyFunc><![CDATA[ if ( a & 1 ) == 0 : ]]></PyFunc>
241 <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
242 <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
243 <creation-date>14/12/2004 - 15:56:35</creation-date>
244 <lastmodification-date>14/12/2004 - 15:56:35</lastmodification-date>
245 <editor-release>1.05</editor-release>
247 <container>?</container>
248 <comment>Compute Node</comment>
249 <x-position>587</x-position>
250 <y-position>103</y-position> </node>
252 <component-name>?</component-name>
253 <interface-name>?</interface-name>
254 <node-name>BadInputOfLoop</node-name>
256 <coupled-node>?</coupled-node>
258 <service-name>BadInputOfLoop</service-name>
262 <outParameter-type>boolean</outParameter-type>
263 <outParameter-name>InputInLoop</outParameter-name> </outParameter> </outParameter-list> </service>
267 <FuncName>BadInputOfLoop</FuncName>
268 <PyFunc><![CDATA[def BadInputOfLoop() : ]]></PyFunc>
269 <PyFunc><![CDATA[ return 1 ]]></PyFunc>
270 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
271 <creation-date>14/12/2004 - 15:56:35</creation-date>
272 <lastmodification-date>14/12/2004 - 15:56:35</lastmodification-date>
273 <editor-release>2.0</editor-release>
275 <container>?</container>
276 <comment>Compute Node</comment>
277 <x-position>15</x-position>
278 <y-position>307</y-position> </node> </node-list>
281 <fromnode-name>IsOdd</fromnode-name>
282 <fromserviceparameter-name>a</fromserviceparameter-name>
283 <tonode-name>EndSwitch</tonode-name>
284 <toserviceparameter-name>a</toserviceparameter-name>
291 <y>81</y> </coord> </coord-list> </link>
293 <fromnode-name>InitLoop</fromnode-name>
294 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
295 <tonode-name>EndOfInitLoop</tonode-name>
296 <toserviceparameter-name>DoLoop</toserviceparameter-name>
297 <coord-list/> </link>
299 <fromnode-name>InitLoop</fromnode-name>
300 <fromserviceparameter-name>Index</fromserviceparameter-name>
301 <tonode-name>Switch</tonode-name>
302 <toserviceparameter-name>a</toserviceparameter-name>
303 <coord-list/> </link>
305 <fromnode-name>InitLoop</fromnode-name>
306 <fromserviceparameter-name>Min</fromserviceparameter-name>
307 <tonode-name>EndOfInitLoop</tonode-name>
308 <toserviceparameter-name>Min</toserviceparameter-name>
309 <coord-list/> </link>
311 <fromnode-name>EndOfInitLoop</fromnode-name>
312 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
313 <tonode-name>InitLoop</tonode-name>
314 <toserviceparameter-name>InitLoop</toserviceparameter-name>
315 <coord-list/> </link>
317 <fromnode-name>Switch</fromnode-name>
318 <fromserviceparameter-name>Odd</fromserviceparameter-name>
319 <tonode-name>IsOdd</tonode-name>
320 <toserviceparameter-name>Gate</toserviceparameter-name>
321 <coord-list/> </link>
323 <fromnode-name>Switch</fromnode-name>
324 <fromserviceparameter-name>Even</fromserviceparameter-name>
325 <tonode-name>EndSwitch</tonode-name>
326 <toserviceparameter-name>Default</toserviceparameter-name>
327 <coord-list/> </link>
329 <fromnode-name>Switch</fromnode-name>
330 <fromserviceparameter-name>Even</fromserviceparameter-name>
331 <tonode-name>IsOdd</tonode-name>
332 <toserviceparameter-name>Even</toserviceparameter-name>
339 <y>172</y> </coord> </coord-list> </link>
341 <fromnode-name>Switch</fromnode-name>
342 <fromserviceparameter-name>a</fromserviceparameter-name>
343 <tonode-name>IsOdd</tonode-name>
344 <toserviceparameter-name>a</toserviceparameter-name>
351 <y>201</y> </coord> </coord-list> </link>
353 <fromnode-name>EndSwitch</fromnode-name>
354 <fromserviceparameter-name>a</fromserviceparameter-name>
355 <tonode-name>EndOfInitLoop</tonode-name>
356 <toserviceparameter-name>Index</toserviceparameter-name>
357 <coord-list/> </link>
359 <fromnode-name>BadInputOfLoop</fromnode-name>
360 <fromserviceparameter-name>InputInLoop</fromserviceparameter-name>
361 <tonode-name>Switch</tonode-name>
362 <toserviceparameter-name>Gate</toserviceparameter-name>
363 <coord-list/> </link> </link-list>
366 <fromnode-name>GraphBadInputInLoop</fromnode-name>
367 <fromserviceparameter-name>InitLoop__Index</fromserviceparameter-name>
368 <tonode-name>InitLoop</tonode-name>
369 <toserviceparameter-name>Index</toserviceparameter-name>
371 <value-type>3</value-type>
372 <value>0</value> </data-value>
373 <coord-list/> </data>
375 <fromnode-name>GraphBadInputInLoop</fromnode-name>
376 <fromserviceparameter-name>InitLoop__Min</fromserviceparameter-name>
377 <tonode-name>InitLoop</tonode-name>
378 <toserviceparameter-name>Min</toserviceparameter-name>
380 <value-type>3</value-type>
381 <value>0</value> </data-value>
382 <coord-list/> </data>
384 <fromnode-name>GraphBadInputInLoop</fromnode-name>
385 <fromserviceparameter-name>InitLoop__Max</fromserviceparameter-name>
386 <tonode-name>InitLoop</tonode-name>
387 <toserviceparameter-name>Max</toserviceparameter-name>
389 <value-type>3</value-type>
390 <value>100</value> </data-value>
391 <coord-list/> </data>
393 <fromnode-name>GraphBadInputInLoop</fromnode-name>
394 <fromserviceparameter-name>EndOfInitLoop__Max</fromserviceparameter-name>
395 <tonode-name>EndOfInitLoop</tonode-name>
396 <toserviceparameter-name>Max</toserviceparameter-name>
398 <value-type>3</value-type>
399 <value>136221856</value> </data-value>
400 <coord-list/> </data> </data-list> </dataflow></supergraph>