]> SALOME platform Git repositories - modules/superv.git/blob - examples/GraphSwitch.xml
Salome HOME
This commit was generated by cvs2git to track changes on a CVS vendor
[modules/superv.git] / examples / GraphSwitch.xml
1 <!DOCTYPE Dataflow>
2 <dataflow>
3 <info-list>
4 <node>
5 <component-name>?</component-name>
6    <interface-name>?</interface-name>
7    <node-name>GraphSwitch</node-name>
8    <kind>1</kind>
9    <coupled-node>?</coupled-node>
10    <service>
11 <service-name>GraphSwitch</service-name>
12     <inParameter-list>
13 <inParameter>
14 <inParameter-type>long</inParameter-type>
15       <inParameter-name>Switch\a</inParameter-name>     </inParameter>    </inParameter-list>
16     <outParameter-list>
17 <outParameter>
18 <outParameter-type>long</outParameter-type>
19       <outParameter-name>EndSwitch\a</outParameter-name>     </outParameter>    </outParameter-list>   </service>
20    <Parameter-list/>
21    <PyFunction-list/>
22    <creation-date>24/3/2003 - 15:32:28</creation-date>
23    <lastmodification-date>24/3/2003 - 15:35:29</lastmodification-date>
24    <editor-release>1.04</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>IsOdd</node-name>
35    <kind>3</kind>
36    <coupled-node>?</coupled-node>
37    <service>
38 <service-name>IsOdd</service-name>
39     <inParameter-list>
40 <inParameter>
41 <inParameter-type>long</inParameter-type>
42       <inParameter-name>a</inParameter-name>     </inParameter>    </inParameter-list>
43     <outParameter-list>
44 <outParameter>
45 <outParameter-type>long</outParameter-type>
46       <outParameter-name>a</outParameter-name>     </outParameter>    </outParameter-list>   </service>
47    <Parameter-list/>
48    <PyFunction-list>
49 <PyFunction>
50 <FuncName>IsOdd</FuncName>
51      <PyFunc><![CDATA[def IsOdd(a) :   ]]></PyFunc>
52      <PyFunc><![CDATA[    print a,"IsOdd"  ]]></PyFunc>
53      <PyFunc><![CDATA[    return a ]]></PyFunc>    </PyFunction>   </PyFunction-list>
54    <creation-date>24/3/2003 - 15:34:50</creation-date>
55    <lastmodification-date>24/3/2003 - 15:34:50</lastmodification-date>
56    <editor-release>1.04</editor-release>
57    <author>?</author>
58    <container>?</container>
59    <comment>Python function</comment>
60    <x-position>296</x-position>
61    <y-position>249</y-position>  </node>
62   <node>
63 <component-name>?</component-name>
64    <interface-name>?</interface-name>
65    <node-name>Switch</node-name>
66    <kind>6</kind>
67    <coupled-node>EndSwitch</coupled-node>
68    <service>
69 <service-name>Switch</service-name>
70     <inParameter-list>
71 <inParameter>
72 <inParameter-type>long</inParameter-type>
73       <inParameter-name>a</inParameter-name>     </inParameter>    </inParameter-list>
74     <outParameter-list>
75 <outParameter>
76 <outParameter-type>long</outParameter-type>
77       <outParameter-name>Odd</outParameter-name>     </outParameter>
78      <outParameter>
79 <outParameter-type>long</outParameter-type>
80       <outParameter-name>a</outParameter-name>     </outParameter>    </outParameter-list>   </service>
81    <Parameter-list/>
82    <PyFunction-list>
83 <PyFunction>
84 <FuncName>Switch</FuncName>
85      <PyFunc><![CDATA[def Switch(a) :  ]]></PyFunc>
86      <PyFunc><![CDATA[    return a & 1,a ]]></PyFunc>    </PyFunction>   </PyFunction-list>
87    <creation-date>24/3/2003 - 15:34:50</creation-date>
88    <lastmodification-date>24/3/2003 - 15:34:50</lastmodification-date>
89    <editor-release>1.04</editor-release>
90    <author>?</author>
91    <container>?</container>
92    <comment>?</comment>
93    <x-position>25</x-position>
94    <y-position>94</y-position>  </node>
95   <node>
96 <component-name>?</component-name>
97    <interface-name>?</interface-name>
98    <node-name>EndSwitch</node-name>
99    <kind>7</kind>
100    <coupled-node>Switch</coupled-node>
101    <service>
102 <service-name>EndSwitch</service-name>
103     <inParameter-list>
104 <inParameter>
105 <inParameter-type>long</inParameter-type>
106       <inParameter-name>a</inParameter-name>     </inParameter>    </inParameter-list>
107     <outParameter-list>
108 <outParameter>
109 <outParameter-type>long</outParameter-type>
110       <outParameter-name>a</outParameter-name>     </outParameter>    </outParameter-list>   </service>
111    <Parameter-list/>
112    <PyFunction-list>
113 <PyFunction/>   </PyFunction-list>
114    <creation-date>24/3/2003 - 15:34:50</creation-date>
115    <lastmodification-date>24/3/2003 - 15:34:50</lastmodification-date>
116    <editor-release>1.04</editor-release>
117    <author>?</author>
118    <container>?</container>
119    <comment>?</comment>
120    <x-position>569</x-position>
121    <y-position>94</y-position>  </node> </node-list>
122  <link-list>
123 <link>
124 <fromnode-name>IsOdd</fromnode-name>
125    <fromserviceparameter-name>a</fromserviceparameter-name>
126    <tonode-name>EndSwitch</tonode-name>
127    <toserviceparameter-name>a</toserviceparameter-name>
128    <coord-list/>  </link>
129   <link>
130 <fromnode-name>Switch</fromnode-name>
131    <fromserviceparameter-name>Default</fromserviceparameter-name>
132    <tonode-name>EndSwitch</tonode-name>
133    <toserviceparameter-name>Default</toserviceparameter-name>
134    <coord-list/>  </link>
135   <link>
136 <fromnode-name>Switch</fromnode-name>
137    <fromserviceparameter-name>Odd</fromserviceparameter-name>
138    <tonode-name>IsOdd</tonode-name>
139    <toserviceparameter-name>InGate</toserviceparameter-name>
140    <coord-list>
141 <coord>
142 <x>249</x>
143      <y>323</y>    </coord>
144     <coord>
145 <x>249</x>
146      <y>157</y>    </coord>
147     <coord>
148 <x>247</x>
149      <y>157</y>    </coord>   </coord-list>  </link>
150   <link>
151 <fromnode-name>Switch</fromnode-name>
152    <fromserviceparameter-name>a</fromserviceparameter-name>
153    <tonode-name>IsOdd</tonode-name>
154    <toserviceparameter-name>a</toserviceparameter-name>
155    <coord-list>
156 <coord>
157 <x>196</x>
158      <y>357</y>    </coord>
159     <coord>
160 <x>196</x>
161      <y>186</y>    </coord>   </coord-list>  </link> </link-list>
162  <data-list>
163 <data>
164 <fromnode-name>GraphSwitch</fromnode-name>
165    <fromserviceparameter-name>Switch\a</fromserviceparameter-name>
166    <tonode-name>Switch</tonode-name>
167    <toserviceparameter-name>a</toserviceparameter-name>
168    <data-value>
169 <value-type>3</value-type>
170     <value>2</value>   </data-value>
171    <coord-list/>  </data> </data-list></dataflow>