2 Copyright (C) 2006-2016 CEA/DEN, EDF R&D
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.
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.
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
18 See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 <container name="A"> </container>
25 <sinline name="node1" >
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>
41 <inport name="p1" type="string"/>
44 <sinline name="node2" >
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.hello(salome.myStudy, p1)</code>
57 <code> print p1</code>
60 <inport name="p1" type="string"/>
62 <sinline name="node3" >
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>
77 <inport name="p1" type="string"/>
80 <sinline name="node4" >
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.hello(salome.myStudy, p1)</code>
93 <code> print p1</code>
95 <inport name="p1" type="string"/>
101 <tonode>node1</tonode> <toport>p1</toport>
102 <value><string>chris</string> </value>
105 <tonode>node2</tonode> <toport>p1</toport>
106 <value><string>chris</string> </value>
109 <tonode>node3</tonode> <toport>p1</toport>
110 <value><string>chris</string> </value>
113 <tonode>node4</tonode> <toport>p1</toport>
114 <value><string>chris</string> </value>