Salome HOME
a79d50ae572b59051d629fd12a48e43f1b51bc40
[samples/datafiles.git] / Yacs / Schemas / bid.xml
1 <!--
2   Copyright (C) 2006-2015  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
23     <!-- types -->
24     <!-- inline -->
25     <!-- service -->
26
27     <inline name="node1" >
28                 <function name="f">
29                     <code>def f():</code>
30                     <code>  return "coucou" </code>
31                 </function>
32                 <outport name="p1" type="string"/>
33     </inline>
34     <bloc name="b1" >
35         <inline name="node1" >
36                 <function name="f">
37                     <code>def f():</code>
38                     <code>  return "coucou" </code>
39                 </function>
40                 <outport name="p1" type="string"/>
41         </inline>
42         <bloc name="b2" >
43             <inline name="node1" >
44                 <function name="f">
45                     <code>def f(p1):</code>
46                     <code>  print p1;p1=2*p1 </code>
47                     <code>  return p1 </code>
48                 </function>
49                 <inport name="p1" type="string"/>
50                 <outport name="p1" type="string"/>
51             </inline>
52         </bloc>
53         <control> <fromnode>node5</fromnode> <tonode>b2</tonode> </control>
54     </bloc>
55
56     <!--control -->
57
58     <!--datalinks -->
59
60     <!--parameters -->
61     <parameter>
62         <tonode>b1.b2.node1</tonode> <toport>p1</toport>
63         <value><string>coucou</string></value>
64     </parameter>
65
66 </proc>