3 Copyright (C) 2007-2014 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>GraphLoop</node-name>
33 <coupled-node>?</coupled-node>
35 <service-name>GraphLoop</service-name>
38 <inParameter-type>long</inParameter-type>
39 <inParameter-name>Init__Index</inParameter-name> </inParameter>
41 <inParameter-type>long</inParameter-type>
42 <inParameter-name>Init__Min</inParameter-name> </inParameter>
44 <inParameter-type>long</inParameter-type>
45 <inParameter-name>Init__Max</inParameter-name> </inParameter>
47 <inParameter-type>long</inParameter-type>
48 <inParameter-name>Init__Incr</inParameter-name> </inParameter> </inParameter-list>
51 <outParameter-type>long</outParameter-type>
52 <outParameter-name>EndInit__Index</outParameter-name> </outParameter>
54 <outParameter-type>long</outParameter-type>
55 <outParameter-name>EndInit__Min</outParameter-name> </outParameter>
57 <outParameter-type>long</outParameter-type>
58 <outParameter-name>EndInit__Max</outParameter-name> </outParameter>
60 <outParameter-type>long</outParameter-type>
61 <outParameter-name>EndInit__Incr</outParameter-name> </outParameter> </outParameter-list> </service>
64 <creation-date>24/3/2003 - 14:44:35</creation-date>
65 <lastmodification-date>16/12/2004 - 11:8:15</lastmodification-date>
66 <editor-release>1.04</editor-release>
68 <container>?</container>
70 <x-position>0</x-position>
71 <y-position>0</y-position> </node> </info-list>
74 <component-name>?</component-name>
75 <interface-name>?</interface-name>
76 <node-name>Init</node-name>
78 <coupled-node>EndInit</coupled-node>
80 <service-name>Init</service-name>
83 <inParameter-type>long</inParameter-type>
84 <inParameter-name>Index</inParameter-name> </inParameter>
86 <inParameter-type>long</inParameter-type>
87 <inParameter-name>Min</inParameter-name> </inParameter>
89 <inParameter-type>long</inParameter-type>
90 <inParameter-name>Max</inParameter-name> </inParameter>
92 <inParameter-type>long</inParameter-type>
93 <inParameter-name>Incr</inParameter-name> </inParameter> </inParameter-list>
96 <outParameter-type>long</outParameter-type>
97 <outParameter-name>Index</outParameter-name> </outParameter>
99 <outParameter-type>long</outParameter-type>
100 <outParameter-name>Min</outParameter-name> </outParameter>
102 <outParameter-type>long</outParameter-type>
103 <outParameter-name>Max</outParameter-name> </outParameter>
105 <outParameter-type>long</outParameter-type>
106 <outParameter-name>Incr</outParameter-name> </outParameter> </outParameter-list> </service>
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>
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>
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>16/12/2004 - 11:8:15</creation-date>
133 <lastmodification-date>16/12/2004 - 11:8:15</lastmodification-date>
134 <editor-release>1.04</editor-release>
136 <container>?</container>
137 <comment>Compute Node</comment>
138 <x-position>17</x-position>
139 <y-position>257</y-position> </node>
141 <component-name>?</component-name>
142 <interface-name>?</interface-name>
143 <node-name>EndInit</node-name>
145 <coupled-node>Init</coupled-node>
147 <service-name>EndInit</service-name>
150 <inParameter-type>long</inParameter-type>
151 <inParameter-name>Index</inParameter-name> </inParameter>
153 <inParameter-type>long</inParameter-type>
154 <inParameter-name>Min</inParameter-name> </inParameter>
156 <inParameter-type>long</inParameter-type>
157 <inParameter-name>Max</inParameter-name> </inParameter>
159 <inParameter-type>long</inParameter-type>
160 <inParameter-name>Incr</inParameter-name> </inParameter> </inParameter-list>
163 <outParameter-type>long</outParameter-type>
164 <outParameter-name>Index</outParameter-name> </outParameter>
166 <outParameter-type>long</outParameter-type>
167 <outParameter-name>Min</outParameter-name> </outParameter>
169 <outParameter-type>long</outParameter-type>
170 <outParameter-name>Max</outParameter-name> </outParameter>
172 <outParameter-type>long</outParameter-type>
173 <outParameter-name>Incr</outParameter-name> </outParameter> </outParameter-list> </service>
177 <FuncName>?</FuncName>
178 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
179 <creation-date>16/12/2004 - 11:8:15</creation-date>
180 <lastmodification-date>16/12/2004 - 11:8:15</lastmodification-date>
181 <editor-release>1.04</editor-release>
183 <container>?</container>
184 <comment>Compute Node</comment>
185 <x-position>366</x-position>
186 <y-position>262</y-position> </node> </node-list>
189 <fromnode-name>Init</fromnode-name>
190 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
191 <tonode-name>EndInit</tonode-name>
192 <toserviceparameter-name>DoLoop</toserviceparameter-name>
193 <coord-list/> </link>
195 <fromnode-name>Init</fromnode-name>
196 <fromserviceparameter-name>Index</fromserviceparameter-name>
197 <tonode-name>EndInit</tonode-name>
198 <toserviceparameter-name>Index</toserviceparameter-name>
199 <coord-list/> </link>
201 <fromnode-name>Init</fromnode-name>
202 <fromserviceparameter-name>Min</fromserviceparameter-name>
203 <tonode-name>EndInit</tonode-name>
204 <toserviceparameter-name>Min</toserviceparameter-name>
205 <coord-list/> </link>
207 <fromnode-name>Init</fromnode-name>
208 <fromserviceparameter-name>Max</fromserviceparameter-name>
209 <tonode-name>EndInit</tonode-name>
210 <toserviceparameter-name>Max</toserviceparameter-name>
211 <coord-list/> </link>
213 <fromnode-name>Init</fromnode-name>
214 <fromserviceparameter-name>Incr</fromserviceparameter-name>
215 <tonode-name>EndInit</tonode-name>
216 <toserviceparameter-name>Incr</toserviceparameter-name>
217 <coord-list/> </link>
219 <fromnode-name>EndInit</fromnode-name>
220 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
221 <tonode-name>Init</tonode-name>
222 <toserviceparameter-name>DoLoop</toserviceparameter-name>
223 <coord-list/> </link> </link-list>
226 <fromnode-name>GraphLoop</fromnode-name>
227 <fromserviceparameter-name>Init__Index</fromserviceparameter-name>
228 <tonode-name>Init</tonode-name>
229 <toserviceparameter-name>Index</toserviceparameter-name>
231 <value-type>3</value-type>
232 <value>0</value> </data-value>
233 <coord-list/> </data>
235 <fromnode-name>GraphLoop</fromnode-name>
236 <fromserviceparameter-name>Init__Min</fromserviceparameter-name>
237 <tonode-name>Init</tonode-name>
238 <toserviceparameter-name>Min</toserviceparameter-name>
240 <value-type>3</value-type>
241 <value>5</value> </data-value>
242 <coord-list/> </data>
244 <fromnode-name>GraphLoop</fromnode-name>
245 <fromserviceparameter-name>Init__Max</fromserviceparameter-name>
246 <tonode-name>Init</tonode-name>
247 <toserviceparameter-name>Max</toserviceparameter-name>
249 <value-type>3</value-type>
250 <value>10</value> </data-value>
251 <coord-list/> </data>
253 <fromnode-name>GraphLoop</fromnode-name>
254 <fromserviceparameter-name>Init__Incr</fromserviceparameter-name>
255 <tonode-name>Init</tonode-name>
256 <toserviceparameter-name>Incr</toserviceparameter-name>
258 <value-type>3</value-type>
259 <value>1</value> </data-value>
260 <coord-list/> </data> </data-list> </dataflow></supergraph>