Salome HOME
Copyrights update 2015.
[samples/datafiles.git] / Yacs / Schemas / sinline4.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  <forloop name="b1" nsteps="5">
26    <bloc name="b1" >
27     <sinline name="node1" >
28       <function name="f">
29         <code>import salome</code>
30         <code>salome.salome_init()</code>
31         <code>import PYHELLO_ORB</code>
32         <code>def f(p1):</code>
33         <code>  print __container__from__YACS__</code>
34         <code>  machine,container=__container__from__YACS__.split('/')</code>
35         <code>  param={}</code>
36         <code>  param['hostname']=machine</code>
37         <code>  param['container_name']=container</code>
38         <code>  compo=salome.lcc.LoadComponent(param, "PYHELLO")</code>
39         <code>  print compo.makeBanner(p1)</code>
40         <code>  print p1</code>
41       </function>
42       <load container="A"/>
43       <inport name="p1" type="string"/>
44     </sinline>
45
46     <sinline name="node2" >
47       <function name="f">
48         <code>import salome</code>
49         <code>salome.salome_init()</code>
50         <code>import HELLO_ORB</code>
51         <code>def f(p1):</code>
52         <code>  print __container__from__YACS__</code>
53         <code>  machine,container=__container__from__YACS__.split('/')</code>
54         <code>  param={}</code>
55         <code>  param['hostname']=machine</code>
56         <code>  param['container_name']=container</code>
57         <code>  compo=salome.lcc.LoadComponent(param, "HELLO")</code>
58         <code>  print compo.makeBanner(p1)</code>
59         <code>  print p1</code>
60       </function>
61       <load container="A"/>
62       <inport name="p1" type="string"/>
63     </sinline>
64     <sinline name="node3" >
65       <function name="f">
66         <code>import salome</code>
67         <code>salome.salome_init()</code>
68         <code>import PYHELLO_ORB</code>
69         <code>def f(p1):</code>
70         <code>  print __container__from__YACS__</code>
71         <code>  machine,container=__container__from__YACS__.split('/')</code>
72         <code>  param={}</code>
73         <code>  param['hostname']=machine</code>
74         <code>  param['container_name']=container</code>
75         <code>  compo=salome.lcc.LoadComponent(param, "PYHELLO")</code>
76         <code>  print compo.makeBanner(p1)</code>
77         <code>  print p1</code>
78       </function>
79       <inport name="p1" type="string"/>
80     </sinline>
81
82     <sinline name="node4" >
83       <function name="f">
84         <code>import salome</code>
85         <code>salome.salome_init()</code>
86         <code>import HELLO_ORB</code>
87         <code>def f(p1):</code>
88         <code>  print __container__from__YACS__</code>
89         <code>  machine,container=__container__from__YACS__.split('/')</code>
90         <code>  param={}</code>
91         <code>  param['hostname']=machine</code>
92         <code>  param['container_name']=container</code>
93         <code>  compo=salome.lcc.LoadComponent(param, "HELLO")</code>
94         <code>  print compo.makeBanner(p1)</code>
95         <code>  print p1</code>
96       </function>
97       <inport name="p1" type="string"/>
98     </sinline>
99   </bloc>
100  </forloop>
101
102
103     <!--parameters -->
104     <parameter>
105         <tonode>b1.b1.node1</tonode> <toport>p1</toport>
106         <value><string>chris</string> </value>
107     </parameter>
108     <parameter>
109         <tonode>b1.b1.node2</tonode> <toport>p1</toport>
110         <value><string>chris</string> </value>
111     </parameter>
112     <parameter>
113         <tonode>b1.b1.node3</tonode> <toport>p1</toport>
114         <value><string>chris</string> </value>
115     </parameter>
116     <parameter>
117         <tonode>b1.b1.node4</tonode> <toport>p1</toport>
118         <value><string>chris</string> </value>
119     </parameter>
120
121 </proc>