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