Salome HOME
[EDF28020] Fix nested foreach-switch.
[modules/yacs.git] / src / yacsloader / samples / foreach_switch_double.xml
1 <?xml version='1.0' encoding='iso-8859-1' ?>
2 <proc name="GeneratedSchema">
3    <property name="executor" value="workloadmanager"/>
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="seqintvec" content="intvec"/>
24    <sequence name="seqpyobj" content="pyobj"/>
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="container_name" value="FactoryServer"/>
31       <property name="name" value="localhost"/>
32    </container>
33    <container name="default_container">
34       <property name="container_kind" value="Salome"/>
35       <property name="attached_on_cloning" value="1"/>
36       <property name="nb_parallel_procs" value="1"/>
37       <property name="type" value="multi"/>
38       <property name="use_py_cache" value="0"/>
39    </container>
40    <foreachdyn name="iteration_0" loopWeight="-1" type="pyobj">
41       <bloc name="block_iteration_0">
42          <inline name="Condition_1">
43             <script><code><![CDATA[r = c % 2
44 ]]></code></script>
45             <load container="DefaultContainer"/>
46             <inport name="c" type="pyobj"/>
47             <outport name="r" type="int"/>
48          </inline>
49          <switch name="Switch_2">
50             <case id="0">
51                <bloc name="Switch_2_case_0">
52                   <foreachdyn name="iter2_4" loopWeight="-1" type="pyobj">
53                      <bloc name="block_iter2_4">
54                         <inline name="Condition_5">
55                            <script><code><![CDATA[r = c % 2
56 ]]></code></script>
57                            <load container="DefaultContainer"/>
58                            <inport name="c" type="pyobj"/>
59                            <outport name="r" type="int"/>
60                         </inline>
61                         <switch name="Switch_6">
62                            <case id="0">
63                               <bloc name="Switch_6_case_0">
64                                  <remote name="faux_8" elementaryWeight="-1">
65                                     <script><code><![CDATA[r = "c'est faux!"
66 ]]></code></script>
67                                     <load container="default_container"/>
68                                     <outport name="r" type="pyobj"/>
69                                  </remote>
70                               </bloc>
71                            </case>
72                            <case id="1">
73                               <bloc name="Switch_6_case_1">
74                                  <remote name="vrai_7" elementaryWeight="-1">
75                                     <script><code><![CDATA[r = "c'est vrai!"
76 ]]></code></script>
77                                     <load container="default_container"/>
78                                     <outport name="r" type="pyobj"/>
79                                  </remote>
80                               </bloc>
81                            </case>
82                         </switch>
83                         <inline name="SwitchResults_9">
84                            <script><code><![CDATA[]]></code></script>
85                            <inport name="p0" type="pyobj"/>
86                            <outport name="p0" type="pyobj"/>
87                         </inline>
88                         <control> <fromnode>Condition_5</fromnode> <tonode>Switch_6</tonode> </control>
89                         <control> <fromnode>Switch_6</fromnode> <tonode>SwitchResults_9</tonode> </control>
90                         <datalink control="false">
91                            <fromnode>Condition_5</fromnode> <fromport>r</fromport>
92                            <tonode>Switch_6</tonode> <toport>select</toport>
93                         </datalink>
94                         <datalink control="false">
95                            <fromnode>Switch_6.p0_Switch_6_case_0.faux_8</fromnode> <fromport>r</fromport>
96                            <tonode>SwitchResults_9</tonode> <toport>p0</toport>
97                         </datalink>
98                         <datalink control="false">
99                            <fromnode>Switch_6.p1_Switch_6_case_1.vrai_7</fromnode> <fromport>r</fromport>
100                            <tonode>SwitchResults_9</tonode> <toport>p0</toport>
101                         </datalink>
102                      </bloc>
103                   </foreachdyn>
104                   <remote name="output_iter2_4_10" elementaryWeight="-1">
105                      <script><code><![CDATA[]]></code></script>
106                      <load container="default_container"/>
107                      <inport name="p0_0" type="seqpyobj"/>
108                      <outport name="p0_0" type="pyobj"/>
109                   </remote>
110                   <control> <fromnode>iter2_4</fromnode> <tonode>output_iter2_4_10</tonode> </control>
111                   <datalink control="false">
112                      <fromnode>iter2_4</fromnode> <fromport>evalSamples</fromport>
113                      <tonode>iter2_4.block_iter2_4.Condition_5</tonode> <toport>c</toport>
114                   </datalink>
115                   <datalink control="false">
116                      <fromnode>iter2_4.block_iter2_4.SwitchResults_9</fromnode> <fromport>p0</fromport>
117                      <tonode>output_iter2_4_10</tonode> <toport>p0_0</toport>
118                   </datalink>
119                </bloc>
120             </case>
121             <case id="1">
122                <bloc name="Switch_2_case_1">
123                   <remote name="vrai_3" elementaryWeight="-1">
124                      <script><code><![CDATA[r = "c'est vrai!"
125 ]]></code></script>
126                      <load container="default_container"/>
127                      <outport name="r" type="pyobj"/>
128                   </remote>
129                </bloc>
130             </case>
131          </switch>
132          <inline name="SwitchResults_11">
133             <script><code><![CDATA[]]></code></script>
134             <inport name="p0" type="pyobj"/>
135             <outport name="p0" type="pyobj"/>
136          </inline>
137          <control> <fromnode>Condition_1</fromnode> <tonode>Switch_2</tonode> </control>
138          <control> <fromnode>Switch_2</fromnode> <tonode>SwitchResults_11</tonode> </control>
139          <datalink control="false">
140             <fromnode>Condition_1</fromnode> <fromport>r</fromport>
141             <tonode>Switch_2</tonode> <toport>select</toport>
142          </datalink>
143          <datalink control="false">
144             <fromnode>Switch_2.p0_Switch_2_case_0.output_iter2_4_10</fromnode> <fromport>p0_0</fromport>
145             <tonode>SwitchResults_11</tonode> <toport>p0</toport>
146          </datalink>
147          <datalink control="false">
148             <fromnode>Switch_2.p1_Switch_2_case_1.vrai_3</fromnode> <fromport>r</fromport>
149             <tonode>SwitchResults_11</tonode> <toport>p0</toport>
150          </datalink>
151       </bloc>
152    </foreachdyn>
153    <remote name="output_iteration_0_12" elementaryWeight="-1">
154       <script><code><![CDATA[]]></code></script>
155       <load container="default_container"/>
156       <inport name="p0_0" type="seqpyobj"/>
157       <outport name="p0_0" type="pyobj"/>
158    </remote>
159    <remote name="End" elementaryWeight="-1">
160       <script><code><![CDATA[ok = x == [["c'est faux!", "c'est vrai!"],
161            "c'est vrai!"]
162 ]]></code></script>
163       <load container="default_container"/>
164       <inport name="x" type="pyobj"/>
165       <outport name="ok" type="bool"/>
166    </remote>
167    <control> <fromnode>iteration_0</fromnode> <tonode>output_iteration_0_12</tonode> </control>
168    <control> <fromnode>output_iteration_0_12</fromnode> <tonode>End</tonode> </control>
169    <datalink control="false">
170       <fromnode>iteration_0</fromnode> <fromport>evalSamples</fromport>
171       <tonode>iteration_0.block_iteration_0.Condition_1</tonode> <toport>c</toport>
172    </datalink>
173    <datalink control="false">
174       <fromnode>output_iteration_0_12</fromnode> <fromport>p0_0</fromport>
175       <tonode>End</tonode> <toport>x</toport>
176    </datalink>
177    <datalink control="false">
178       <fromnode>iteration_0.block_iteration_0.SwitchResults_11</fromnode> <fromport>p0</fromport>
179       <tonode>output_iteration_0_12</tonode> <toport>p0_0</toport>
180    </datalink>
181    <parameter>
182       <tonode>iteration_0.block_iteration_0.Switch_2.p0_Switch_2_case_0.iter2_4.block_iter2_4.Condition_5</tonode><toport>c</toport>
183       <value><objref><![CDATA[YUkAI5F]]></objref></value>
184    </parameter>
185    <parameter>
186       <tonode>iteration_0.block_iteration_0.Condition_1</tonode><toport>c</toport>
187       <value><objref><![CDATA[YUkAI5F]]></objref></value>
188    </parameter>
189    <parameter>
190       <tonode>iteration_0</tonode><toport>SmplsCollection</toport>
191       <value><array><data>
192 <value><objref>.G0dk.........1G.5F</objref></value>
193 <value><objref>.G0dk.........1GU5F</objref></value>
194 </data></array></value>
195    </parameter>
196    <parameter>
197       <tonode>iteration_0.block_iteration_0.Switch_2.p0_Switch_2_case_0.iter2_4</tonode><toport>SmplsCollection</toport>
198       <value><array><data>
199 <value><objref>.G0dk.........1G.5F</objref></value>
200 <value><objref>.G0dk.........1GU5F</objref></value>
201 </data></array></value>
202    </parameter>
203    <presentation name="iteration_0.block_iteration_0.Switch_2.p0_Switch_2_case_0" x="6" y="61" width="776.75" height="407.625" expanded="1" expx="6" expy="61" expWidth="776.75" expHeight="407.625" shownState="0"/>
204    <presentation name="iteration_0.block_iteration_0.Switch_2.p0_Switch_2_case_0.iter2_4.block_iter2_4" x="6" y="61" width="567.75" height="304.75" expanded="1" expx="6" expy="61" expWidth="567.75" expHeight="304.75" shownState="0"/>
205    <presentation name="iteration_0.block_iteration_0.Switch_2.p0_Switch_2_case_0.output_iter2_4_10" x="614.75" y="187.25" width="158" height="63" expanded="1" expx="614.75" expy="187.25" expWidth="158" expHeight="63" shownState="0"/>
206    <presentation name="iteration_0.block_iteration_0.Switch_2.p0_Switch_2_case_0.iter2_4.block_iter2_4.Switch_6.p1_Switch_6_case_1" x="6" y="162.75" width="163.75" height="100.75" expanded="1" expx="6" expy="162.75" expWidth="163.75" expHeight="100.75" shownState="0"/>
207    <presentation name="iteration_0.block_iteration_0" x="6" y="61" width="1178.75" height="612.438" expanded="1" expx="6" expy="61" expWidth="1178.75" expHeight="612.438" shownState="0"/>
208    <presentation name="End" x="1419.75" y="341.25" width="158" height="63" expanded="1" expx="1419.75" expy="341.25" expWidth="158" expHeight="63" shownState="0"/>
209    <presentation name="iteration_0.block_iteration_0.Switch_2.p1_Switch_2_case_1" x="6" y="469.625" width="163.75" height="100.75" expanded="1" expx="6" expy="469.625" expWidth="163.75" expHeight="100.75" shownState="0"/>
210    <presentation name="iteration_0.block_iteration_0.Switch_2.p0_Switch_2_case_0.iter2_4.block_iter2_4.SwitchResults_9" x="405.75" y="135.75" width="158" height="63" expanded="1" expx="405.75" expy="135.75" expWidth="158" expHeight="63" shownState="0"/>
211    <presentation name="iteration_0.block_iteration_0.Switch_2.p0_Switch_2_case_0.iter2_4.block_iter2_4.Switch_6.p0_Switch_6_case_0.faux_8" x="1.75" y="33.75" width="158" height="63" expanded="1" expx="1.75" expy="33.75" expWidth="158" expHeight="63" shownState="0"/>
212    <presentation name="iteration_0.block_iteration_0.Switch_2.p0_Switch_2_case_0.iter2_4.block_iter2_4.Condition_5" x="1.75" y="135.75" width="158" height="63" expanded="1" expx="1.75" expy="135.75" expWidth="158" expHeight="63" shownState="0"/>
213    <presentation name="iteration_0.block_iteration_0.Switch_2" x="194.875" y="34.0625" width="786.75" height="574.375" expanded="1" expx="194.875" expy="34.0625" expWidth="786.75" expHeight="574.375" shownState="0"/>
214    <presentation name="iteration_0.block_iteration_0.Switch_2.p0_Switch_2_case_0.iter2_4.block_iter2_4.Switch_6.p0_Switch_6_case_0" x="6" y="61" width="163.75" height="100.75" expanded="1" expx="6" expy="61" expWidth="163.75" expHeight="100.75" shownState="0"/>
215    <presentation name="iteration_0.block_iteration_0.Condition_1" x="1.75" y="289.75" width="158" height="63" expanded="1" expx="1.75" expy="289.75" expWidth="158" expHeight="63" shownState="0"/>
216    <presentation name="output_iteration_0_12" x="1225.75" y="341.25" width="158" height="63" expanded="1" expx="1225.75" expy="341.25" expWidth="158" expHeight="63" shownState="0"/>
217    <presentation name="iteration_0.block_iteration_0.SwitchResults_11" x="1016.75" y="289.75" width="158" height="63" expanded="1" expx="1016.75" expy="289.75" expWidth="158" expHeight="63" shownState="0"/>
218    <presentation name="iteration_0" x="1.375" y="34.0312" width="1188.75" height="677.438" expanded="1" expx="1.375" expy="34.0312" expWidth="1188.75" expHeight="677.438" shownState="0"/>
219    <presentation name="iteration_0.block_iteration_0.Switch_2.p0_Switch_2_case_0.iter2_4.block_iter2_4.Switch_6" x="195.875" y="33.75" width="173.75" height="267" expanded="1" expx="195.875" expy="33.75" expWidth="173.75" expHeight="267" shownState="0"/>
220    <presentation name="iteration_0.block_iteration_0.Switch_2.p1_Switch_2_case_1.vrai_3" x="1.75" y="33.75" width="158" height="63" expanded="1" expx="1.75" expy="33.75" expWidth="158" expHeight="63" shownState="0"/>
221    <presentation name="iteration_0.block_iteration_0.Switch_2.p0_Switch_2_case_0.iter2_4" x="1.375" y="33.875" width="577.75" height="369.75" expanded="1" expx="1.375" expy="33.875" expWidth="577.75" expHeight="369.75" shownState="0"/>
222    <presentation name="iteration_0.block_iteration_0.Switch_2.p0_Switch_2_case_0.iter2_4.block_iter2_4.Switch_6.p1_Switch_6_case_1.vrai_7" x="1.75" y="33.75" width="158" height="63" expanded="1" expx="1.75" expy="33.75" expWidth="158" expHeight="63" shownState="0"/>
223    <presentation name="__ROOT__" x="0" y="0" width="1581.75" height="715.469" expanded="1" expx="0" expy="0" expWidth="1581.75" expHeight="715.469" shownState="0"/>
224 </proc>