]> SALOME platform Git repositories - modules/superv.git/blob - examples/test_events.xml
Salome HOME
PAL8521
[modules/superv.git] / examples / test_events.xml
1 <!DOCTYPE Dataflow>
2 <dataflow>
3 <info-list>
4 <node>
5 <component-name>?</component-name>
6    <interface-name>?</interface-name>
7    <node-name>aNewDataFlow</node-name>
8    <kind>1</kind>
9    <coupled-node>?</coupled-node>
10    <service>
11 <service-name>aNewDataFlow</service-name>
12     <inParameter-list>
13 <inParameter>
14 <inParameter-type>int</inParameter-type>
15       <inParameter-name>Init\A</inParameter-name>     </inParameter>    </inParameter-list>
16     <outParameter-list>
17 <outParameter>
18 <outParameter-type>int</outParameter-type>
19       <outParameter-name>EndInit\A</outParameter-name>     </outParameter>    </outParameter-list>   </service>
20    <Parameter-list/>
21    <PyFunction-list/>
22    <creation-date>2/4/2004 - 16:38:31</creation-date>
23    <lastmodification-date>2/4/2004 - 18:30:31</lastmodification-date>
24    <editor-release>1.05</editor-release>
25    <author>?</author>
26    <container>?</container>
27    <comment>?</comment>
28    <x-position>0</x-position>
29    <y-position>0</y-position>  </node> </info-list>
30  <node-list>
31 <node>
32 <component-name>?</component-name>
33    <interface-name>?</interface-name>
34    <node-name>Init</node-name>
35    <kind>4</kind>
36    <coupled-node>EndInit</coupled-node>
37    <service>
38 <service-name>Init</service-name>
39     <inParameter-list>
40 <inParameter>
41 <inParameter-type>int</inParameter-type>
42       <inParameter-name>A</inParameter-name>     </inParameter>    </inParameter-list>
43     <outParameter-list>
44 <outParameter>
45 <outParameter-type>int</outParameter-type>
46       <outParameter-name>A</outParameter-name>     </outParameter>    </outParameter-list>   </service>
47    <Parameter-list/>
48    <PyFunction-list>
49 <PyFunction>
50 <FuncName>Init</FuncName>
51      <PyFunc><![CDATA[def Init( A ):   ]]></PyFunc>
52      <PyFunc><![CDATA[  return A   ]]></PyFunc>    </PyFunction>
53     <PyFunction>
54 <FuncName>More</FuncName>
55      <PyFunc><![CDATA[def More( A ):   ]]></PyFunc>
56      <PyFunc><![CDATA[  if A < 10:   ]]></PyFunc>
57      <PyFunc><![CDATA[    return 1,A   ]]></PyFunc>
58      <PyFunc><![CDATA[  return 0,A   ]]></PyFunc>    </PyFunction>
59     <PyFunction>
60 <FuncName>Next</FuncName>
61      <PyFunc><![CDATA[def Next( A ):   ]]></PyFunc>
62      <PyFunc><![CDATA[  return (A + 1)   ]]></PyFunc>    </PyFunction>   </PyFunction-list>
63    <creation-date>2/4/2004 - 18:30:31</creation-date>
64    <lastmodification-date>2/4/2004 - 18:30:31</lastmodification-date>
65    <editor-release>1.05</editor-release>
66    <author>?</author>
67    <container>?</container>
68    <comment>?</comment>
69    <x-position>118</x-position>
70    <y-position>160</y-position>  </node>
71   <node>
72 <component-name>?</component-name>
73    <interface-name>?</interface-name>
74    <node-name>EndInit</node-name>
75    <kind>5</kind>
76    <coupled-node>Init</coupled-node>
77    <service>
78 <service-name>EndInit</service-name>
79     <inParameter-list>
80 <inParameter>
81 <inParameter-type>int</inParameter-type>
82       <inParameter-name>A</inParameter-name>     </inParameter>    </inParameter-list>
83     <outParameter-list>
84 <outParameter>
85 <outParameter-type>int</outParameter-type>
86       <outParameter-name>A</outParameter-name>     </outParameter>    </outParameter-list>   </service>
87    <Parameter-list/>
88    <PyFunction-list>
89 <PyFunction>
90 <FuncName>EndInit</FuncName>
91      <PyFunc><![CDATA[?]]></PyFunc>    </PyFunction>   </PyFunction-list>
92    <creation-date>2/4/2004 - 18:30:31</creation-date>
93    <lastmodification-date>2/4/2004 - 18:30:31</lastmodification-date>
94    <editor-release>1.05</editor-release>
95    <author>?</author>
96    <container>?</container>
97    <comment>?</comment>
98    <x-position>740</x-position>
99    <y-position>168</y-position>  </node>
100   <node>
101 <component-name>?</component-name>
102    <interface-name>?</interface-name>
103    <node-name>Func</node-name>
104    <kind>3</kind>
105    <coupled-node>?</coupled-node>
106    <service>
107 <service-name>Func</service-name>
108     <inParameter-list>
109 <inParameter>
110 <inParameter-type>int</inParameter-type>
111       <inParameter-name>A</inParameter-name>     </inParameter>    </inParameter-list>
112     <outParameter-list>
113 <outParameter>
114 <outParameter-type>int</outParameter-type>
115       <outParameter-name>B</outParameter-name>     </outParameter>    </outParameter-list>   </service>
116    <Parameter-list/>
117    <PyFunction-list>
118 <PyFunction>
119 <FuncName>Func</FuncName>
120      <PyFunc><![CDATA[def Func( A ):     ]]></PyFunc>
121      <PyFunc><![CDATA[  import batchmode_visu  ]]></PyFunc>
122      <PyFunc><![CDATA[  batchmode_visu.myVisu.CreateTestView()   ]]></PyFunc>
123      <PyFunc><![CDATA[  batchmode_visu.myVisu.ShowTestObject()   ]]></PyFunc>
124      <PyFunc><![CDATA[  return A     ]]></PyFunc>    </PyFunction>   </PyFunction-list>
125    <creation-date>2/4/2004 - 18:30:31</creation-date>
126    <lastmodification-date>2/4/2004 - 18:30:31</lastmodification-date>
127    <editor-release>1.05</editor-release>
128    <author>?</author>
129    <container>?</container>
130    <comment>Compute Node</comment>
131    <x-position>375</x-position>
132    <y-position>162</y-position>  </node> </node-list>
133  <link-list>
134 <link>
135 <fromnode-name>Init</fromnode-name>
136    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
137    <tonode-name>EndInit</tonode-name>
138    <toserviceparameter-name>DoLoop</toserviceparameter-name>
139    <coord-list/>  </link>
140   <link>
141 <fromnode-name>Init</fromnode-name>
142    <fromserviceparameter-name>A</fromserviceparameter-name>
143    <tonode-name>Func</tonode-name>
144    <toserviceparameter-name>A</toserviceparameter-name>
145    <coord-list/>  </link>
146   <link>
147 <fromnode-name>EndInit</fromnode-name>
148    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
149    <tonode-name>Init</tonode-name>
150    <toserviceparameter-name>DoLoop</toserviceparameter-name>
151    <coord-list/>  </link>
152   <link>
153 <fromnode-name>Func</fromnode-name>
154    <fromserviceparameter-name>B</fromserviceparameter-name>
155    <tonode-name>EndInit</tonode-name>
156    <toserviceparameter-name>A</toserviceparameter-name>
157    <coord-list/>  </link> </link-list>
158  <data-list>
159 <data>
160 <fromnode-name>aNewDataFlow</fromnode-name>
161    <fromserviceparameter-name>Init\A</fromserviceparameter-name>
162    <tonode-name>Init</tonode-name>
163    <toserviceparameter-name>A</toserviceparameter-name>
164    <data-value>
165 <value-type>3</value-type>
166     <value>0</value>   </data-value>
167    <coord-list/>  </data> </data-list></dataflow>