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>GraphSwitchNOTExecutable</node-name>
33 <coupled-node>?</coupled-node>
35 <service-name>GraphSwitch_3</service-name>
38 <inParameter-type>long</inParameter-type>
39 <inParameter-name>InitLoopSwitch__Index</inParameter-name> </inParameter>
41 <inParameter-type>long</inParameter-type>
42 <inParameter-name>InitLoopSwitch__Min</inParameter-name> </inParameter>
44 <inParameter-type>long</inParameter-type>
45 <inParameter-name>InitLoopSwitch__Max</inParameter-name> </inParameter> </inParameter-list>
48 <outParameter-type>long</outParameter-type>
49 <outParameter-name>EndOfInitLoopSwitch__Index</outParameter-name> </outParameter>
51 <outParameter-type>long</outParameter-type>
52 <outParameter-name>EndOfInitLoopSwitch__Min</outParameter-name> </outParameter>
54 <outParameter-type>long</outParameter-type>
55 <outParameter-name>EndOfInitLoopSwitch__Max</outParameter-name> </outParameter>
57 <outParameter-type>int</outParameter-type>
58 <outParameter-name>Switch__Even</outParameter-name> </outParameter> </outParameter-list> </service>
61 <creation-date>1/10/2003 - 17:23:54</creation-date>
62 <lastmodification-date>22/6/2005 - 16:49:45</lastmodification-date>
63 <editor-release>1.05</editor-release>
65 <container>?</container>
67 <x-position>0</x-position>
68 <y-position>0</y-position> </node> </info-list>
71 <component-name>?</component-name>
72 <interface-name>?</interface-name>
73 <node-name>IsOdd</node-name>
75 <coupled-node>?</coupled-node>
77 <service-name>IsOdd</service-name>
80 <inParameter-type>long</inParameter-type>
81 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
84 <outParameter-type>long</outParameter-type>
85 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
89 <FuncName>IsOdd</FuncName>
90 <PyFunc><![CDATA[from time import * ]]></PyFunc>
91 <PyFunc><![CDATA[def IsOdd(a) : ]]></PyFunc>
92 <PyFunc><![CDATA[ print a,"IsOdd (GraphSwitch)" ]]></PyFunc>
93 <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
94 <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
95 <creation-date>22/6/2005 - 16:49:45</creation-date>
96 <lastmodification-date>22/6/2005 - 16:49:45</lastmodification-date>
97 <editor-release>1.05</editor-release>
99 <container>?</container>
100 <comment>Python function</comment>
101 <x-position>389</x-position>
102 <y-position>65</y-position> </node>
104 <component-name>?</component-name>
105 <interface-name>?</interface-name>
106 <node-name>InitLoopSwitch</node-name>
108 <coupled-node>EndOfInitLoopSwitch</coupled-node>
110 <service-name>InitLoopSwitch</service-name>
113 <inParameter-type>long</inParameter-type>
114 <inParameter-name>Index</inParameter-name> </inParameter>
116 <inParameter-type>long</inParameter-type>
117 <inParameter-name>Min</inParameter-name> </inParameter>
119 <inParameter-type>long</inParameter-type>
120 <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
123 <outParameter-type>long</outParameter-type>
124 <outParameter-name>Index</outParameter-name> </outParameter>
126 <outParameter-type>long</outParameter-type>
127 <outParameter-name>Min</outParameter-name> </outParameter>
129 <outParameter-type>long</outParameter-type>
130 <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
134 <FuncName>InitLoop</FuncName>
135 <PyFunc><![CDATA[def InitLoop(Index,Min,Max) : ]]></PyFunc>
136 <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction>
138 <FuncName>MoreLoop</FuncName>
139 <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) : ]]></PyFunc>
140 <PyFunc><![CDATA[ if Index <= Max : ]]></PyFunc>
141 <PyFunc><![CDATA[ DoLoop = 1 ]]></PyFunc>
142 <PyFunc><![CDATA[ else : ]]></PyFunc>
143 <PyFunc><![CDATA[ DoLoop = 0 ]]></PyFunc>
144 <PyFunc><![CDATA[ return DoLoop,Index,Min,Max ]]></PyFunc> </PyFunction>
146 <FuncName>NextLoop</FuncName>
147 <PyFunc><![CDATA[def NextLoop(Index,Min,Max) : ]]></PyFunc>
148 <PyFunc><![CDATA[ Index = Index + 1 ]]></PyFunc>
149 <PyFunc><![CDATA[ return Index,Min,Max ]]></PyFunc> </PyFunction> </PyFunction-list>
150 <creation-date>22/6/2005 - 16:49:45</creation-date>
151 <lastmodification-date>22/6/2005 - 16:49:45</lastmodification-date>
152 <editor-release>1.05</editor-release>
154 <container>?</container>
155 <comment>Compute Node</comment>
156 <x-position>10</x-position>
157 <y-position>129</y-position> </node>
159 <component-name>?</component-name>
160 <interface-name>?</interface-name>
161 <node-name>EndOfInitLoopSwitch</node-name>
163 <coupled-node>InitLoopSwitch</coupled-node>
165 <service-name>EndOfInitLoopSwitch</service-name>
168 <inParameter-type>long</inParameter-type>
169 <inParameter-name>Index</inParameter-name> </inParameter>
171 <inParameter-type>long</inParameter-type>
172 <inParameter-name>Min</inParameter-name> </inParameter>
174 <inParameter-type>long</inParameter-type>
175 <inParameter-name>Max</inParameter-name> </inParameter> </inParameter-list>
178 <outParameter-type>long</outParameter-type>
179 <outParameter-name>Index</outParameter-name> </outParameter>
181 <outParameter-type>long</outParameter-type>
182 <outParameter-name>Min</outParameter-name> </outParameter>
184 <outParameter-type>long</outParameter-type>
185 <outParameter-name>Max</outParameter-name> </outParameter> </outParameter-list> </service>
189 <FuncName>?</FuncName>
190 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
191 <creation-date>22/6/2005 - 16:49:45</creation-date>
192 <lastmodification-date>22/6/2005 - 16:49:45</lastmodification-date>
193 <editor-release>1.05</editor-release>
195 <container>?</container>
196 <comment>Compute Node</comment>
197 <x-position>776</x-position>
198 <y-position>170</y-position> </node>
200 <component-name>?</component-name>
201 <interface-name>?</interface-name>
202 <node-name>Switch</node-name>
204 <coupled-node>EndOfSwitch</coupled-node>
206 <service-name>Switch</service-name>
209 <inParameter-type>long</inParameter-type>
210 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
213 <outParameter-type>long</outParameter-type>
214 <outParameter-name>Odd</outParameter-name> </outParameter>
216 <outParameter-type>int</outParameter-type>
217 <outParameter-name>Even</outParameter-name> </outParameter>
219 <outParameter-type>int</outParameter-type>
220 <outParameter-name>n</outParameter-name> </outParameter> </outParameter-list> </service>
224 <FuncName>Switch</FuncName>
225 <PyFunc><![CDATA[from time import * ]]></PyFunc>
226 <PyFunc><![CDATA[def Switch(a) : ]]></PyFunc>
227 <PyFunc><![CDATA[ if ( a & 1 ) == 0 : ]]></PyFunc>
228 <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
229 <PyFunc><![CDATA[ return a & 1,1-(a&1),a ]]></PyFunc> </PyFunction> </PyFunction-list>
230 <creation-date>22/6/2005 - 16:49:45</creation-date>
231 <lastmodification-date>22/6/2005 - 16:49:45</lastmodification-date>
232 <editor-release>1.05</editor-release>
234 <container>?</container>
235 <comment>Compute Node</comment>
236 <x-position>194</x-position>
237 <y-position>129</y-position> </node>
239 <component-name>?</component-name>
240 <interface-name>?</interface-name>
241 <node-name>EndOfSwitch</node-name>
243 <coupled-node>Switch</coupled-node>
245 <service-name>EndOfSwitch</service-name>
248 <inParameter-type>long</inParameter-type>
249 <inParameter-name>a</inParameter-name> </inParameter> </inParameter-list>
252 <outParameter-type>long</outParameter-type>
253 <outParameter-name>a</outParameter-name> </outParameter> </outParameter-list> </service>
257 <FuncName>?</FuncName>
258 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
259 <creation-date>22/6/2005 - 16:49:45</creation-date>
260 <lastmodification-date>22/6/2005 - 16:49:45</lastmodification-date>
261 <editor-release>1.05</editor-release>
263 <container>?</container>
264 <comment>Compute Node</comment>
265 <x-position>582</x-position>
266 <y-position>170</y-position> </node> </node-list>
269 <fromnode-name>IsOdd</fromnode-name>
270 <fromserviceparameter-name>a</fromserviceparameter-name>
271 <tonode-name>EndOfSwitch</tonode-name>
272 <toserviceparameter-name>a</toserviceparameter-name>
279 <y>137</y> </coord> </coord-list> </link>
281 <fromnode-name>InitLoopSwitch</fromnode-name>
282 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
283 <tonode-name>EndOfInitLoopSwitch</tonode-name>
284 <toserviceparameter-name>DoLoop</toserviceparameter-name>
285 <coord-list/> </link>
287 <fromnode-name>InitLoopSwitch</fromnode-name>
288 <fromserviceparameter-name>Index</fromserviceparameter-name>
289 <tonode-name>Switch</tonode-name>
290 <toserviceparameter-name>a</toserviceparameter-name>
291 <coord-list/> </link>
293 <fromnode-name>InitLoopSwitch</fromnode-name>
294 <fromserviceparameter-name>Min</fromserviceparameter-name>
295 <tonode-name>EndOfInitLoopSwitch</tonode-name>
296 <toserviceparameter-name>Min</toserviceparameter-name>
297 <coord-list/> </link>
299 <fromnode-name>InitLoopSwitch</fromnode-name>
300 <fromserviceparameter-name>Max</fromserviceparameter-name>
301 <tonode-name>EndOfInitLoopSwitch</tonode-name>
302 <toserviceparameter-name>Max</toserviceparameter-name>
303 <coord-list/> </link>
305 <fromnode-name>EndOfInitLoopSwitch</fromnode-name>
306 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
307 <tonode-name>InitLoopSwitch</tonode-name>
308 <toserviceparameter-name>DoLoop</toserviceparameter-name>
309 <coord-list/> </link>
311 <fromnode-name>Switch</fromnode-name>
312 <fromserviceparameter-name>Odd</fromserviceparameter-name>
313 <tonode-name>IsOdd</tonode-name>
314 <toserviceparameter-name>Gate</toserviceparameter-name>
315 <coord-list/> </link>
317 <fromnode-name>Switch</fromnode-name>
318 <fromserviceparameter-name>n</fromserviceparameter-name>
319 <tonode-name>IsOdd</tonode-name>
320 <toserviceparameter-name>a</toserviceparameter-name>
327 <y>200</y> </coord> </coord-list> </link>
329 <fromnode-name>Switch</fromnode-name>
330 <fromserviceparameter-name>Default</fromserviceparameter-name>
331 <tonode-name>EndOfSwitch</tonode-name>
332 <toserviceparameter-name>Default</toserviceparameter-name>
333 <coord-list/> </link>
335 <fromnode-name>EndOfSwitch</fromnode-name>
336 <fromserviceparameter-name>a</fromserviceparameter-name>
337 <tonode-name>EndOfInitLoopSwitch</tonode-name>
338 <toserviceparameter-name>Index</toserviceparameter-name>
339 <coord-list/> </link> </link-list>
342 <fromnode-name>GraphSwitchNOTExecutable</fromnode-name>
343 <fromserviceparameter-name>InitLoopSwitch__Index</fromserviceparameter-name>
344 <tonode-name>InitLoopSwitch</tonode-name>
345 <toserviceparameter-name>Index</toserviceparameter-name>
347 <value-type>3</value-type>
348 <value>0</value> </data-value>
349 <coord-list/> </data>
351 <fromnode-name>GraphSwitchNOTExecutable</fromnode-name>
352 <fromserviceparameter-name>InitLoopSwitch__Min</fromserviceparameter-name>
353 <tonode-name>InitLoopSwitch</tonode-name>
354 <toserviceparameter-name>Min</toserviceparameter-name>
356 <value-type>3</value-type>
357 <value>0</value> </data-value>
358 <coord-list/> </data>
360 <fromnode-name>GraphSwitchNOTExecutable</fromnode-name>
361 <fromserviceparameter-name>InitLoopSwitch__Max</fromserviceparameter-name>
362 <tonode-name>InitLoopSwitch</tonode-name>
363 <toserviceparameter-name>Max</toserviceparameter-name>
365 <value-type>3</value-type>
366 <value>100</value> </data-value>
367 <coord-list/> </data> </data-list> </dataflow></supergraph>