3 Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
5 Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
6 CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License.
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
28 <component-name>?</component-name>
29 <interface-name>?</interface-name>
30 <node-name>GraphCpuUsed</node-name>
32 <coupled-node>?</coupled-node>
34 <service-name>GraphCpuUsed</service-name>
37 <inParameter-type>long</inParameter-type>
38 <inParameter-name>Add\a</inParameter-name> </inParameter>
40 <inParameter-type>long</inParameter-type>
41 <inParameter-name>Sub\a</inParameter-name> </inParameter>
43 <inParameter-type>long</inParameter-type>
44 <inParameter-name>Sub\b</inParameter-name> </inParameter> </inParameter-list>
47 <outParameter-type>string</outParameter-type>
48 <outParameter-name>Compare\Result</outParameter-name> </outParameter> </outParameter-list> </service>
51 <creation-date>24/3/2003 - 10:58:41</creation-date>
52 <lastmodification-date>6/8/2003 - 11:44:4</lastmodification-date>
53 <editor-release>1.04</editor-release>
55 <container>?</container>
57 <x-position>0</x-position>
58 <y-position>0</y-position> </node> </info-list>
61 <component-name>?</component-name>
62 <interface-name>?</interface-name>
63 <node-name>Add</node-name>
65 <coupled-node>?</coupled-node>
67 <service-name>Add</service-name>
70 <inParameter-type>long</inParameter-type>
71 <inParameter-name>a</inParameter-name> </inParameter>
73 <inParameter-type>long</inParameter-type>
74 <inParameter-name>b</inParameter-name> </inParameter> </inParameter-list>
77 <outParameter-type>long</outParameter-type>
78 <outParameter-name>f</outParameter-name> </outParameter> </outParameter-list> </service>
82 <FuncName>Add</FuncName>
83 <PyFunc><![CDATA[from time import * ]]></PyFunc>
84 <PyFunc><![CDATA[def Add(a,b) : ]]></PyFunc>
85 <PyFunc><![CDATA[ print "Add will wait 5 seconds" ]]></PyFunc>
86 <PyFunc><![CDATA[ d = dir() ]]></PyFunc>
87 <PyFunc><![CDATA[ print "Add",d ]]></PyFunc>
88 <PyFunc><![CDATA[ d = dir(sleep) ]]></PyFunc>
89 <PyFunc><![CDATA[ print "Add",d ]]></PyFunc>
90 <PyFunc><![CDATA[ sleep(5) ]]></PyFunc>
91 <PyFunc><![CDATA[ print "Add waited" ]]></PyFunc>
92 <PyFunc><![CDATA[ n = 0 ]]></PyFunc>
93 <PyFunc><![CDATA[ while n < 10000 : ]]></PyFunc>
94 <PyFunc><![CDATA[ i = 0 ]]></PyFunc>
95 <PyFunc><![CDATA[ s = 0 ]]></PyFunc>
96 <PyFunc><![CDATA[ while i <= b : ]]></PyFunc>
97 <PyFunc><![CDATA[ s = s + i ]]></PyFunc>
98 <PyFunc><![CDATA[ i = i + 1 ]]></PyFunc>
99 <PyFunc><![CDATA[ n = n + 1 ]]></PyFunc>
100 <PyFunc><![CDATA[ return s ]]></PyFunc>
101 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
102 <creation-date>6/8/2003 - 11:44:4</creation-date>
103 <lastmodification-date>6/8/2003 - 11:44:4</lastmodification-date>
104 <editor-release>1.04</editor-release>
106 <container>?</container>
107 <comment>Python function</comment>
108 <x-position>214</x-position>
109 <y-position>0</y-position> </node>
111 <component-name>?</component-name>
112 <interface-name>?</interface-name>
113 <node-name>Sub</node-name>
115 <coupled-node>?</coupled-node>
117 <service-name>Sub</service-name>
120 <inParameter-type>long</inParameter-type>
121 <inParameter-name>a</inParameter-name> </inParameter>
123 <inParameter-type>long</inParameter-type>
124 <inParameter-name>b</inParameter-name> </inParameter> </inParameter-list>
127 <outParameter-type>long</outParameter-type>
128 <outParameter-name>f</outParameter-name> </outParameter> </outParameter-list> </service>
132 <FuncName>Sub</FuncName>
133 <PyFunc><![CDATA[def Sub(a,b) : ]]></PyFunc>
134 <PyFunc><![CDATA[ return a-b ]]></PyFunc>
135 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
136 <creation-date>6/8/2003 - 11:44:4</creation-date>
137 <lastmodification-date>6/8/2003 - 11:44:4</lastmodification-date>
138 <editor-release>1.04</editor-release>
140 <container>?</container>
141 <comment>Python function</comment>
142 <x-position>0</x-position>
143 <y-position>139</y-position> </node>
145 <component-name>FactorialComponent</component-name>
146 <interface-name>FactorialComponent</interface-name>
147 <node-name>sigma</node-name>
149 <coupled-node>?</coupled-node>
151 <service-name>sigma</service-name>
154 <inParameter-type>long</inParameter-type>
155 <inParameter-name>n</inParameter-name> </inParameter> </inParameter-list>
158 <outParameter-type>long</outParameter-type>
159 <outParameter-name>f</outParameter-name> </outParameter> </outParameter-list> </service>
162 <creation-date>6/8/2003 - 11:44:4</creation-date>
163 <lastmodification-date>6/8/2003 - 11:44:4</lastmodification-date>
164 <editor-release>1.04</editor-release>
166 <container>localhost/FactoryServerPy</container>
167 <comment>sigma from FactorialComponent</comment>
168 <x-position>214</x-position>
169 <y-position>172</y-position> </node>
171 <component-name>AddComponent</component-name>
172 <interface-name>AddComponent</interface-name>
173 <node-name>Sigma</node-name>
175 <coupled-node>?</coupled-node>
177 <service-name>Sigma</service-name>
180 <inParameter-type>long</inParameter-type>
181 <inParameter-name>n</inParameter-name> </inParameter> </inParameter-list>
184 <outParameter-type>long</outParameter-type>
185 <outParameter-name>f</outParameter-name> </outParameter> </outParameter-list> </service>
188 <creation-date>6/8/2003 - 11:44:4</creation-date>
189 <lastmodification-date>6/8/2003 - 11:44:4</lastmodification-date>
190 <editor-release>1.04</editor-release>
192 <container>localhost/FactoryServer</container>
193 <comment>Sigma from AddComponent</comment>
194 <x-position>418</x-position>
195 <y-position>21</y-position> </node>
197 <component-name>?</component-name>
198 <interface-name>?</interface-name>
199 <node-name>Compare</node-name>
201 <coupled-node>?</coupled-node>
203 <service-name>Compare</service-name>
206 <inParameter-type>long</inParameter-type>
207 <inParameter-name>Add</inParameter-name> </inParameter>
209 <inParameter-type>long</inParameter-type>
210 <inParameter-name>Sigma</inParameter-name> </inParameter>
212 <inParameter-type>long</inParameter-type>
213 <inParameter-name>sigma</inParameter-name> </inParameter> </inParameter-list>
216 <outParameter-type>string</outParameter-type>
217 <outParameter-name>Result</outParameter-name> </outParameter> </outParameter-list> </service>
221 <FuncName>Compare</FuncName>
222 <PyFunc><![CDATA[def Compare( Add , sigma , Sigma ) : ]]></PyFunc>
223 <PyFunc><![CDATA[ Result = "Good" ]]></PyFunc>
224 <PyFunc><![CDATA[ if Add != sigma : ]]></PyFunc>
225 <PyFunc><![CDATA[ Result = "Bad" ]]></PyFunc>
226 <PyFunc><![CDATA[ if Add != Sigma : ]]></PyFunc>
227 <PyFunc><![CDATA[ Result = "Bad" ]]></PyFunc>
228 <PyFunc><![CDATA[ return Result ]]></PyFunc>
229 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
230 <creation-date>6/8/2003 - 11:44:4</creation-date>
231 <lastmodification-date>6/8/2003 - 11:44:4</lastmodification-date>
232 <editor-release>1.04</editor-release>
234 <container>?</container>
235 <comment>Compute Node</comment>
236 <x-position>419</x-position>
237 <y-position>184</y-position> </node> </node-list>
240 <fromnode-name>Add</fromnode-name>
241 <fromserviceparameter-name>f</fromserviceparameter-name>
242 <tonode-name>Compare</tonode-name>
243 <toserviceparameter-name>Add</toserviceparameter-name>
262 <y>80</y> </coord> </coord-list> </link>
264 <fromnode-name>Sub</fromnode-name>
265 <fromserviceparameter-name>f</fromserviceparameter-name>
266 <tonode-name>Add</tonode-name>
267 <toserviceparameter-name>b</toserviceparameter-name>
274 <y>220</y> </coord> </coord-list> </link>
276 <fromnode-name>Sub</fromnode-name>
277 <fromserviceparameter-name>f</fromserviceparameter-name>
278 <tonode-name>sigma</tonode-name>
279 <toserviceparameter-name>n</toserviceparameter-name>
286 <y>220</y> </coord> </coord-list> </link>
288 <fromnode-name>Sub</fromnode-name>
289 <fromserviceparameter-name>f</fromserviceparameter-name>
290 <tonode-name>Sigma</tonode-name>
291 <toserviceparameter-name>n</toserviceparameter-name>
304 <y>220</y> </coord> </coord-list> </link>
306 <fromnode-name>sigma</fromnode-name>
307 <fromserviceparameter-name>f</fromserviceparameter-name>
308 <tonode-name>Compare</tonode-name>
309 <toserviceparameter-name>sigma</toserviceparameter-name>
316 <y>253</y> </coord> </coord-list> </link>
318 <fromnode-name>Sigma</fromnode-name>
319 <fromserviceparameter-name>f</fromserviceparameter-name>
320 <tonode-name>Compare</tonode-name>
321 <toserviceparameter-name>Sigma</toserviceparameter-name>
334 <y>102</y> </coord> </coord-list> </link> </link-list>
337 <fromnode-name>GraphCpuUsed</fromnode-name>
338 <fromserviceparameter-name>Add\a</fromserviceparameter-name>
339 <tonode-name>Add</tonode-name>
340 <toserviceparameter-name>a</toserviceparameter-name>
342 <value-type>3</value-type>
343 <value>1</value> </data-value>
344 <coord-list/> </data>
346 <fromnode-name>GraphCpuUsed</fromnode-name>
347 <fromserviceparameter-name>Sub\a</fromserviceparameter-name>
348 <tonode-name>Sub</tonode-name>
349 <toserviceparameter-name>a</toserviceparameter-name>
351 <value-type>3</value-type>
352 <value>1000</value> </data-value>
353 <coord-list/> </data>
355 <fromnode-name>GraphCpuUsed</fromnode-name>
356 <fromserviceparameter-name>Sub\b</fromserviceparameter-name>
357 <tonode-name>Sub</tonode-name>
358 <toserviceparameter-name>b</toserviceparameter-name>
360 <value-type>3</value-type>
361 <value>1</value> </data-value>
362 <coord-list/> </data> </data-list></dataflow>