Salome HOME
30c52dc8fc5a4cf971dc714e32a04fbbd43a8818
[samples/datafiles.git] / Yacs / Schemas / oschema.xml
1 <!--
2   Copyright (C) 2006-2014  CEA/DEN, EDF R&D
3
4   This library is free software; you can redistribute it and/or
5   modify it under the terms of the GNU Lesser General Public
6   License as published by the Free Software Foundation; either
7   version 2.1 of the License, or (at your option) any later version.
8
9   This library is distributed in the hope that it will be useful,
10   but WITHOUT ANY WARRANTY; without even the implied warranty of
11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12   Lesser General Public License for more details.
13
14   You should have received a copy of the GNU Lesser General Public
15   License along with this library; if not, write to the Free Software
16   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17
18   See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19
20 -->
21 <proc>
22     <type name="double" kind="double"/>
23     <type name="int" kind="int"/>
24     <sequence name="dblevec" content="double"/>
25     <sequence name="dblevecvec" content="dblevec"/>
26     <objref name="geom" />
27     <objref name="mesh" />
28     <objref name="sgeom" >
29         <base>geom</base>
30     </objref>
31     <sequence name="geomvec" content="geom"/>
32     <sequence name="sgeomvec" content="sgeom"/>
33     <sequence name="sgeomvecvec" content="sgeomvec"/>
34     <objref name="ugeom" >
35         <base>geom</base>
36         <base>mesh</base>
37     </objref>
38
39     <inline name="node2" >
40         <script>
41           <code>p1= 10.</code>
42         </script>
43         <outport name="p1" type="double"/>
44     </inline>
45     <inline name="node3" >
46         <script>
47         <code>p1= p1+10.</code>
48         </script>
49         <inport name="p1" type="double"/>
50         <outport name="p1" type="double"/>
51     </inline>
52     <service name="node4" >
53         <ref>corbaname::localhost#test.my_context/Echo.Object</ref>
54         <method>echoDouble</method>
55         <inport name="p1" type="double"/>
56         <outport name="p1" type="double"/>
57     </service>
58     <service name="node5" >
59         <ref>corbaname:rir:#test.my_context/Echo.Object</ref>
60         <method>echoDouble</method>
61         <inport name="p1" type="double"/>
62         <outport name="p1" type="double"/>
63     </service>
64     <bloc name="b0" >
65         <inline name="n1" > <script><code></code></script> </inline>
66     </bloc>
67     <bloc name="c0" >
68         <inline name="n1" > <script><code></code></script> </inline>
69         <service name="node5" >
70             <ref>corbaname:rir:#test.my_context/Echo.Object</ref>
71             <method>echoDouble</method>
72             <inport name="p1" type="double"/>
73             <outport name="p1" type="double"/>
74         </service>
75         <bloc name="c1" >
76             <inline name="n1" > <script><code></code></script> </inline>
77         </bloc>
78     </bloc>
79     <bloc name="b1" >
80         <inline name="n1" > <script><code></code></script> </inline>
81         <inline name="n2" > <script><code></code></script> </inline>
82         <inline name="n3" > <script><code></code></script> </inline>
83         <inline name="n4">
84             <script><code></code></script> 
85             <inport name="p1" type="int"/>
86             <inport name="p2" type="double"/>
87             <inport name="p3" type="int"/>
88             <inport name="p4" type="int"/>
89             <outport name="p1" type="int"/>
90         </inline>
91         <inline name="n5" > <script><code></code></script> </inline>
92         <inline name="n6" > <script><code></code></script> </inline>
93         <bloc name="b2">
94             <inline name="no1" >
95                 <script><code></code></script> 
96                 <outport name="p1" type="int"/>
97             </inline>
98             <inline name="no2" >
99                 <script><code></code></script> 
100                 <inport name="p1" type="int"/>
101             </inline>
102             <bloc name="bb1">
103                 <inline name="bbno1" > <script><code></code></script> </inline>
104             </bloc>
105             <datalink>
106                 <fromnode>no1</fromnode>
107                 <tonode>no2</tonode>
108                 <fromport>p1</fromport>
109                 <toport>p1</toport>
110             </datalink>
111         </bloc>
112     </bloc>
113     <control> <fromnode>node2</fromnode> <tonode>node3</tonode> </control>
114     <datalink>
115         <fromnode>node2</fromnode> <fromport>p1</fromport> 
116         <tonode>node3</tonode> <toport>p1</toport>
117     </datalink>
118     <datalink>
119         <fromnode>node3</fromnode> <fromport>p1</fromport>
120         <tonode>node4</tonode> <toport>p1</toport>
121     </datalink>
122     <datalink>
123         <fromnode>node4</fromnode> <fromport>p1</fromport>
124         <tonode>node5</tonode> <toport>p1</toport>
125     </datalink>
126 </proc>