Salome HOME
[EDF29150] : Add some dynamic traces + assign a more explicite name in perflog
[modules/yacs.git] / Demo / schema_orig.xml
1 <!--
2   Copyright (C) 2006-2024  CEA, EDF
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 <forloop name="b1" nsteps="2">
23  <bloc name="b">
24   <inline name="node1" >
25     <function name="f"> 
26       <code>a=1</code> 
27       <code>def f(p1):</code> 
28       <code>   global a</code> 
29       <code>   a=a+1</code> 
30       <code>   print a</code> 
31       <code>   return p1</code> 
32     </function>
33     <inport name="p1" type="int"/>
34     <outport name="p1" type="int"/>
35   </inline>
36   <inline name="node2" >
37     <function name="f"> 
38       <code>def f(p1):</code> 
39       <code>   return p1</code> 
40     </function>
41     <inport name="p1" type="int"/>
42     <outport name="p1" type="int"/>
43   </inline>
44   <service name="node3" >
45     <kind>xmlsh</kind>
46     <ref>./xmlrpcprog.py</ref>
47     <method>echo</method>
48     <inport name="p1" type="int"/>
49     <outport name="p1" type="int"/>
50   </service>
51   <inline name="node4" >
52     <function name="f"> 
53       <code>def f(p1):</code> 
54       <code>   return p1</code> 
55     </function>
56     <inport name="p1" type="int"/>
57     <outport name="p1" type="int"/>
58   </inline>
59   <service name="node5" >
60     <ref>corbaname:rir:#test.my_context/Echo.Object</ref>
61     <method>echoLong</method>
62     <inport name="p1" type="int"/>
63     <outport name="p1" type="int"/>
64   </service>
65
66   <!--control -->
67   <control> <fromnode>node1</fromnode> <tonode>node2</tonode> </control>
68   <control> <fromnode>node1</fromnode> <tonode>node3</tonode> </control>
69   <control> <fromnode>node3</fromnode> <tonode>node4</tonode> </control>
70   <control> <fromnode>node4</fromnode> <tonode>node5</tonode> </control>
71   <!-- datalinks -->
72   <datalink> <fromnode>node1</fromnode><fromport>p1</fromport>
73                <tonode>node3</tonode> <toport>p1</toport> </datalink>
74   <datalink> <fromnode>node1</fromnode><fromport>p1</fromport>
75                <tonode>node2</tonode> <toport>p1</toport> </datalink>
76   <datalink> <fromnode>node3</fromnode><fromport>p1</fromport>
77                <tonode>node4</tonode> <toport>p1</toport> </datalink>
78   <datalink> <fromnode>node4</fromnode><fromport>p1</fromport>
79                <tonode>node5</tonode> <toport>p1</toport> </datalink>
80   <!-- parameters -->
81   <parameter> <tonode>node1</tonode> <toport>p1</toport>
82     <value><int>32356</int> </value>
83   </parameter>
84  </bloc>
85 </forloop>
86 <inline name="node4" >
87   <function name="f"> 
88       <code>def f(p1):</code> 
89       <code>   print p1</code> 
90       <code>   return p1</code> 
91   </function>
92   <inport name="p1" type="int"/>
93   <outport name="p1" type="int"/>
94 </inline>
95 <control> <fromnode>b1</fromnode> <tonode>node4</tonode> </control>
96 <datalink> <fromnode>b1.b.node5</fromnode><fromport>p1</fromport>
97            <tonode>node4</tonode> <toport>p1</toport> </datalink>
98 </proc>
99