Salome HOME
84ba725fb7b585880183ba2ec7abc81d4ff1c4a1
[samples/datafiles.git] / Yacs / Schemas / refcnt1.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     <!--Python ref count (14) must not depend on iteration number (2 or 3 or more) -->
23 <forloop name="b1" nsteps="2">
24  <bloc name="b">
25   <inline name="node1" >
26     <function name="f"> 
27       <code>a=1</code> 
28       <code>def f(p1):</code> 
29       <code>   global a</code> 
30       <code>   a=a+1</code> 
31       <code>   print a</code> 
32       <code>   return p1</code> 
33     </function>
34     <inport name="p1" type="int"/>
35     <outport name="p1" type="int"/>
36   </inline>
37   <inline name="node2" >
38     <function name="f"> 
39       <code>def f(p1):</code> 
40       <code>   return p1</code> 
41     </function>
42     <inport name="p1" type="int"/>
43     <outport name="p1" type="int"/>
44   </inline>
45   <inline name="node3" >
46     <function name="f"> 
47       <code>def f(p1):</code> 
48       <code>   return p1</code> 
49     </function>
50     <inport name="p1" type="int"/>
51     <outport name="p1" type="int"/>
52   </inline>
53   <inline name="node4" >
54     <function name="f"> 
55       <code>def f(p1):</code> 
56       <code>   return p1</code> 
57     </function>
58     <inport name="p1" type="int"/>
59     <outport name="p1" type="int"/>
60   </inline>
61   <inline name="node5" >
62     <function name="f"> 
63       <code>def f(p1):</code> 
64       <code>   return p1</code> 
65     </function>
66     <inport name="p1" type="int"/>
67     <outport name="p1" type="int"/>
68   </inline>
69   <bloc name="c">
70    <inline name="node1" >
71     <function name="f"> 
72       <code>def f(p1):</code> 
73       <code>   return p1</code> 
74     </function>
75     <inport name="p1" type="int"/>
76     <outport name="p1" type="int"/>
77    </inline>
78   </bloc>
79
80   <!--control -->
81   <control> <fromnode>node1</fromnode> <tonode>node2</tonode> </control>
82   <control> <fromnode>node1</fromnode> <tonode>node3</tonode> </control>
83   <control> <fromnode>node2</fromnode> <tonode>node4</tonode> </control>
84   <control> <fromnode>node3</fromnode> <tonode>node5</tonode> </control>
85   <control> <fromnode>node1</fromnode> <tonode>c</tonode> </control>
86   <!-- datalinks -->
87   <datalink> <fromnode>node1</fromnode><fromport>p1</fromport>
88                <tonode>node3</tonode> <toport>p1</toport> </datalink>
89   <datalink> <fromnode>node1</fromnode><fromport>p1</fromport>
90                <tonode>node2</tonode> <toport>p1</toport> </datalink>
91   <datalink> <fromnode>node2</fromnode><fromport>p1</fromport>
92                <tonode>node4</tonode> <toport>p1</toport> </datalink>
93   <datalink> <fromnode>node3</fromnode><fromport>p1</fromport>
94                <tonode>node5</tonode> <toport>p1</toport> </datalink>
95   <datalink> <fromnode>node1</fromnode><fromport>p1</fromport>
96                <tonode>c.node1</tonode> <toport>p1</toport> </datalink>
97   <!-- parameters -->
98   <parameter> <tonode>node1</tonode> <toport>p1</toport>
99     <value><int>32356</int> </value>
100   </parameter>
101  </bloc>
102 </forloop>
103 </proc>
104