3 Copyright (C) 2007-2015 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, or (at your option) any later version.
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>GraphLoopSwitchDefaultAborted</node-name>
33 <coupled-node>?</coupled-node>
35 <service-name>GraphLoopSwitch_1</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> </inParameter-list>
48 <outParameter-type>long</outParameter-type>
49 <outParameter-name>EndOfInitLoop__Index</outParameter-name> </outParameter>
51 <outParameter-type>long</outParameter-type>
52 <outParameter-name>EndOfInitLoop__Min</outParameter-name> </outParameter>
54 <outParameter-type>long</outParameter-type>
55 <outParameter-name>EndOfInitLoop__Max</outParameter-name> </outParameter> </outParameter-list> </service>
58 <creation-date>22/10/2003 - 10:36:39</creation-date>
59 <lastmodification-date>11/2/2005 - 11:46:10</lastmodification-date>
60 <editor-release>1.05</editor-release>
62 <container>?</container>
63 <comment>Default Ports are not connected and the Executor will detect a Default condition ==> ABORT</comment>
64 <x-position>0</x-position>
65 <y-position>0</y-position> </node> </info-list>
68 <component-name>?</component-name>
69 <interface-name>?</interface-name>
70 <node-name>IsOdd</node-name>
72 <coupled-node>?</coupled-node>
74 <service-name>IsOdd</service-name>
77 <inParameter-type>long</inParameter-type>
78 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
81 <outParameter-type>long</outParameter-type>
82 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
86 <FuncName>IsOdd</FuncName>
87 <PyFunc><![CDATA[from time import * ]]></PyFunc>
88 <PyFunc><![CDATA[def IsOdd(a) : ]]></PyFunc>
89 <PyFunc><![CDATA[ print a,"IsOdd (GraphLoopSwitch1)" ]]></PyFunc>
90 <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
91 <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
92 <creation-date>11/2/2005 - 11:46:10</creation-date>
93 <lastmodification-date>11/2/2005 - 11:46:10</lastmodification-date>
94 <editor-release>1.05</editor-release>
96 <container>?</container>
97 <comment>Python function</comment>
98 <x-position>397</x-position>
99 <y-position>1</y-position> </node>
101 <component-name>?</component-name>
102 <interface-name>?</interface-name>
103 <node-name>InitLoop</node-name>
105 <coupled-node>EndOfInitLoop</coupled-node>
107 <service-name>InitLoop</service-name>
110 <inParameter-type>long</inParameter-type>
111 <inParameter-name>Index</inParameter-name> </inParameter>
113 <inParameter-type>long</inParameter-type>
114 <inParameter-name>Min</inParameter-name> </inParameter>
116 <inParameter-type>long</inParameter-type>
117 <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
120 <outParameter-type>long</outParameter-type>
121 <outParameter-name>Index</outParameter-name> </outParameter>
123 <outParameter-type>long</outParameter-type>
124 <outParameter-name>Min</outParameter-name> </outParameter>
126 <outParameter-type>long</outParameter-type>
127 <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
131 <FuncName>InitLoop</FuncName>
132 <PyFunc><![CDATA[def InitLoop(Index,Min,Max) : ]]></PyFunc>
133 <PyFunc><![CDATA[ Index = Min ]]></PyFunc>
134 <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc>
135 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction>
137 <FuncName>?</FuncName>
138 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction>
140 <FuncName>?</FuncName>
141 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
142 <creation-date>11/2/2005 - 11:46:10</creation-date>
143 <lastmodification-date>11/2/2005 - 11:46:10</lastmodification-date>
144 <editor-release>1.05</editor-release>
146 <container>?</container>
147 <comment>Compute Node</comment>
148 <x-position>10</x-position>
149 <y-position>108</y-position> </node>
151 <component-name>?</component-name>
152 <interface-name>?</interface-name>
153 <node-name>EndOfInitLoop</node-name>
155 <coupled-node>InitLoop</coupled-node>
157 <service-name>EndOfInitLoop</service-name>
160 <inParameter-type>long</inParameter-type>
161 <inParameter-name>Index</inParameter-name> </inParameter>
163 <inParameter-type>long</inParameter-type>
164 <inParameter-name>Min</inParameter-name> </inParameter>
166 <inParameter-type>long</inParameter-type>
167 <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
170 <outParameter-type>long</outParameter-type>
171 <outParameter-name>Index</outParameter-name> </outParameter>
173 <outParameter-type>long</outParameter-type>
174 <outParameter-name>Min</outParameter-name> </outParameter>
176 <outParameter-type>long</outParameter-type>
177 <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
181 <FuncName>EndOfInitLoop</FuncName>
182 <PyFunc><![CDATA[def EndOfInitLoop( DoLoop , Index , Min , Max ) :]]></PyFunc>
183 <PyFunc><![CDATA[ Index = Index + 1 ]]></PyFunc>
184 <PyFunc><![CDATA[ if Index <= Max : ]]></PyFunc>
185 <PyFunc><![CDATA[ DoLoop = 1 ]]></PyFunc>
186 <PyFunc><![CDATA[ else : ]]></PyFunc>
187 <PyFunc><![CDATA[ DoLoop = 0 ]]></PyFunc>
188 <PyFunc><![CDATA[ return DoLoop,Index,Min,Max ]]></PyFunc> </PyFunction> </PyFunction-list>
189 <creation-date>11/2/2005 - 11:46:10</creation-date>
190 <lastmodification-date>11/2/2005 - 11:46:10</lastmodification-date>
191 <editor-release>1.05</editor-release>
193 <container>?</container>
194 <comment>Compute Node</comment>
195 <x-position>767</x-position>
196 <y-position>102</y-position> </node>
198 <component-name>?</component-name>
199 <interface-name>?</interface-name>
200 <node-name>Switch</node-name>
202 <coupled-node>EndSwitch</coupled-node>
204 <service-name>Switch</service-name>
207 <inParameter-type>long</inParameter-type>
208 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
211 <outParameter-type>long</outParameter-type>
212 <outParameter-name>Odd</outParameter-name> </outParameter>
214 <outParameter-type>int</outParameter-type>
215 <outParameter-name>Even</outParameter-name> </outParameter>
217 <outParameter-type>int</outParameter-type>
218 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
222 <FuncName>Switch</FuncName>
223 <PyFunc><![CDATA[from time import * ]]></PyFunc>
224 <PyFunc><![CDATA[def Switch(a) : ]]></PyFunc>
225 <PyFunc><![CDATA[ if ( a & 1 ) == 0 : ]]></PyFunc>
226 <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
227 <PyFunc><![CDATA[ return a & 1,1-(a&1),a ]]></PyFunc> </PyFunction> </PyFunction-list>
228 <creation-date>11/2/2005 - 11:46:10</creation-date>
229 <lastmodification-date>11/2/2005 - 11:46:10</lastmodification-date>
230 <editor-release>1.05</editor-release>
232 <container>?</container>
233 <comment>Compute Node</comment>
234 <x-position>194</x-position>
235 <y-position>109</y-position> </node>
237 <component-name>?</component-name>
238 <interface-name>?</interface-name>
239 <node-name>EndSwitch</node-name>
241 <coupled-node>Switch</coupled-node>
243 <service-name>EndSwitch</service-name>
246 <inParameter-type>long</inParameter-type>
247 <inParameter-name>a</inParameter-name> </inParameter>
249 <inParameter-type>long</inParameter-type>
250 <inParameter-name>Even</inParameter-name> </inParameter> </inParameter-list>
253 <outParameter-type>long</outParameter-type>
254 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
258 <FuncName>EndSwitch</FuncName>
259 <PyFunc><![CDATA[def EndSwitch(a,Even) : ]]></PyFunc>
260 <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
261 <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
262 <creation-date>11/2/2005 - 11:46:10</creation-date>
263 <lastmodification-date>11/2/2005 - 11:46:10</lastmodification-date>
264 <editor-release>1.05</editor-release>
266 <container>?</container>
267 <comment>Compute Node</comment>
268 <x-position>587</x-position>
269 <y-position>103</y-position> </node>
271 <component-name>?</component-name>
272 <interface-name>?</interface-name>
273 <node-name>Vala</node-name>
275 <coupled-node>?</coupled-node>
277 <service-name>Vala</service-name>
280 <inParameter-type>long</inParameter-type>
281 <inParameter-name>Even</inParameter-name> </inParameter> </inParameter-list>
284 <outParameter-type>long</outParameter-type>
285 <outParameter-name>Even</outParameter-name> </outParameter> </outParameter-list> </service>
289 <FuncName>ValEven</FuncName>
290 <PyFunc><![CDATA[from time import * ]]></PyFunc>
291 <PyFunc><![CDATA[def ValEven(Even) : ]]></PyFunc>
292 <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
293 <PyFunc><![CDATA[ return Even ]]></PyFunc>
294 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
295 <creation-date>11/2/2005 - 11:46:10</creation-date>
296 <lastmodification-date>11/2/2005 - 11:46:10</lastmodification-date>
297 <editor-release>2.0</editor-release>
299 <container>?</container>
300 <comment>Compute Node</comment>
301 <x-position>394</x-position>
302 <y-position>137</y-position> </node> </node-list>
305 <fromnode-name>IsOdd</fromnode-name>
306 <fromserviceparameter-name>a</fromserviceparameter-name>
307 <tonode-name>EndSwitch</tonode-name>
308 <toserviceparameter-name>a</toserviceparameter-name>
309 <coord-list/> </link>
311 <fromnode-name>InitLoop</fromnode-name>
312 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
313 <tonode-name>EndOfInitLoop</tonode-name>
314 <toserviceparameter-name>DoLoop</toserviceparameter-name>
315 <coord-list/> </link>
317 <fromnode-name>InitLoop</fromnode-name>
318 <fromserviceparameter-name>Index</fromserviceparameter-name>
319 <tonode-name>Switch</tonode-name>
320 <toserviceparameter-name>a</toserviceparameter-name>
321 <coord-list/> </link>
323 <fromnode-name>InitLoop</fromnode-name>
324 <fromserviceparameter-name>Min</fromserviceparameter-name>
325 <tonode-name>EndOfInitLoop</tonode-name>
326 <toserviceparameter-name>Min</toserviceparameter-name>
327 <coord-list/> </link>
329 <fromnode-name>InitLoop</fromnode-name>
330 <fromserviceparameter-name>Max</fromserviceparameter-name>
331 <tonode-name>EndOfInitLoop</tonode-name>
332 <toserviceparameter-name>Max</toserviceparameter-name>
333 <coord-list/> </link>
335 <fromnode-name>EndOfInitLoop</fromnode-name>
336 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
337 <tonode-name>InitLoop</tonode-name>
338 <toserviceparameter-name>DoLoop</toserviceparameter-name>
339 <coord-list/> </link>
341 <fromnode-name>Switch</fromnode-name>
342 <fromserviceparameter-name>Odd</fromserviceparameter-name>
343 <tonode-name>IsOdd</tonode-name>
344 <toserviceparameter-name>Gate</toserviceparameter-name>
345 <coord-list/> </link>
347 <fromnode-name>Switch</fromnode-name>
348 <fromserviceparameter-name>Even</fromserviceparameter-name>
349 <tonode-name>Vala</tonode-name>
350 <toserviceparameter-name>Even</toserviceparameter-name>
351 <coord-list/> </link>
353 <fromnode-name>Switch</fromnode-name>
354 <fromserviceparameter-name>a</fromserviceparameter-name>
355 <tonode-name>IsOdd</tonode-name>
356 <toserviceparameter-name>a</toserviceparameter-name>
357 <coord-list/> </link>
359 <fromnode-name>EndSwitch</fromnode-name>
360 <fromserviceparameter-name>a</fromserviceparameter-name>
361 <tonode-name>EndOfInitLoop</tonode-name>
362 <toserviceparameter-name>Index</toserviceparameter-name>
363 <coord-list/> </link>
365 <fromnode-name>Vala</fromnode-name>
366 <fromserviceparameter-name>Even</fromserviceparameter-name>
367 <tonode-name>EndSwitch</tonode-name>
368 <toserviceparameter-name>Even</toserviceparameter-name>
369 <coord-list/> </link> </link-list>
372 <fromnode-name>GraphLoopSwitchDefaultAborted</fromnode-name>
373 <fromserviceparameter-name>InitLoop__Index</fromserviceparameter-name>
374 <tonode-name>InitLoop</tonode-name>
375 <toserviceparameter-name>Index</toserviceparameter-name>
377 <value-type>3</value-type>
378 <value>0</value> </data-value>
379 <coord-list/> </data>
381 <fromnode-name>GraphLoopSwitchDefaultAborted</fromnode-name>
382 <fromserviceparameter-name>InitLoop__Min</fromserviceparameter-name>
383 <tonode-name>InitLoop</tonode-name>
384 <toserviceparameter-name>Min</toserviceparameter-name>
386 <value-type>3</value-type>
387 <value>5</value> </data-value>
388 <coord-list/> </data>
390 <fromnode-name>GraphLoopSwitchDefaultAborted</fromnode-name>
391 <fromserviceparameter-name>InitLoop__Max</fromserviceparameter-name>
392 <tonode-name>InitLoop</tonode-name>
393 <toserviceparameter-name>Max</toserviceparameter-name>
395 <value-type>3</value-type>
396 <value>23</value> </data-value>
397 <coord-list/> </data> </data-list> </dataflow></supergraph>