3 Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
5 Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
6 CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License.
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
29 <component-name>?</component-name>
30 <interface-name>?</interface-name>
31 <node-name>GraphEditSwitchs</node-name>
33 <coupled-node>?</coupled-node>
35 <service-name>GraphEditSwitchs</service-name>
38 <inParameter-type>long</inParameter-type>
39 <inParameter-name>InitLoop__Index</inParameter-name> </inParameter>
41 <inParameter-type>long</inParameter-type>
42 <inParameter-name>InitLoop__Min</inParameter-name> </inParameter>
44 <inParameter-type>long</inParameter-type>
45 <inParameter-name>InitLoop__Max</inParameter-name> </inParameter>
47 <inParameter-type>long</inParameter-type>
48 <inParameter-name>EndOfInitLoop__Index</inParameter-name> </inParameter> </inParameter-list>
51 <outParameter-type>long</outParameter-type>
52 <outParameter-name>EndOfInitLoop__Index</outParameter-name> </outParameter>
54 <outParameter-type>long</outParameter-type>
55 <outParameter-name>EndOfInitLoop__Min</outParameter-name> </outParameter>
57 <outParameter-type>long</outParameter-type>
58 <outParameter-name>EndOfInitLoop__Max</outParameter-name> </outParameter>
60 <outParameter-type>int</outParameter-type>
61 <outParameter-name>Switch__Even</outParameter-name> </outParameter>
63 <outParameter-type>long</outParameter-type>
64 <outParameter-name>EndOfSwitch__a</outParameter-name> </outParameter>
66 <outParameter-type>long</outParameter-type>
67 <outParameter-name>EndSwitch__a</outParameter-name> </outParameter> </outParameter-list> </service>
70 <creation-date>3/2/2005 - 16:14:10</creation-date>
71 <lastmodification-date>3/2/2005 - 16:14:12</lastmodification-date>
72 <editor-release>2.0</editor-release>
74 <container>?</container>
76 <x-position>0</x-position>
77 <y-position>0</y-position> </node> </info-list>
80 <component-name>?</component-name>
81 <interface-name>?</interface-name>
82 <node-name>IsOdd</node-name>
84 <coupled-node>?</coupled-node>
86 <service-name>IsOdd</service-name>
89 <inParameter-type>long</inParameter-type>
90 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
93 <outParameter-type>long</outParameter-type>
94 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
98 <FuncName>IsOdd</FuncName>
99 <PyFunc><![CDATA[from time import * ]]></PyFunc>
100 <PyFunc><![CDATA[def IsOdd(a) : ]]></PyFunc>
101 <PyFunc><![CDATA[ print a,"IsOdd (GraphSwitchs)" ]]></PyFunc>
102 <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
103 <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
104 <creation-date>3/2/2005 - 16:14:10</creation-date>
105 <lastmodification-date>3/2/2005 - 16:14:10</lastmodification-date>
106 <editor-release>2.0</editor-release>
108 <container>?</container>
109 <comment>Python function</comment>
110 <x-position>388</x-position>
111 <y-position>50</y-position> </node>
113 <component-name>?</component-name>
114 <interface-name>?</interface-name>
115 <node-name>IsOdd_1</node-name>
117 <coupled-node>?</coupled-node>
119 <service-name>IsOdd_1</service-name>
122 <inParameter-type>long</inParameter-type>
123 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
126 <outParameter-type>long</outParameter-type>
127 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
131 <FuncName>IsOdd</FuncName>
132 <PyFunc><![CDATA[from time import * ]]></PyFunc>
133 <PyFunc><![CDATA[def IsOdd(a) : ]]></PyFunc>
134 <PyFunc><![CDATA[ print a,"IsOdd_1 (GraphSwitchs)" ]]></PyFunc>
135 <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
136 <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
137 <creation-date>3/2/2005 - 16:14:10</creation-date>
138 <lastmodification-date>3/2/2005 - 16:14:10</lastmodification-date>
139 <editor-release>2.0</editor-release>
141 <container>?</container>
142 <comment>Python function</comment>
143 <x-position>419</x-position>
144 <y-position>308</y-position> </node>
146 <component-name>?</component-name>
147 <interface-name>?</interface-name>
148 <node-name>InitLoop</node-name>
150 <coupled-node>EndOfInitLoop</coupled-node>
152 <service-name>InitLoop</service-name>
155 <inParameter-type>long</inParameter-type>
156 <inParameter-name>Index</inParameter-name> </inParameter>
158 <inParameter-type>long</inParameter-type>
159 <inParameter-name>Min</inParameter-name> </inParameter>
161 <inParameter-type>long</inParameter-type>
162 <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
165 <outParameter-type>long</outParameter-type>
166 <outParameter-name>Index</outParameter-name> </outParameter>
168 <outParameter-type>long</outParameter-type>
169 <outParameter-name>Min</outParameter-name> </outParameter>
171 <outParameter-type>long</outParameter-type>
172 <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
176 <FuncName>InitLoop</FuncName>
177 <PyFunc><![CDATA[def InitLoop(Index,Min,Max) : ]]></PyFunc>
178 <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction>
180 <FuncName>MoreLoop</FuncName>
181 <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) : ]]></PyFunc>
182 <PyFunc><![CDATA[ if Index <= Max : ]]></PyFunc>
183 <PyFunc><![CDATA[ DoLoop = 1 ]]></PyFunc>
184 <PyFunc><![CDATA[ else : ]]></PyFunc>
185 <PyFunc><![CDATA[ DoLoop = 0 ]]></PyFunc>
186 <PyFunc><![CDATA[ return DoLoop,Index,Min,Max ]]></PyFunc> </PyFunction>
188 <FuncName>NextLoop</FuncName>
189 <PyFunc><![CDATA[def NextLoop(Index,Min,Max) : ]]></PyFunc>
190 <PyFunc><![CDATA[ Index = Index + 1 ]]></PyFunc>
191 <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction> </PyFunction-list>
192 <creation-date>3/2/2005 - 16:14:10</creation-date>
193 <lastmodification-date>3/2/2005 - 16:14:10</lastmodification-date>
194 <editor-release>2.0</editor-release>
196 <container>?</container>
197 <comment>Compute Node</comment>
198 <x-position>10</x-position>
199 <y-position>388</y-position> </node>
201 <component-name>?</component-name>
202 <interface-name>?</interface-name>
203 <node-name>EndOfInitLoop</node-name>
205 <coupled-node>InitLoop</coupled-node>
207 <service-name>EndInitLoop</service-name>
210 <inParameter-type>long</inParameter-type>
211 <inParameter-name>Index</inParameter-name> </inParameter>
213 <inParameter-type>long</inParameter-type>
214 <inParameter-name>Min</inParameter-name> </inParameter>
216 <inParameter-type>long</inParameter-type>
217 <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
220 <outParameter-type>long</outParameter-type>
221 <outParameter-name>Index</outParameter-name> </outParameter>
223 <outParameter-type>long</outParameter-type>
224 <outParameter-name>Min</outParameter-name> </outParameter>
226 <outParameter-type>long</outParameter-type>
227 <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
231 <FuncName>?</FuncName>
232 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
233 <creation-date>3/2/2005 - 16:14:10</creation-date>
234 <lastmodification-date>3/2/2005 - 16:14:10</lastmodification-date>
235 <editor-release>2.0</editor-release>
237 <container>?</container>
238 <comment>Compute Node</comment>
239 <x-position>783</x-position>
240 <y-position>381</y-position> </node>
242 <component-name>?</component-name>
243 <interface-name>?</interface-name>
244 <node-name>Switch</node-name>
246 <coupled-node>EndOfSwitch</coupled-node>
248 <service-name>Switch</service-name>
251 <inParameter-type>long</inParameter-type>
252 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
255 <outParameter-type>long</outParameter-type>
256 <outParameter-name>Odd</outParameter-name> </outParameter>
258 <outParameter-type>int</outParameter-type>
259 <outParameter-name>Even</outParameter-name> </outParameter>
261 <outParameter-type>int</outParameter-type>
262 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
266 <FuncName>Switch</FuncName>
267 <PyFunc><![CDATA[from time import * ]]></PyFunc>
268 <PyFunc><![CDATA[def Switch(a) : ]]></PyFunc>
269 <PyFunc><![CDATA[ if ( a & 1 ) == 0 : ]]></PyFunc>
270 <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
271 <PyFunc><![CDATA[ return a & 1,1-(a&1),a ]]></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>186</x-position>
279 <y-position>130</y-position> </node>
281 <component-name>?</component-name>
282 <interface-name>?</interface-name>
283 <node-name>EndOfSwitch</node-name>
285 <coupled-node>Switch</coupled-node>
287 <service-name>EndSwitch</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>a</outParameter-name> </outParameter> </outParameter-list> </service>
299 <FuncName>?</FuncName>
300 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
301 <creation-date>3/2/2005 - 16:14:10</creation-date>
302 <lastmodification-date>3/2/2005 - 16:14:10</lastmodification-date>
303 <editor-release>2.0</editor-release>
305 <container>?</container>
306 <comment>Compute Node</comment>
307 <x-position>587</x-position>
308 <y-position>126</y-position> </node>
310 <component-name>?</component-name>
311 <interface-name>?</interface-name>
312 <node-name>Switch_1</node-name>
314 <coupled-node>EndSwitch</coupled-node>
316 <service-name>Switch_1</service-name>
319 <inParameter-type>long</inParameter-type>
320 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
323 <outParameter-type>long</outParameter-type>
324 <outParameter-name>Odd</outParameter-name> </outParameter>
326 <outParameter-type>int</outParameter-type>
327 <outParameter-name>Even</outParameter-name> </outParameter>
329 <outParameter-type>int</outParameter-type>
330 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
334 <FuncName>Switch</FuncName>
335 <PyFunc><![CDATA[from time import * ]]></PyFunc>
336 <PyFunc><![CDATA[def Switch(a) : ]]></PyFunc>
337 <PyFunc><![CDATA[ if ( a & 1 ) == 0 : ]]></PyFunc>
338 <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
339 <PyFunc><![CDATA[ return a & 1,1-(a&1),a ]]></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>193</x-position>
347 <y-position>388</y-position> </node>
349 <component-name>?</component-name>
350 <interface-name>?</interface-name>
351 <node-name>EndSwitch</node-name>
353 <coupled-node>Switch_1</coupled-node>
355 <service-name>EndSwitch</service-name>
358 <inParameter-type>long</inParameter-type>
359 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
362 <outParameter-type>long</outParameter-type>
363 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
367 <FuncName>?</FuncName>
368 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
369 <creation-date>3/2/2005 - 16:14:11</creation-date>
370 <lastmodification-date>3/2/2005 - 16:14:11</lastmodification-date>
371 <editor-release>2.0</editor-release>
373 <container>?</container>
374 <comment>Compute Node</comment>
375 <x-position>605</x-position>
376 <y-position>382</y-position> </node> </node-list>
379 <fromnode-name>IsOdd</fromnode-name>
380 <fromserviceparameter-name>a</fromserviceparameter-name>
381 <tonode-name>EndOfSwitch</tonode-name>
382 <toserviceparameter-name>a</toserviceparameter-name>
389 <y>130</y> </coord> </coord-list> </link>
391 <fromnode-name>IsOdd_1</fromnode-name>
392 <fromserviceparameter-name>a</fromserviceparameter-name>
393 <tonode-name>EndSwitch</tonode-name>
394 <toserviceparameter-name>a</toserviceparameter-name>
401 <y>389</y> </coord> </coord-list> </link>
403 <fromnode-name>InitLoop</fromnode-name>
404 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
405 <tonode-name>EndOfInitLoop</tonode-name>
406 <toserviceparameter-name>DoLoop</toserviceparameter-name>
407 <coord-list/> </link>
409 <fromnode-name>InitLoop</fromnode-name>
410 <fromserviceparameter-name>Index</fromserviceparameter-name>
411 <tonode-name>Switch_1</tonode-name>
412 <toserviceparameter-name>a</toserviceparameter-name>
413 <coord-list/> </link>
415 <fromnode-name>InitLoop</fromnode-name>
416 <fromserviceparameter-name>Index</fromserviceparameter-name>
417 <tonode-name>Switch</tonode-name>
418 <toserviceparameter-name>a</toserviceparameter-name>
419 <coord-list/> </link>
421 <fromnode-name>InitLoop</fromnode-name>
422 <fromserviceparameter-name>Min</fromserviceparameter-name>
423 <tonode-name>EndOfInitLoop</tonode-name>
424 <toserviceparameter-name>Min</toserviceparameter-name>
425 <coord-list/> </link>
427 <fromnode-name>InitLoop</fromnode-name>
428 <fromserviceparameter-name>Max</fromserviceparameter-name>
429 <tonode-name>EndOfInitLoop</tonode-name>
430 <toserviceparameter-name>Max</toserviceparameter-name>
431 <coord-list/> </link>
433 <fromnode-name>EndOfInitLoop</fromnode-name>
434 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
435 <tonode-name>InitLoop</tonode-name>
436 <toserviceparameter-name>DoLoop</toserviceparameter-name>
437 <coord-list/> </link>
439 <fromnode-name>Switch</fromnode-name>
440 <fromserviceparameter-name>Odd</fromserviceparameter-name>
441 <tonode-name>IsOdd</tonode-name>
442 <toserviceparameter-name>Gate</toserviceparameter-name>
443 <coord-list/> </link>
445 <fromnode-name>Switch</fromnode-name>
446 <fromserviceparameter-name>a</fromserviceparameter-name>
447 <tonode-name>IsOdd</tonode-name>
448 <toserviceparameter-name>a</toserviceparameter-name>
455 <y>222</y> </coord> </coord-list> </link>
457 <fromnode-name>Switch</fromnode-name>
458 <fromserviceparameter-name>Default</fromserviceparameter-name>
459 <tonode-name>EndOfSwitch</tonode-name>
460 <toserviceparameter-name>Default</toserviceparameter-name>
467 <y>257</y> </coord> </coord-list> </link>
469 <fromnode-name>Switch_1</fromnode-name>
470 <fromserviceparameter-name>Odd</fromserviceparameter-name>
471 <tonode-name>IsOdd_1</tonode-name>
472 <toserviceparameter-name>Gate</toserviceparameter-name>
473 <coord-list/> </link>
475 <fromnode-name>Switch_1</fromnode-name>
476 <fromserviceparameter-name>Even</fromserviceparameter-name>
477 <tonode-name>EndSwitch</tonode-name>
478 <toserviceparameter-name>Default</toserviceparameter-name>
479 <coord-list/> </link>
481 <fromnode-name>Switch_1</fromnode-name>
482 <fromserviceparameter-name>a</fromserviceparameter-name>
483 <tonode-name>IsOdd_1</tonode-name>
484 <toserviceparameter-name>a</toserviceparameter-name>
491 <y>481</y> </coord> </coord-list> </link> </link-list>
494 <fromnode-name>GraphEditSwitchs</fromnode-name>
495 <fromserviceparameter-name>InitLoop__Index</fromserviceparameter-name>
496 <tonode-name>InitLoop</tonode-name>
497 <toserviceparameter-name>Index</toserviceparameter-name>
499 <value-type>3</value-type>
500 <value>0</value> </data-value>
501 <coord-list/> </data>
503 <fromnode-name>GraphEditSwitchs</fromnode-name>
504 <fromserviceparameter-name>InitLoop__Min</fromserviceparameter-name>
505 <tonode-name>InitLoop</tonode-name>
506 <toserviceparameter-name>Min</toserviceparameter-name>
508 <value-type>3</value-type>
509 <value>0</value> </data-value>
510 <coord-list/> </data>
512 <fromnode-name>GraphEditSwitchs</fromnode-name>
513 <fromserviceparameter-name>InitLoop__Max</fromserviceparameter-name>
514 <tonode-name>InitLoop</tonode-name>
515 <toserviceparameter-name>Max</toserviceparameter-name>
517 <value-type>3</value-type>
518 <value>20</value> </data-value>
519 <coord-list/> </data> </data-list> </dataflow></supergraph>