]> SALOME platform Git repositories - samples/datafiles.git/blob - Superv/Graphs/GraphLoop1.xml
Salome HOME
Merge from V6_main_20120808 08Aug12
[samples/datafiles.git] / Superv / Graphs / GraphLoop1.xml
1 <!DOCTYPE SuperGraph>
2 <!--
3   Copyright (C) 2007-2011  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.
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>GraphLoop1</node-name>
32     <kind>1</kind>
33     <coupled-node>?</coupled-node>
34     <service>
35 <service-name>GraphLoop_2</service-name>
36      <inParameter-list>
37 <inParameter>
38 <inParameter-type>long</inParameter-type>
39        <inParameter-name>Init__Index</inParameter-name>      </inParameter>
40       <inParameter>
41 <inParameter-type>long</inParameter-type>
42        <inParameter-name>Init__Min</inParameter-name>      </inParameter>
43       <inParameter>
44 <inParameter-type>long</inParameter-type>
45        <inParameter-name>Init__Max</inParameter-name>      </inParameter>
46       <inParameter>
47 <inParameter-type>long</inParameter-type>
48        <inParameter-name>Init__Incr</inParameter-name>      </inParameter>     </inParameter-list>
49      <outParameter-list>
50 <outParameter>
51 <outParameter-type>long</outParameter-type>
52        <outParameter-name>EndInit__Index</outParameter-name>      </outParameter>
53       <outParameter>
54 <outParameter-type>long</outParameter-type>
55        <outParameter-name>EndInit__Min</outParameter-name>      </outParameter>
56       <outParameter>
57 <outParameter-type>long</outParameter-type>
58        <outParameter-name>EndInit__Max</outParameter-name>      </outParameter>
59       <outParameter>
60 <outParameter-type>long</outParameter-type>
61        <outParameter-name>EndInit__Incr</outParameter-name>      </outParameter>     </outParameter-list>    </service>
62     <DataStream-list/>
63     <PyFunction-list/>
64     <creation-date>24/3/2003 - 14:44:35</creation-date>
65     <lastmodification-date>6/6/2005 - 15:13:52</lastmodification-date>
66     <editor-release>1.04</editor-release>
67     <author>?</author>
68     <container>?</container>
69     <comment>?</comment>
70     <x-position>0</x-position>
71     <y-position>0</y-position>   </node>  </info-list>
72   <node-list>
73 <node>
74 <component-name>?</component-name>
75     <interface-name>?</interface-name>
76     <node-name>Init</node-name>
77     <kind>4</kind>
78     <coupled-node>EndInit</coupled-node>
79     <service>
80 <service-name>Init</service-name>
81      <inParameter-list>
82 <inParameter>
83 <inParameter-type>long</inParameter-type>
84        <inParameter-name>Index</inParameter-name>      </inParameter>
85       <inParameter>
86 <inParameter-type>long</inParameter-type>
87        <inParameter-name>Min</inParameter-name>      </inParameter>
88       <inParameter>
89 <inParameter-type>long</inParameter-type>
90        <inParameter-name>Max</inParameter-name>      </inParameter>
91       <inParameter>
92 <inParameter-type>long</inParameter-type>
93        <inParameter-name>Incr</inParameter-name>      </inParameter>     </inParameter-list>
94      <outParameter-list>
95 <outParameter>
96 <outParameter-type>long</outParameter-type>
97        <outParameter-name>Index</outParameter-name>      </outParameter>
98       <outParameter>
99 <outParameter-type>long</outParameter-type>
100        <outParameter-name>Min</outParameter-name>      </outParameter>
101       <outParameter>
102 <outParameter-type>long</outParameter-type>
103        <outParameter-name>Max</outParameter-name>      </outParameter>
104       <outParameter>
105 <outParameter-type>long</outParameter-type>
106        <outParameter-name>Incr</outParameter-name>      </outParameter>     </outParameter-list>    </service>
107     <DataStream-list/>
108     <PyFunction-list>
109 <PyFunction>
110 <FuncName>Init</FuncName>
111       <PyFunc><![CDATA[def Init(Index,Min,Max,Incr) :   ]]></PyFunc>
112       <PyFunc><![CDATA[    if Min <= Max :   ]]></PyFunc>
113       <PyFunc><![CDATA[        Index = Min   ]]></PyFunc>
114       <PyFunc><![CDATA[    else :   ]]></PyFunc>
115       <PyFunc><![CDATA[        Index = Max   ]]></PyFunc>
116       <PyFunc><![CDATA[    return Index,Min,Max,Incr   ]]></PyFunc>     </PyFunction>
117      <PyFunction>
118 <FuncName>More</FuncName>
119       <PyFunc><![CDATA[import time ]]></PyFunc>
120       <PyFunc><![CDATA[def More(Index,Min,Max,Incr) :   ]]></PyFunc>
121       <PyFunc><![CDATA[    time.sleep(2) ]]></PyFunc>
122       <PyFunc><![CDATA[    if Index < Max :   ]]></PyFunc>
123       <PyFunc><![CDATA[        DoLoop = 1   ]]></PyFunc>
124       <PyFunc><![CDATA[    else :   ]]></PyFunc>
125       <PyFunc><![CDATA[        DoLoop = 0   ]]></PyFunc>
126       <PyFunc><![CDATA[    return DoLoop,Index,Min,Max,Incr   ]]></PyFunc>     </PyFunction>
127      <PyFunction>
128 <FuncName>Next</FuncName>
129       <PyFunc><![CDATA[def Next(Index,Min,Max,Incr) :   ]]></PyFunc>
130       <PyFunc><![CDATA[    Index = Index + Incr   ]]></PyFunc>
131       <PyFunc><![CDATA[    return Index,Min,Max,Incr  ]]></PyFunc>     </PyFunction>    </PyFunction-list>
132     <creation-date>6/6/2005 - 15:13:52</creation-date>
133     <lastmodification-date>6/6/2005 - 15:13:52</lastmodification-date>
134     <editor-release>1.04</editor-release>
135     <author>?</author>
136     <container>?</container>
137     <comment>Compute Node</comment>
138     <x-position>17</x-position>
139     <y-position>257</y-position>   </node>
140    <node>
141 <component-name>?</component-name>
142     <interface-name>?</interface-name>
143     <node-name>EndInit</node-name>
144     <kind>5</kind>
145     <coupled-node>Init</coupled-node>
146     <service>
147 <service-name>EndInit</service-name>
148      <inParameter-list>
149 <inParameter>
150 <inParameter-type>long</inParameter-type>
151        <inParameter-name>Index</inParameter-name>      </inParameter>
152       <inParameter>
153 <inParameter-type>long</inParameter-type>
154        <inParameter-name>Min</inParameter-name>      </inParameter>
155       <inParameter>
156 <inParameter-type>long</inParameter-type>
157        <inParameter-name>Max</inParameter-name>      </inParameter>
158       <inParameter>
159 <inParameter-type>long</inParameter-type>
160        <inParameter-name>Incr</inParameter-name>      </inParameter>     </inParameter-list>
161      <outParameter-list>
162 <outParameter>
163 <outParameter-type>long</outParameter-type>
164        <outParameter-name>Index</outParameter-name>      </outParameter>
165       <outParameter>
166 <outParameter-type>long</outParameter-type>
167        <outParameter-name>Min</outParameter-name>      </outParameter>
168       <outParameter>
169 <outParameter-type>long</outParameter-type>
170        <outParameter-name>Max</outParameter-name>      </outParameter>
171       <outParameter>
172 <outParameter-type>long</outParameter-type>
173        <outParameter-name>Incr</outParameter-name>      </outParameter>     </outParameter-list>    </service>
174     <DataStream-list/>
175     <PyFunction-list>
176 <PyFunction>
177 <FuncName>?</FuncName>
178       <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
179     <creation-date>6/6/2005 - 15:13:52</creation-date>
180     <lastmodification-date>6/6/2005 - 15:13:52</lastmodification-date>
181     <editor-release>1.04</editor-release>
182     <author>?</author>
183     <container>?</container>
184     <comment>Compute Node</comment>
185     <x-position>555</x-position>
186     <y-position>255</y-position>   </node>
187    <node>
188 <component-name>?</component-name>
189     <interface-name>?</interface-name>
190     <node-name>NodeIndex</node-name>
191     <kind>3</kind>
192     <coupled-node>?</coupled-node>
193     <service>
194 <service-name>NodeIndex</service-name>
195      <inParameter-list>
196 <inParameter>
197 <inParameter-type>long</inParameter-type>
198        <inParameter-name>Index</inParameter-name>      </inParameter>     </inParameter-list>
199      <outParameter-list>
200 <outParameter>
201 <outParameter-type>long</outParameter-type>
202        <outParameter-name>Index</outParameter-name>      </outParameter>     </outParameter-list>    </service>
203     <DataStream-list/>
204     <PyFunction-list>
205 <PyFunction>
206 <FuncName>?</FuncName>
207       <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
208     <creation-date>6/6/2005 - 15:13:52</creation-date>
209     <lastmodification-date>6/6/2005 - 15:13:52</lastmodification-date>
210     <editor-release>2.0</editor-release>
211     <author>?</author>
212     <container>?</container>
213     <comment>Compute Node</comment>
214     <x-position>281</x-position>
215     <y-position>215</y-position>   </node>
216    <node>
217 <component-name>?</component-name>
218     <interface-name>?</interface-name>
219     <node-name>NodeIncr</node-name>
220     <kind>3</kind>
221     <coupled-node>?</coupled-node>
222     <service>
223 <service-name>NodeIncr</service-name>
224      <inParameter-list>
225 <inParameter>
226 <inParameter-type>long</inParameter-type>
227        <inParameter-name>Incr</inParameter-name>      </inParameter>     </inParameter-list>
228      <outParameter-list>
229 <outParameter>
230 <outParameter-type>long</outParameter-type>
231        <outParameter-name>Incr</outParameter-name>      </outParameter>     </outParameter-list>    </service>
232     <DataStream-list/>
233     <PyFunction-list>
234 <PyFunction>
235 <FuncName>?</FuncName>
236       <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
237     <creation-date>6/6/2005 - 15:13:52</creation-date>
238     <lastmodification-date>6/6/2005 - 15:13:52</lastmodification-date>
239     <editor-release>2.0</editor-release>
240     <author>?</author>
241     <container>?</container>
242     <comment>Compute Node</comment>
243     <x-position>278</x-position>
244     <y-position>372</y-position>   </node>  </node-list>
245   <link-list>
246 <link>
247 <fromnode-name>Init</fromnode-name>
248     <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
249     <tonode-name>EndInit</tonode-name>
250     <toserviceparameter-name>DoLoop</toserviceparameter-name>
251     <coord-list/>   </link>
252    <link>
253 <fromnode-name>Init</fromnode-name>
254     <fromserviceparameter-name>Index</fromserviceparameter-name>
255     <tonode-name>NodeIndex</tonode-name>
256     <toserviceparameter-name>Index</toserviceparameter-name>
257     <coord-list/>   </link>
258    <link>
259 <fromnode-name>Init</fromnode-name>
260     <fromserviceparameter-name>Min</fromserviceparameter-name>
261     <tonode-name>EndInit</tonode-name>
262     <toserviceparameter-name>Min</toserviceparameter-name>
263     <coord-list/>   </link>
264    <link>
265 <fromnode-name>Init</fromnode-name>
266     <fromserviceparameter-name>Max</fromserviceparameter-name>
267     <tonode-name>EndInit</tonode-name>
268     <toserviceparameter-name>Max</toserviceparameter-name>
269     <coord-list/>   </link>
270    <link>
271 <fromnode-name>Init</fromnode-name>
272     <fromserviceparameter-name>Incr</fromserviceparameter-name>
273     <tonode-name>NodeIncr</tonode-name>
274     <toserviceparameter-name>Incr</toserviceparameter-name>
275     <coord-list/>   </link>
276    <link>
277 <fromnode-name>EndInit</fromnode-name>
278     <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
279     <tonode-name>Init</tonode-name>
280     <toserviceparameter-name>DoLoop</toserviceparameter-name>
281     <coord-list/>   </link>
282    <link>
283 <fromnode-name>NodeIndex</fromnode-name>
284     <fromserviceparameter-name>Index</fromserviceparameter-name>
285     <tonode-name>EndInit</tonode-name>
286     <toserviceparameter-name>Index</toserviceparameter-name>
287     <coord-list/>   </link>
288    <link>
289 <fromnode-name>NodeIncr</fromnode-name>
290     <fromserviceparameter-name>Incr</fromserviceparameter-name>
291     <tonode-name>EndInit</tonode-name>
292     <toserviceparameter-name>Incr</toserviceparameter-name>
293     <coord-list/>   </link>  </link-list>
294   <data-list>
295 <data>
296 <fromnode-name>GraphLoop1</fromnode-name>
297     <fromserviceparameter-name>Init__Index</fromserviceparameter-name>
298     <tonode-name>Init</tonode-name>
299     <toserviceparameter-name>Index</toserviceparameter-name>
300     <data-value>
301 <value-type>3</value-type>
302      <value>0</value>    </data-value>
303     <coord-list/>   </data>
304    <data>
305 <fromnode-name>GraphLoop1</fromnode-name>
306     <fromserviceparameter-name>Init__Min</fromserviceparameter-name>
307     <tonode-name>Init</tonode-name>
308     <toserviceparameter-name>Min</toserviceparameter-name>
309     <data-value>
310 <value-type>3</value-type>
311      <value>5</value>    </data-value>
312     <coord-list/>   </data>
313    <data>
314 <fromnode-name>GraphLoop1</fromnode-name>
315     <fromserviceparameter-name>Init__Max</fromserviceparameter-name>
316     <tonode-name>Init</tonode-name>
317     <toserviceparameter-name>Max</toserviceparameter-name>
318     <data-value>
319 <value-type>3</value-type>
320      <value>10</value>    </data-value>
321     <coord-list/>   </data>
322    <data>
323 <fromnode-name>GraphLoop1</fromnode-name>
324     <fromserviceparameter-name>Init__Incr</fromserviceparameter-name>
325     <tonode-name>Init</tonode-name>
326     <toserviceparameter-name>Incr</toserviceparameter-name>
327     <data-value>
328 <value-type>3</value-type>
329      <value>1</value>    </data-value>
330     <coord-list/>   </data>  </data-list> </dataflow></supergraph>