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>GraphBadInputInLoop2</node-name>
33 <coupled-node>?</coupled-node>
35 <service-name>GraphBadInputInLoop2</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>6/6/2005 - 11:9: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>
80 <inParameter-type>boolean</inParameter-type>
81 <inParameter-name>InputInLoop</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,InputInLoop) : ]]></PyFunc>
92 <PyFunc><![CDATA[ print a,"IsOdd (GraphLoopSwitch1)" ]]></PyFunc>
93 <PyFunc><![CDATA[ sleep( 1 ) ]]></PyFunc>
94 <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
95 <creation-date>6/6/2005 - 11:9:7</creation-date>
96 <lastmodification-date>6/6/2005 - 11:9:7</lastmodification-date>
97 <editor-release>1.05</editor-release>
99 <container>?</container>
100 <comment>Python function</comment>
101 <x-position>397</x-position>
102 <y-position>1</y-position> </node>
104 <component-name>?</component-name>
105 <interface-name>?</interface-name>
106 <node-name>InitLoop</node-name>
108 <coupled-node>EndOfInitLoop</coupled-node>
110 <service-name>InitLoop</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>?</FuncName>
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>6/6/2005 - 11:9:7</creation-date>
143 <lastmodification-date>6/6/2005 - 11:9:7</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>6/6/2005 - 11:9:7</creation-date>
190 <lastmodification-date>6/6/2005 - 11:9:7</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>6/6/2005 - 11:9:7</creation-date>
229 <lastmodification-date>6/6/2005 - 11:9:7</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[ if ( a & 1 ) == 0 : ]]></PyFunc>
258 <PyFunc><![CDATA[ sleep(1) ]]></PyFunc>
259 <PyFunc><![CDATA[ return a ]]></PyFunc> </PyFunction> </PyFunction-list>
260 <creation-date>6/6/2005 - 11:9:7</creation-date>
261 <lastmodification-date>6/6/2005 - 11:9:7</lastmodification-date>
262 <editor-release>1.05</editor-release>
264 <container>?</container>
265 <comment>Compute Node</comment>
266 <x-position>587</x-position>
267 <y-position>103</y-position> </node>
269 <component-name>?</component-name>
270 <interface-name>?</interface-name>
271 <node-name>BadInputOfLoop</node-name>
273 <coupled-node>?</coupled-node>
275 <service-name>BadInputOfLoop</service-name>
279 <outParameter-type>boolean</outParameter-type>
280 <outParameter-name>InputInLoop</outParameter-name> </outParameter> </outParameter-list> </service>
284 <FuncName>BadInputOfLoop</FuncName>
285 <PyFunc><![CDATA[def BadInputOfLoop() : ]]></PyFunc>
286 <PyFunc><![CDATA[ return 1 ]]></PyFunc>
287 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
288 <creation-date>6/6/2005 - 11:9:7</creation-date>
289 <lastmodification-date>6/6/2005 - 11:9:7</lastmodification-date>
290 <editor-release>2.0</editor-release>
292 <container>?</container>
293 <comment>Compute Node</comment>
294 <x-position>15</x-position>
295 <y-position>307</y-position> </node> </node-list>
298 <fromnode-name>IsOdd</fromnode-name>
299 <fromserviceparameter-name>a</fromserviceparameter-name>
300 <tonode-name>EndSwitch</tonode-name>
301 <toserviceparameter-name>a</toserviceparameter-name>
302 <coord-list/> </link>
304 <fromnode-name>InitLoop</fromnode-name>
305 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
306 <tonode-name>EndOfInitLoop</tonode-name>
307 <toserviceparameter-name>DoLoop</toserviceparameter-name>
308 <coord-list/> </link>
310 <fromnode-name>InitLoop</fromnode-name>
311 <fromserviceparameter-name>Index</fromserviceparameter-name>
312 <tonode-name>Switch</tonode-name>
313 <toserviceparameter-name>a</toserviceparameter-name>
314 <coord-list/> </link>
316 <fromnode-name>InitLoop</fromnode-name>
317 <fromserviceparameter-name>Min</fromserviceparameter-name>
318 <tonode-name>EndOfInitLoop</tonode-name>
319 <toserviceparameter-name>Min</toserviceparameter-name>
320 <coord-list/> </link>
322 <fromnode-name>EndOfInitLoop</fromnode-name>
323 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
324 <tonode-name>InitLoop</tonode-name>
325 <toserviceparameter-name>DoLoop</toserviceparameter-name>
326 <coord-list/> </link>
328 <fromnode-name>Switch</fromnode-name>
329 <fromserviceparameter-name>Odd</fromserviceparameter-name>
330 <tonode-name>IsOdd</tonode-name>
331 <toserviceparameter-name>Gate</toserviceparameter-name>
332 <coord-list/> </link>
334 <fromnode-name>Switch</fromnode-name>
335 <fromserviceparameter-name>Even</fromserviceparameter-name>
336 <tonode-name>EndSwitch</tonode-name>
337 <toserviceparameter-name>Default</toserviceparameter-name>
338 <coord-list/> </link>
340 <fromnode-name>Switch</fromnode-name>
341 <fromserviceparameter-name>a</fromserviceparameter-name>
342 <tonode-name>IsOdd</tonode-name>
343 <toserviceparameter-name>a</toserviceparameter-name>
344 <coord-list/> </link>
346 <fromnode-name>EndSwitch</fromnode-name>
347 <fromserviceparameter-name>a</fromserviceparameter-name>
348 <tonode-name>EndOfInitLoop</tonode-name>
349 <toserviceparameter-name>Index</toserviceparameter-name>
350 <coord-list/> </link>
352 <fromnode-name>BadInputOfLoop</fromnode-name>
353 <fromserviceparameter-name>InputInLoop</fromserviceparameter-name>
354 <tonode-name>IsOdd</tonode-name>
355 <toserviceparameter-name>InputInLoop</toserviceparameter-name>
356 <coord-list/> </link> </link-list>
359 <fromnode-name>GraphBadInputInLoop2</fromnode-name>
360 <fromserviceparameter-name>InitLoop__Index</fromserviceparameter-name>
361 <tonode-name>InitLoop</tonode-name>
362 <toserviceparameter-name>Index</toserviceparameter-name>
364 <value-type>3</value-type>
365 <value>0</value> </data-value>
366 <coord-list/> </data>
368 <fromnode-name>GraphBadInputInLoop2</fromnode-name>
369 <fromserviceparameter-name>InitLoop__Min</fromserviceparameter-name>
370 <tonode-name>InitLoop</tonode-name>
371 <toserviceparameter-name>Min</toserviceparameter-name>
373 <value-type>3</value-type>
374 <value>0</value> </data-value>
375 <coord-list/> </data>
377 <fromnode-name>GraphBadInputInLoop2</fromnode-name>
378 <fromserviceparameter-name>InitLoop__Max</fromserviceparameter-name>
379 <tonode-name>InitLoop</tonode-name>
380 <toserviceparameter-name>Max</toserviceparameter-name>
382 <value-type>3</value-type>
383 <value>100</value> </data-value>
384 <coord-list/> </data> </data-list> </dataflow></supergraph>