Salome HOME
[PY3] Fixing test in progress
[modules/yacs.git] / src / yacsloader / samples / foreach8.xml
1 <?xml version='1.0' encoding='iso-8859-1' ?>
2 <proc name="schema">
3    <property name="DefaultStudyID" value="1"/>
4    <type name="string" kind="string"/>
5    <struct name="Engines/dataref">
6       <member name="ref" type="string"/>
7    </struct>
8    <type name="bool" kind="bool"/>
9    <sequence name="boolvec" content="bool"/>
10    <type name="double" kind="double"/>
11    <sequence name="dblevec" content="double"/>
12    <objref name="file" id="file"/>
13    <type name="int" kind="int"/>
14    <sequence name="intvec" content="int"/>
15    <struct name="stringpair">
16       <member name="name" type="string"/>
17       <member name="value" type="string"/>
18    </struct>
19    <sequence name="propvec" content="stringpair"/>
20    <objref name="pyobj" id="python:obj:1.0"/>
21    <sequence name="seqboolvec" content="boolvec"/>
22    <sequence name="seqdblevec" content="dblevec"/>
23    <sequence name="seqint" content="int"/>
24    <sequence name="seqintvec" content="intvec"/>
25    <sequence name="stringvec" content="string"/>
26    <sequence name="seqstringvec" content="stringvec"/>
27    <container name="DefaultContainer">
28       <property name="container_kind" value="Salome"/>
29       <property name="attached_on_cloning" value="0"/>
30       <property name="name" value="localhost"/>
31    </container>
32    <foreach name="ForEachLoop_int0" nbranch="2" type="int">
33       <bloc name="Bloc0">
34          <foreach name="ForEachLoop_int1" nbranch="3" type="int">
35             <bloc name="Bloc1">
36                <remote name="PyScript2">
37                   <script><code><![CDATA[o5 = i3 + i4
38 ]]></code></script>
39                   <load container="DefaultContainer"/>
40                   <inport name="i3" type="int"/>
41                   <inport name="i4" type="int"/>
42                   <outport name="o5" type="int"/>
43                </remote>
44                <inline name="PyScript1">
45                   <script><code><![CDATA[o3=7
46 ]]></code></script>
47                   <inport name="i2" type="int"/>
48                   <outport name="o3" type="int"/>
49                </inline>
50                <control> <fromnode>PyScript2</fromnode> <tonode>PyScript1</tonode> </control>
51                <datalink control="false">
52                   <fromnode>PyScript2</fromnode> <fromport>o5</fromport>
53                   <tonode>PyScript1</tonode> <toport>i2</toport>
54                </datalink>
55             </bloc>
56          </foreach>
57          <inline name="PostTraitement">
58             <script><code><![CDATA[o3 = 0
59 for i in i6:
60     o3 = i + o3
61
62 for i in i5:
63     o3 = i + o3
64 ]]></code></script>
65             <load container="DefaultContainer"/>
66             <inport name="i6" type="intvec"/>
67             <inport name="i5" type="intvec"/>
68             <outport name="o3" type="int"/>
69          </inline>
70          <control> <fromnode>ForEachLoop_int1</fromnode> <tonode>PostTraitement</tonode> </control>
71          <datalink control="false">
72             <fromnode>ForEachLoop_int1</fromnode> <fromport>evalSamples</fromport>
73             <tonode>ForEachLoop_int1.Bloc1.PyScript2</tonode> <toport>i4</toport>
74          </datalink>
75          <datalink control="false">
76             <fromnode>ForEachLoop_int1.Bloc1.PyScript2</fromnode> <fromport>o5</fromport>
77             <tonode>PostTraitement</tonode> <toport>i6</toport>
78          </datalink>
79          <datalink control="false">
80             <fromnode>ForEachLoop_int1.Bloc1.PyScript1</fromnode> <fromport>o3</fromport>
81             <tonode>PostTraitement</tonode> <toport>i5</toport>
82          </datalink>
83       </bloc>
84    </foreach>
85    <outnode name="OutNode">
86       <parameter name="i1" type="intvec"/>
87    </outnode>
88    <control> <fromnode>ForEachLoop_int0</fromnode> <tonode>OutNode</tonode> </control>
89    <datalink control="false">
90       <fromnode>ForEachLoop_int0</fromnode> <fromport>evalSamples</fromport>
91       <tonode>ForEachLoop_int0.Bloc0.ForEachLoop_int1.Bloc1.PyScript2</tonode> <toport>i3</toport>
92    </datalink>
93    <datalink control="false">
94       <fromnode>ForEachLoop_int0.Bloc0.PostTraitement</fromnode> <fromport>o3</fromport>
95       <tonode>OutNode</tonode> <toport>i1</toport>
96    </datalink>
97    <parameter>
98       <tonode>ForEachLoop_int0.Bloc0.ForEachLoop_int1</tonode><toport>nbBranches</toport>
99       <value><int>3</int></value>
100    </parameter>
101    <parameter>
102       <tonode>ForEachLoop_int0.Bloc0.ForEachLoop_int1</tonode><toport>SmplsCollection</toport>
103       <value><array><data>
104 <value><int>1</int></value>
105 <value><int>2</int></value>
106 <value><int>3</int></value>
107 <value><int>4</int></value>
108 </data></array></value>
109    </parameter>
110    <parameter>
111       <tonode>ForEachLoop_int0.Bloc0.ForEachLoop_int1</tonode><toport>SmplsCollection</toport>
112       <value><array><data>
113 <value><int>1</int></value>
114 <value><int>2</int></value>
115 <value><int>3</int></value>
116 <value><int>4</int></value>
117 </data></array></value>
118    </parameter>
119    <parameter>
120       <tonode>ForEachLoop_int0</tonode><toport>nbBranches</toport>
121       <value><int>2</int></value>
122    </parameter>
123    <parameter>
124       <tonode>ForEachLoop_int0</tonode><toport>SmplsCollection</toport>
125       <value><array><data>
126 <value><int>1</int></value>
127 <value><int>2</int></value>
128 <value><int>3</int></value>
129 <value><int>4</int></value>
130 </data></array></value>
131    </parameter>
132    <parameter>
133       <tonode>ForEachLoop_int0</tonode><toport>SmplsCollection</toport>
134       <value><array><data>
135 <value><int>1</int></value>
136 <value><int>2</int></value>
137 <value><int>3</int></value>
138 <value><int>4</int></value>
139 </data></array></value>
140    </parameter>
141    <presentation name="ForEachLoop_int0.Bloc0.ForEachLoop_int1.Bloc1" x="6" y="88" width="357.75" height="127.75" expanded="1" expx="6" expy="88" expWidth="357.75" expHeight="127.75" shownState="0"/>
142    <presentation name="ForEachLoop_int0.Bloc0.ForEachLoop_int1.Bloc1.PyScript2" x="1.75" y="33.75" width="158" height="90" expanded="1" expx="1.75" expy="33.75" expWidth="158" expHeight="90" shownState="0"/>
143    <presentation name="ForEachLoop_int0.Bloc0.ForEachLoop_int1.Bloc1.PyScript1" x="195.75" y="60.75" width="158" height="63" expanded="1" expx="195.75" expy="60.75" expWidth="158" expHeight="63" shownState="0"/>
144    <presentation name="ForEachLoop_int0.Bloc0" x="6" y="88" width="636.75" height="257.625" expanded="1" expx="6" expy="88" expWidth="636.75" expHeight="257.625" shownState="0"/>
145    <presentation name="ForEachLoop_int0.Bloc0.ForEachLoop_int1" x="1.875" y="33.875" width="367.75" height="219.75" expanded="1" expx="1.875" expy="33.875" expWidth="367.75" expHeight="219.75" shownState="0"/>
146    <presentation name="ForEachLoop_int0" x="4.75" y="32" width="646.75" height="349.625" expanded="1" expx="4.75" expy="32" expWidth="646.75" expHeight="349.625" shownState="0"/>
147    <presentation name="ForEachLoop_int0.Bloc0.PostTraitement" x="474.75" y="138.25" width="158" height="90" expanded="1" expx="474.75" expy="138.25" expWidth="158" expHeight="90" shownState="0"/>
148    <presentation name="OutNode" x="669.5" y="258" width="158" height="63" expanded="1" expx="669.5" expy="258" expWidth="158" expHeight="63" shownState="0"/>
149    <presentation name="__ROOT__" x="0" y="0" width="831.5" height="385.625" expanded="1" expx="0" expy="0" expWidth="831.5" expHeight="385.625" shownState="0"/>
150 </proc>