]> SALOME platform Git repositories - samples/datafiles.git/blob - Superv/Graphs/GraphLoopSwitchDefaultAborted.xml
Salome HOME
523c815a96c7b4c676f8c6d636af825a41d73cd3
[samples/datafiles.git] / Superv / Graphs / GraphLoopSwitchDefaultAborted.xml
1 <!DOCTYPE SuperGraph>
2 <!--
3   Copyright (C) 2007-2015  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>GraphLoopSwitchDefaultAborted</node-name>
32     <kind>1</kind>
33     <coupled-node>?</coupled-node>
34     <service>
35 <service-name>GraphLoopSwitch_1</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>11/2/2005 - 11:46:10</lastmodification-date>
60     <editor-release>1.05</editor-release>
61     <author>JR</author>
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>
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>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>
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>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>
136      <PyFunction>
137 <FuncName>?</FuncName>
138       <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>
139      <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>
145     <author>?</author>
146     <container>?</container>
147     <comment>Compute Node</comment>
148     <x-position>10</x-position>
149     <y-position>108</y-position>   </node>
150    <node>
151 <component-name>?</component-name>
152     <interface-name>?</interface-name>
153     <node-name>EndOfInitLoop</node-name>
154     <kind>5</kind>
155     <coupled-node>InitLoop</coupled-node>
156     <service>
157 <service-name>EndOfInitLoop</service-name>
158      <inParameter-list>
159 <inParameter>
160 <inParameter-type>long</inParameter-type>
161        <inParameter-name>Index</inParameter-name>      </inParameter>
162       <inParameter>
163 <inParameter-type>long</inParameter-type>
164        <inParameter-name>Min</inParameter-name>      </inParameter>
165       <inParameter>
166 <inParameter-type>long</inParameter-type>
167        <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
168      <outParameter-list>
169 <outParameter>
170 <outParameter-type>long</outParameter-type>
171        <outParameter-name>Index</outParameter-name>      </outParameter>
172       <outParameter>
173 <outParameter-type>long</outParameter-type>
174        <outParameter-name>Min</outParameter-name>      </outParameter>
175       <outParameter>
176 <outParameter-type>long</outParameter-type>
177        <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
178     <DataStream-list/>
179     <PyFunction-list>
180 <PyFunction>
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>
192     <author>?</author>
193     <container>?</container>
194     <comment>Compute Node</comment>
195     <x-position>767</x-position>
196     <y-position>102</y-position>   </node>
197    <node>
198 <component-name>?</component-name>
199     <interface-name>?</interface-name>
200     <node-name>Switch</node-name>
201     <kind>6</kind>
202     <coupled-node>EndSwitch</coupled-node>
203     <service>
204 <service-name>Switch</service-name>
205      <inParameter-list>
206 <inParameter>
207 <inParameter-type>long</inParameter-type>
208        <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
209      <outParameter-list>
210 <outParameter>
211 <outParameter-type>long</outParameter-type>
212        <outParameter-name>Odd</outParameter-name>      </outParameter>
213       <outParameter>
214 <outParameter-type>int</outParameter-type>
215        <outParameter-name>Even</outParameter-name>      </outParameter>
216       <outParameter>
217 <outParameter-type>int</outParameter-type>
218        <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
219     <DataStream-list/>
220     <PyFunction-list>
221 <PyFunction>
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>
231     <author>?</author>
232     <container>?</container>
233     <comment>Compute Node</comment>
234     <x-position>194</x-position>
235     <y-position>109</y-position>   </node>
236    <node>
237 <component-name>?</component-name>
238     <interface-name>?</interface-name>
239     <node-name>EndSwitch</node-name>
240     <kind>7</kind>
241     <coupled-node>Switch</coupled-node>
242     <service>
243 <service-name>EndSwitch</service-name>
244      <inParameter-list>
245 <inParameter>
246 <inParameter-type>long</inParameter-type>
247        <inParameter-name>a</inParameter-name>      </inParameter>
248       <inParameter>
249 <inParameter-type>long</inParameter-type>
250        <inParameter-name>Even</inParameter-name>      </inParameter>     </inParameter-list>
251      <outParameter-list>
252 <outParameter>
253 <outParameter-type>long</outParameter-type>
254        <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
255     <DataStream-list/>
256     <PyFunction-list>
257 <PyFunction>
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>
265     <author>?</author>
266     <container>?</container>
267     <comment>Compute Node</comment>
268     <x-position>587</x-position>
269     <y-position>103</y-position>   </node>
270    <node>
271 <component-name>?</component-name>
272     <interface-name>?</interface-name>
273     <node-name>Vala</node-name>
274     <kind>3</kind>
275     <coupled-node>?</coupled-node>
276     <service>
277 <service-name>Vala</service-name>
278      <inParameter-list>
279 <inParameter>
280 <inParameter-type>long</inParameter-type>
281        <inParameter-name>Even</inParameter-name>      </inParameter>     </inParameter-list>
282      <outParameter-list>
283 <outParameter>
284 <outParameter-type>long</outParameter-type>
285        <outParameter-name>Even</outParameter-name>      </outParameter>     </outParameter-list>    </service>
286     <DataStream-list/>
287     <PyFunction-list>
288 <PyFunction>
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>
298     <author>?</author>
299     <container>?</container>
300     <comment>Compute Node</comment>
301     <x-position>394</x-position>
302     <y-position>137</y-position>   </node>  </node-list>
303   <link-list>
304 <link>
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>
310    <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>
316    <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>
322    <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>
328    <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>
334    <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>
340    <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>
346    <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>
352    <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>
358    <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>
364    <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>
370   <data-list>
371 <data>
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>
376     <data-value>
377 <value-type>3</value-type>
378      <value>0</value>    </data-value>
379     <coord-list/>   </data>
380    <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>
385     <data-value>
386 <value-type>3</value-type>
387      <value>5</value>    </data-value>
388     <coord-list/>   </data>
389    <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>
394     <data-value>
395 <value-type>3</value-type>
396      <value>23</value>    </data-value>
397     <coord-list/>   </data>  </data-list> </dataflow></supergraph>