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>GraphLoopSwitchOddEven</node-name>
33 <coupled-node>?</coupled-node>
35 <service-name>GraphLoopSwitchOddEven</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>14/2/2005 - 16:43:55</lastmodification-date>
60 <editor-release>1.05</editor-release>
62 <container>?</container>
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>14/2/2005 - 16:43:55</creation-date>
93 <lastmodification-date>14/2/2005 - 16:43:55</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>14/2/2005 - 16:43:55</creation-date>
143 <lastmodification-date>14/2/2005 - 16:43:55</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>14/2/2005 - 16:43:55</creation-date>
190 <lastmodification-date>14/2/2005 - 16:43:55</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>14/2/2005 - 16:43:55</creation-date>
229 <lastmodification-date>14/2/2005 - 16:43:55</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> </inParameter-list>
250 <outParameter-type>long</outParameter-type>
251 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
255 <FuncName>EndSwitch</FuncName>
256 <PyFunc><![CDATA[def EndSwitch(a) : ]]></PyFunc>
257 <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
258 <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
259 <creation-date>14/2/2005 - 16:43:55</creation-date>
260 <lastmodification-date>14/2/2005 - 16:43:55</lastmodification-date>
261 <editor-release>1.05</editor-release>
263 <container>?</container>
264 <comment>Compute Node</comment>
265 <x-position>587</x-position>
266 <y-position>103</y-position> </node>
268 <component-name>?</component-name>
269 <interface-name>?</interface-name>
270 <node-name>IsEven</node-name>
272 <coupled-node>?</coupled-node>
274 <service-name>IsEven</service-name>
277 <inParameter-type>long</inParameter-type>
278 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
281 <outParameter-type>long</outParameter-type>
282 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
286 <FuncName>IsEven</FuncName>
287 <PyFunc><![CDATA[from time import * ]]></PyFunc>
288 <PyFunc><![CDATA[def IsEven(a) : ]]></PyFunc>
289 <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
290 <PyFunc><![CDATA[ return a ]]></PyFunc>
291 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
292 <creation-date>14/2/2005 - 16:43:55</creation-date>
293 <lastmodification-date>14/2/2005 - 16:43:55</lastmodification-date>
294 <editor-release>2.0</editor-release>
296 <container>?</container>
297 <comment>Compute Node</comment>
298 <x-position>400</x-position>
299 <y-position>160</y-position> </node> </node-list>
302 <fromnode-name>IsOdd</fromnode-name>
303 <fromserviceparameter-name>a</fromserviceparameter-name>
304 <tonode-name>EndSwitch</tonode-name>
305 <toserviceparameter-name>a</toserviceparameter-name>
306 <coord-list/> </link>
308 <fromnode-name>InitLoop</fromnode-name>
309 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
310 <tonode-name>EndOfInitLoop</tonode-name>
311 <toserviceparameter-name>DoLoop</toserviceparameter-name>
312 <coord-list/> </link>
314 <fromnode-name>InitLoop</fromnode-name>
315 <fromserviceparameter-name>Index</fromserviceparameter-name>
316 <tonode-name>Switch</tonode-name>
317 <toserviceparameter-name>a</toserviceparameter-name>
318 <coord-list/> </link>
320 <fromnode-name>InitLoop</fromnode-name>
321 <fromserviceparameter-name>Min</fromserviceparameter-name>
322 <tonode-name>EndOfInitLoop</tonode-name>
323 <toserviceparameter-name>Min</toserviceparameter-name>
324 <coord-list/> </link>
326 <fromnode-name>InitLoop</fromnode-name>
327 <fromserviceparameter-name>Max</fromserviceparameter-name>
328 <tonode-name>EndOfInitLoop</tonode-name>
329 <toserviceparameter-name>Max</toserviceparameter-name>
330 <coord-list/> </link>
332 <fromnode-name>EndOfInitLoop</fromnode-name>
333 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
334 <tonode-name>InitLoop</tonode-name>
335 <toserviceparameter-name>DoLoop</toserviceparameter-name>
336 <coord-list/> </link>
338 <fromnode-name>Switch</fromnode-name>
339 <fromserviceparameter-name>Odd</fromserviceparameter-name>
340 <tonode-name>IsOdd</tonode-name>
341 <toserviceparameter-name>Gate</toserviceparameter-name>
342 <coord-list/> </link>
344 <fromnode-name>Switch</fromnode-name>
345 <fromserviceparameter-name>Even</fromserviceparameter-name>
346 <tonode-name>IsEven</tonode-name>
347 <toserviceparameter-name>Gate</toserviceparameter-name>
348 <coord-list/> </link>
350 <fromnode-name>Switch</fromnode-name>
351 <fromserviceparameter-name>a</fromserviceparameter-name>
352 <tonode-name>IsOdd</tonode-name>
353 <toserviceparameter-name>a</toserviceparameter-name>
354 <coord-list/> </link>
356 <fromnode-name>Switch</fromnode-name>
357 <fromserviceparameter-name>a</fromserviceparameter-name>
358 <tonode-name>IsEven</tonode-name>
359 <toserviceparameter-name>a</toserviceparameter-name>
360 <coord-list/> </link>
362 <fromnode-name>EndSwitch</fromnode-name>
363 <fromserviceparameter-name>a</fromserviceparameter-name>
364 <tonode-name>EndOfInitLoop</tonode-name>
365 <toserviceparameter-name>Index</toserviceparameter-name>
366 <coord-list/> </link>
368 <fromnode-name>IsEven</fromnode-name>
369 <fromserviceparameter-name>a</fromserviceparameter-name>
370 <tonode-name>EndSwitch</tonode-name>
371 <toserviceparameter-name>a</toserviceparameter-name>
372 <coord-list/> </link> </link-list>
375 <fromnode-name>GraphLoopSwitchOddEven</fromnode-name>
376 <fromserviceparameter-name>InitLoop__Index</fromserviceparameter-name>
377 <tonode-name>InitLoop</tonode-name>
378 <toserviceparameter-name>Index</toserviceparameter-name>
380 <value-type>3</value-type>
381 <value>0</value> </data-value>
382 <coord-list/> </data>
384 <fromnode-name>GraphLoopSwitchOddEven</fromnode-name>
385 <fromserviceparameter-name>InitLoop__Min</fromserviceparameter-name>
386 <tonode-name>InitLoop</tonode-name>
387 <toserviceparameter-name>Min</toserviceparameter-name>
389 <value-type>3</value-type>
390 <value>5</value> </data-value>
391 <coord-list/> </data>
393 <fromnode-name>GraphLoopSwitchOddEven</fromnode-name>
394 <fromserviceparameter-name>InitLoop__Max</fromserviceparameter-name>
395 <tonode-name>InitLoop</tonode-name>
396 <toserviceparameter-name>Max</toserviceparameter-name>
398 <value-type>3</value-type>
399 <value>23</value> </data-value>
400 <coord-list/> </data> </data-list> </dataflow></supergraph>