Salome HOME
9697dc6d5efedf52f133afa9ec257633ba919d12
[modules/yacs.git] / src / yacsloader / samples / pyremote4.xml
1 <?xml version='1.0' encoding='iso-8859-1' ?>
2 <!--
3   Copyright (C) 2006-2016  CEA/DEN, EDF R&D
4
5   This library is free software; you can redistribute it and/or
6   modify it under the terms of the GNU Lesser General Public
7   License as published by the Free Software Foundation; either
8   version 2.1 of the License, or (at your option) any later version.
9
10   This library is distributed in the hope that it will be useful,
11   but WITHOUT ANY WARRANTY; without even the implied warranty of
12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13   Lesser General Public License for more details.
14
15   You should have received a copy of the GNU Lesser General Public
16   License along with this library; if not, write to the Free Software
17   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
18
19   See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20
21 -->
22 <proc name="TestDistPython2">
23    <property name="DefaultStudyID" value="1"/>
24    <type name="string" kind="string"/>
25    <struct name="Engines/dataref">
26       <member name="ref" type="string"/>
27    </struct>
28    <type name="bool" kind="bool"/>
29    <sequence name="boolvec" content="bool"/>
30    <type name="double" kind="double"/>
31    <sequence name="dblevec" content="double"/>
32    <objref name="file" id="file"/>
33    <type name="int" kind="int"/>
34    <sequence name="intvec" content="int"/>
35    <objref name="pyobj" id="python:obj:1.0"/>
36    <sequence name="stringvec" content="string"/>
37    <container name="DefaultContainer">
38       <property name="container_name" value="FactoryServer"/>
39       <property name="name" value="claui2c6"/>
40    </container>
41    <container name="cont1">
42    </container>
43    <remote name="Node6">
44       <script>
45          <code><![CDATA[
46 print "coucou, x=",x
47 print "coucou, a=",a
48 print "my_container=",my_container
49 y= x+" OK ca marche"+str(a)
50 z=2*a+4.7
51 print y,z
52 ]]></code>
53       </script>
54       <load container="cont1"/>
55       <inport name="x" type="string"/>
56       <inport name="a" type="double"/>
57       <outport name="y" type="string"/>
58       <outport name="z" type="double"/>
59    </remote>
60    <inline name="node2">
61       <script><code><![CDATA[
62 print "dans node2 p1=",p1
63 print "dans node2 p2=",p2
64 ]]></code></script>
65       <inport name="p1" type="string"/>
66       <inport name="p2" type="double"/>
67    </inline>
68    <control> <fromnode>Node6</fromnode> <tonode>node2</tonode> </control>
69    <datalink control="false">
70       <fromnode>Node6</fromnode> <fromport>y</fromport>
71       <tonode>node2</tonode> <toport>p1</toport>
72    </datalink>
73    <datalink control="false">
74       <fromnode>Node6</fromnode> <fromport>z</fromport>
75       <tonode>node2</tonode> <toport>p2</toport>
76    </datalink>
77    <parameter>
78       <tonode>Node6</tonode><toport>x</toport>
79       <value><string>ab</string></value>
80    </parameter>
81    <parameter>
82       <tonode>Node6</tonode><toport>a</toport>
83       <value><double>3.14</double></value>
84    </parameter>
85    <presentation name="Node6" x="6" y="34" width="158" height="90" expanded="1" expx="6" expy="34" expWidth="158" expHeight="90" shownState="0"/>
86    <presentation name="node2" x="6" y="125" width="158" height="90" expanded="1" expx="6" expy="125" expWidth="158" expHeight="90" shownState="0"/>
87    <presentation name="__ROOT__" x="0" y="0" width="168" height="219" expanded="1" expx="0" expy="0" expWidth="168" expHeight="219" shownState="0"/>
88 </proc>