5 <component-name>?</component-name>
6 <interface-name>?</interface-name>
7 <node-name>GraphSwitch1</node-name>
9 <coupled-node>?</coupled-node>
11 <service-name>GraphSwitch1</service-name>
14 <inParameter-type>long</inParameter-type>
15 <inParameter-name>InitLoop\Index</inParameter-name> </inParameter>
17 <inParameter-type>long</inParameter-type>
18 <inParameter-name>InitLoop\Min</inParameter-name> </inParameter>
20 <inParameter-type>long</inParameter-type>
21 <inParameter-name>InitLoop\Max</inParameter-name> </inParameter> </inParameter-list>
24 <outParameter-type>long</outParameter-type>
25 <outParameter-name>EndOfInitLoop\Index</outParameter-name> </outParameter>
27 <outParameter-type>long</outParameter-type>
28 <outParameter-name>EndOfInitLoop\Min</outParameter-name> </outParameter>
30 <outParameter-type>long</outParameter-type>
31 <outParameter-name>EndOfInitLoop\Max</outParameter-name> </outParameter> </outParameter-list> </service>
34 <creation-date>1/10/2003 - 17:12:48</creation-date>
35 <lastmodification-date>13/10/2003 - 10:54:20</lastmodification-date>
36 <editor-release>1.05</editor-release>
38 <container>?</container>
40 <x-position>0</x-position>
41 <y-position>0</y-position> </node> </info-list>
44 <component-name>?</component-name>
45 <interface-name>?</interface-name>
46 <node-name>IsOdd</node-name>
48 <coupled-node>?</coupled-node>
50 <service-name>IsOdd</service-name>
53 <inParameter-type>long</inParameter-type>
54 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
57 <outParameter-type>long</outParameter-type>
58 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
62 <FuncName>IsOdd</FuncName>
63 <PyFunc><![CDATA[from time import * ]]></PyFunc>
64 <PyFunc><![CDATA[def IsOdd(a) : ]]></PyFunc>
65 <PyFunc><![CDATA[ print a,"IsOdd (GraphSwitch1)" ]]></PyFunc>
66 <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
67 <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
68 <creation-date>13/10/2003 - 10:54:20</creation-date>
69 <lastmodification-date>13/10/2003 - 10:54:20</lastmodification-date>
70 <editor-release>1.05</editor-release>
72 <container>?</container>
73 <comment>Python function</comment>
74 <x-position>388</x-position>
75 <y-position>50</y-position> </node>
77 <component-name>?</component-name>
78 <interface-name>?</interface-name>
79 <node-name>InitLoop</node-name>
81 <coupled-node>EndOfInitLoop</coupled-node>
83 <service-name>InitLoop</service-name>
86 <inParameter-type>long</inParameter-type>
87 <inParameter-name>Index</inParameter-name> </inParameter>
89 <inParameter-type>long</inParameter-type>
90 <inParameter-name>Min</inParameter-name> </inParameter>
92 <inParameter-type>long</inParameter-type>
93 <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
96 <outParameter-type>long</outParameter-type>
97 <outParameter-name>Index</outParameter-name> </outParameter>
99 <outParameter-type>long</outParameter-type>
100 <outParameter-name>Min</outParameter-name> </outParameter>
102 <outParameter-type>long</outParameter-type>
103 <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
107 <FuncName>InitLoop</FuncName>
108 <PyFunc><![CDATA[def InitLoop(Index,Min,Max) : ]]></PyFunc>
109 <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction>
111 <FuncName>MoreLoop</FuncName>
112 <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) : ]]></PyFunc>
113 <PyFunc><![CDATA[ if Index <= Max : ]]></PyFunc>
114 <PyFunc><![CDATA[ DoLoop = 1 ]]></PyFunc>
115 <PyFunc><![CDATA[ else : ]]></PyFunc>
116 <PyFunc><![CDATA[ DoLoop = 0 ]]></PyFunc>
117 <PyFunc><![CDATA[ return DoLoop,Index,Min,Max ]]></PyFunc> </PyFunction>
119 <FuncName>NextLoop</FuncName>
120 <PyFunc><![CDATA[def NextLoop(Index,Min,Max) : ]]></PyFunc>
121 <PyFunc><![CDATA[ Index = Index + 1 ]]></PyFunc>
122 <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction> </PyFunction-list>
123 <creation-date>13/10/2003 - 10:54:20</creation-date>
124 <lastmodification-date>13/10/2003 - 10:54:20</lastmodification-date>
125 <editor-release>1.05</editor-release>
127 <container>?</container>
129 <x-position>10</x-position>
130 <y-position>129</y-position> </node>
132 <component-name>?</component-name>
133 <interface-name>?</interface-name>
134 <node-name>EndOfInitLoop</node-name>
136 <coupled-node>InitLoop</coupled-node>
138 <service-name>EndOfInitLoop</service-name>
141 <inParameter-type>long</inParameter-type>
142 <inParameter-name>Index</inParameter-name> </inParameter>
144 <inParameter-type>long</inParameter-type>
145 <inParameter-name>Min</inParameter-name> </inParameter>
147 <inParameter-type>long</inParameter-type>
148 <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
151 <outParameter-type>long</outParameter-type>
152 <outParameter-name>Index</outParameter-name> </outParameter>
154 <outParameter-type>long</outParameter-type>
155 <outParameter-name>Min</outParameter-name> </outParameter>
157 <outParameter-type>long</outParameter-type>
158 <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
161 <PyFunction/> </PyFunction-list>
162 <creation-date>13/10/2003 - 10:54:20</creation-date>
163 <lastmodification-date>13/10/2003 - 10:54:20</lastmodification-date>
164 <editor-release>1.05</editor-release>
166 <container>?</container>
168 <x-position>766</x-position>
169 <y-position>127</y-position> </node>
171 <component-name>?</component-name>
172 <interface-name>?</interface-name>
173 <node-name>Switch</node-name>
175 <coupled-node>EndOfSwitch</coupled-node>
177 <service-name>Switch</service-name>
180 <inParameter-type>long</inParameter-type>
181 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
184 <outParameter-type>long</outParameter-type>
185 <outParameter-name>Odd</outParameter-name> </outParameter>
187 <outParameter-type>int</outParameter-type>
188 <outParameter-name>Even</outParameter-name> </outParameter>
190 <outParameter-type>int</outParameter-type>
191 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
195 <FuncName>Switch</FuncName>
196 <PyFunc><![CDATA[from time import * ]]></PyFunc>
197 <PyFunc><![CDATA[def Switch(a) : ]]></PyFunc>
198 <PyFunc><![CDATA[ if ( a & 1 ) == 0 : ]]></PyFunc>
199 <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
200 <PyFunc><![CDATA[ return a & 1,1-(a&1),a ]]></PyFunc> </PyFunction> </PyFunction-list>
201 <creation-date>13/10/2003 - 10:54:20</creation-date>
202 <lastmodification-date>13/10/2003 - 10:54:20</lastmodification-date>
203 <editor-release>1.05</editor-release>
205 <container>?</container>
207 <x-position>186</x-position>
208 <y-position>130</y-position> </node>
210 <component-name>?</component-name>
211 <interface-name>?</interface-name>
212 <node-name>EndOfSwitch</node-name>
214 <coupled-node>Switch</coupled-node>
216 <service-name>EndOfSwitch</service-name>
219 <inParameter-type>long</inParameter-type>
220 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
223 <outParameter-type>long</outParameter-type>
224 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
227 <PyFunction/> </PyFunction-list>
228 <creation-date>13/10/2003 - 10:54:20</creation-date>
229 <lastmodification-date>13/10/2003 - 10:54:20</lastmodification-date>
230 <editor-release>1.05</editor-release>
232 <container>?</container>
234 <x-position>587</x-position>
235 <y-position>126</y-position> </node> </node-list>
238 <fromnode-name>IsOdd</fromnode-name>
239 <fromserviceparameter-name>a</fromserviceparameter-name>
240 <tonode-name>EndOfSwitch</tonode-name>
241 <toserviceparameter-name>a</toserviceparameter-name>
248 <y>131</y> </coord> </coord-list> </link>
250 <fromnode-name>InitLoop</fromnode-name>
251 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
252 <tonode-name>EndOfInitLoop</tonode-name>
253 <toserviceparameter-name>DoLoop</toserviceparameter-name>
254 <coord-list/> </link>
256 <fromnode-name>InitLoop</fromnode-name>
257 <fromserviceparameter-name>Index</fromserviceparameter-name>
258 <tonode-name>Switch</tonode-name>
259 <toserviceparameter-name>a</toserviceparameter-name>
260 <coord-list/> </link>
262 <fromnode-name>InitLoop</fromnode-name>
263 <fromserviceparameter-name>Min</fromserviceparameter-name>
264 <tonode-name>EndOfInitLoop</tonode-name>
265 <toserviceparameter-name>Min</toserviceparameter-name>
266 <coord-list/> </link>
268 <fromnode-name>InitLoop</fromnode-name>
269 <fromserviceparameter-name>Max</fromserviceparameter-name>
270 <tonode-name>EndOfInitLoop</tonode-name>
271 <toserviceparameter-name>Max</toserviceparameter-name>
272 <coord-list/> </link>
274 <fromnode-name>EndOfInitLoop</fromnode-name>
275 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
276 <tonode-name>InitLoop</tonode-name>
277 <toserviceparameter-name>InitLoop</toserviceparameter-name>
278 <coord-list/> </link>
280 <fromnode-name>Switch</fromnode-name>
281 <fromserviceparameter-name>Odd</fromserviceparameter-name>
282 <tonode-name>IsOdd</tonode-name>
283 <toserviceparameter-name>InGate</toserviceparameter-name>
284 <coord-list/> </link>
286 <fromnode-name>Switch</fromnode-name>
287 <fromserviceparameter-name>Even</fromserviceparameter-name>
288 <tonode-name>EndOfSwitch</tonode-name>
289 <toserviceparameter-name>Default</toserviceparameter-name>
290 <coord-list/> </link>
292 <fromnode-name>Switch</fromnode-name>
293 <fromserviceparameter-name>a</fromserviceparameter-name>
294 <tonode-name>IsOdd</tonode-name>
295 <toserviceparameter-name>a</toserviceparameter-name>
302 <y>223</y> </coord> </coord-list> </link>
304 <fromnode-name>Switch</fromnode-name>
305 <fromserviceparameter-name>a</fromserviceparameter-name>
306 <tonode-name>EndOfSwitch</tonode-name>
307 <toserviceparameter-name>a</toserviceparameter-name>
314 <y>221</y> </coord> </coord-list> </link>
316 <fromnode-name>EndOfSwitch</fromnode-name>
317 <fromserviceparameter-name>a</fromserviceparameter-name>
318 <tonode-name>EndOfInitLoop</tonode-name>
319 <toserviceparameter-name>Index</toserviceparameter-name>
320 <coord-list/> </link> </link-list>
323 <fromnode-name>GraphSwitch1</fromnode-name>
324 <fromserviceparameter-name>InitLoop\Index</fromserviceparameter-name>
325 <tonode-name>InitLoop</tonode-name>
326 <toserviceparameter-name>Index</toserviceparameter-name>
328 <value-type>3</value-type>
329 <value>0</value> </data-value>
330 <coord-list/> </data>
332 <fromnode-name>GraphSwitch1</fromnode-name>
333 <fromserviceparameter-name>InitLoop\Min</fromserviceparameter-name>
334 <tonode-name>InitLoop</tonode-name>
335 <toserviceparameter-name>Min</toserviceparameter-name>
337 <value-type>3</value-type>
338 <value>0</value> </data-value>
339 <coord-list/> </data>
341 <fromnode-name>GraphSwitch1</fromnode-name>
342 <fromserviceparameter-name>InitLoop\Max</fromserviceparameter-name>
343 <tonode-name>InitLoop</tonode-name>
344 <toserviceparameter-name>Max</toserviceparameter-name>
346 <value-type>3</value-type>
347 <value>100</value> </data-value>
348 <coord-list/> </data> </data-list></dataflow>