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