Salome HOME
Revert "Synchronize adm files"
[modules/yacs.git] / src / yacsloader / samples / switch10.xml
1 <?xml version='1.0' encoding='iso-8859-1' ?>
2 <!--
3   Copyright (C) 2006-2014  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="proc">
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="localhost"/>
40    </container>
41    <inline name="n">
42       <script><code><![CDATA[select=3]]></code></script>
43       <outport name="select" type="int"/>
44    </inline>
45    <inline name="n2">
46       <script><code><![CDATA[print p1]]></code></script>
47       <inport name="p1" type="double"/>
48       <outport name="p1" type="double"/>
49    </inline>
50    <switch name="b1">
51       <default>
52          <inline name="n2">
53             <script><code><![CDATA[print p1]]></code></script>
54             <inport name="p1" type="double"/>
55             <outport name="p1" type="double"/>
56          </inline>
57       </default>
58       <case id="1">
59          <inline name="n2">
60             <script><code><![CDATA[print p1]]></code></script>
61             <inport name="p1" type="double"/>
62             <outport name="p1" type="double"/>
63          </inline>
64       </case>
65       <case id="3">
66          <switch name="b" select="1">
67             <default>
68                <inline name="n2">
69                   <script><code><![CDATA[p1=20.
70 condition=p1 < 40. ]]></code></script>
71                   <outport name="p1" type="double"/>
72                   <outport name="condition" type="bool"/>
73                </inline>
74             </default>
75             <case id="1">
76                <inline name="n2">
77                   <script><code><![CDATA[print p1
78 p1=p1+20
79 condition=p1 < 40. ]]></code></script>
80                   <inport name="p1" type="double"/>
81                   <outport name="p1" type="double"/>
82                   <outport name="condition" type="bool"/>
83                </inline>
84             </case>
85          </switch>
86       </case>
87    </switch>
88    <control> <fromnode>n</fromnode> <tonode>b1</tonode> </control>
89    <control> <fromnode>b1</fromnode> <tonode>n2</tonode> </control>
90    <datalink control="false">
91       <fromnode>n</fromnode> <fromport>select</fromport>
92       <tonode>b1</tonode> <toport>select</toport>
93    </datalink>
94    <datalink control="false">
95       <fromnode>b1.p3_b.default_n2</fromnode> <fromport>p1</fromport>
96       <tonode>n2</tonode> <toport>p1</toport>
97    </datalink>
98    <datalink control="false">
99       <fromnode>b1.p3_b.p1_n2</fromnode> <fromport>p1</fromport>
100       <tonode>n2</tonode> <toport>p1</toport>
101    </datalink>
102    <datalink control="false">
103       <fromnode>b1.default_n2</fromnode> <fromport>p1</fromport>
104       <tonode>n2</tonode> <toport>p1</toport>
105    </datalink>
106    <datalink control="false">
107       <fromnode>b1.p1_n2</fromnode> <fromport>p1</fromport>
108       <tonode>n2</tonode> <toport>p1</toport>
109    </datalink>
110    <parameter>
111       <tonode>b1.default_n2</tonode><toport>p1</toport>
112       <value><double>67</double></value>
113    </parameter>
114    <parameter>
115       <tonode>b1.p1_n2</tonode><toport>p1</toport>
116       <value><double>23</double></value>
117    </parameter>
118    <parameter>
119       <tonode>b1.p3_b.p1_n2</tonode><toport>p1</toport>
120       <value><double>54</double></value>
121    </parameter>
122    <parameter>
123       <tonode>b1.p3_b</tonode><toport>select</toport>
124       <value><int>1</int></value>
125    </parameter>
126    <presentation name="b1" x="397" y="69" width="189" height="454" expanded="1" expx="397" expy="69" expWidth="189" expHeight="454" shownState="0"/>
127    <presentation name="b1.default_n2" x="6" y="57.5" width="158" height="63" expanded="1" expx="6" expy="57.5" expWidth="158" expHeight="63" shownState="0"/>
128    <presentation name="b1.p1_n2" x="6" y="121.5" width="158" height="63" expanded="1" expx="6" expy="121.5" expWidth="158" expHeight="63" shownState="0"/>
129    <presentation name="b1.p3_b.default_n2" x="6" y="57.5" width="158" height="90" expanded="1" expx="6" expy="57.5" expWidth="158" expHeight="90" shownState="0"/>
130    <presentation name="b1.p3_b.p1_n2" x="6" y="148" width="158" height="90" expanded="1" expx="6" expy="148" expWidth="158" expHeight="90" shownState="0"/>
131    <presentation name="n2" x="760" y="181" width="158" height="63" expanded="1" expx="760" expy="181" expWidth="158" expHeight="63" shownState="0"/>
132    <presentation name="b1.p3_b" x="17" y="208" width="168" height="242" expanded="1" expx="17" expy="208" expWidth="168" expHeight="242" shownState="0"/>
133    <presentation name="n" x="6" y="40.5" width="158" height="63" expanded="1" expx="6" expy="40.5" expWidth="158" expHeight="63" shownState="0"/>
134    <presentation name="__ROOT__" x="0" y="0" width="922" height="527" expanded="1" expx="0" expy="0" expWidth="922" expHeight="527" shownState="0"/>
135 </proc>