Salome HOME
Many new examples specially for test of Switches
[modules/superv.git] / examples / GraphSwitchCheckDefault.xml
index 81e7ab6219092a72fe15b1c32ae3b95f7b8f0a5a..0e92e72b17c952659ad0d0286d262a901aeae640 100644 (file)
@@ -5,11 +5,11 @@
 <node>
 <component-name>?</component-name>
     <interface-name>?</interface-name>
-    <node-name>GraphSwitchCheckDefault</node-name>
+    <node-name>GraphSwitchCheckDefault_1</node-name>
     <kind>1</kind>
     <coupled-node>?</coupled-node>
     <service>
-<service-name>GraphSwitchCheck_2</service-name>
+<service-name>GraphSwitchCheckDefault_1</service-name>
      <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
@@ -36,7 +36,7 @@
     <DataStream-list/>
     <PyFunction-list/>
     <creation-date>13/1/2005 - 12:21:43</creation-date>
-    <lastmodification-date>13/1/2005 - 12:23:17</lastmodification-date>
+    <lastmodification-date>8/3/2005 - 16:47:4</lastmodification-date>
     <editor-release>2.0</editor-release>
     <author>JR</author>
     <container>?</container>
@@ -69,8 +69,8 @@
       <PyFunc><![CDATA[    print a,"IsOdd (GraphSwitch)"      ]]></PyFunc>
       <PyFunc><![CDATA[    sleep( 1 )   ]]></PyFunc>
       <PyFunc><![CDATA[    return a     ]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>13/1/2005 - 12:23:17</creation-date>
-    <lastmodification-date>13/1/2005 - 12:23:17</lastmodification-date>
+    <creation-date>8/3/2005 - 16:47:4</creation-date>
+    <lastmodification-date>8/3/2005 - 16:47:4</lastmodification-date>
     <editor-release>2.0</editor-release>
     <author>?</author>
     <container>?</container>
       <PyFunc><![CDATA[    print a,"IsEven (GraphSwitch)"       ]]></PyFunc>
       <PyFunc><![CDATA[    sleep( 1 )    ]]></PyFunc>
       <PyFunc><![CDATA[    return a      ]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>13/1/2005 - 12:23:17</creation-date>
-    <lastmodification-date>13/1/2005 - 12:23:17</lastmodification-date>
+    <creation-date>8/3/2005 - 16:47:4</creation-date>
+    <lastmodification-date>8/3/2005 - 16:47:4</lastmodification-date>
     <editor-release>2.0</editor-release>
     <author>?</author>
     <container>?</container>
       <PyFunc><![CDATA[    print "Print ",a,Branch ]]></PyFunc>
       <PyFunc><![CDATA[    sleep(1) ]]></PyFunc>
       <PyFunc><![CDATA[    return Branch     ]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>13/1/2005 - 12:23:17</creation-date>
-    <lastmodification-date>13/1/2005 - 12:23:17</lastmodification-date>
+    <creation-date>8/3/2005 - 16:47:4</creation-date>
+    <lastmodification-date>8/3/2005 - 16:47:4</lastmodification-date>
     <editor-release>2.0</editor-release>
     <author>?</author>
     <container>?</container>
       <PyFunc><![CDATA[    print "Print ",a,Branch ]]></PyFunc>
       <PyFunc><![CDATA[    sleep(1) ]]></PyFunc>
       <PyFunc><![CDATA[    return Branch     ]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>13/1/2005 - 12:23:17</creation-date>
-    <lastmodification-date>13/1/2005 - 12:23:17</lastmodification-date>
+    <creation-date>8/3/2005 - 16:47:4</creation-date>
+    <lastmodification-date>8/3/2005 - 16:47:4</lastmodification-date>
     <editor-release>2.0</editor-release>
     <author>?</author>
     <container>?</container>
       <PyFunc><![CDATA[def EmptyNode(a,Branch) : ]]></PyFunc>
       <PyFunc><![CDATA[    sleep(1) ]]></PyFunc>
       <PyFunc><![CDATA[    return a,Branch  ]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>13/1/2005 - 12:23:17</creation-date>
-    <lastmodification-date>13/1/2005 - 12:23:17</lastmodification-date>
+    <creation-date>8/3/2005 - 16:47:4</creation-date>
+    <lastmodification-date>8/3/2005 - 16:47:4</lastmodification-date>
     <editor-release>2.0</editor-release>
     <author>?</author>
     <container>?</container>
     <x-position>652</x-position>
     <y-position>110</y-position>   </node>
    <node>
-<component-name>?</component-name>
-    <interface-name>?</interface-name>
-    <node-name>Default</node-name>
-    <kind>3</kind>
-    <coupled-node>?</coupled-node>
-    <service>
-<service-name>Default</service-name>
-     <inParameter-list>
-<inParameter>
-<inParameter-type>long</inParameter-type>
-       <inParameter-name>a</inParameter-name>      </inParameter>
-      <inParameter>
-<inParameter-type>string</inParameter-type>
-       <inParameter-name>Branch</inParameter-name>      </inParameter>     </inParameter-list>
-     <outParameter-list>
-<outParameter>
-<outParameter-type>long</outParameter-type>
-       <outParameter-name>a</outParameter-name>      </outParameter>
-      <outParameter>
-<outParameter-type>string</outParameter-type>
-       <outParameter-name>Branch</outParameter-name>      </outParameter>     </outParameter-list>    </service>
-    <DataStream-list/>
-    <PyFunction-list>
-<PyFunction>
-<FuncName>Default</FuncName>
-      <PyFunc><![CDATA[from time import * ]]></PyFunc>
-      <PyFunc><![CDATA[def Default(a,Branch) : ]]></PyFunc>
-      <PyFunc><![CDATA[    sleep(1) ]]></PyFunc>
-      <PyFunc><![CDATA[    return a,Branch ]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>13/1/2005 - 12:23:17</creation-date>
-    <lastmodification-date>13/1/2005 - 12:23:17</lastmodification-date>
-    <editor-release>2.0</editor-release>
-    <author>?</author>
-    <container>?</container>
-    <comment>Compute Node</comment>
-    <x-position>421</x-position>
-    <y-position>592</y-position>   </node>
-   <node>
 <component-name>?</component-name>
     <interface-name>?</interface-name>
     <node-name>InitLoopSwitch</node-name>
       <PyFunc><![CDATA[def NextLoop(Index,Min,Max) :       ]]></PyFunc>
       <PyFunc><![CDATA[        Index = Index - 1       ]]></PyFunc>
       <PyFunc><![CDATA[        return Index,Min,Max       ]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>13/1/2005 - 12:23:17</creation-date>
-    <lastmodification-date>13/1/2005 - 12:23:17</lastmodification-date>
+    <creation-date>8/3/2005 - 16:47:4</creation-date>
+    <lastmodification-date>8/3/2005 - 16:47:4</lastmodification-date>
     <editor-release>2.0</editor-release>
     <author>?</author>
     <container>?</container>
       <PyFunc><![CDATA[def EndOfInitLoopSwitch(DoLoop,Index,Min,Max) :  ]]></PyFunc>
       <PyFunc><![CDATA[    sleep(1)  ]]></PyFunc>
       <PyFunc><![CDATA[    return DoLoop,Index,Min,Max  ]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>13/1/2005 - 12:23:17</creation-date>
-    <lastmodification-date>13/1/2005 - 12:23:17</lastmodification-date>
+    <creation-date>8/3/2005 - 16:47:4</creation-date>
+    <lastmodification-date>8/3/2005 - 16:47:4</lastmodification-date>
     <editor-release>2.0</editor-release>
     <author>?</author>
     <container>?</container>
       <PyFunc><![CDATA[    else :    ]]></PyFunc>
       <PyFunc><![CDATA[        Branch = "Odd"    ]]></PyFunc>
       <PyFunc><![CDATA[    return a & 1,1-(a&1),a,Branch,0  ]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>13/1/2005 - 12:23:17</creation-date>
-    <lastmodification-date>13/1/2005 - 12:23:17</lastmodification-date>
+    <creation-date>8/3/2005 - 16:47:4</creation-date>
+    <lastmodification-date>8/3/2005 - 16:47:4</lastmodification-date>
     <editor-release>2.0</editor-release>
     <author>?</author>
     <container>?</container>
       <PyFunc><![CDATA[def EndOfSwitch(a,Branch) : ]]></PyFunc>
       <PyFunc><![CDATA[    sleep(1) ]]></PyFunc>
       <PyFunc><![CDATA[    return a ]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>13/1/2005 - 12:23:17</creation-date>
-    <lastmodification-date>13/1/2005 - 12:23:17</lastmodification-date>
+    <creation-date>8/3/2005 - 16:47:4</creation-date>
+    <lastmodification-date>8/3/2005 - 16:47:4</lastmodification-date>
     <editor-release>2.0</editor-release>
     <author>?</author>
     <container>?</container>
     <toserviceparameter-name>Branch</toserviceparameter-name>
     <coord-list/>   </link>
    <link>
-<fromnode-name>Default</fromnode-name>
-    <fromserviceparameter-name>a</fromserviceparameter-name>
-    <tonode-name>EndOfSwitch</tonode-name>
-    <toserviceparameter-name>a</toserviceparameter-name>
-    <coord-list/>   </link>
-   <link>
-<fromnode-name>Default</fromnode-name>
-    <fromserviceparameter-name>Branch</fromserviceparameter-name>
-    <tonode-name>EndOfSwitch</tonode-name>
-    <toserviceparameter-name>Branch</toserviceparameter-name>
-    <coord-list/>   </link>
-   <link>
 <fromnode-name>InitLoopSwitch</fromnode-name>
     <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
     <tonode-name>EndOfInitLoopSwitch</tonode-name>
 <x>382</x>
       <y>200</y>     </coord>    </coord-list>   </link>
    <link>
-<fromnode-name>Switch</fromnode-name>
-    <fromserviceparameter-name>a</fromserviceparameter-name>
-    <tonode-name>Default</tonode-name>
-    <toserviceparameter-name>a</toserviceparameter-name>
-    <coord-list>
-<coord>
-<x>382</x>
-      <y>663</y>     </coord>
-     <coord>
-<x>382</x>
-      <y>199</y>     </coord>    </coord-list>   </link>
-   <link>
 <fromnode-name>Switch</fromnode-name>
     <fromserviceparameter-name>Branch</fromserviceparameter-name>
     <tonode-name>PrintOdd</tonode-name>
 <x>369</x>
       <y>219</y>     </coord>    </coord-list>   </link>
    <link>
-<fromnode-name>Switch</fromnode-name>
-    <fromserviceparameter-name>Branch</fromserviceparameter-name>
-    <tonode-name>Default</tonode-name>
-    <toserviceparameter-name>Branch</toserviceparameter-name>
-    <coord-list>
-<coord>
-<x>370</x>
-      <y>683</y>     </coord>
-     <coord>
-<x>370</x>
-      <y>220</y>     </coord>    </coord-list>   </link>
-   <link>
 <fromnode-name>Switch</fromnode-name>
     <fromserviceparameter-name>Default</fromserviceparameter-name>
-    <tonode-name>Default</tonode-name>
-    <toserviceparameter-name>Gate</toserviceparameter-name>
-    <coord-list>
-<coord>
-<x>360</x>
-      <y>707</y>     </coord>
-     <coord>
-<x>360</x>
-      <y>263</y>     </coord>    </coord-list>   </link>
+    <tonode-name>EndOfSwitch</tonode-name>
+    <toserviceparameter-name>Default</toserviceparameter-name>
+    <coord-list/>   </link>
    <link>
 <fromnode-name>EndOfSwitch</fromnode-name>
     <fromserviceparameter-name>a</fromserviceparameter-name>
     <coord-list/>   </link>  </link-list>
   <data-list>
 <data>
-<fromnode-name>GraphSwitchCheckDefault</fromnode-name>
+<fromnode-name>GraphSwitchCheckDefault_1</fromnode-name>
     <fromserviceparameter-name>InitLoopSwitch__Index</fromserviceparameter-name>
     <tonode-name>InitLoopSwitch</tonode-name>
     <toserviceparameter-name>Index</toserviceparameter-name>
      <value>0</value>    </data-value>
     <coord-list/>   </data>
    <data>
-<fromnode-name>GraphSwitchCheckDefault</fromnode-name>
+<fromnode-name>GraphSwitchCheckDefault_1</fromnode-name>
     <fromserviceparameter-name>InitLoopSwitch__Min</fromserviceparameter-name>
     <tonode-name>InitLoopSwitch</tonode-name>
     <toserviceparameter-name>Min</toserviceparameter-name>
      <value>-5</value>    </data-value>
     <coord-list/>   </data>
    <data>
-<fromnode-name>GraphSwitchCheckDefault</fromnode-name>
+<fromnode-name>GraphSwitchCheckDefault_1</fromnode-name>
     <fromserviceparameter-name>InitLoopSwitch__Max</fromserviceparameter-name>
     <tonode-name>InitLoopSwitch</tonode-name>
     <toserviceparameter-name>Max</toserviceparameter-name>