5 <component-name>?</component-name>
6 <interface-name>?</interface-name>
7 <node-name>LoopGraph</node-name>
9 <coupled-node>?</coupled-node>
11 <service-name>LoopGraph</service-name>
14 <inParameter-type>long</inParameter-type>
15 <inParameter-name>Init\index</inParameter-name> </inParameter>
17 <inParameter-type>long</inParameter-type>
18 <inParameter-name>Init\min</inParameter-name> </inParameter>
20 <inParameter-type>long</inParameter-type>
21 <inParameter-name>Init\max</inParameter-name> </inParameter>
23 <inParameter-type>objref</inParameter-type>
24 <inParameter-name>Init\medfield</inParameter-name> </inParameter>
26 <inParameter-type>double</inParameter-type>
27 <inParameter-name>Init\x1</inParameter-name> </inParameter> </inParameter-list>
30 <outParameter-type>long</outParameter-type>
31 <outParameter-name>EndInit\index</outParameter-name> </outParameter>
33 <outParameter-type>long</outParameter-type>
34 <outParameter-name>EndInit\min</outParameter-name> </outParameter>
36 <outParameter-type>long</outParameter-type>
37 <outParameter-name>EndInit\max</outParameter-name> </outParameter>
39 <outParameter-type>objref</outParameter-type>
40 <outParameter-name>EndInit\medfield</outParameter-name> </outParameter>
42 <outParameter-type>double</outParameter-type>
43 <outParameter-name>EndInit\x1</outParameter-name> </outParameter>
45 <outParameter-type>objref</outParameter-type>
46 <outParameter-name>EndInit\aVisu</outParameter-name> </outParameter>
48 <outParameter-type>objref</outParameter-type>
49 <outParameter-name>EndInit\aView</outParameter-name> </outParameter> </outParameter-list> </service>
52 <creation-date>15/9/2003 - 15:25:24</creation-date>
53 <lastmodification-date>19/9/2003 - 16:0:10</lastmodification-date>
54 <editor-release>1.04</editor-release>
56 <container>?</container>
58 <x-position>0</x-position>
59 <y-position>0</y-position> </node> </info-list>
62 <component-name>?</component-name>
63 <interface-name>?</interface-name>
64 <node-name>InitDisplay</node-name>
66 <coupled-node>?</coupled-node>
68 <service-name>InitDisplay</service-name>
72 <outParameter-type>objref</outParameter-type>
73 <outParameter-name>aVisu</outParameter-name> </outParameter>
75 <outParameter-type>objref</outParameter-type>
76 <outParameter-name>aView</outParameter-name> </outParameter> </outParameter-list> </service>
80 <FuncName>InitDisplay</FuncName>
81 <PyFunc><![CDATA[from VISU import * ]]></PyFunc>
82 <PyFunc><![CDATA[import SALOMEDS ]]></PyFunc>
83 <PyFunc><![CDATA[from LifeCycleCORBA import * ]]></PyFunc>
84 <PyFunc><![CDATA[from SALOME_NamingServicePy import * ]]></PyFunc>
85 <PyFunc><![CDATA[def InitDisplay(): ]]></PyFunc>
86 <PyFunc><![CDATA[ # initialize the ORB ]]></PyFunc>
87 <PyFunc><![CDATA[ orb = CORBA.ORB_init([], CORBA.ORB_ID) ]]></PyFunc>
88 <PyFunc><![CDATA[ # create an LifeCycleCORBA instance ]]></PyFunc>
89 <PyFunc><![CDATA[ lcc = LifeCycleCORBA(orb) ]]></PyFunc>
90 <PyFunc><![CDATA[ # ----------------------------------------- ]]></PyFunc>
91 <PyFunc><![CDATA[ # Visualization parameters ]]></PyFunc>
92 <PyFunc><![CDATA[ #create a naming service instance ]]></PyFunc>
93 <PyFunc><![CDATA[ naming_service = SALOME_NamingServicePy_i(orb) ]]></PyFunc>
94 <PyFunc><![CDATA[ # get Study Manager reference ]]></PyFunc>
95 <PyFunc><![CDATA[ obj = naming_service.Resolve("myStudyManager") ]]></PyFunc>
96 <PyFunc><![CDATA[ myStudyManager = obj._narrow(SALOMEDS.StudyManager) ]]></PyFunc>
97 <PyFunc><![CDATA[ myStudy = myStudyManager.GetStudyByID(1) ]]></PyFunc>
98 <PyFunc><![CDATA[ aVisu = lcc.FindOrLoadComponent("FactoryServer", "Visu") ]]></PyFunc>
99 <PyFunc><![CDATA[ print "InitDisplay --> aVisu = ",aVisu ]]></PyFunc>
100 <PyFunc><![CDATA[ aVisu.SetCurrentStudy(myStudy); ]]></PyFunc>
101 <PyFunc><![CDATA[ aViewManager = aVisu.GetViewManager() ]]></PyFunc>
102 <PyFunc><![CDATA[ print "InitDisplay --> aViewManager = ",aViewManager ]]></PyFunc>
103 <PyFunc><![CDATA[ aView = aViewManager.Create3DView() ]]></PyFunc>
104 <PyFunc><![CDATA[ print "InitDisplay --> aView = ",aView ]]></PyFunc>
105 <PyFunc><![CDATA[ return aVisu,aView ]]></PyFunc> </PyFunction> </PyFunction-list>
106 <creation-date>19/9/2003 - 16:0:9</creation-date>
107 <lastmodification-date>19/9/2003 - 16:0:9</lastmodification-date>
108 <editor-release>1.04</editor-release>
110 <container>?</container>
111 <comment>Compute Node</comment>
112 <x-position>1</x-position>
113 <y-position>105</y-position> </node>
115 <component-name>?</component-name>
116 <interface-name>?</interface-name>
117 <node-name>Init</node-name>
119 <coupled-node>EndInit</coupled-node>
121 <service-name>Init</service-name>
124 <inParameter-type>long</inParameter-type>
125 <inParameter-name>index</inParameter-name> </inParameter>
127 <inParameter-type>long</inParameter-type>
128 <inParameter-name>min</inParameter-name> </inParameter>
130 <inParameter-type>long</inParameter-type>
131 <inParameter-name>max</inParameter-name> </inParameter>
133 <inParameter-type>objref</inParameter-type>
134 <inParameter-name>medfield</inParameter-name> </inParameter>
136 <inParameter-type>double</inParameter-type>
137 <inParameter-name>x1</inParameter-name> </inParameter>
139 <inParameter-type>objref</inParameter-type>
140 <inParameter-name>aVisu</inParameter-name> </inParameter>
142 <inParameter-type>objref</inParameter-type>
143 <inParameter-name>aView</inParameter-name> </inParameter> </inParameter-list>
146 <outParameter-type>long</outParameter-type>
147 <outParameter-name>index</outParameter-name> </outParameter>
149 <outParameter-type>long</outParameter-type>
150 <outParameter-name>min</outParameter-name> </outParameter>
152 <outParameter-type>long</outParameter-type>
153 <outParameter-name>max</outParameter-name> </outParameter>
155 <outParameter-type>objref</outParameter-type>
156 <outParameter-name>medfield</outParameter-name> </outParameter>
158 <outParameter-type>double</outParameter-type>
159 <outParameter-name>x1</outParameter-name> </outParameter>
161 <outParameter-type>objref</outParameter-type>
162 <outParameter-name>aVisu</outParameter-name> </outParameter>
164 <outParameter-type>objref</outParameter-type>
165 <outParameter-name>aView</outParameter-name> </outParameter> </outParameter-list> </service>
169 <FuncName>Init</FuncName>
170 <PyFunc><![CDATA[def Init(index,min,max,medfield,x1,aVisu,aView): ]]></PyFunc>
171 <PyFunc><![CDATA[ if max >= min : ]]></PyFunc>
172 <PyFunc><![CDATA[ index = min ]]></PyFunc>
173 <PyFunc><![CDATA[ else : ]]></PyFunc>
174 <PyFunc><![CDATA[ index = max ]]></PyFunc>
175 <PyFunc><![CDATA[ print "Init --> index = ",index ]]></PyFunc>
176 <PyFunc><![CDATA[ print " min = ",min ]]></PyFunc>
177 <PyFunc><![CDATA[ print " max = ",max ]]></PyFunc>
178 <PyFunc><![CDATA[ print " medfield = ",medfield ]]></PyFunc>
179 <PyFunc><![CDATA[ return index,min,max,medfield,x1,aVisu,aView ]]></PyFunc> </PyFunction>
181 <FuncName>More</FuncName>
182 <PyFunc><![CDATA[def More(index,min,max,medfield,x1,aVisu,aView): ]]></PyFunc>
183 <PyFunc><![CDATA[ if max >= index : ]]></PyFunc>
184 <PyFunc><![CDATA[ DoLoop = 1 ]]></PyFunc>
185 <PyFunc><![CDATA[ else : ]]></PyFunc>
186 <PyFunc><![CDATA[ DoLoop = 0 ]]></PyFunc>
187 <PyFunc><![CDATA[ print "More --> DoLoop = ",DoLoop ]]></PyFunc>
188 <PyFunc><![CDATA[ print " index = ",index ]]></PyFunc>
189 <PyFunc><![CDATA[ print " min = ",min ]]></PyFunc>
190 <PyFunc><![CDATA[ print " max = ",max ]]></PyFunc>
191 <PyFunc><![CDATA[ print " medfield = ",medfield ]]></PyFunc>
192 <PyFunc><![CDATA[ return DoLoop,index,min,max,medfield,x1,aVisu,aView ]]></PyFunc> </PyFunction>
194 <FuncName>Next</FuncName>
195 <PyFunc><![CDATA[def Next(index,min,max,medfield,x1,aVisu,aView): ]]></PyFunc>
196 <PyFunc><![CDATA[ index = index + 1 ]]></PyFunc>
197 <PyFunc><![CDATA[ print "Next --> index = ",index ]]></PyFunc>
198 <PyFunc><![CDATA[ print " min = ",min ]]></PyFunc>
199 <PyFunc><![CDATA[ print " max = ",max ]]></PyFunc>
200 <PyFunc><![CDATA[ print " medfield = ",medfield ]]></PyFunc>
201 <PyFunc><![CDATA[ return index,min,max,medfield,x1,aVisu,aView ]]></PyFunc> </PyFunction> </PyFunction-list>
202 <creation-date>19/9/2003 - 16:0:9</creation-date>
203 <lastmodification-date>19/9/2003 - 16:0:9</lastmodification-date>
204 <editor-release>1.04</editor-release>
206 <container>?</container>
207 <comment>no comment</comment>
208 <x-position>216</x-position>
209 <y-position>5</y-position> </node>
211 <component-name>?</component-name>
212 <interface-name>?</interface-name>
213 <node-name>EndInit</node-name>
215 <coupled-node>Init</coupled-node>
217 <service-name>EndInit</service-name>
220 <inParameter-type>long</inParameter-type>
221 <inParameter-name>index</inParameter-name> </inParameter>
223 <inParameter-type>long</inParameter-type>
224 <inParameter-name>min</inParameter-name> </inParameter>
226 <inParameter-type>long</inParameter-type>
227 <inParameter-name>max</inParameter-name> </inParameter>
229 <inParameter-type>objref</inParameter-type>
230 <inParameter-name>medfield</inParameter-name> </inParameter>
232 <inParameter-type>double</inParameter-type>
233 <inParameter-name>x1</inParameter-name> </inParameter>
235 <inParameter-type>objref</inParameter-type>
236 <inParameter-name>aVisu</inParameter-name> </inParameter>
238 <inParameter-type>objref</inParameter-type>
239 <inParameter-name>aView</inParameter-name> </inParameter> </inParameter-list>
242 <outParameter-type>long</outParameter-type>
243 <outParameter-name>index</outParameter-name> </outParameter>
245 <outParameter-type>long</outParameter-type>
246 <outParameter-name>min</outParameter-name> </outParameter>
248 <outParameter-type>long</outParameter-type>
249 <outParameter-name>max</outParameter-name> </outParameter>
251 <outParameter-type>objref</outParameter-type>
252 <outParameter-name>medfield</outParameter-name> </outParameter>
254 <outParameter-type>double</outParameter-type>
255 <outParameter-name>x1</outParameter-name> </outParameter>
257 <outParameter-type>objref</outParameter-type>
258 <outParameter-name>aVisu</outParameter-name> </outParameter>
260 <outParameter-type>objref</outParameter-type>
261 <outParameter-name>aView</outParameter-name> </outParameter> </outParameter-list> </service>
264 <PyFunction/> </PyFunction-list>
265 <creation-date>19/9/2003 - 16:0:9</creation-date>
266 <lastmodification-date>19/9/2003 - 16:0:9</lastmodification-date>
267 <editor-release>1.04</editor-release>
269 <container>?</container>
270 <comment>no comment</comment>
271 <x-position>631</x-position>
272 <y-position>5</y-position> </node>
274 <component-name>Calculator</component-name>
275 <interface-name>Calculator</interface-name>
276 <node-name>Mul</node-name>
278 <coupled-node>?</coupled-node>
280 <service-name>Mul</service-name>
283 <inParameter-type>FIELDDOUBLE</inParameter-type>
284 <inParameter-name>field1</inParameter-name> </inParameter>
286 <inParameter-type>double</inParameter-type>
287 <inParameter-name>x1</inParameter-name> </inParameter> </inParameter-list>
290 <outParameter-type>FIELDDOUBLE</outParameter-type>
291 <outParameter-name>return</outParameter-name> </outParameter> </outParameter-list> </service>
294 <creation-date>19/9/2003 - 16:0:10</creation-date>
295 <lastmodification-date>19/9/2003 - 16:0:10</lastmodification-date>
296 <editor-release>1.04</editor-release>
298 <container>localhost/FactoryServer</container>
299 <comment>Multiply a field by a constant</comment>
300 <x-position>429</x-position>
301 <y-position>46</y-position> </node> </node-list>
304 <fromnode-name>InitDisplay</fromnode-name>
305 <fromserviceparameter-name>aVisu</fromserviceparameter-name>
306 <tonode-name>Init</tonode-name>
307 <toserviceparameter-name>aVisu</toserviceparameter-name>
308 <coord-list/> </link>
310 <fromnode-name>InitDisplay</fromnode-name>
311 <fromserviceparameter-name>aView</fromserviceparameter-name>
312 <tonode-name>Init</tonode-name>
313 <toserviceparameter-name>aView</toserviceparameter-name>
314 <coord-list/> </link>
316 <fromnode-name>Init</fromnode-name>
317 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
318 <tonode-name>EndInit</tonode-name>
319 <toserviceparameter-name>DoLoop</toserviceparameter-name>
320 <coord-list/> </link>
322 <fromnode-name>Init</fromnode-name>
323 <fromserviceparameter-name>index</fromserviceparameter-name>
324 <tonode-name>EndInit</tonode-name>
325 <toserviceparameter-name>index</toserviceparameter-name>
326 <coord-list/> </link>
328 <fromnode-name>Init</fromnode-name>
329 <fromserviceparameter-name>min</fromserviceparameter-name>
330 <tonode-name>EndInit</tonode-name>
331 <toserviceparameter-name>min</toserviceparameter-name>
332 <coord-list/> </link>
334 <fromnode-name>Init</fromnode-name>
335 <fromserviceparameter-name>max</fromserviceparameter-name>
336 <tonode-name>EndInit</tonode-name>
337 <toserviceparameter-name>max</toserviceparameter-name>
338 <coord-list/> </link>
340 <fromnode-name>Init</fromnode-name>
341 <fromserviceparameter-name>medfield</fromserviceparameter-name>
342 <tonode-name>Mul</tonode-name>
343 <toserviceparameter-name>field1</toserviceparameter-name>
344 <coord-list/> </link>
346 <fromnode-name>Init</fromnode-name>
347 <fromserviceparameter-name>x1</fromserviceparameter-name>
348 <tonode-name>EndInit</tonode-name>
349 <toserviceparameter-name>x1</toserviceparameter-name>
350 <coord-list/> </link>
352 <fromnode-name>Init</fromnode-name>
353 <fromserviceparameter-name>x1</fromserviceparameter-name>
354 <tonode-name>Mul</tonode-name>
355 <toserviceparameter-name>x1</toserviceparameter-name>
356 <coord-list/> </link>
358 <fromnode-name>Init</fromnode-name>
359 <fromserviceparameter-name>aVisu</fromserviceparameter-name>
360 <tonode-name>EndInit</tonode-name>
361 <toserviceparameter-name>aVisu</toserviceparameter-name>
362 <coord-list/> </link>
364 <fromnode-name>Init</fromnode-name>
365 <fromserviceparameter-name>aView</fromserviceparameter-name>
366 <tonode-name>EndInit</tonode-name>
367 <toserviceparameter-name>aView</toserviceparameter-name>
368 <coord-list/> </link>
370 <fromnode-name>EndInit</fromnode-name>
371 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
372 <tonode-name>Init</tonode-name>
373 <toserviceparameter-name>InitLoop</toserviceparameter-name>
386 <y>70</y> </coord> </coord-list> </link>
388 <fromnode-name>Mul</fromnode-name>
389 <fromserviceparameter-name>return</fromserviceparameter-name>
390 <tonode-name>EndInit</tonode-name>
391 <toserviceparameter-name>medfield</toserviceparameter-name>
392 <coord-list/> </link> </link-list>
395 <fromnode-name>LoopGraph</fromnode-name>
396 <fromserviceparameter-name>Init\index</fromserviceparameter-name>
397 <tonode-name>Init</tonode-name>
398 <toserviceparameter-name>index</toserviceparameter-name>
400 <value-type>3</value-type>
401 <value>0</value> </data-value>
402 <coord-list/> </data>
404 <fromnode-name>LoopGraph</fromnode-name>
405 <fromserviceparameter-name>Init\min</fromserviceparameter-name>
406 <tonode-name>Init</tonode-name>
407 <toserviceparameter-name>min</toserviceparameter-name>
409 <value-type>3</value-type>
410 <value>0</value> </data-value>
411 <coord-list/> </data>
413 <fromnode-name>LoopGraph</fromnode-name>
414 <fromserviceparameter-name>Init\max</fromserviceparameter-name>
415 <tonode-name>Init</tonode-name>
416 <toserviceparameter-name>max</toserviceparameter-name>
418 <value-type>3</value-type>
419 <value>55</value> </data-value>
420 <coord-list/> </data>
422 <fromnode-name>LoopGraph</fromnode-name>
423 <fromserviceparameter-name>Init\medfield</fromserviceparameter-name>
424 <tonode-name>Init</tonode-name>
425 <toserviceparameter-name>medfield</toserviceparameter-name>
427 <value-type>14</value-type>
428 <value>IOR:010000001f00000049444c3a53414c4f4d455f4d45442f4649454c44444f55424c453a312e300000010000000000000026000000010100000a0000003132372e302e302e3100ead00e000000fe1948673f000058e60000000021</value> </data-value>
429 <coord-list/> </data>
431 <fromnode-name>LoopGraph</fromnode-name>
432 <fromserviceparameter-name>Init\x1</fromserviceparameter-name>
433 <tonode-name>Init</tonode-name>
434 <toserviceparameter-name>x1</toserviceparameter-name>
436 <value-type>7</value-type>
437 <value>2</value> </data-value>
438 <coord-list/> </data> </data-list></dataflow>