6 <component-name>?</component-name>
7 <interface-name>?</interface-name>
8 <node-name>GraphInputInLoop_2</node-name>
10 <coupled-node>?</coupled-node>
12 <service-name>GraphInputInLoop_2</service-name>
15 <inParameter-type>string</inParameter-type>
16 <inParameter-name>IsOdd__Const</inParameter-name> </inParameter>
18 <inParameter-type>long</inParameter-type>
19 <inParameter-name>InitLoop__Index</inParameter-name> </inParameter>
21 <inParameter-type>long</inParameter-type>
22 <inParameter-name>InitLoop__Min</inParameter-name> </inParameter>
24 <inParameter-type>long</inParameter-type>
25 <inParameter-name>InitLoop__Max</inParameter-name> </inParameter> </inParameter-list>
28 <outParameter-type>string</outParameter-type>
29 <outParameter-name>IsOdd__Const</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>7/1/2005 - 16:47:59</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>
66 <inParameter-type>string</inParameter-type>
67 <inParameter-name>Const</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>Const</outParameter-name> </outParameter> </outParameter-list> </service>
78 <FuncName>IsOdd</FuncName>
79 <PyFunc><![CDATA[from time import * ]]></PyFunc>
80 <PyFunc><![CDATA[def IsOdd(a,Even,Const) : ]]></PyFunc>
81 <PyFunc><![CDATA[ print 'IsOdd',a,Even,Const ]]></PyFunc>
82 <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
83 <PyFunc><![CDATA[ return a,Const ]]></PyFunc> </PyFunction> </PyFunction-list>
84 <creation-date>7/1/2005 - 16:47:59</creation-date>
85 <lastmodification-date>7/1/2005 - 16:47:59</lastmodification-date>
86 <editor-release>1.05</editor-release>
88 <container>?</container>
89 <comment>Python function</comment>
90 <x-position>397</x-position>
91 <y-position>1</y-position> </node>
93 <component-name>?</component-name>
94 <interface-name>?</interface-name>
95 <node-name>InitLoop</node-name>
97 <coupled-node>EndOfInitLoop</coupled-node>
99 <service-name>InitLoop</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>?</FuncName>
124 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction>
126 <FuncName>?</FuncName>
127 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction>
129 <FuncName>?</FuncName>
130 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
131 <creation-date>7/1/2005 - 16:47:59</creation-date>
132 <lastmodification-date>7/1/2005 - 16:47:59</lastmodification-date>
133 <editor-release>1.05</editor-release>
135 <container>?</container>
136 <comment>Compute Node</comment>
137 <x-position>10</x-position>
138 <y-position>108</y-position> </node>
140 <component-name>?</component-name>
141 <interface-name>?</interface-name>
142 <node-name>EndOfInitLoop</node-name>
144 <coupled-node>InitLoop</coupled-node>
146 <service-name>EndOfInitLoop</service-name>
149 <inParameter-type>long</inParameter-type>
150 <inParameter-name>Index</inParameter-name> </inParameter>
152 <inParameter-type>long</inParameter-type>
153 <inParameter-name>Min</inParameter-name> </inParameter>
155 <inParameter-type>long</inParameter-type>
156 <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
159 <outParameter-type>long</outParameter-type>
160 <outParameter-name>Index</outParameter-name> </outParameter>
162 <outParameter-type>long</outParameter-type>
163 <outParameter-name>Min</outParameter-name> </outParameter>
165 <outParameter-type>long</outParameter-type>
166 <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
170 <FuncName>EndOfInitLoop</FuncName>
171 <PyFunc><![CDATA[def EndOfInitLoop( DoLoop , Index , Min , Max ) :]]></PyFunc>
172 <PyFunc><![CDATA[ Index = Index + 1 ]]></PyFunc>
173 <PyFunc><![CDATA[ if Index <= Max : ]]></PyFunc>
174 <PyFunc><![CDATA[ DoLoop = 1 ]]></PyFunc>
175 <PyFunc><![CDATA[ else : ]]></PyFunc>
176 <PyFunc><![CDATA[ DoLoop = 0 ]]></PyFunc>
177 <PyFunc><![CDATA[ return DoLoop,Index,Min,Max ]]></PyFunc> </PyFunction> </PyFunction-list>
178 <creation-date>7/1/2005 - 16:47:59</creation-date>
179 <lastmodification-date>7/1/2005 - 16:47:59</lastmodification-date>
180 <editor-release>1.05</editor-release>
182 <container>?</container>
183 <comment>Compute Node</comment>
184 <x-position>767</x-position>
185 <y-position>105</y-position> </node>
187 <component-name>?</component-name>
188 <interface-name>?</interface-name>
189 <node-name>Switch</node-name>
191 <coupled-node>EndSwitch</coupled-node>
193 <service-name>Switch</service-name>
196 <inParameter-type>long</inParameter-type>
197 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
200 <outParameter-type>long</outParameter-type>
201 <outParameter-name>Odd</outParameter-name> </outParameter>
203 <outParameter-type>int</outParameter-type>
204 <outParameter-name>Even</outParameter-name> </outParameter>
206 <outParameter-type>int</outParameter-type>
207 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
211 <FuncName>Switch</FuncName>
212 <PyFunc><![CDATA[from time import * ]]></PyFunc>
213 <PyFunc><![CDATA[def Switch(a) : ]]></PyFunc>
214 <PyFunc><![CDATA[ if ( a & 1 ) == 0 : ]]></PyFunc>
215 <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
216 <PyFunc><![CDATA[ return a & 1,1-(a&1),a ]]></PyFunc> </PyFunction> </PyFunction-list>
217 <creation-date>7/1/2005 - 16:47:59</creation-date>
218 <lastmodification-date>7/1/2005 - 16:47:59</lastmodification-date>
219 <editor-release>1.05</editor-release>
221 <container>?</container>
222 <comment>Compute Node</comment>
223 <x-position>194</x-position>
224 <y-position>109</y-position> </node>
226 <component-name>?</component-name>
227 <interface-name>?</interface-name>
228 <node-name>EndSwitch</node-name>
230 <coupled-node>Switch</coupled-node>
232 <service-name>EndSwitch</service-name>
235 <inParameter-type>long</inParameter-type>
236 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
239 <outParameter-type>long</outParameter-type>
240 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
244 <FuncName>EndSwitch</FuncName>
245 <PyFunc><![CDATA[def EndSwitch(a) : ]]></PyFunc>
246 <PyFunc><![CDATA[ if ( a & 1 ) == 0 : ]]></PyFunc>
247 <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
248 <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
249 <creation-date>7/1/2005 - 16:47:59</creation-date>
250 <lastmodification-date>7/1/2005 - 16:47:59</lastmodification-date>
251 <editor-release>1.05</editor-release>
253 <container>?</container>
254 <comment>Compute Node</comment>
255 <x-position>587</x-position>
256 <y-position>105</y-position> </node> </node-list>
259 <fromnode-name>IsOdd</fromnode-name>
260 <fromserviceparameter-name>a</fromserviceparameter-name>
261 <tonode-name>EndSwitch</tonode-name>
262 <toserviceparameter-name>a</toserviceparameter-name>
269 <y>73</y> </coord> </coord-list> </link>
271 <fromnode-name>InitLoop</fromnode-name>
272 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
273 <tonode-name>EndOfInitLoop</tonode-name>
274 <toserviceparameter-name>DoLoop</toserviceparameter-name>
275 <coord-list/> </link>
277 <fromnode-name>InitLoop</fromnode-name>
278 <fromserviceparameter-name>Index</fromserviceparameter-name>
279 <tonode-name>Switch</tonode-name>
280 <toserviceparameter-name>a</toserviceparameter-name>
281 <coord-list/> </link>
283 <fromnode-name>InitLoop</fromnode-name>
284 <fromserviceparameter-name>Min</fromserviceparameter-name>
285 <tonode-name>EndOfInitLoop</tonode-name>
286 <toserviceparameter-name>Min</toserviceparameter-name>
287 <coord-list/> </link>
289 <fromnode-name>InitLoop</fromnode-name>
290 <fromserviceparameter-name>Max</fromserviceparameter-name>
291 <tonode-name>EndOfInitLoop</tonode-name>
292 <toserviceparameter-name>Max</toserviceparameter-name>
293 <coord-list/> </link>
295 <fromnode-name>EndOfInitLoop</fromnode-name>
296 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
297 <tonode-name>InitLoop</tonode-name>
298 <toserviceparameter-name>DoLoop</toserviceparameter-name>
299 <coord-list/> </link>
301 <fromnode-name>Switch</fromnode-name>
302 <fromserviceparameter-name>Odd</fromserviceparameter-name>
303 <tonode-name>IsOdd</tonode-name>
304 <toserviceparameter-name>Gate</toserviceparameter-name>
305 <coord-list/> </link>
307 <fromnode-name>Switch</fromnode-name>
308 <fromserviceparameter-name>Even</fromserviceparameter-name>
309 <tonode-name>EndSwitch</tonode-name>
310 <toserviceparameter-name>Default</toserviceparameter-name>
311 <coord-list/> </link>
313 <fromnode-name>Switch</fromnode-name>
314 <fromserviceparameter-name>Even</fromserviceparameter-name>
315 <tonode-name>IsOdd</tonode-name>
316 <toserviceparameter-name>Even</toserviceparameter-name>
323 <y>159</y> </coord> </coord-list> </link>
325 <fromnode-name>Switch</fromnode-name>
326 <fromserviceparameter-name>a</fromserviceparameter-name>
327 <tonode-name>IsOdd</tonode-name>
328 <toserviceparameter-name>a</toserviceparameter-name>
335 <y>182</y> </coord> </coord-list> </link>
337 <fromnode-name>EndSwitch</fromnode-name>
338 <fromserviceparameter-name>a</fromserviceparameter-name>
339 <tonode-name>EndOfInitLoop</tonode-name>
340 <toserviceparameter-name>Index</toserviceparameter-name>
341 <coord-list/> </link> </link-list>
344 <fromnode-name>GraphInputInLoop_2</fromnode-name>
345 <fromserviceparameter-name>IsOdd__Const</fromserviceparameter-name>
346 <tonode-name>IsOdd</tonode-name>
347 <toserviceparameter-name>Const</toserviceparameter-name>
349 <value-type>18</value-type>
350 <value>Const Input Value</value> </data-value>
351 <coord-list/> </data>
353 <fromnode-name>GraphInputInLoop_2</fromnode-name>
354 <fromserviceparameter-name>InitLoop__Index</fromserviceparameter-name>
355 <tonode-name>InitLoop</tonode-name>
356 <toserviceparameter-name>Index</toserviceparameter-name>
358 <value-type>3</value-type>
359 <value>0</value> </data-value>
360 <coord-list/> </data>
362 <fromnode-name>GraphInputInLoop_2</fromnode-name>
363 <fromserviceparameter-name>InitLoop__Min</fromserviceparameter-name>
364 <tonode-name>InitLoop</tonode-name>
365 <toserviceparameter-name>Min</toserviceparameter-name>
367 <value-type>3</value-type>
368 <value>0</value> </data-value>
369 <coord-list/> </data>
371 <fromnode-name>GraphInputInLoop_2</fromnode-name>
372 <fromserviceparameter-name>InitLoop__Max</fromserviceparameter-name>
373 <tonode-name>InitLoop</tonode-name>
374 <toserviceparameter-name>Max</toserviceparameter-name>
376 <value-type>3</value-type>
377 <value>100</value> </data-value>
378 <coord-list/> </data> </data-list> </dataflow></supergraph>