Salome HOME
Copyrights update 2015.
[samples/datafiles.git] / Yacs / Schemas / sinline1.xml
1 <!--
2   Copyright (C) 2006-2015  CEA/DEN, EDF R&D
3
4   This library is free software; you can redistribute it and/or
5   modify it under the terms of the GNU Lesser General Public
6   License as published by the Free Software Foundation; either
7   version 2.1 of the License, or (at your option) any later version.
8
9   This library is distributed in the hope that it will be useful,
10   but WITHOUT ANY WARRANTY; without even the implied warranty of
11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12   Lesser General Public License for more details.
13
14   You should have received a copy of the GNU Lesser General Public
15   License along with this library; if not, write to the Free Software
16   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17
18   See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19
20 -->
21 <proc>
22     <!--types -->
23     <container name="A"> </container>
24     <!--nodes -->
25     <sinline name="node1" >
26       <function name="f">
27         <code>import salome</code>
28         <code>salome.salome_init()</code>
29         <code>import PYHELLO_ORB</code>
30         <code>def f(p1):</code>
31         <code>  print __container__from__YACS__</code>
32         <code>  machine,container=__container__from__YACS__.split('/')</code>
33         <code>  param={}</code>
34         <code>  param['hostname']=machine</code>
35         <code>  param['container_name']=container</code>
36         <code>  compo=salome.lcc.LoadComponent(param, "PYHELLO")</code>
37         <code>  print compo.makeBanner(p1)</code>
38         <code>  print p1</code>
39       </function>
40       <load container="A"/>
41       <inport name="p1" type="string"/>
42     </sinline>
43
44     <sinline name="node2" >
45       <function name="f">
46         <code>import salome</code>
47         <code>salome.salome_init()</code>
48         <code>import HELLO_ORB</code>
49         <code>def f(p1):</code>
50         <code>  print __container__from__YACS__</code>
51         <code>  machine,container=__container__from__YACS__.split('/')</code>
52         <code>  param={}</code>
53         <code>  param['hostname']=machine</code>
54         <code>  param['container_name']=container</code>
55         <code>  compo=salome.lcc.LoadComponent(param, "HELLO")</code>
56         <code>  print compo.makeBanner(p1)</code>
57         <code>  print p1</code>
58       </function>
59       <load container="A"/>
60       <inport name="p1" type="string"/>
61     </sinline>
62     <sinline name="node3" >
63       <function name="f">
64         <code>import salome</code>
65         <code>salome.salome_init()</code>
66         <code>import PYHELLO_ORB</code>
67         <code>def f(p1):</code>
68         <code>  print __container__from__YACS__</code>
69         <code>  machine,container=__container__from__YACS__.split('/')</code>
70         <code>  param={}</code>
71         <code>  param['hostname']=machine</code>
72         <code>  param['container_name']=container</code>
73         <code>  compo=salome.lcc.LoadComponent(param, "PYHELLO")</code>
74         <code>  print compo.makeBanner(p1)</code>
75         <code>  print p1</code>
76       </function>
77       <inport name="p1" type="string"/>
78     </sinline>
79
80     <sinline name="node4" >
81       <function name="f">
82         <code>import salome</code>
83         <code>salome.salome_init()</code>
84         <code>import HELLO_ORB</code>
85         <code>def f(p1):</code>
86         <code>  print __container__from__YACS__</code>
87         <code>  machine,container=__container__from__YACS__.split('/')</code>
88         <code>  param={}</code>
89         <code>  param['hostname']=machine</code>
90         <code>  param['container_name']=container</code>
91         <code>  compo=salome.lcc.LoadComponent(param, "HELLO")</code>
92         <code>  print compo.makeBanner(p1)</code>
93         <code>  print p1</code>
94       </function>
95       <inport name="p1" type="string"/>
96     </sinline>
97
98
99     <!--parameters -->
100     <parameter>
101         <tonode>node1</tonode> <toport>p1</toport>
102         <value><string>chris</string> </value>
103     </parameter>
104     <parameter>
105         <tonode>node2</tonode> <toport>p1</toport>
106         <value><string>chris</string> </value>
107     </parameter>
108     <parameter>
109         <tonode>node3</tonode> <toport>p1</toport>
110         <value><string>chris</string> </value>
111     </parameter>
112     <parameter>
113         <tonode>node4</tonode> <toport>p1</toport>
114         <value><string>chris</string> </value>
115     </parameter>
116
117 </proc>