Salome HOME
Update copyrights 2014.
[samples/datafiles.git] / Superv / Graphs / GraphBadOutputOfLoop1.xml
1 <!DOCTYPE SuperGraph>
2 <!--
3   Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
4
5   Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
6   CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
7
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.
12
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.
17
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
21
22   See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23
24 -->
25 <supergraph>
26 <dataflow>
27 <info-list>
28 <node>
29 <component-name>?</component-name>
30     <interface-name>?</interface-name>
31     <node-name>GraphBadOutputOfLoop1</node-name>
32     <kind>1</kind>
33     <coupled-node>?</coupled-node>
34     <service>
35 <service-name>GraphBadOutputOfLoop1</service-name>
36      <inParameter-list>
37 <inParameter>
38 <inParameter-type>long</inParameter-type>
39        <inParameter-name>InitLoop__Index</inParameter-name>      </inParameter>
40       <inParameter>
41 <inParameter-type>long</inParameter-type>
42        <inParameter-name>InitLoop__Min</inParameter-name>      </inParameter>
43       <inParameter>
44 <inParameter-type>long</inParameter-type>
45        <inParameter-name>InitLoop__Max</inParameter-name>      </inParameter>     </inParameter-list>
46      <outParameter-list>
47 <outParameter>
48 <outParameter-type>long</outParameter-type>
49        <outParameter-name>EndOfInitLoop__Index</outParameter-name>      </outParameter>
50       <outParameter>
51 <outParameter-type>long</outParameter-type>
52        <outParameter-name>EndOfInitLoop__Min</outParameter-name>      </outParameter>
53       <outParameter>
54 <outParameter-type>long</outParameter-type>
55        <outParameter-name>EndOfInitLoop__Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
56     <DataStream-list/>
57     <PyFunction-list/>
58     <creation-date>22/10/2003 - 10:36:39</creation-date>
59     <lastmodification-date>6/6/2005 - 11:25:16</lastmodification-date>
60     <editor-release>1.05</editor-release>
61     <author>?</author>
62     <container>?</container>
63     <comment>?</comment>
64     <x-position>0</x-position>
65     <y-position>0</y-position>   </node>  </info-list>
66   <node-list>
67 <node>
68 <component-name>?</component-name>
69     <interface-name>?</interface-name>
70     <node-name>IsOdd</node-name>
71     <kind>3</kind>
72     <coupled-node>?</coupled-node>
73     <service>
74 <service-name>IsOdd</service-name>
75      <inParameter-list>
76 <inParameter>
77 <inParameter-type>long</inParameter-type>
78        <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
79      <outParameter-list>
80 <outParameter>
81 <outParameter-type>long</outParameter-type>
82        <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
83     <DataStream-list/>
84     <PyFunction-list>
85 <PyFunction>
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>6/6/2005 - 11:23:48</creation-date>
93     <lastmodification-date>6/6/2005 - 11:23:48</lastmodification-date>
94     <editor-release>1.05</editor-release>
95     <author>?</author>
96     <container>?</container>
97     <comment>Python function</comment>
98     <x-position>397</x-position>
99     <y-position>1</y-position>   </node>
100    <node>
101 <component-name>?</component-name>
102     <interface-name>?</interface-name>
103     <node-name>InitLoop</node-name>
104     <kind>4</kind>
105     <coupled-node>EndOfInitLoop</coupled-node>
106     <service>
107 <service-name>InitLoop</service-name>
108      <inParameter-list>
109 <inParameter>
110 <inParameter-type>long</inParameter-type>
111        <inParameter-name>Index</inParameter-name>      </inParameter>
112       <inParameter>
113 <inParameter-type>long</inParameter-type>
114        <inParameter-name>Min</inParameter-name>      </inParameter>
115       <inParameter>
116 <inParameter-type>long</inParameter-type>
117        <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
118      <outParameter-list>
119 <outParameter>
120 <outParameter-type>long</outParameter-type>
121        <outParameter-name>Index</outParameter-name>      </outParameter>
122       <outParameter>
123 <outParameter-type>long</outParameter-type>
124        <outParameter-name>Min</outParameter-name>      </outParameter>
125       <outParameter>
126 <outParameter-type>long</outParameter-type>
127        <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
128     <DataStream-list/>
129     <PyFunction-list>
130 <PyFunction>
131 <FuncName>?</FuncName>
132       <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>
133      <PyFunction>
134 <FuncName>?</FuncName>
135       <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>
136      <PyFunction>
137 <FuncName>?</FuncName>
138       <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
139     <creation-date>6/6/2005 - 11:23:48</creation-date>
140     <lastmodification-date>6/6/2005 - 11:23:48</lastmodification-date>
141     <editor-release>1.05</editor-release>
142     <author>?</author>
143     <container>?</container>
144     <comment>Compute Node</comment>
145     <x-position>10</x-position>
146     <y-position>108</y-position>   </node>
147    <node>
148 <component-name>?</component-name>
149     <interface-name>?</interface-name>
150     <node-name>EndOfInitLoop</node-name>
151     <kind>5</kind>
152     <coupled-node>InitLoop</coupled-node>
153     <service>
154 <service-name>EndOfInitLoop</service-name>
155      <inParameter-list>
156 <inParameter>
157 <inParameter-type>long</inParameter-type>
158        <inParameter-name>Index</inParameter-name>      </inParameter>
159       <inParameter>
160 <inParameter-type>long</inParameter-type>
161        <inParameter-name>Min</inParameter-name>      </inParameter>
162       <inParameter>
163 <inParameter-type>long</inParameter-type>
164        <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
165      <outParameter-list>
166 <outParameter>
167 <outParameter-type>long</outParameter-type>
168        <outParameter-name>Index</outParameter-name>      </outParameter>
169       <outParameter>
170 <outParameter-type>long</outParameter-type>
171        <outParameter-name>Min</outParameter-name>      </outParameter>
172       <outParameter>
173 <outParameter-type>long</outParameter-type>
174        <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
175     <DataStream-list/>
176     <PyFunction-list>
177 <PyFunction>
178 <FuncName>EndOfInitLoop</FuncName>
179       <PyFunc><![CDATA[def EndOfInitLoop( DoLoop , Index , Min , Max ) :]]></PyFunc>
180       <PyFunc><![CDATA[ Index = Index + 1     ]]></PyFunc>
181       <PyFunc><![CDATA[ if Index <= Max :   ]]></PyFunc>
182       <PyFunc><![CDATA[         DoLoop = 1     ]]></PyFunc>
183       <PyFunc><![CDATA[ else :     ]]></PyFunc>
184       <PyFunc><![CDATA[         DoLoop = 0     ]]></PyFunc>
185       <PyFunc><![CDATA[ return DoLoop,Index,Min,Max     ]]></PyFunc>     </PyFunction>    </PyFunction-list>
186     <creation-date>6/6/2005 - 11:23:48</creation-date>
187     <lastmodification-date>6/6/2005 - 11:23:48</lastmodification-date>
188     <editor-release>1.05</editor-release>
189     <author>?</author>
190     <container>?</container>
191     <comment>Compute Node</comment>
192     <x-position>767</x-position>
193     <y-position>102</y-position>   </node>
194    <node>
195 <component-name>?</component-name>
196     <interface-name>?</interface-name>
197     <node-name>Switch</node-name>
198     <kind>6</kind>
199     <coupled-node>EndSwitch</coupled-node>
200     <service>
201 <service-name>Switch</service-name>
202      <inParameter-list>
203 <inParameter>
204 <inParameter-type>long</inParameter-type>
205        <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
206      <outParameter-list>
207 <outParameter>
208 <outParameter-type>long</outParameter-type>
209        <outParameter-name>Odd</outParameter-name>      </outParameter>
210       <outParameter>
211 <outParameter-type>int</outParameter-type>
212        <outParameter-name>Even</outParameter-name>      </outParameter>
213       <outParameter>
214 <outParameter-type>int</outParameter-type>
215        <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
216     <DataStream-list/>
217     <PyFunction-list>
218 <PyFunction>
219 <FuncName>Switch</FuncName>
220       <PyFunc><![CDATA[from time import *  ]]></PyFunc>
221       <PyFunc><![CDATA[def Switch(a) :    ]]></PyFunc>
222       <PyFunc><![CDATA[    if ( a & 1 ) == 0 :  ]]></PyFunc>
223       <PyFunc><![CDATA[        sleep(1)  ]]></PyFunc>
224       <PyFunc><![CDATA[    return a & 1,1-(a&1),a    ]]></PyFunc>     </PyFunction>    </PyFunction-list>
225     <creation-date>6/6/2005 - 11:23:48</creation-date>
226     <lastmodification-date>6/6/2005 - 11:23:48</lastmodification-date>
227     <editor-release>1.05</editor-release>
228     <author>?</author>
229     <container>?</container>
230     <comment>Compute Node</comment>
231     <x-position>194</x-position>
232     <y-position>109</y-position>   </node>
233    <node>
234 <component-name>?</component-name>
235     <interface-name>?</interface-name>
236     <node-name>EndSwitch</node-name>
237     <kind>7</kind>
238     <coupled-node>Switch</coupled-node>
239     <service>
240 <service-name>EndSwitch</service-name>
241      <inParameter-list>
242 <inParameter>
243 <inParameter-type>long</inParameter-type>
244        <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
245      <outParameter-list>
246 <outParameter>
247 <outParameter-type>long</outParameter-type>
248        <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
249     <DataStream-list/>
250     <PyFunction-list>
251 <PyFunction>
252 <FuncName>EndSwitch</FuncName>
253       <PyFunc><![CDATA[def EndSwitch(a) :    ]]></PyFunc>
254       <PyFunc><![CDATA[    if ( a & 1 ) == 0 :  ]]></PyFunc>
255       <PyFunc><![CDATA[        sleep(1)  ]]></PyFunc>
256       <PyFunc><![CDATA[    return a    ]]></PyFunc>     </PyFunction>    </PyFunction-list>
257     <creation-date>6/6/2005 - 11:23:48</creation-date>
258     <lastmodification-date>6/6/2005 - 11:23:48</lastmodification-date>
259     <editor-release>1.05</editor-release>
260     <author>?</author>
261     <container>?</container>
262     <comment>Compute Node</comment>
263     <x-position>587</x-position>
264     <y-position>103</y-position>   </node>
265    <node>
266 <component-name>?</component-name>
267     <interface-name>?</interface-name>
268     <node-name>BadOutputOfLoop</node-name>
269     <kind>3</kind>
270     <coupled-node>?</coupled-node>
271     <service>
272 <service-name>BadOutputOfLoop</service-name>
273      <inParameter-list>
274 <inParameter>
275 <inParameter-type>long</inParameter-type>
276        <inParameter-name>OutputOfLoop</inParameter-name>      </inParameter>     </inParameter-list>
277      <outParameter-list/>    </service>
278     <DataStream-list/>
279     <PyFunction-list>
280 <PyFunction>
281 <FuncName>BadOutputOfLoop</FuncName>
282       <PyFunc><![CDATA[def BadOutputOfLoop() : ]]></PyFunc>
283       <PyFunc><![CDATA[ return 1 ]]></PyFunc>
284       <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
285     <creation-date>6/6/2005 - 11:23:48</creation-date>
286     <lastmodification-date>6/6/2005 - 11:23:48</lastmodification-date>
287     <editor-release>2.0</editor-release>
288     <author>?</author>
289     <container>?</container>
290     <comment>Compute Node</comment>
291     <x-position>287</x-position>
292     <y-position>349</y-position>   </node>  </node-list>
293   <link-list>
294 <link>
295 <fromnode-name>IsOdd</fromnode-name>
296     <fromserviceparameter-name>a</fromserviceparameter-name>
297     <tonode-name>EndSwitch</tonode-name>
298     <toserviceparameter-name>a</toserviceparameter-name>
299     <coord-list/>   </link>
300    <link>
301 <fromnode-name>InitLoop</fromnode-name>
302     <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
303     <tonode-name>EndOfInitLoop</tonode-name>
304     <toserviceparameter-name>DoLoop</toserviceparameter-name>
305     <coord-list/>   </link>
306    <link>
307 <fromnode-name>InitLoop</fromnode-name>
308     <fromserviceparameter-name>Index</fromserviceparameter-name>
309     <tonode-name>Switch</tonode-name>
310     <toserviceparameter-name>a</toserviceparameter-name>
311     <coord-list/>   </link>
312    <link>
313 <fromnode-name>InitLoop</fromnode-name>
314     <fromserviceparameter-name>Min</fromserviceparameter-name>
315     <tonode-name>EndOfInitLoop</tonode-name>
316     <toserviceparameter-name>Min</toserviceparameter-name>
317     <coord-list/>   </link>
318    <link>
319 <fromnode-name>InitLoop</fromnode-name>
320     <fromserviceparameter-name>Max</fromserviceparameter-name>
321     <tonode-name>BadOutputOfLoop</tonode-name>
322     <toserviceparameter-name>OutputOfLoop</toserviceparameter-name>
323     <coord-list/>   </link>
324    <link>
325 <fromnode-name>EndOfInitLoop</fromnode-name>
326     <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
327     <tonode-name>InitLoop</tonode-name>
328     <toserviceparameter-name>DoLoop</toserviceparameter-name>
329     <coord-list/>   </link>
330    <link>
331 <fromnode-name>Switch</fromnode-name>
332     <fromserviceparameter-name>Odd</fromserviceparameter-name>
333     <tonode-name>IsOdd</tonode-name>
334     <toserviceparameter-name>Gate</toserviceparameter-name>
335     <coord-list/>   </link>
336    <link>
337 <fromnode-name>Switch</fromnode-name>
338     <fromserviceparameter-name>Even</fromserviceparameter-name>
339     <tonode-name>EndSwitch</tonode-name>
340     <toserviceparameter-name>Default</toserviceparameter-name>
341     <coord-list/>   </link>
342    <link>
343 <fromnode-name>Switch</fromnode-name>
344     <fromserviceparameter-name>a</fromserviceparameter-name>
345     <tonode-name>IsOdd</tonode-name>
346     <toserviceparameter-name>a</toserviceparameter-name>
347     <coord-list/>   </link>
348    <link>
349 <fromnode-name>EndSwitch</fromnode-name>
350     <fromserviceparameter-name>a</fromserviceparameter-name>
351     <tonode-name>EndOfInitLoop</tonode-name>
352     <toserviceparameter-name>Index</toserviceparameter-name>
353     <coord-list/>   </link>  </link-list>
354   <data-list>
355 <data>
356 <fromnode-name>GraphBadOutputOfLoop1</fromnode-name>
357     <fromserviceparameter-name>InitLoop__Index</fromserviceparameter-name>
358     <tonode-name>InitLoop</tonode-name>
359     <toserviceparameter-name>Index</toserviceparameter-name>
360     <data-value>
361 <value-type>3</value-type>
362      <value>0</value>    </data-value>
363     <coord-list/>   </data>
364    <data>
365 <fromnode-name>GraphBadOutputOfLoop1</fromnode-name>
366     <fromserviceparameter-name>InitLoop__Min</fromserviceparameter-name>
367     <tonode-name>InitLoop</tonode-name>
368     <toserviceparameter-name>Min</toserviceparameter-name>
369     <data-value>
370 <value-type>3</value-type>
371      <value>0</value>    </data-value>
372     <coord-list/>   </data>
373    <data>
374 <fromnode-name>GraphBadOutputOfLoop1</fromnode-name>
375     <fromserviceparameter-name>InitLoop__Max</fromserviceparameter-name>
376     <tonode-name>InitLoop</tonode-name>
377     <toserviceparameter-name>Max</toserviceparameter-name>
378     <data-value>
379 <value-type>3</value-type>
380      <value>100</value>    </data-value>
381     <coord-list/>   </data>  </data-list> </dataflow></supergraph>