]> SALOME platform Git repositories - modules/superv.git/blob - examples/GraphConvertObjRefCheck.xml
Salome HOME
PAL8521
[modules/superv.git] / examples / GraphConvertObjRefCheck.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>GraphConvertObjRefCheck</node-name>
9     <kind>1</kind>
10     <coupled-node>?</coupled-node>
11     <service>
12 <service-name>GraphConvertObjRefCheck</service-name>
13      <inParameter-list>
14 <inParameter>
15 <inParameter-type>string</inParameter-type>
16        <inParameter-name>SyrComponent__aContainer</inParameter-name>      </inParameter>
17       <inParameter>
18 <inParameter-type>string</inParameter-type>
19        <inParameter-name>SyrComponent__aComponent</inParameter-name>      </inParameter>
20       <inParameter>
21 <inParameter-type>boolean</inParameter-type>
22        <inParameter-name>MiscTypes__InBool</inParameter-name>      </inParameter>
23       <inParameter>
24 <inParameter-type>char</inParameter-type>
25        <inParameter-name>MiscTypes__InChar</inParameter-name>      </inParameter>
26       <inParameter>
27 <inParameter-type>short</inParameter-type>
28        <inParameter-name>MiscTypes__InShort</inParameter-name>      </inParameter>
29       <inParameter>
30 <inParameter-type>long</inParameter-type>
31        <inParameter-name>MiscTypes__InLong</inParameter-name>      </inParameter>
32       <inParameter>
33 <inParameter-type>float</inParameter-type>
34        <inParameter-name>MiscTypes__InFloat</inParameter-name>      </inParameter>
35       <inParameter>
36 <inParameter-type>double</inParameter-type>
37        <inParameter-name>MiscTypes__InDouble</inParameter-name>      </inParameter>     </inParameter-list>
38      <outParameter-list>
39 <outParameter>
40 <outParameter-type>string</outParameter-type>
41        <outParameter-name>MiscTypes__OutString</outParameter-name>      </outParameter>
42       <outParameter>
43 <outParameter-type>boolean</outParameter-type>
44        <outParameter-name>MiscTypes__OutBool</outParameter-name>      </outParameter>
45       <outParameter>
46 <outParameter-type>char</outParameter-type>
47        <outParameter-name>MiscTypes__OutChar</outParameter-name>      </outParameter>
48       <outParameter>
49 <outParameter-type>short</outParameter-type>
50        <outParameter-name>MiscTypes__OutShort</outParameter-name>      </outParameter>
51       <outParameter>
52 <outParameter-type>long</outParameter-type>
53        <outParameter-name>MiscTypes__OutLong</outParameter-name>      </outParameter>
54       <outParameter>
55 <outParameter-type>float</outParameter-type>
56        <outParameter-name>MiscTypes__OutFloat</outParameter-name>      </outParameter>
57       <outParameter>
58 <outParameter-type>double</outParameter-type>
59        <outParameter-name>MiscTypes__OutDouble</outParameter-name>      </outParameter>     </outParameter-list>    </service>
60     <DataStream-list/>
61     <PyFunction-list/>
62     <creation-date>30/7/2003 - 14:23:52</creation-date>
63     <lastmodification-date>29/12/2004 - 16:1:50</lastmodification-date>
64     <editor-release>1.04</editor-release>
65     <author>JR</author>
66     <container>?</container>
67     <comment>Check conversions of ObjRef</comment>
68     <x-position>0</x-position>
69     <y-position>0</y-position>   </node>  </info-list>
70   <node-list>
71 <node>
72 <component-name>?</component-name>
73     <interface-name>?</interface-name>
74     <node-name>SyrComponent</node-name>
75     <kind>3</kind>
76     <coupled-node>?</coupled-node>
77     <service>
78 <service-name>SyrComponent</service-name>
79      <inParameter-list>
80 <inParameter>
81 <inParameter-type>string</inParameter-type>
82        <inParameter-name>aContainer</inParameter-name>      </inParameter>
83       <inParameter>
84 <inParameter-type>string</inParameter-type>
85        <inParameter-name>aComponent</inParameter-name>      </inParameter>     </inParameter-list>
86      <outParameter-list>
87 <outParameter>
88 <outParameter-type>objref</outParameter-type>
89        <outParameter-name>anObjRef</outParameter-name>      </outParameter>     </outParameter-list>    </service>
90     <DataStream-list/>
91     <PyFunction-list>
92 <PyFunction>
93 <FuncName>SyrComponent</FuncName>
94       <PyFunc><![CDATA[from LifeCycleCORBA import *     ]]></PyFunc>
95       <PyFunc><![CDATA[def SyrComponent( aContainer , aComponent ) :     ]]></PyFunc>
96       <PyFunc><![CDATA[    print "SyrComponent(",aContainer,",",aComponent,")"     ]]></PyFunc>
97       <PyFunc><![CDATA[    orb = CORBA.ORB_init([], CORBA.ORB_ID)     ]]></PyFunc>
98       <PyFunc><![CDATA[    print "SyrComponent orb",orb   ]]></PyFunc>
99       <PyFunc><![CDATA[    lcc = LifeCycleCORBA(orb)     ]]></PyFunc>
100       <PyFunc><![CDATA[    print "SyrComponent lcc",lcc   ]]></PyFunc>
101       <PyFunc><![CDATA[    print "SyrComponent(",aContainer,",",aComponent,")"     ]]></PyFunc>
102       <PyFunc><![CDATA[    ComponentRef = lcc.FindOrLoadComponent( aContainer , aComponent )     ]]></PyFunc>
103       <PyFunc><![CDATA[    print "SyrComponent(",aContainer,",",aComponent,") --> ",ComponentRef     ]]></PyFunc>
104       <PyFunc><![CDATA[    return ComponentRef    ]]></PyFunc>
105       <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
106     <creation-date>29/12/2004 - 15:57:21</creation-date>
107     <lastmodification-date>29/12/2004 - 15:57:21</lastmodification-date>
108     <editor-release>1.04</editor-release>
109     <author>JR</author>
110     <container>?</container>
111     <comment>InLine Node</comment>
112     <x-position>14</x-position>
113     <y-position>114</y-position>   </node>
114    <node>
115 <component-name>TypesCheck</component-name>
116     <interface-name>TypesCheck</interface-name>
117     <node-name>MiscTypes</node-name>
118     <kind>0</kind>
119     <coupled-node>?</coupled-node>
120     <service>
121 <service-name>MiscTypes</service-name>
122      <inParameter-list>
123 <inParameter>
124 <inParameter-type>string</inParameter-type>
125        <inParameter-name>InString</inParameter-name>      </inParameter>
126       <inParameter>
127 <inParameter-type>boolean</inParameter-type>
128        <inParameter-name>InBool</inParameter-name>      </inParameter>
129       <inParameter>
130 <inParameter-type>char</inParameter-type>
131        <inParameter-name>InChar</inParameter-name>      </inParameter>
132       <inParameter>
133 <inParameter-type>short</inParameter-type>
134        <inParameter-name>InShort</inParameter-name>      </inParameter>
135       <inParameter>
136 <inParameter-type>long</inParameter-type>
137        <inParameter-name>InLong</inParameter-name>      </inParameter>
138       <inParameter>
139 <inParameter-type>float</inParameter-type>
140        <inParameter-name>InFloat</inParameter-name>      </inParameter>
141       <inParameter>
142 <inParameter-type>double</inParameter-type>
143        <inParameter-name>InDouble</inParameter-name>      </inParameter>
144       <inParameter>
145 <inParameter-type>SuperVisionTest::Adder</inParameter-type>
146        <inParameter-name>InObjRef</inParameter-name>      </inParameter>     </inParameter-list>
147      <outParameter-list>
148 <outParameter>
149 <outParameter-type>string</outParameter-type>
150        <outParameter-name>OutString</outParameter-name>      </outParameter>
151       <outParameter>
152 <outParameter-type>boolean</outParameter-type>
153        <outParameter-name>OutBool</outParameter-name>      </outParameter>
154       <outParameter>
155 <outParameter-type>char</outParameter-type>
156        <outParameter-name>OutChar</outParameter-name>      </outParameter>
157       <outParameter>
158 <outParameter-type>short</outParameter-type>
159        <outParameter-name>OutShort</outParameter-name>      </outParameter>
160       <outParameter>
161 <outParameter-type>long</outParameter-type>
162        <outParameter-name>OutLong</outParameter-name>      </outParameter>
163       <outParameter>
164 <outParameter-type>float</outParameter-type>
165        <outParameter-name>OutFloat</outParameter-name>      </outParameter>
166       <outParameter>
167 <outParameter-type>double</outParameter-type>
168        <outParameter-name>OutDouble</outParameter-name>      </outParameter>
169       <outParameter>
170 <outParameter-type>SuperVisionTest::Adder</outParameter-type>
171        <outParameter-name>OutObjRef</outParameter-name>      </outParameter>     </outParameter-list>    </service>
172     <DataStream-list/>
173     <PyFunction-list/>
174     <creation-date>29/12/2004 - 15:57:21</creation-date>
175     <lastmodification-date>29/12/2004 - 15:57:21</lastmodification-date>
176     <editor-release>1.05</editor-release>
177     <author>?</author>
178     <container>localhost/FactoryServer</container>
179     <comment>MiscTypes from TypesCheck</comment>
180     <x-position>284</x-position>
181     <y-position>28</y-position>   </node>
182    <node>
183 <component-name>?</component-name>
184     <interface-name>?</interface-name>
185     <node-name>ObjRefToInline</node-name>
186     <kind>3</kind>
187     <coupled-node>?</coupled-node>
188     <service>
189 <service-name>ObjRefToInline</service-name>
190      <inParameter-list>
191 <inParameter>
192 <inParameter-type>int</inParameter-type>
193        <inParameter-name>toInLine</inParameter-name>      </inParameter>     </inParameter-list>
194      <outParameter-list/>    </service>
195     <DataStream-list/>
196     <PyFunction-list>
197 <PyFunction>
198 <FuncName>ObjRefToInline</FuncName>
199       <PyFunc><![CDATA[def ObjRefToInline(objRef): ]]></PyFunc>
200       <PyFunc><![CDATA[    return objRef ]]></PyFunc>     </PyFunction>    </PyFunction-list>
201     <creation-date>29/12/2004 - 15:58:56</creation-date>
202     <lastmodification-date>29/12/2004 - 15:58:56</lastmodification-date>
203     <editor-release>2.0</editor-release>
204     <author>?</author>
205     <container>?</container>
206     <comment>Compute Node</comment>
207     <x-position>496</x-position>
208     <y-position>168</y-position>   </node>  </node-list>
209   <link-list>
210 <link>
211 <fromnode-name>SyrComponent</fromnode-name>
212     <fromserviceparameter-name>anObjRef</fromserviceparameter-name>
213     <tonode-name>MiscTypes</tonode-name>
214     <toserviceparameter-name>InObjRef</toserviceparameter-name>
215     <coord-list/>   </link>
216    <link>
217 <fromnode-name>SyrComponent</fromnode-name>
218     <fromserviceparameter-name>anObjRef</fromserviceparameter-name>
219     <tonode-name>MiscTypes</tonode-name>
220     <toserviceparameter-name>InString</toserviceparameter-name>
221     <coord-list/>   </link>
222    <link>
223 <fromnode-name>MiscTypes</fromnode-name>
224     <fromserviceparameter-name>OutObjRef</fromserviceparameter-name>
225     <tonode-name>ObjRefToInline</tonode-name>
226     <toserviceparameter-name>toInLine</toserviceparameter-name>
227     <coord-list/>   </link>  </link-list>
228   <data-list>
229 <data>
230 <fromnode-name>GraphConvertObjRefCheck</fromnode-name>
231     <fromserviceparameter-name>SyrComponent__aContainer</fromserviceparameter-name>
232     <tonode-name>SyrComponent</tonode-name>
233     <toserviceparameter-name>aContainer</toserviceparameter-name>
234     <data-value>
235 <value-type>18</value-type>
236      <value>FactoryServerPy</value>    </data-value>
237     <coord-list/>   </data>
238    <data>
239 <fromnode-name>GraphConvertObjRefCheck</fromnode-name>
240     <fromserviceparameter-name>SyrComponent__aComponent</fromserviceparameter-name>
241     <tonode-name>SyrComponent</tonode-name>
242     <toserviceparameter-name>aComponent</toserviceparameter-name>
243     <data-value>
244 <value-type>18</value-type>
245      <value>SyrControlComponent</value>    </data-value>
246     <coord-list/>   </data>
247    <data>
248 <fromnode-name>GraphConvertObjRefCheck</fromnode-name>
249     <fromserviceparameter-name>MiscTypes__InBool</fromserviceparameter-name>
250     <tonode-name>MiscTypes</tonode-name>
251     <toserviceparameter-name>InBool</toserviceparameter-name>
252     <data-value>
253 <value-type>3</value-type>
254      <value>138492744</value>    </data-value>
255     <coord-list/>   </data>
256    <data>
257 <fromnode-name>GraphConvertObjRefCheck</fromnode-name>
258     <fromserviceparameter-name>MiscTypes__InChar</fromserviceparameter-name>
259     <tonode-name>MiscTypes</tonode-name>
260     <toserviceparameter-name>InChar</toserviceparameter-name>
261     <data-value>
262 <value-type>3</value-type>
263      <value>135402800</value>    </data-value>
264     <coord-list/>   </data>
265    <data>
266 <fromnode-name>GraphConvertObjRefCheck</fromnode-name>
267     <fromserviceparameter-name>MiscTypes__InShort</fromserviceparameter-name>
268     <tonode-name>MiscTypes</tonode-name>
269     <toserviceparameter-name>InShort</toserviceparameter-name>
270     <data-value>
271 <value-type>3</value-type>
272      <value>135448464</value>    </data-value>
273     <coord-list/>   </data>
274    <data>
275 <fromnode-name>GraphConvertObjRefCheck</fromnode-name>
276     <fromserviceparameter-name>MiscTypes__InLong</fromserviceparameter-name>
277     <tonode-name>MiscTypes</tonode-name>
278     <toserviceparameter-name>InLong</toserviceparameter-name>
279     <data-value>
280 <value-type>3</value-type>
281      <value>135469224</value>    </data-value>
282     <coord-list/>   </data>
283    <data>
284 <fromnode-name>GraphConvertObjRefCheck</fromnode-name>
285     <fromserviceparameter-name>MiscTypes__InFloat</fromserviceparameter-name>
286     <tonode-name>MiscTypes</tonode-name>
287     <toserviceparameter-name>InFloat</toserviceparameter-name>
288     <data-value>
289 <value-type>7</value-type>
290      <value>65.6954</value>    </data-value>
291     <coord-list/>   </data>
292    <data>
293 <fromnode-name>GraphConvertObjRefCheck</fromnode-name>
294     <fromserviceparameter-name>MiscTypes__InDouble</fromserviceparameter-name>
295     <tonode-name>MiscTypes</tonode-name>
296     <toserviceparameter-name>InDouble</toserviceparameter-name>
297     <data-value>
298 <value-type>7</value-type>
299      <value>65.6954</value>    </data-value>
300     <coord-list/>   </data>  </data-list> </dataflow></supergraph>