5 <component-name>?</component-name>
6 <interface-name>?</interface-name>
7 <node-name>GraphCpuUsed</node-name>
9 <coupled-node>?</coupled-node>
11 <service-name>GraphCpuUsed</service-name>
14 <inParameter-type>long</inParameter-type>
15 <inParameter-name>Add\a</inParameter-name> </inParameter>
17 <inParameter-type>long</inParameter-type>
18 <inParameter-name>Sub\a</inParameter-name> </inParameter>
20 <inParameter-type>long</inParameter-type>
21 <inParameter-name>Sub\b</inParameter-name> </inParameter> </inParameter-list>
24 <outParameter-type>string</outParameter-type>
25 <outParameter-name>Compare\Result</outParameter-name> </outParameter> </outParameter-list> </service>
28 <creation-date>24/3/2003 - 10:58:41</creation-date>
29 <lastmodification-date>6/8/2003 - 11:44:4</lastmodification-date>
30 <editor-release>1.04</editor-release>
32 <container>?</container>
34 <x-position>0</x-position>
35 <y-position>0</y-position> </node> </info-list>
38 <component-name>?</component-name>
39 <interface-name>?</interface-name>
40 <node-name>Add</node-name>
42 <coupled-node>?</coupled-node>
44 <service-name>Add</service-name>
47 <inParameter-type>long</inParameter-type>
48 <inParameter-name>a</inParameter-name> </inParameter>
50 <inParameter-type>long</inParameter-type>
51 <inParameter-name>b</inParameter-name> </inParameter> </inParameter-list>
54 <outParameter-type>long</outParameter-type>
55 <outParameter-name>f</outParameter-name> </outParameter> </outParameter-list> </service>
59 <FuncName>Add</FuncName>
60 <PyFunc><![CDATA[from time import * ]]></PyFunc>
61 <PyFunc><![CDATA[def Add(a,b) : ]]></PyFunc>
62 <PyFunc><![CDATA[ print "Add will wait 5 seconds" ]]></PyFunc>
63 <PyFunc><![CDATA[ d = dir() ]]></PyFunc>
64 <PyFunc><![CDATA[ print "Add",d ]]></PyFunc>
65 <PyFunc><![CDATA[ d = dir(sleep) ]]></PyFunc>
66 <PyFunc><![CDATA[ print "Add",d ]]></PyFunc>
67 <PyFunc><![CDATA[ sleep(5) ]]></PyFunc>
68 <PyFunc><![CDATA[ print "Add waited" ]]></PyFunc>
69 <PyFunc><![CDATA[ n = 0 ]]></PyFunc>
70 <PyFunc><![CDATA[ while n < 10000 : ]]></PyFunc>
71 <PyFunc><![CDATA[ i = 0 ]]></PyFunc>
72 <PyFunc><![CDATA[ s = 0 ]]></PyFunc>
73 <PyFunc><![CDATA[ while i <= b : ]]></PyFunc>
74 <PyFunc><![CDATA[ s = s + i ]]></PyFunc>
75 <PyFunc><![CDATA[ i = i + 1 ]]></PyFunc>
76 <PyFunc><![CDATA[ n = n + 1 ]]></PyFunc>
77 <PyFunc><![CDATA[ return s ]]></PyFunc>
78 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
79 <creation-date>6/8/2003 - 11:44:4</creation-date>
80 <lastmodification-date>6/8/2003 - 11:44:4</lastmodification-date>
81 <editor-release>1.04</editor-release>
83 <container>?</container>
84 <comment>Python function</comment>
85 <x-position>214</x-position>
86 <y-position>0</y-position> </node>
88 <component-name>?</component-name>
89 <interface-name>?</interface-name>
90 <node-name>Sub</node-name>
92 <coupled-node>?</coupled-node>
94 <service-name>Sub</service-name>
97 <inParameter-type>long</inParameter-type>
98 <inParameter-name>a</inParameter-name> </inParameter>
100 <inParameter-type>long</inParameter-type>
101 <inParameter-name>b</inParameter-name> </inParameter> </inParameter-list>
104 <outParameter-type>long</outParameter-type>
105 <outParameter-name>f</outParameter-name> </outParameter> </outParameter-list> </service>
109 <FuncName>Sub</FuncName>
110 <PyFunc><![CDATA[def Sub(a,b) : ]]></PyFunc>
111 <PyFunc><![CDATA[ return a-b ]]></PyFunc>
112 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
113 <creation-date>6/8/2003 - 11:44:4</creation-date>
114 <lastmodification-date>6/8/2003 - 11:44:4</lastmodification-date>
115 <editor-release>1.04</editor-release>
117 <container>?</container>
118 <comment>Python function</comment>
119 <x-position>0</x-position>
120 <y-position>139</y-position> </node>
122 <component-name>FactorialComponent</component-name>
123 <interface-name>FactorialComponent</interface-name>
124 <node-name>sigma</node-name>
126 <coupled-node>?</coupled-node>
128 <service-name>sigma</service-name>
131 <inParameter-type>long</inParameter-type>
132 <inParameter-name>n</inParameter-name> </inParameter> </inParameter-list>
135 <outParameter-type>long</outParameter-type>
136 <outParameter-name>f</outParameter-name> </outParameter> </outParameter-list> </service>
139 <creation-date>6/8/2003 - 11:44:4</creation-date>
140 <lastmodification-date>6/8/2003 - 11:44:4</lastmodification-date>
141 <editor-release>1.04</editor-release>
143 <container>localhost/FactoryServerPy</container>
144 <comment>sigma from FactorialComponent</comment>
145 <x-position>214</x-position>
146 <y-position>172</y-position> </node>
148 <component-name>AddComponent</component-name>
149 <interface-name>AddComponent</interface-name>
150 <node-name>Sigma</node-name>
152 <coupled-node>?</coupled-node>
154 <service-name>Sigma</service-name>
157 <inParameter-type>long</inParameter-type>
158 <inParameter-name>n</inParameter-name> </inParameter> </inParameter-list>
161 <outParameter-type>long</outParameter-type>
162 <outParameter-name>f</outParameter-name> </outParameter> </outParameter-list> </service>
165 <creation-date>6/8/2003 - 11:44:4</creation-date>
166 <lastmodification-date>6/8/2003 - 11:44:4</lastmodification-date>
167 <editor-release>1.04</editor-release>
169 <container>localhost/FactoryServer</container>
170 <comment>Sigma from AddComponent</comment>
171 <x-position>418</x-position>
172 <y-position>21</y-position> </node>
174 <component-name>?</component-name>
175 <interface-name>?</interface-name>
176 <node-name>Compare</node-name>
178 <coupled-node>?</coupled-node>
180 <service-name>Compare</service-name>
183 <inParameter-type>long</inParameter-type>
184 <inParameter-name>Add</inParameter-name> </inParameter>
186 <inParameter-type>long</inParameter-type>
187 <inParameter-name>Sigma</inParameter-name> </inParameter>
189 <inParameter-type>long</inParameter-type>
190 <inParameter-name>sigma</inParameter-name> </inParameter> </inParameter-list>
193 <outParameter-type>string</outParameter-type>
194 <outParameter-name>Result</outParameter-name> </outParameter> </outParameter-list> </service>
198 <FuncName>Compare</FuncName>
199 <PyFunc><![CDATA[def Compare( Add , sigma , Sigma ) : ]]></PyFunc>
200 <PyFunc><![CDATA[ Result = "Good" ]]></PyFunc>
201 <PyFunc><![CDATA[ if Add != sigma : ]]></PyFunc>
202 <PyFunc><![CDATA[ Result = "Bad" ]]></PyFunc>
203 <PyFunc><![CDATA[ if Add != Sigma : ]]></PyFunc>
204 <PyFunc><![CDATA[ Result = "Bad" ]]></PyFunc>
205 <PyFunc><![CDATA[ return Result ]]></PyFunc>
206 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
207 <creation-date>6/8/2003 - 11:44:4</creation-date>
208 <lastmodification-date>6/8/2003 - 11:44:4</lastmodification-date>
209 <editor-release>1.04</editor-release>
211 <container>?</container>
212 <comment>Compute Node</comment>
213 <x-position>419</x-position>
214 <y-position>184</y-position> </node> </node-list>
217 <fromnode-name>Add</fromnode-name>
218 <fromserviceparameter-name>f</fromserviceparameter-name>
219 <tonode-name>Compare</tonode-name>
220 <toserviceparameter-name>Add</toserviceparameter-name>
239 <y>80</y> </coord> </coord-list> </link>
241 <fromnode-name>Sub</fromnode-name>
242 <fromserviceparameter-name>f</fromserviceparameter-name>
243 <tonode-name>Add</tonode-name>
244 <toserviceparameter-name>b</toserviceparameter-name>
251 <y>220</y> </coord> </coord-list> </link>
253 <fromnode-name>Sub</fromnode-name>
254 <fromserviceparameter-name>f</fromserviceparameter-name>
255 <tonode-name>sigma</tonode-name>
256 <toserviceparameter-name>n</toserviceparameter-name>
263 <y>220</y> </coord> </coord-list> </link>
265 <fromnode-name>Sub</fromnode-name>
266 <fromserviceparameter-name>f</fromserviceparameter-name>
267 <tonode-name>Sigma</tonode-name>
268 <toserviceparameter-name>n</toserviceparameter-name>
281 <y>220</y> </coord> </coord-list> </link>
283 <fromnode-name>sigma</fromnode-name>
284 <fromserviceparameter-name>f</fromserviceparameter-name>
285 <tonode-name>Compare</tonode-name>
286 <toserviceparameter-name>sigma</toserviceparameter-name>
293 <y>253</y> </coord> </coord-list> </link>
295 <fromnode-name>Sigma</fromnode-name>
296 <fromserviceparameter-name>f</fromserviceparameter-name>
297 <tonode-name>Compare</tonode-name>
298 <toserviceparameter-name>Sigma</toserviceparameter-name>
311 <y>102</y> </coord> </coord-list> </link> </link-list>
314 <fromnode-name>GraphCpuUsed</fromnode-name>
315 <fromserviceparameter-name>Add\a</fromserviceparameter-name>
316 <tonode-name>Add</tonode-name>
317 <toserviceparameter-name>a</toserviceparameter-name>
319 <value-type>3</value-type>
320 <value>1</value> </data-value>
321 <coord-list/> </data>
323 <fromnode-name>GraphCpuUsed</fromnode-name>
324 <fromserviceparameter-name>Sub\a</fromserviceparameter-name>
325 <tonode-name>Sub</tonode-name>
326 <toserviceparameter-name>a</toserviceparameter-name>
328 <value-type>3</value-type>
329 <value>1000</value> </data-value>
330 <coord-list/> </data>
332 <fromnode-name>GraphCpuUsed</fromnode-name>
333 <fromserviceparameter-name>Sub\b</fromserviceparameter-name>
334 <tonode-name>Sub</tonode-name>
335 <toserviceparameter-name>b</toserviceparameter-name>
337 <value-type>3</value-type>
338 <value>1</value> </data-value>
339 <coord-list/> </data> </data-list></dataflow>