Salome HOME
Merge Python 3 porting.
[modules/yacs.git] / src / yacsloader / samples / optimizer_async_py.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="newSchema_1">
23    <type name="string" kind="string"/>
24    <struct name="Engines/dataref">
25       <member name="ref" type="string"/>
26    </struct>
27    <type name="bool" kind="bool"/>
28    <sequence name="boolvec" content="bool"/>
29    <type name="double" kind="double"/>
30    <sequence name="dblevec" content="double"/>
31    <objref name="file" id="file"/>
32    <type name="int" kind="int"/>
33    <sequence name="intvec" content="int"/>
34    <struct name="stringpair">
35       <member name="name" type="string"/>
36       <member name="value" type="string"/>
37    </struct>
38    <sequence name="propvec" content="stringpair"/>
39    <objref name="pyobj" id="python:obj:1.0"/>
40    <sequence name="seqboolvec" content="boolvec"/>
41    <sequence name="seqdblevec" content="dblevec"/>
42    <sequence name="seqintvec" content="intvec"/>
43    <sequence name="stringvec" content="string"/>
44    <sequence name="seqstringvec" content="stringvec"/>
45    <container name="DefaultContainer">
46       <property name="container_name" value="FactoryServer"/>
47       <property name="name" value="localhost"/>
48    </container>
49    <optimizer name="OptimizerLoop1" nbranch="1" lib="algoasyncexample.py" entry="myalgoasync">
50       <inline name="PyScript7">
51          <script><code><![CDATA[o9 = int(i8)
52 print("traitement:", i8)
53 ]]></code></script>
54          <load container="DefaultContainer"/>
55          <inport name="i8" type="double"/>
56          <outport name="o9" type="int"/>
57       </inline>
58    </optimizer>
59    <datanode name="DataIn3">
60       <parameter name="o4" type="int">
61          <value><int>5</int></value>
62       </parameter>
63    </datanode>
64    <outnode name="OutNode5">
65       <parameter name="i6" type="int"/>
66    </outnode>
67    <control> <fromnode>OptimizerLoop1</fromnode> <tonode>OutNode5</tonode> </control>
68    <control> <fromnode>DataIn3</fromnode> <tonode>OptimizerLoop1</tonode> </control>
69    <datalink control="false">
70       <fromnode>OptimizerLoop1</fromnode> <fromport>algoResults</fromport>
71       <tonode>OutNode5</tonode> <toport>i6</toport>
72    </datalink>
73    <datalink control="false">
74       <fromnode>OptimizerLoop1</fromnode> <fromport>evalSamples</fromport>
75       <tonode>OptimizerLoop1.PyScript7</tonode> <toport>i8</toport>
76    </datalink>
77    <datalink control="false">
78       <fromnode>DataIn3</fromnode> <fromport>o4</fromport>
79       <tonode>OptimizerLoop1</tonode> <toport>algoInit</toport>
80    </datalink>
81    <datalink control="false">
82       <fromnode>OptimizerLoop1.PyScript7</fromnode> <fromport>o9</fromport>
83       <tonode>OptimizerLoop1</tonode> <toport>evalResults</toport>
84    </datalink>
85    <parameter>
86       <tonode>OptimizerLoop1</tonode><toport>nbBranches</toport>
87       <value><int>1</int></value>
88    </parameter>
89    <presentation name="DataIn3" x="11" y="86" width="158" height="63" expanded="1" expx="11" expy="86" expWidth="158" expHeight="63" shownState="0"/>
90    <presentation name="OptimizerLoop1" x="238.5" y="83.5" width="204.5" height="216" expanded="1" expx="238.5" expy="83.5" expWidth="204.5" expHeight="216" shownState="0"/>
91    <presentation name="OutNode5" x="488.5" y="84" width="158" height="63" expanded="1" expx="488.5" expy="84" expWidth="158" expHeight="63" shownState="0"/>
92    <presentation name="OptimizerLoop1.PyScript7" x="42.5" y="149" width="158" height="63" expanded="1" expx="42.5" expy="149" expWidth="158" expHeight="63" shownState="0"/>
93    <presentation name="__ROOT__" x="0" y="0" width="650.5" height="303.5" expanded="1" expx="0" expy="0" expWidth="650.5" expHeight="303.5" shownState="0"/>
94 </proc>