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