]> SALOME platform Git repositories - modules/superv.git/commitdiff
Salome HOME
Many tests of Switch Control and behavior : Validity before execution and control...
authorrahuel <rahuel@opencascade.com>
Tue, 15 Feb 2005 12:26:01 +0000 (12:26 +0000)
committerrahuel <rahuel@opencascade.com>
Tue, 15 Feb 2005 12:26:01 +0000 (12:26 +0000)
52 files changed:
examples/GraphLoopSwitch.py
examples/GraphLoopSwitch.xml
examples/GraphLoopSwitchDefault.py [new file with mode: 0644]
examples/GraphLoopSwitchDefault.xml [new file with mode: 0644]
examples/GraphLoopSwitchDefaultAborted.py [new file with mode: 0644]
examples/GraphLoopSwitchDefaultAborted.xml [new file with mode: 0644]
examples/GraphLoopSwitchOddEven.py [new file with mode: 0644]
examples/GraphLoopSwitchOddEven.xml [new file with mode: 0644]
examples/GraphLoopSwitchOfSwitch1.py [new file with mode: 0644]
examples/GraphLoopSwitchOfSwitch1.xml [new file with mode: 0644]
examples/GraphLoopSwitchOfSwitchAborted.py [new file with mode: 0644]
examples/GraphLoopSwitchOfSwitchAborted.xml [new file with mode: 0644]
examples/GraphLoopSwitchs.py
examples/GraphLoopSwitchs.xml
examples/GraphLoopSwitchsAborted.py [new file with mode: 0644]
examples/GraphLoopSwitchsAborted.xml [new file with mode: 0644]
examples/GraphLoopSwitchsBranches.py [new file with mode: 0644]
examples/GraphLoopSwitchsBranches.xml [new file with mode: 0644]
examples/GraphLoopSwitchsBranchesDefaultAborted.py [new file with mode: 0644]
examples/GraphLoopSwitchsBranchesDefaultAborted.xml [new file with mode: 0644]
examples/GraphLoopSwitchsBranchesdefault.py [new file with mode: 0644]
examples/GraphLoopSwitchsBranchesdefault.xml [new file with mode: 0644]
examples/GraphLoopSwitchsNOTValid.py [new file with mode: 0644]
examples/GraphLoopSwitchsNOTValid.xml [new file with mode: 0644]
examples/GraphSwitch.py
examples/GraphSwitch.xml
examples/GraphSwitch2.py
examples/GraphSwitch2.xml
examples/GraphSwitchCheckDefault.py
examples/GraphSwitchCheckDefault.xml
examples/GraphSwitchCheckDefault1.py
examples/GraphSwitchCheckDefault1.xml
examples/GraphSwitchCheckDefault2.py
examples/GraphSwitchCheckDefault2.xml
examples/GraphSwitchCrash.py
examples/GraphSwitchCrash.xml
examples/GraphSwitchErrExec.py
examples/GraphSwitchErrExec.xml
examples/GraphSwitchOutput.py
examples/GraphSwitchOutput.xml
examples/GraphSwitchs.py
examples/GraphSwitchs.xml
examples/GraphSyrControl.py
examples/GraphSyrControl.xml
examples/GraphSyrControl1.py
examples/GraphSyrControl1.xml
examples/GraphSyrControlAve.py
examples/GraphSyrControlAve.xml
examples/GraphSyrControlDefault.py
examples/GraphSyrControlDefault.xml
examples/GraphSyrControlGUI.py
examples/GraphSyrControlGUI.xml

index f9998e60673b722f1c0072d9c693544a7ee5c85d..8e947c9b76fedfd0d5d15439d348cf10e69de0c3 100755 (executable)
@@ -1,47 +1,62 @@
 
-# Generated python file of Graph GraphLoopSwitch_1
+# Generated python file of Graph GraphLoopSwitch
 
 from SuperV import *
 
-# Graph creation of GraphLoopSwitch_1
-def DefGraphLoopSwitch_1() :
-    GraphLoopSwitch_1 = Graph( 'GraphLoopSwitch_1' )
-    GraphLoopSwitch_1.SetName( 'GraphLoopSwitch_1' )
-    GraphLoopSwitch_1.SetAuthor( '' )
-    GraphLoopSwitch_1.SetComment( '' )
-    GraphLoopSwitch_1.Coords( 0 , 0 )
+# Graph creation of GraphLoopSwitch
+def DefGraphLoopSwitch() :
+    GraphLoopSwitch = Graph( 'GraphLoopSwitch' )
+    GraphLoopSwitch.SetName( 'GraphLoopSwitch' )
+    GraphLoopSwitch.SetAuthor( 'JR' )
+    GraphLoopSwitch.SetComment( '' )
+    GraphLoopSwitch.Coords( 0 , 0 )
     
     # Creation of Factory Nodes
     
     # Creation of InLine Nodes
     PyIsOdd = []
-    PyIsOdd.append( 'from time import *    ' )
-    PyIsOdd.append( 'def IsOdd(a,Even) :        ' )
-    PyIsOdd.append( '    print a,"IsOdd (GraphLoopSwitch1)"       ' )
-    PyIsOdd.append( '    sleep( 1 )    ' )
-    PyIsOdd.append( '    return a      ' )
-    IsOdd = GraphLoopSwitch_1.INode( 'IsOdd' , PyIsOdd )
+    PyIsOdd.append( 'from time import *     ' )
+    PyIsOdd.append( 'def IsOdd(a) :         ' )
+    PyIsOdd.append( '    print a,"IsOdd (GraphLoopSwitch1)"        ' )
+    PyIsOdd.append( '    sleep( 1 )     ' )
+    PyIsOdd.append( '    return a       ' )
+    IsOdd = GraphLoopSwitch.INode( 'IsOdd' , PyIsOdd )
     IsOdd.SetName( 'IsOdd' )
     IsOdd.SetAuthor( '' )
     IsOdd.SetComment( 'Python function' )
     IsOdd.Coords( 397 , 1 )
     IIsOdda = IsOdd.InPort( 'a' , 'long' )
-    IIsOddEven = IsOdd.InPort( 'Even' , 'boolean' )
     IIsOddGate = IsOdd.GetInPort( 'Gate' )
     OIsOdda = IsOdd.OutPort( 'a' , 'long' )
     OIsOddGate = IsOdd.GetOutPort( 'Gate' )
     
+    PyValEven = []
+    PyValEven.append( 'from time import * ' )
+    PyValEven.append( 'def ValEven(Even) : ' )
+    PyValEven.append( '    sleep(1) ' )
+    PyValEven.append( '    return Even   ' )
+    PyValEven.append( '' )
+    ValEven = GraphLoopSwitch.INode( 'ValEven' , PyValEven )
+    ValEven.SetName( 'ValEven' )
+    ValEven.SetAuthor( '' )
+    ValEven.SetComment( 'Compute Node' )
+    ValEven.Coords( 396 , 222 )
+    IValEvenEven = ValEven.InPort( 'Even' , 'long' )
+    IValEvenGate = ValEven.GetInPort( 'Gate' )
+    OValEvenEven = ValEven.OutPort( 'Even' , 'long' )
+    OValEvenGate = ValEven.GetOutPort( 'Gate' )
+    
     # Creation of Loop Nodes
     PyInitLoop = []
     PyInitLoop.append( 'def InitLoop(Index,Min,Max) : ' )
     PyInitLoop.append( '       Index = Min ' )
     PyInitLoop.append( '       return Index,Min,Max ' )
-    PyInitLoop.append( ' ' )
+    PyInitLoop.append( '' )
     PyMoreInitLoop = []
-    PyMoreInitLoop.append( ' ' )
+    PyMoreInitLoop.append( '' )
     PyNextInitLoop = []
-    PyNextInitLoop.append( ' ' )
-    InitLoop,EndOfInitLoop = GraphLoopSwitch_1.LNode( 'InitLoop' , PyInitLoop , '' , PyMoreInitLoop , '' , PyNextInitLoop )
+    PyNextInitLoop.append( '' )
+    InitLoop,EndOfInitLoop = GraphLoopSwitch.LNode( 'InitLoop' , PyInitLoop , '' , PyMoreInitLoop , '' , PyNextInitLoop )
     EndOfInitLoop.SetName( 'EndOfInitLoop' )
     EndOfInitLoop.SetAuthor( '' )
     EndOfInitLoop.SetComment( 'Compute Node' )
@@ -73,6 +88,7 @@ def DefGraphLoopSwitch_1() :
     OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' )
     OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' )
     OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' )
+    OEndOfInitLoopGate = EndOfInitLoop.GetOutPort( 'Gate' )
     InitLoop.SetName( 'InitLoop' )
     InitLoop.SetAuthor( '' )
     InitLoop.SetComment( 'Compute Node' )
@@ -85,18 +101,18 @@ def DefGraphLoopSwitch_1() :
     PySwitch.append( '    if ( a & 1 ) == 0 :  ' )
     PySwitch.append( '        sleep(1)  ' )
     PySwitch.append( '    return a & 1,1-(a&1),a    ' )
-    Switch,EndSwitch = GraphLoopSwitch_1.SNode( 'Switch' , PySwitch )
+    Switch,EndSwitch = GraphLoopSwitch.SNode( 'Switch' , PySwitch )
     EndSwitch.SetName( 'EndSwitch' )
     EndSwitch.SetAuthor( '' )
     EndSwitch.SetComment( 'Compute Node' )
     EndSwitch.Coords( 587 , 103 )
     PyEndSwitch = []
-    PyEndSwitch.append( 'def EndSwitch(a) :    ' )
-    PyEndSwitch.append( '    if ( a & 1 ) == 0 :  ' )
-    PyEndSwitch.append( '        sleep(1)  ' )
-    PyEndSwitch.append( '    return a    ' )
+    PyEndSwitch.append( 'def EndSwitch(a,Even) : ' )
+    PyEndSwitch.append( '    sleep(1)     ' )
+    PyEndSwitch.append( '    return a       ' )
     EndSwitch.SetPyFunction( 'EndSwitch' , PyEndSwitch )
     IEndSwitcha = EndSwitch.InPort( 'a' , 'long' )
+    IEndSwitchEven = EndSwitch.InPort( 'Even' , 'long' )
     IEndSwitchDefault = EndSwitch.GetInPort( 'Default' )
     OEndSwitcha = EndSwitch.OutPort( 'a' , 'long' )
     OEndSwitchGate = EndSwitch.GetOutPort( 'Gate' )
@@ -112,40 +128,36 @@ def DefGraphLoopSwitch_1() :
     OSwitchDefault = Switch.GetOutPort( 'Default' )
     
     # Creation of Links
-    LIsOddaEndSwitcha = GraphLoopSwitch_1.Link( OIsOdda , IEndSwitcha )
-    LIsOddaEndSwitcha.AddCoord( 1 , 576 , 136 )
-    LIsOddaEndSwitcha.AddCoord( 2 , 575 , 81 )
+    LIsOddaEndSwitcha = GraphLoopSwitch.Link( OIsOdda , IEndSwitcha )
+    
+    LInitLoopIndexSwitcha = GraphLoopSwitch.Link( OInitLoopIndex , ISwitcha )
     
-    LInitLoopIndexSwitcha = GraphLoopSwitch_1.Link( OInitLoopIndex , ISwitcha )
+    LInitLoopMinEndOfInitLoopMin = GraphLoopSwitch.Link( OInitLoopMin , IEndOfInitLoopMin )
     
-    LInitLoopMinEndOfInitLoopMin = GraphLoopSwitch_1.Link( OInitLoopMin , IEndOfInitLoopMin )
+    LInitLoopMaxEndOfInitLoopMax = GraphLoopSwitch.Link( OInitLoopMax , IEndOfInitLoopMax )
     
-    LInitLoopMaxEndOfInitLoopMax = GraphLoopSwitch_1.Link( OInitLoopMax , IEndOfInitLoopMax )
+    LSwitchOddIsOddGate = GraphLoopSwitch.Link( OSwitchOdd , IIsOddGate )
     
-    LSwitchOddIsOddGate = GraphLoopSwitch_1.Link( OSwitchOdd , IIsOddGate )
+    LSwitchEvenValEvenEven = GraphLoopSwitch.Link( OSwitchEven , IValEvenEven )
     
-    LSwitchEvenEndSwitchDefault = GraphLoopSwitch_1.Link( OSwitchEven , IEndSwitchDefault )
+    LSwitchaIsOdda = GraphLoopSwitch.Link( OSwitcha , IIsOdda )
     
-    LSwitchEvenIsOddEven = GraphLoopSwitch_1.Link( OSwitchEven , IIsOddEven )
-    LSwitchEvenIsOddEven.AddCoord( 1 , 375 , 111 )
-    LSwitchEvenIsOddEven.AddCoord( 2 , 375 , 172 )
+    LSwitchDefaultEndSwitchDefault = GraphLoopSwitch.Link( OSwitchDefault , IEndSwitchDefault )
     
-    LSwitchaIsOdda = GraphLoopSwitch_1.Link( OSwitcha , IIsOdda )
-    LSwitchaIsOdda.AddCoord( 1 , 362 , 82 )
-    LSwitchaIsOdda.AddCoord( 2 , 360 , 201 )
+    LEndSwitchaEndOfInitLoopIndex = GraphLoopSwitch.Link( OEndSwitcha , IEndOfInitLoopIndex )
     
-    LEndSwitchaEndOfInitLoopIndex = GraphLoopSwitch_1.Link( OEndSwitcha , IEndOfInitLoopIndex )
+    LValEvenEvenEndSwitchEven = GraphLoopSwitch.Link( OValEvenEven , IEndSwitchEven )
     
     # Input datas
     IInitLoopIndex.Input( 0 )
     IInitLoopMin.Input( 5 )
-    IInitLoopMax.Input( 100 )
+    IInitLoopMax.Input( 23 )
     
     # Output Ports of the graph
     #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' )
     #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' )
     #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' )
-    return GraphLoopSwitch_1
+    return GraphLoopSwitch
 
 
-GraphLoopSwitch_1 = DefGraphLoopSwitch_1()
+GraphLoopSwitch = DefGraphLoopSwitch()
index d52d92f02c2c225473af3c54d2f75e412d55ea8d..a4095a8c45982fe1086ce9211ba34f037e021882 100755 (executable)
@@ -5,11 +5,11 @@
 <node>
 <component-name>?</component-name>
     <interface-name>?</interface-name>
-    <node-name>GraphLoopSwitch_1</node-name>
+    <node-name>GraphLoopSwitch</node-name>
     <kind>1</kind>
     <coupled-node>?</coupled-node>
     <service>
-<service-name>GraphLoopSwitch_1</service-name>
+<service-name>GraphLoopSwitch</service-name>
      <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
@@ -33,9 +33,9 @@
     <DataStream-list/>
     <PyFunction-list/>
     <creation-date>22/10/2003 - 10:36:39</creation-date>
-    <lastmodification-date>16/12/2004 - 16:45:0</lastmodification-date>
+    <lastmodification-date>14/2/2005 - 16:42:13</lastmodification-date>
     <editor-release>1.05</editor-release>
-    <author>?</author>
+    <author>JR</author>
     <container>?</container>
     <comment>?</comment>
     <x-position>0</x-position>
      <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-       <inParameter-name>a</inParameter-name>      </inParameter>
-      <inParameter>
-<inParameter-type>boolean</inParameter-type>
-       <inParameter-name>Even</inParameter-name>      </inParameter>     </inParameter-list>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
      <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
     <PyFunction-list>
 <PyFunction>
 <FuncName>IsOdd</FuncName>
-      <PyFunc><![CDATA[from time import *    ]]></PyFunc>
-      <PyFunc><![CDATA[def IsOdd(a,Even) :        ]]></PyFunc>
-      <PyFunc><![CDATA[    print a,"IsOdd (GraphLoopSwitch1)"       ]]></PyFunc>
-      <PyFunc><![CDATA[    sleep( 1 )    ]]></PyFunc>
-      <PyFunc><![CDATA[    return a      ]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>16/12/2004 - 16:45:0</creation-date>
-    <lastmodification-date>16/12/2004 - 16:45:0</lastmodification-date>
+      <PyFunc><![CDATA[from time import *     ]]></PyFunc>
+      <PyFunc><![CDATA[def IsOdd(a) :         ]]></PyFunc>
+      <PyFunc><![CDATA[    print a,"IsOdd (GraphLoopSwitch1)"        ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep( 1 )     ]]></PyFunc>
+      <PyFunc><![CDATA[    return a       ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 16:40:46</creation-date>
+    <lastmodification-date>14/2/2005 - 16:40:46</lastmodification-date>
     <editor-release>1.05</editor-release>
     <author>?</author>
     <container>?</container>
      <PyFunction>
 <FuncName>?</FuncName>
       <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>16/12/2004 - 16:45:0</creation-date>
-    <lastmodification-date>16/12/2004 - 16:45:0</lastmodification-date>
+    <creation-date>14/2/2005 - 16:40:46</creation-date>
+    <lastmodification-date>14/2/2005 - 16:40:46</lastmodification-date>
     <editor-release>1.05</editor-release>
     <author>?</author>
     <container>?</container>
       <PyFunc><![CDATA[        else :     ]]></PyFunc>
       <PyFunc><![CDATA[                DoLoop = 0     ]]></PyFunc>
       <PyFunc><![CDATA[        return DoLoop,Index,Min,Max     ]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>16/12/2004 - 16:45:0</creation-date>
-    <lastmodification-date>16/12/2004 - 16:45:0</lastmodification-date>
+    <creation-date>14/2/2005 - 16:40:46</creation-date>
+    <lastmodification-date>14/2/2005 - 16:40:46</lastmodification-date>
     <editor-release>1.05</editor-release>
     <author>?</author>
     <container>?</container>
       <PyFunc><![CDATA[    if ( a & 1 ) == 0 :  ]]></PyFunc>
       <PyFunc><![CDATA[        sleep(1)  ]]></PyFunc>
       <PyFunc><![CDATA[    return a & 1,1-(a&1),a    ]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>16/12/2004 - 16:45:0</creation-date>
-    <lastmodification-date>16/12/2004 - 16:45:0</lastmodification-date>
+    <creation-date>14/2/2005 - 16:40:46</creation-date>
+    <lastmodification-date>14/2/2005 - 16:40:46</lastmodification-date>
     <editor-release>1.05</editor-release>
     <author>?</author>
     <container>?</container>
      <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+       <inParameter-name>a</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Even</inParameter-name>      </inParameter>     </inParameter-list>
      <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
     <PyFunction-list>
 <PyFunction>
 <FuncName>EndSwitch</FuncName>
-      <PyFunc><![CDATA[def EndSwitch(a) :    ]]></PyFunc>
-      <PyFunc><![CDATA[    if ( a & 1 ) == 0 :  ]]></PyFunc>
-      <PyFunc><![CDATA[        sleep(1)  ]]></PyFunc>
-      <PyFunc><![CDATA[    return a    ]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>16/12/2004 - 16:45:0</creation-date>
-    <lastmodification-date>16/12/2004 - 16:45:0</lastmodification-date>
+      <PyFunc><![CDATA[def EndSwitch(a,Even) : ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1)     ]]></PyFunc>
+      <PyFunc><![CDATA[    return a       ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 16:40:46</creation-date>
+    <lastmodification-date>14/2/2005 - 16:40:46</lastmodification-date>
     <editor-release>1.05</editor-release>
     <author>?</author>
     <container>?</container>
     <comment>Compute Node</comment>
     <x-position>587</x-position>
-    <y-position>103</y-position>   </node>  </node-list>
+    <y-position>103</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>ValEven</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>Vala</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Even</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Even</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>ValEven</FuncName>
+      <PyFunc><![CDATA[from time import * ]]></PyFunc>
+      <PyFunc><![CDATA[def ValEven(Even) : ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1) ]]></PyFunc>
+      <PyFunc><![CDATA[    return Even   ]]></PyFunc>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 16:40:46</creation-date>
+    <lastmodification-date>14/2/2005 - 16:40:46</lastmodification-date>
+    <editor-release>2.0</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>396</x-position>
+    <y-position>222</y-position>   </node>  </node-list>
   <link-list>
 <link>
 <fromnode-name>IsOdd</fromnode-name>
     <fromserviceparameter-name>a</fromserviceparameter-name>
     <tonode-name>EndSwitch</tonode-name>
     <toserviceparameter-name>a</toserviceparameter-name>
-    <coord-list>
-<coord>
-<x>576</x>
-      <y>136</y>     </coord>
-     <coord>
-<x>575</x>
-      <y>81</y>     </coord>    </coord-list>   </link>
+    <coord-list/>   </link>
    <link>
 <fromnode-name>InitLoop</fromnode-name>
     <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
    <link>
 <fromnode-name>Switch</fromnode-name>
     <fromserviceparameter-name>Even</fromserviceparameter-name>
-    <tonode-name>EndSwitch</tonode-name>
-    <toserviceparameter-name>Default</toserviceparameter-name>
-    <coord-list/>   </link>
-   <link>
-<fromnode-name>Switch</fromnode-name>
-    <fromserviceparameter-name>Even</fromserviceparameter-name>
-    <tonode-name>IsOdd</tonode-name>
+    <tonode-name>ValEven</tonode-name>
     <toserviceparameter-name>Even</toserviceparameter-name>
-    <coord-list>
-<coord>
-<x>375</x>
-      <y>111</y>     </coord>
-     <coord>
-<x>375</x>
-      <y>172</y>     </coord>    </coord-list>   </link>
+    <coord-list/>   </link>
    <link>
 <fromnode-name>Switch</fromnode-name>
     <fromserviceparameter-name>a</fromserviceparameter-name>
     <tonode-name>IsOdd</tonode-name>
     <toserviceparameter-name>a</toserviceparameter-name>
-    <coord-list>
-<coord>
-<x>362</x>
-      <y>82</y>     </coord>
-     <coord>
-<x>360</x>
-      <y>201</y>     </coord>    </coord-list>   </link>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Switch</fromnode-name>
+    <fromserviceparameter-name>Default</fromserviceparameter-name>
+    <tonode-name>EndSwitch</tonode-name>
+    <toserviceparameter-name>Default</toserviceparameter-name>
+    <coord-list/>   </link>
    <link>
 <fromnode-name>EndSwitch</fromnode-name>
     <fromserviceparameter-name>a</fromserviceparameter-name>
     <tonode-name>EndOfInitLoop</tonode-name>
     <toserviceparameter-name>Index</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>ValEven</fromnode-name>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>EndSwitch</tonode-name>
+    <toserviceparameter-name>Even</toserviceparameter-name>
     <coord-list/>   </link>  </link-list>
   <data-list>
 <data>
-<fromnode-name>GraphLoopSwitch_1</fromnode-name>
+<fromnode-name>GraphLoopSwitch</fromnode-name>
     <fromserviceparameter-name>InitLoop__Index</fromserviceparameter-name>
     <tonode-name>InitLoop</tonode-name>
     <toserviceparameter-name>Index</toserviceparameter-name>
      <value>0</value>    </data-value>
     <coord-list/>   </data>
    <data>
-<fromnode-name>GraphLoopSwitch_1</fromnode-name>
+<fromnode-name>GraphLoopSwitch</fromnode-name>
     <fromserviceparameter-name>InitLoop__Min</fromserviceparameter-name>
     <tonode-name>InitLoop</tonode-name>
     <toserviceparameter-name>Min</toserviceparameter-name>
      <value>5</value>    </data-value>
     <coord-list/>   </data>
    <data>
-<fromnode-name>GraphLoopSwitch_1</fromnode-name>
+<fromnode-name>GraphLoopSwitch</fromnode-name>
     <fromserviceparameter-name>InitLoop__Max</fromserviceparameter-name>
     <tonode-name>InitLoop</tonode-name>
     <toserviceparameter-name>Max</toserviceparameter-name>
     <data-value>
 <value-type>3</value-type>
-     <value>100</value>    </data-value>
+     <value>23</value>    </data-value>
     <coord-list/>   </data>  </data-list> </dataflow></supergraph>
diff --git a/examples/GraphLoopSwitchDefault.py b/examples/GraphLoopSwitchDefault.py
new file mode 100644 (file)
index 0000000..3118178
--- /dev/null
@@ -0,0 +1,144 @@
+
+# Generated python file of Graph GraphLoopSwitchDefault
+
+from SuperV import *
+
+# Graph creation of GraphLoopSwitchDefault
+def DefGraphLoopSwitchDefault() :
+    GraphLoopSwitchDefault = Graph( 'GraphLoopSwitchDefault' )
+    GraphLoopSwitchDefault.SetName( 'GraphLoopSwitchDefault' )
+    GraphLoopSwitchDefault.SetAuthor( 'JR' )
+    GraphLoopSwitchDefault.SetComment( '' )
+    GraphLoopSwitchDefault.Coords( 0 , 0 )
+    
+    # Creation of Factory Nodes
+    
+    # Creation of InLine Nodes
+    PyIsOdd = []
+    PyIsOdd.append( 'from time import *     ' )
+    PyIsOdd.append( 'def IsOdd(a) :         ' )
+    PyIsOdd.append( '    print a,"IsOdd (GraphLoopSwitch1)"        ' )
+    PyIsOdd.append( '    sleep( 1 )     ' )
+    PyIsOdd.append( '    return a       ' )
+    IsOdd = GraphLoopSwitchDefault.INode( 'IsOdd' , PyIsOdd )
+    IsOdd.SetName( 'IsOdd' )
+    IsOdd.SetAuthor( '' )
+    IsOdd.SetComment( 'Python function' )
+    IsOdd.Coords( 397 , 1 )
+    IIsOdda = IsOdd.InPort( 'a' , 'long' )
+    IIsOddGate = IsOdd.GetInPort( 'Gate' )
+    OIsOdda = IsOdd.OutPort( 'a' , 'long' )
+    OIsOddGate = IsOdd.GetOutPort( 'Gate' )
+    
+    # Creation of Loop Nodes
+    PyInitLoop = []
+    PyInitLoop.append( 'def InitLoop(Index,Min,Max) : ' )
+    PyInitLoop.append( '       Index = Min ' )
+    PyInitLoop.append( '       return Index,Min,Max ' )
+    PyInitLoop.append( '' )
+    PyMoreInitLoop = []
+    PyMoreInitLoop.append( '' )
+    PyNextInitLoop = []
+    PyNextInitLoop.append( '' )
+    InitLoop,EndOfInitLoop = GraphLoopSwitchDefault.LNode( 'InitLoop' , PyInitLoop , '' , PyMoreInitLoop , '' , PyNextInitLoop )
+    EndOfInitLoop.SetName( 'EndOfInitLoop' )
+    EndOfInitLoop.SetAuthor( '' )
+    EndOfInitLoop.SetComment( 'Compute Node' )
+    EndOfInitLoop.Coords( 767 , 102 )
+    PyEndOfInitLoop = []
+    PyEndOfInitLoop.append( 'def EndOfInitLoop( DoLoop , Index , Min , Max ) :' )
+    PyEndOfInitLoop.append( '  Index = Index + 1     ' )
+    PyEndOfInitLoop.append( '  if Index <= Max :   ' )
+    PyEndOfInitLoop.append( '          DoLoop = 1     ' )
+    PyEndOfInitLoop.append( '  else :     ' )
+    PyEndOfInitLoop.append( '          DoLoop = 0     ' )
+    PyEndOfInitLoop.append( '  return DoLoop,Index,Min,Max     ' )
+    EndOfInitLoop.SetPyFunction( 'EndOfInitLoop' , PyEndOfInitLoop )
+    IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' )
+    IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' )
+    IInitLoopMin = InitLoop.InPort( 'Min' , 'long' )
+    IInitLoopMax = InitLoop.InPort( 'Max' , 'long' )
+    IInitLoopGate = InitLoop.GetInPort( 'Gate' )
+    OInitLoopDoLoop = InitLoop.GetOutPort( 'DoLoop' )
+    OInitLoopIndex = InitLoop.GetOutPort( 'Index' )
+    OInitLoopMin = InitLoop.GetOutPort( 'Min' )
+    OInitLoopMax = InitLoop.GetOutPort( 'Max' )
+    IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' )
+    IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' )
+    IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' )
+    IEndOfInitLoopMax = EndOfInitLoop.GetInPort( 'Max' )
+    IEndOfInitLoopGate = EndOfInitLoop.GetInPort( 'Gate' )
+    OEndOfInitLoopDoLoop = EndOfInitLoop.GetOutPort( 'DoLoop' )
+    OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' )
+    OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' )
+    OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' )
+    OEndOfInitLoopGate = EndOfInitLoop.GetOutPort( 'Gate' )
+    InitLoop.SetName( 'InitLoop' )
+    InitLoop.SetAuthor( '' )
+    InitLoop.SetComment( 'Compute Node' )
+    InitLoop.Coords( 10 , 108 )
+    
+    # Creation of Switch Nodes
+    PySwitch = []
+    PySwitch.append( 'from time import *  ' )
+    PySwitch.append( 'def Switch(a) :    ' )
+    PySwitch.append( '    if ( a & 1 ) == 0 :  ' )
+    PySwitch.append( '        sleep(1)  ' )
+    PySwitch.append( '    return a & 1,1-(a&1),a    ' )
+    Switch,EndSwitch = GraphLoopSwitchDefault.SNode( 'Switch' , PySwitch )
+    EndSwitch.SetName( 'EndSwitch' )
+    EndSwitch.SetAuthor( '' )
+    EndSwitch.SetComment( 'Compute Node' )
+    EndSwitch.Coords( 587 , 103 )
+    PyEndSwitch = []
+    PyEndSwitch.append( 'def EndSwitch(a) :    ' )
+    PyEndSwitch.append( '    if ( a & 1 ) == 0 :  ' )
+    PyEndSwitch.append( '        sleep(1)  ' )
+    PyEndSwitch.append( '    return a    ' )
+    EndSwitch.SetPyFunction( 'EndSwitch' , PyEndSwitch )
+    IEndSwitcha = EndSwitch.InPort( 'a' , 'long' )
+    IEndSwitchDefault = EndSwitch.GetInPort( 'Default' )
+    OEndSwitcha = EndSwitch.OutPort( 'a' , 'long' )
+    OEndSwitchGate = EndSwitch.GetOutPort( 'Gate' )
+    Switch.SetName( 'Switch' )
+    Switch.SetAuthor( '' )
+    Switch.SetComment( 'Compute Node' )
+    Switch.Coords( 194 , 109 )
+    ISwitcha = Switch.InPort( 'a' , 'long' )
+    ISwitchGate = Switch.GetInPort( 'Gate' )
+    OSwitchOdd = Switch.OutPort( 'Odd' , 'long' )
+    OSwitchEven = Switch.OutPort( 'Even' , 'int' )
+    OSwitcha = Switch.OutPort( 'a' , 'int' )
+    OSwitchDefault = Switch.GetOutPort( 'Default' )
+    
+    # Creation of Links
+    LIsOddaEndSwitcha = GraphLoopSwitchDefault.Link( OIsOdda , IEndSwitcha )
+    
+    LInitLoopIndexSwitcha = GraphLoopSwitchDefault.Link( OInitLoopIndex , ISwitcha )
+    
+    LInitLoopMinEndOfInitLoopMin = GraphLoopSwitchDefault.Link( OInitLoopMin , IEndOfInitLoopMin )
+    
+    LInitLoopMaxEndOfInitLoopMax = GraphLoopSwitchDefault.Link( OInitLoopMax , IEndOfInitLoopMax )
+    
+    LSwitchOddIsOddGate = GraphLoopSwitchDefault.Link( OSwitchOdd , IIsOddGate )
+    
+    LSwitchaIsOdda = GraphLoopSwitchDefault.Link( OSwitcha , IIsOdda )
+    
+    LSwitchDefaultEndSwitchDefault = GraphLoopSwitchDefault.Link( OSwitchDefault , IEndSwitchDefault )
+    
+    LEndSwitchaEndOfInitLoopIndex = GraphLoopSwitchDefault.Link( OEndSwitcha , IEndOfInitLoopIndex )
+    
+    # Input datas
+    IInitLoopIndex.Input( 0 )
+    IInitLoopMin.Input( 5 )
+    IInitLoopMax.Input( 23 )
+    
+    # Output Ports of the graph
+    #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' )
+    #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' )
+    #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' )
+    #OSwitchEven = Switch.GetOutPort( 'Even' )
+    return GraphLoopSwitchDefault
+
+
+GraphLoopSwitchDefault = DefGraphLoopSwitchDefault()
diff --git a/examples/GraphLoopSwitchDefault.xml b/examples/GraphLoopSwitchDefault.xml
new file mode 100644 (file)
index 0000000..9cc9dea
--- /dev/null
@@ -0,0 +1,336 @@
+<!DOCTYPE SuperGraph>
+<supergraph>
+<dataflow>
+<info-list>
+<node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>GraphLoopSwitchDefault</node-name>
+    <kind>1</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>GraphLoopSwitch_1_1</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>InitLoop__Index</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>InitLoop__Min</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>InitLoop__Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>EndOfInitLoop__Index</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>EndOfInitLoop__Min</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>EndOfInitLoop__Max</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>int</outParameter-type>
+       <outParameter-name>Switch__Even</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>22/10/2003 - 10:36:39</creation-date>
+    <lastmodification-date>9/2/2005 - 10:29:19</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>JR</author>
+    <container>?</container>
+    <comment>?</comment>
+    <x-position>0</x-position>
+    <y-position>0</y-position>   </node>  </info-list>
+  <node-list>
+<node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>IsOdd</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>IsOdd</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>IsOdd</FuncName>
+      <PyFunc><![CDATA[from time import *     ]]></PyFunc>
+      <PyFunc><![CDATA[def IsOdd(a) :         ]]></PyFunc>
+      <PyFunc><![CDATA[    print a,"IsOdd (GraphLoopSwitch1)"        ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep( 1 )     ]]></PyFunc>
+      <PyFunc><![CDATA[    return a       ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>9/2/2005 - 10:29:19</creation-date>
+    <lastmodification-date>9/2/2005 - 10:29:19</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Python function</comment>
+    <x-position>397</x-position>
+    <y-position>1</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>InitLoop</node-name>
+    <kind>4</kind>
+    <coupled-node>EndOfInitLoop</coupled-node>
+    <service>
+<service-name>InitLoop</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Index</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Min</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Index</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Min</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>InitLoop</FuncName>
+      <PyFunc><![CDATA[def InitLoop(Index,Min,Max) : ]]></PyFunc>
+      <PyFunc><![CDATA[        Index = Min ]]></PyFunc>
+      <PyFunc><![CDATA[        return Index,Min,Max ]]></PyFunc>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>
+     <PyFunction>
+<FuncName>?</FuncName>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>
+     <PyFunction>
+<FuncName>?</FuncName>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>9/2/2005 - 10:29:19</creation-date>
+    <lastmodification-date>9/2/2005 - 10:29:19</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>10</x-position>
+    <y-position>108</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>EndOfInitLoop</node-name>
+    <kind>5</kind>
+    <coupled-node>InitLoop</coupled-node>
+    <service>
+<service-name>EndOfInitLoop</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Index</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Min</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Index</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Min</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>EndOfInitLoop</FuncName>
+      <PyFunc><![CDATA[def EndOfInitLoop( DoLoop , Index , Min , Max ) :]]></PyFunc>
+      <PyFunc><![CDATA[        Index = Index + 1     ]]></PyFunc>
+      <PyFunc><![CDATA[        if Index <= Max :   ]]></PyFunc>
+      <PyFunc><![CDATA[                DoLoop = 1     ]]></PyFunc>
+      <PyFunc><![CDATA[        else :     ]]></PyFunc>
+      <PyFunc><![CDATA[                DoLoop = 0     ]]></PyFunc>
+      <PyFunc><![CDATA[        return DoLoop,Index,Min,Max     ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>9/2/2005 - 10:29:19</creation-date>
+    <lastmodification-date>9/2/2005 - 10:29:19</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>767</x-position>
+    <y-position>102</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>Switch</node-name>
+    <kind>6</kind>
+    <coupled-node>EndSwitch</coupled-node>
+    <service>
+<service-name>Switch</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>int</outParameter-type>
+       <outParameter-name>Even</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>int</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>Switch</FuncName>
+      <PyFunc><![CDATA[from time import *  ]]></PyFunc>
+      <PyFunc><![CDATA[def Switch(a) :    ]]></PyFunc>
+      <PyFunc><![CDATA[    if ( a & 1 ) == 0 :  ]]></PyFunc>
+      <PyFunc><![CDATA[        sleep(1)  ]]></PyFunc>
+      <PyFunc><![CDATA[    return a & 1,1-(a&1),a    ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>9/2/2005 - 10:29:19</creation-date>
+    <lastmodification-date>9/2/2005 - 10:29:19</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>194</x-position>
+    <y-position>109</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>EndSwitch</node-name>
+    <kind>7</kind>
+    <coupled-node>Switch</coupled-node>
+    <service>
+<service-name>EndSwitch</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>EndSwitch</FuncName>
+      <PyFunc><![CDATA[def EndSwitch(a) :    ]]></PyFunc>
+      <PyFunc><![CDATA[    if ( a & 1 ) == 0 :  ]]></PyFunc>
+      <PyFunc><![CDATA[        sleep(1)  ]]></PyFunc>
+      <PyFunc><![CDATA[    return a    ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>9/2/2005 - 10:29:19</creation-date>
+    <lastmodification-date>9/2/2005 - 10:29:19</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>587</x-position>
+    <y-position>103</y-position>   </node>  </node-list>
+  <link-list>
+<link>
+<fromnode-name>IsOdd</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndSwitch</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>InitLoop</fromnode-name>
+    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+    <tonode-name>EndOfInitLoop</tonode-name>
+    <toserviceparameter-name>DoLoop</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>InitLoop</fromnode-name>
+    <fromserviceparameter-name>Index</fromserviceparameter-name>
+    <tonode-name>Switch</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>InitLoop</fromnode-name>
+    <fromserviceparameter-name>Min</fromserviceparameter-name>
+    <tonode-name>EndOfInitLoop</tonode-name>
+    <toserviceparameter-name>Min</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>InitLoop</fromnode-name>
+    <fromserviceparameter-name>Max</fromserviceparameter-name>
+    <tonode-name>EndOfInitLoop</tonode-name>
+    <toserviceparameter-name>Max</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndOfInitLoop</fromnode-name>
+    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+    <tonode-name>InitLoop</tonode-name>
+    <toserviceparameter-name>DoLoop</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Switch</fromnode-name>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>IsOdd</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Switch</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>IsOdd</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Switch</fromnode-name>
+    <fromserviceparameter-name>Default</fromserviceparameter-name>
+    <tonode-name>EndSwitch</tonode-name>
+    <toserviceparameter-name>Default</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndSwitch</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfInitLoop</tonode-name>
+    <toserviceparameter-name>Index</toserviceparameter-name>
+    <coord-list/>   </link>  </link-list>
+  <data-list>
+<data>
+<fromnode-name>GraphLoopSwitchDefault</fromnode-name>
+    <fromserviceparameter-name>InitLoop__Index</fromserviceparameter-name>
+    <tonode-name>InitLoop</tonode-name>
+    <toserviceparameter-name>Index</toserviceparameter-name>
+    <data-value>
+<value-type>3</value-type>
+     <value>0</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
+<fromnode-name>GraphLoopSwitchDefault</fromnode-name>
+    <fromserviceparameter-name>InitLoop__Min</fromserviceparameter-name>
+    <tonode-name>InitLoop</tonode-name>
+    <toserviceparameter-name>Min</toserviceparameter-name>
+    <data-value>
+<value-type>3</value-type>
+     <value>5</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
+<fromnode-name>GraphLoopSwitchDefault</fromnode-name>
+    <fromserviceparameter-name>InitLoop__Max</fromserviceparameter-name>
+    <tonode-name>InitLoop</tonode-name>
+    <toserviceparameter-name>Max</toserviceparameter-name>
+    <data-value>
+<value-type>3</value-type>
+     <value>23</value>    </data-value>
+    <coord-list/>   </data>  </data-list> </dataflow></supergraph>
diff --git a/examples/GraphLoopSwitchDefaultAborted.py b/examples/GraphLoopSwitchDefaultAborted.py
new file mode 100644 (file)
index 0000000..8ede72b
--- /dev/null
@@ -0,0 +1,161 @@
+
+# Generated python file of Graph GraphLoopSwitchDefaultAborted
+
+from SuperV import *
+
+# Graph creation of GraphLoopSwitchDefaultAborted
+def DefGraphLoopSwitchDefaultAborted() :
+    GraphLoopSwitchDefaultAborted = Graph( 'GraphLoopSwitchDefaultAborted' )
+    GraphLoopSwitchDefaultAborted.SetName( 'GraphLoopSwitchDefaultAborted' )
+    GraphLoopSwitchDefaultAborted.SetAuthor( 'JR' )
+    GraphLoopSwitchDefaultAborted.SetComment( 'Default Ports are not connected and the Executor will detect a Default condition ==> ABORT' )
+    GraphLoopSwitchDefaultAborted.Coords( 0 , 0 )
+    
+    # Creation of Factory Nodes
+    
+    # Creation of InLine Nodes
+    PyIsOdd = []
+    PyIsOdd.append( 'from time import *     ' )
+    PyIsOdd.append( 'def IsOdd(a) :         ' )
+    PyIsOdd.append( '    print a,"IsOdd (GraphLoopSwitch1)"        ' )
+    PyIsOdd.append( '    sleep( 1 )     ' )
+    PyIsOdd.append( '    return a       ' )
+    IsOdd = GraphLoopSwitchDefaultAborted.INode( 'IsOdd' , PyIsOdd )
+    IsOdd.SetName( 'IsOdd' )
+    IsOdd.SetAuthor( '' )
+    IsOdd.SetComment( 'Python function' )
+    IsOdd.Coords( 397 , 1 )
+    IIsOdda = IsOdd.InPort( 'a' , 'long' )
+    IIsOddGate = IsOdd.GetInPort( 'Gate' )
+    OIsOdda = IsOdd.OutPort( 'a' , 'long' )
+    OIsOddGate = IsOdd.GetOutPort( 'Gate' )
+    
+    PyVala = []
+    PyVala.append( 'from time import * ' )
+    PyVala.append( 'def ValEven(Even) : ' )
+    PyVala.append( '    sleep(1) ' )
+    PyVala.append( '    return Even   ' )
+    PyVala.append( '' )
+    Vala = GraphLoopSwitchDefaultAborted.INode( 'ValEven' , PyVala )
+    Vala.SetName( 'Vala' )
+    Vala.SetAuthor( '' )
+    Vala.SetComment( 'Compute Node' )
+    Vala.Coords( 394 , 137 )
+    IValaEven = Vala.InPort( 'Even' , 'long' )
+    IValaGate = Vala.GetInPort( 'Gate' )
+    OValaEven = Vala.OutPort( 'Even' , 'long' )
+    OValaGate = Vala.GetOutPort( 'Gate' )
+    
+    # Creation of Loop Nodes
+    PyInitLoop = []
+    PyInitLoop.append( 'def InitLoop(Index,Min,Max) : ' )
+    PyInitLoop.append( '       Index = Min ' )
+    PyInitLoop.append( '       return Index,Min,Max ' )
+    PyInitLoop.append( '' )
+    PyMoreInitLoop = []
+    PyMoreInitLoop.append( '' )
+    PyNextInitLoop = []
+    PyNextInitLoop.append( '' )
+    InitLoop,EndOfInitLoop = GraphLoopSwitchDefaultAborted.LNode( 'InitLoop' , PyInitLoop , '' , PyMoreInitLoop , '' , PyNextInitLoop )
+    EndOfInitLoop.SetName( 'EndOfInitLoop' )
+    EndOfInitLoop.SetAuthor( '' )
+    EndOfInitLoop.SetComment( 'Compute Node' )
+    EndOfInitLoop.Coords( 767 , 102 )
+    PyEndOfInitLoop = []
+    PyEndOfInitLoop.append( 'def EndOfInitLoop( DoLoop , Index , Min , Max ) :' )
+    PyEndOfInitLoop.append( '  Index = Index + 1     ' )
+    PyEndOfInitLoop.append( '  if Index <= Max :   ' )
+    PyEndOfInitLoop.append( '          DoLoop = 1     ' )
+    PyEndOfInitLoop.append( '  else :     ' )
+    PyEndOfInitLoop.append( '          DoLoop = 0     ' )
+    PyEndOfInitLoop.append( '  return DoLoop,Index,Min,Max     ' )
+    EndOfInitLoop.SetPyFunction( 'EndOfInitLoop' , PyEndOfInitLoop )
+    IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' )
+    IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' )
+    IInitLoopMin = InitLoop.InPort( 'Min' , 'long' )
+    IInitLoopMax = InitLoop.InPort( 'Max' , 'long' )
+    IInitLoopGate = InitLoop.GetInPort( 'Gate' )
+    OInitLoopDoLoop = InitLoop.GetOutPort( 'DoLoop' )
+    OInitLoopIndex = InitLoop.GetOutPort( 'Index' )
+    OInitLoopMin = InitLoop.GetOutPort( 'Min' )
+    OInitLoopMax = InitLoop.GetOutPort( 'Max' )
+    IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' )
+    IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' )
+    IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' )
+    IEndOfInitLoopMax = EndOfInitLoop.GetInPort( 'Max' )
+    IEndOfInitLoopGate = EndOfInitLoop.GetInPort( 'Gate' )
+    OEndOfInitLoopDoLoop = EndOfInitLoop.GetOutPort( 'DoLoop' )
+    OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' )
+    OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' )
+    OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' )
+    OEndOfInitLoopGate = EndOfInitLoop.GetOutPort( 'Gate' )
+    InitLoop.SetName( 'InitLoop' )
+    InitLoop.SetAuthor( '' )
+    InitLoop.SetComment( 'Compute Node' )
+    InitLoop.Coords( 10 , 108 )
+    
+    # Creation of Switch Nodes
+    PySwitch = []
+    PySwitch.append( 'from time import *  ' )
+    PySwitch.append( 'def Switch(a) :    ' )
+    PySwitch.append( '    if ( a & 1 ) == 0 :  ' )
+    PySwitch.append( '        sleep(1)  ' )
+    PySwitch.append( '    return a & 1,1-(a&1),a    ' )
+    Switch,EndSwitch = GraphLoopSwitchDefaultAborted.SNode( 'Switch' , PySwitch )
+    EndSwitch.SetName( 'EndSwitch' )
+    EndSwitch.SetAuthor( '' )
+    EndSwitch.SetComment( 'Compute Node' )
+    EndSwitch.Coords( 587 , 103 )
+    PyEndSwitch = []
+    PyEndSwitch.append( 'def EndSwitch(a,Even) : ' )
+    PyEndSwitch.append( '    sleep(1)     ' )
+    PyEndSwitch.append( '    return a       ' )
+    EndSwitch.SetPyFunction( 'EndSwitch' , PyEndSwitch )
+    IEndSwitcha = EndSwitch.InPort( 'a' , 'long' )
+    IEndSwitchEven = EndSwitch.InPort( 'Even' , 'long' )
+    IEndSwitchDefault = EndSwitch.GetInPort( 'Default' )
+    OEndSwitcha = EndSwitch.OutPort( 'a' , 'long' )
+    OEndSwitchGate = EndSwitch.GetOutPort( 'Gate' )
+    Switch.SetName( 'Switch' )
+    Switch.SetAuthor( '' )
+    Switch.SetComment( 'Compute Node' )
+    Switch.Coords( 194 , 109 )
+    ISwitcha = Switch.InPort( 'a' , 'long' )
+    ISwitchGate = Switch.GetInPort( 'Gate' )
+    OSwitchOdd = Switch.OutPort( 'Odd' , 'long' )
+    OSwitchEven = Switch.OutPort( 'Even' , 'int' )
+    OSwitcha = Switch.OutPort( 'a' , 'int' )
+    OSwitchDefault = Switch.GetOutPort( 'Default' )
+    
+    # Creation of Links
+    LIsOddaEndSwitcha = GraphLoopSwitchDefaultAborted.Link( OIsOdda , IEndSwitcha )
+    
+    LInitLoopIndexSwitcha = GraphLoopSwitchDefaultAborted.Link( OInitLoopIndex , ISwitcha )
+    
+    LInitLoopMinEndOfInitLoopMin = GraphLoopSwitchDefaultAborted.Link( OInitLoopMin , IEndOfInitLoopMin )
+    
+    LInitLoopMaxEndOfInitLoopMax = GraphLoopSwitchDefaultAborted.Link( OInitLoopMax , IEndOfInitLoopMax )
+    
+    LSwitchOddIsOddGate = GraphLoopSwitchDefaultAborted.Link( OSwitchOdd , IIsOddGate )
+    
+    LSwitchEvenValaEven = GraphLoopSwitchDefaultAborted.Link( OSwitchEven , IValaEven )
+    
+    LSwitchaIsOdda = GraphLoopSwitchDefaultAborted.Link( OSwitcha , IIsOdda )
+    
+    LEndSwitchaEndOfInitLoopIndex = GraphLoopSwitchDefaultAborted.Link( OEndSwitcha , IEndOfInitLoopIndex )
+    
+    LValaEvenEndSwitchEven = GraphLoopSwitchDefaultAborted.Link( OValaEven , IEndSwitchEven )
+    
+    # Input datas
+    IInitLoopIndex.Input( 0 )
+    IInitLoopMin.Input( 5 )
+    IInitLoopMax.Input( 23 )
+    
+    # Output Ports of the graph
+    #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' )
+    #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' )
+    #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' )
+    return GraphLoopSwitchDefaultAborted
+
+
+GraphLoopSwitchDefaultAborted = DefGraphLoopSwitchDefaultAborted()
diff --git a/examples/GraphLoopSwitchDefaultAborted.xml b/examples/GraphLoopSwitchDefaultAborted.xml
new file mode 100644 (file)
index 0000000..6fdf946
--- /dev/null
@@ -0,0 +1,374 @@
+<!DOCTYPE SuperGraph>
+<supergraph>
+<dataflow>
+<info-list>
+<node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>GraphLoopSwitchDefaultAborted</node-name>
+    <kind>1</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>GraphLoopSwitch_1</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>InitLoop__Index</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>InitLoop__Min</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>InitLoop__Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>EndOfInitLoop__Index</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>EndOfInitLoop__Min</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>EndOfInitLoop__Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>22/10/2003 - 10:36:39</creation-date>
+    <lastmodification-date>11/2/2005 - 11:46:10</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>JR</author>
+    <container>?</container>
+    <comment>Default Ports are not connected and the Executor will detect a Default condition ==> ABORT</comment>
+    <x-position>0</x-position>
+    <y-position>0</y-position>   </node>  </info-list>
+  <node-list>
+<node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>IsOdd</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>IsOdd</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>IsOdd</FuncName>
+      <PyFunc><![CDATA[from time import *     ]]></PyFunc>
+      <PyFunc><![CDATA[def IsOdd(a) :         ]]></PyFunc>
+      <PyFunc><![CDATA[    print a,"IsOdd (GraphLoopSwitch1)"        ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep( 1 )     ]]></PyFunc>
+      <PyFunc><![CDATA[    return a       ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 11:46:10</creation-date>
+    <lastmodification-date>11/2/2005 - 11:46:10</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Python function</comment>
+    <x-position>397</x-position>
+    <y-position>1</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>InitLoop</node-name>
+    <kind>4</kind>
+    <coupled-node>EndOfInitLoop</coupled-node>
+    <service>
+<service-name>InitLoop</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Index</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Min</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Index</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Min</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>InitLoop</FuncName>
+      <PyFunc><![CDATA[def InitLoop(Index,Min,Max) : ]]></PyFunc>
+      <PyFunc><![CDATA[        Index = Min ]]></PyFunc>
+      <PyFunc><![CDATA[        return Index,Min,Max ]]></PyFunc>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>
+     <PyFunction>
+<FuncName>?</FuncName>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>
+     <PyFunction>
+<FuncName>?</FuncName>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 11:46:10</creation-date>
+    <lastmodification-date>11/2/2005 - 11:46:10</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>10</x-position>
+    <y-position>108</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>EndOfInitLoop</node-name>
+    <kind>5</kind>
+    <coupled-node>InitLoop</coupled-node>
+    <service>
+<service-name>EndOfInitLoop</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Index</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Min</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Index</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Min</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>EndOfInitLoop</FuncName>
+      <PyFunc><![CDATA[def EndOfInitLoop( DoLoop , Index , Min , Max ) :]]></PyFunc>
+      <PyFunc><![CDATA[        Index = Index + 1     ]]></PyFunc>
+      <PyFunc><![CDATA[        if Index <= Max :   ]]></PyFunc>
+      <PyFunc><![CDATA[                DoLoop = 1     ]]></PyFunc>
+      <PyFunc><![CDATA[        else :     ]]></PyFunc>
+      <PyFunc><![CDATA[                DoLoop = 0     ]]></PyFunc>
+      <PyFunc><![CDATA[        return DoLoop,Index,Min,Max     ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 11:46:10</creation-date>
+    <lastmodification-date>11/2/2005 - 11:46:10</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>767</x-position>
+    <y-position>102</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>Switch</node-name>
+    <kind>6</kind>
+    <coupled-node>EndSwitch</coupled-node>
+    <service>
+<service-name>Switch</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>int</outParameter-type>
+       <outParameter-name>Even</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>int</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>Switch</FuncName>
+      <PyFunc><![CDATA[from time import *  ]]></PyFunc>
+      <PyFunc><![CDATA[def Switch(a) :    ]]></PyFunc>
+      <PyFunc><![CDATA[    if ( a & 1 ) == 0 :  ]]></PyFunc>
+      <PyFunc><![CDATA[        sleep(1)  ]]></PyFunc>
+      <PyFunc><![CDATA[    return a & 1,1-(a&1),a    ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 11:46:10</creation-date>
+    <lastmodification-date>11/2/2005 - 11:46:10</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>194</x-position>
+    <y-position>109</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>EndSwitch</node-name>
+    <kind>7</kind>
+    <coupled-node>Switch</coupled-node>
+    <service>
+<service-name>EndSwitch</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Even</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>EndSwitch</FuncName>
+      <PyFunc><![CDATA[def EndSwitch(a,Even) : ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1)     ]]></PyFunc>
+      <PyFunc><![CDATA[    return a       ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 11:46:10</creation-date>
+    <lastmodification-date>11/2/2005 - 11:46:10</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>587</x-position>
+    <y-position>103</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>Vala</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>Vala</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Even</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Even</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>ValEven</FuncName>
+      <PyFunc><![CDATA[from time import * ]]></PyFunc>
+      <PyFunc><![CDATA[def ValEven(Even) : ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1) ]]></PyFunc>
+      <PyFunc><![CDATA[    return Even   ]]></PyFunc>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 11:46:10</creation-date>
+    <lastmodification-date>11/2/2005 - 11:46:10</lastmodification-date>
+    <editor-release>2.0</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>394</x-position>
+    <y-position>137</y-position>   </node>  </node-list>
+  <link-list>
+<link>
+<fromnode-name>IsOdd</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndSwitch</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>InitLoop</fromnode-name>
+    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+    <tonode-name>EndOfInitLoop</tonode-name>
+    <toserviceparameter-name>DoLoop</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>InitLoop</fromnode-name>
+    <fromserviceparameter-name>Index</fromserviceparameter-name>
+    <tonode-name>Switch</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>InitLoop</fromnode-name>
+    <fromserviceparameter-name>Min</fromserviceparameter-name>
+    <tonode-name>EndOfInitLoop</tonode-name>
+    <toserviceparameter-name>Min</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>InitLoop</fromnode-name>
+    <fromserviceparameter-name>Max</fromserviceparameter-name>
+    <tonode-name>EndOfInitLoop</tonode-name>
+    <toserviceparameter-name>Max</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndOfInitLoop</fromnode-name>
+    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+    <tonode-name>InitLoop</tonode-name>
+    <toserviceparameter-name>DoLoop</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Switch</fromnode-name>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>IsOdd</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Switch</fromnode-name>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>Vala</tonode-name>
+    <toserviceparameter-name>Even</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Switch</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>IsOdd</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndSwitch</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfInitLoop</tonode-name>
+    <toserviceparameter-name>Index</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Vala</fromnode-name>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>EndSwitch</tonode-name>
+    <toserviceparameter-name>Even</toserviceparameter-name>
+    <coord-list/>   </link>  </link-list>
+  <data-list>
+<data>
+<fromnode-name>GraphLoopSwitchDefaultAborted</fromnode-name>
+    <fromserviceparameter-name>InitLoop__Index</fromserviceparameter-name>
+    <tonode-name>InitLoop</tonode-name>
+    <toserviceparameter-name>Index</toserviceparameter-name>
+    <data-value>
+<value-type>3</value-type>
+     <value>0</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
+<fromnode-name>GraphLoopSwitchDefaultAborted</fromnode-name>
+    <fromserviceparameter-name>InitLoop__Min</fromserviceparameter-name>
+    <tonode-name>InitLoop</tonode-name>
+    <toserviceparameter-name>Min</toserviceparameter-name>
+    <data-value>
+<value-type>3</value-type>
+     <value>5</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
+<fromnode-name>GraphLoopSwitchDefaultAborted</fromnode-name>
+    <fromserviceparameter-name>InitLoop__Max</fromserviceparameter-name>
+    <tonode-name>InitLoop</tonode-name>
+    <toserviceparameter-name>Max</toserviceparameter-name>
+    <data-value>
+<value-type>3</value-type>
+     <value>23</value>    </data-value>
+    <coord-list/>   </data>  </data-list> </dataflow></supergraph>
diff --git a/examples/GraphLoopSwitchOddEven.py b/examples/GraphLoopSwitchOddEven.py
new file mode 100644 (file)
index 0000000..645890a
--- /dev/null
@@ -0,0 +1,162 @@
+
+# Generated python file of Graph GraphLoopSwitchOddEven
+
+from SuperV import *
+
+# Graph creation of GraphLoopSwitchOddEven
+def DefGraphLoopSwitchOddEven() :
+    GraphLoopSwitchOddEven = Graph( 'GraphLoopSwitchOddEven' )
+    GraphLoopSwitchOddEven.SetName( 'GraphLoopSwitchOddEven' )
+    GraphLoopSwitchOddEven.SetAuthor( 'JR' )
+    GraphLoopSwitchOddEven.SetComment( '' )
+    GraphLoopSwitchOddEven.Coords( 0 , 0 )
+    
+    # Creation of Factory Nodes
+    
+    # Creation of InLine Nodes
+    PyIsOdd = []
+    PyIsOdd.append( 'from time import *     ' )
+    PyIsOdd.append( 'def IsOdd(a) :         ' )
+    PyIsOdd.append( '    print a,"IsOdd (GraphLoopSwitch1)"        ' )
+    PyIsOdd.append( '    sleep( 1 )     ' )
+    PyIsOdd.append( '    return a       ' )
+    IsOdd = GraphLoopSwitchOddEven.INode( 'IsOdd' , PyIsOdd )
+    IsOdd.SetName( 'IsOdd' )
+    IsOdd.SetAuthor( '' )
+    IsOdd.SetComment( 'Python function' )
+    IsOdd.Coords( 397 , 1 )
+    IIsOdda = IsOdd.InPort( 'a' , 'long' )
+    IIsOddGate = IsOdd.GetInPort( 'Gate' )
+    OIsOdda = IsOdd.OutPort( 'a' , 'long' )
+    OIsOddGate = IsOdd.GetOutPort( 'Gate' )
+    
+    PyIsEven = []
+    PyIsEven.append( 'from time import * ' )
+    PyIsEven.append( 'def IsEven(a) : ' )
+    PyIsEven.append( '    sleep(1) ' )
+    PyIsEven.append( '    return a  ' )
+    PyIsEven.append( ' ' )
+    IsEven = GraphLoopSwitchOddEven.INode( 'IsEven' , PyIsEven )
+    IsEven.SetName( 'IsEven' )
+    IsEven.SetAuthor( '' )
+    IsEven.SetComment( 'Compute Node' )
+    IsEven.Coords( 400 , 160 )
+    IIsEvena = IsEven.InPort( 'a' , 'long' )
+    IIsEvenGate = IsEven.GetInPort( 'Gate' )
+    OIsEvena = IsEven.OutPort( 'a' , 'long' )
+    OIsEvenGate = IsEven.GetOutPort( 'Gate' )
+    
+    # Creation of Loop Nodes
+    PyInitLoop = []
+    PyInitLoop.append( 'def InitLoop(Index,Min,Max) : ' )
+    PyInitLoop.append( '       Index = Min ' )
+    PyInitLoop.append( '       return Index,Min,Max ' )
+    PyInitLoop.append( '' )
+    PyMoreInitLoop = []
+    PyMoreInitLoop.append( '' )
+    PyNextInitLoop = []
+    PyNextInitLoop.append( '' )
+    InitLoop,EndOfInitLoop = GraphLoopSwitchOddEven.LNode( 'InitLoop' , PyInitLoop , '' , PyMoreInitLoop , '' , PyNextInitLoop )
+    EndOfInitLoop.SetName( 'EndOfInitLoop' )
+    EndOfInitLoop.SetAuthor( '' )
+    EndOfInitLoop.SetComment( 'Compute Node' )
+    EndOfInitLoop.Coords( 767 , 102 )
+    PyEndOfInitLoop = []
+    PyEndOfInitLoop.append( 'def EndOfInitLoop( DoLoop , Index , Min , Max ) :' )
+    PyEndOfInitLoop.append( '  Index = Index + 1     ' )
+    PyEndOfInitLoop.append( '  if Index <= Max :   ' )
+    PyEndOfInitLoop.append( '          DoLoop = 1     ' )
+    PyEndOfInitLoop.append( '  else :     ' )
+    PyEndOfInitLoop.append( '          DoLoop = 0     ' )
+    PyEndOfInitLoop.append( '  return DoLoop,Index,Min,Max     ' )
+    EndOfInitLoop.SetPyFunction( 'EndOfInitLoop' , PyEndOfInitLoop )
+    IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' )
+    IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' )
+    IInitLoopMin = InitLoop.InPort( 'Min' , 'long' )
+    IInitLoopMax = InitLoop.InPort( 'Max' , 'long' )
+    IInitLoopGate = InitLoop.GetInPort( 'Gate' )
+    OInitLoopDoLoop = InitLoop.GetOutPort( 'DoLoop' )
+    OInitLoopIndex = InitLoop.GetOutPort( 'Index' )
+    OInitLoopMin = InitLoop.GetOutPort( 'Min' )
+    OInitLoopMax = InitLoop.GetOutPort( 'Max' )
+    IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' )
+    IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' )
+    IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' )
+    IEndOfInitLoopMax = EndOfInitLoop.GetInPort( 'Max' )
+    IEndOfInitLoopGate = EndOfInitLoop.GetInPort( 'Gate' )
+    OEndOfInitLoopDoLoop = EndOfInitLoop.GetOutPort( 'DoLoop' )
+    OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' )
+    OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' )
+    OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' )
+    OEndOfInitLoopGate = EndOfInitLoop.GetOutPort( 'Gate' )
+    InitLoop.SetName( 'InitLoop' )
+    InitLoop.SetAuthor( '' )
+    InitLoop.SetComment( 'Compute Node' )
+    InitLoop.Coords( 10 , 108 )
+    
+    # Creation of Switch Nodes
+    PySwitch = []
+    PySwitch.append( 'from time import *  ' )
+    PySwitch.append( 'def Switch(a) :    ' )
+    PySwitch.append( '    if ( a & 1 ) == 0 :  ' )
+    PySwitch.append( '        sleep(1)  ' )
+    PySwitch.append( '    return a & 1,1-(a&1),a    ' )
+    Switch,EndSwitch = GraphLoopSwitchOddEven.SNode( 'Switch' , PySwitch )
+    EndSwitch.SetName( 'EndSwitch' )
+    EndSwitch.SetAuthor( '' )
+    EndSwitch.SetComment( 'Compute Node' )
+    EndSwitch.Coords( 587 , 103 )
+    PyEndSwitch = []
+    PyEndSwitch.append( 'def EndSwitch(a) : ' )
+    PyEndSwitch.append( '    sleep(1)   ' )
+    PyEndSwitch.append( '    return a     ' )
+    EndSwitch.SetPyFunction( 'EndSwitch' , PyEndSwitch )
+    IEndSwitcha = EndSwitch.InPort( 'a' , 'long' )
+    IEndSwitchDefault = EndSwitch.GetInPort( 'Default' )
+    OEndSwitcha = EndSwitch.OutPort( 'a' , 'long' )
+    OEndSwitchGate = EndSwitch.GetOutPort( 'Gate' )
+    Switch.SetName( 'Switch' )
+    Switch.SetAuthor( '' )
+    Switch.SetComment( 'Compute Node' )
+    Switch.Coords( 194 , 109 )
+    ISwitcha = Switch.InPort( 'a' , 'long' )
+    ISwitchGate = Switch.GetInPort( 'Gate' )
+    OSwitchOdd = Switch.OutPort( 'Odd' , 'long' )
+    OSwitchEven = Switch.OutPort( 'Even' , 'int' )
+    OSwitcha = Switch.OutPort( 'a' , 'int' )
+    OSwitchDefault = Switch.GetOutPort( 'Default' )
+    
+    # Creation of Links
+    LIsOddaEndSwitcha = GraphLoopSwitchOddEven.Link( OIsOdda , IEndSwitcha )
+    
+    LInitLoopIndexSwitcha = GraphLoopSwitchOddEven.Link( OInitLoopIndex , ISwitcha )
+    
+    LInitLoopMinEndOfInitLoopMin = GraphLoopSwitchOddEven.Link( OInitLoopMin , IEndOfInitLoopMin )
+    
+    LInitLoopMaxEndOfInitLoopMax = GraphLoopSwitchOddEven.Link( OInitLoopMax , IEndOfInitLoopMax )
+    
+    LSwitchOddIsOddGate = GraphLoopSwitchOddEven.Link( OSwitchOdd , IIsOddGate )
+    
+    LSwitchEvenIsEvenGate = GraphLoopSwitchOddEven.Link( OSwitchEven , IIsEvenGate )
+    
+    LSwitchaIsOdda = GraphLoopSwitchOddEven.Link( OSwitcha , IIsOdda )
+    
+    LSwitchaIsEvena = GraphLoopSwitchOddEven.Link( OSwitcha , IIsEvena )
+    
+    LEndSwitchaEndOfInitLoopIndex = GraphLoopSwitchOddEven.Link( OEndSwitcha , IEndOfInitLoopIndex )
+    
+    LIsEvenaEndSwitcha = GraphLoopSwitchOddEven.Link( OIsEvena , IEndSwitcha )
+    
+    # Input datas
+    IInitLoopIndex.Input( 0 )
+    IInitLoopMin.Input( 5 )
+    IInitLoopMax.Input( 23 )
+    
+    # Output Ports of the graph
+    #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' )
+    #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' )
+    #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' )
+    return GraphLoopSwitchOddEven
+
+
+GraphLoopSwitchOddEven = DefGraphLoopSwitchOddEven()
diff --git a/examples/GraphLoopSwitchOddEven.xml b/examples/GraphLoopSwitchOddEven.xml
new file mode 100644 (file)
index 0000000..219eeca
--- /dev/null
@@ -0,0 +1,377 @@
+<!DOCTYPE SuperGraph>
+<supergraph>
+<dataflow>
+<info-list>
+<node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>GraphLoopSwitchOddEven</node-name>
+    <kind>1</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>GraphLoopSwitchOddEven</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>InitLoop__Index</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>InitLoop__Min</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>InitLoop__Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>EndOfInitLoop__Index</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>EndOfInitLoop__Min</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>EndOfInitLoop__Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>22/10/2003 - 10:36:39</creation-date>
+    <lastmodification-date>14/2/2005 - 16:43:55</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>JR</author>
+    <container>?</container>
+    <comment>?</comment>
+    <x-position>0</x-position>
+    <y-position>0</y-position>   </node>  </info-list>
+  <node-list>
+<node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>IsOdd</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>IsOdd</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>IsOdd</FuncName>
+      <PyFunc><![CDATA[from time import *     ]]></PyFunc>
+      <PyFunc><![CDATA[def IsOdd(a) :         ]]></PyFunc>
+      <PyFunc><![CDATA[    print a,"IsOdd (GraphLoopSwitch1)"        ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep( 1 )     ]]></PyFunc>
+      <PyFunc><![CDATA[    return a       ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 16:43:55</creation-date>
+    <lastmodification-date>14/2/2005 - 16:43:55</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Python function</comment>
+    <x-position>397</x-position>
+    <y-position>1</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>InitLoop</node-name>
+    <kind>4</kind>
+    <coupled-node>EndOfInitLoop</coupled-node>
+    <service>
+<service-name>InitLoop</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Index</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Min</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Index</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Min</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>InitLoop</FuncName>
+      <PyFunc><![CDATA[def InitLoop(Index,Min,Max) : ]]></PyFunc>
+      <PyFunc><![CDATA[        Index = Min ]]></PyFunc>
+      <PyFunc><![CDATA[        return Index,Min,Max ]]></PyFunc>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>
+     <PyFunction>
+<FuncName>?</FuncName>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>
+     <PyFunction>
+<FuncName>?</FuncName>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 16:43:55</creation-date>
+    <lastmodification-date>14/2/2005 - 16:43:55</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>10</x-position>
+    <y-position>108</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>EndOfInitLoop</node-name>
+    <kind>5</kind>
+    <coupled-node>InitLoop</coupled-node>
+    <service>
+<service-name>EndOfInitLoop</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Index</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Min</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Index</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Min</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>EndOfInitLoop</FuncName>
+      <PyFunc><![CDATA[def EndOfInitLoop( DoLoop , Index , Min , Max ) :]]></PyFunc>
+      <PyFunc><![CDATA[        Index = Index + 1     ]]></PyFunc>
+      <PyFunc><![CDATA[        if Index <= Max :   ]]></PyFunc>
+      <PyFunc><![CDATA[                DoLoop = 1     ]]></PyFunc>
+      <PyFunc><![CDATA[        else :     ]]></PyFunc>
+      <PyFunc><![CDATA[                DoLoop = 0     ]]></PyFunc>
+      <PyFunc><![CDATA[        return DoLoop,Index,Min,Max     ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 16:43:55</creation-date>
+    <lastmodification-date>14/2/2005 - 16:43:55</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>767</x-position>
+    <y-position>102</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>Switch</node-name>
+    <kind>6</kind>
+    <coupled-node>EndSwitch</coupled-node>
+    <service>
+<service-name>Switch</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>int</outParameter-type>
+       <outParameter-name>Even</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>int</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>Switch</FuncName>
+      <PyFunc><![CDATA[from time import *  ]]></PyFunc>
+      <PyFunc><![CDATA[def Switch(a) :    ]]></PyFunc>
+      <PyFunc><![CDATA[    if ( a & 1 ) == 0 :  ]]></PyFunc>
+      <PyFunc><![CDATA[        sleep(1)  ]]></PyFunc>
+      <PyFunc><![CDATA[    return a & 1,1-(a&1),a    ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 16:43:55</creation-date>
+    <lastmodification-date>14/2/2005 - 16:43:55</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>194</x-position>
+    <y-position>109</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>EndSwitch</node-name>
+    <kind>7</kind>
+    <coupled-node>Switch</coupled-node>
+    <service>
+<service-name>EndSwitch</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>EndSwitch</FuncName>
+      <PyFunc><![CDATA[def EndSwitch(a) : ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1)   ]]></PyFunc>
+      <PyFunc><![CDATA[    return a     ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 16:43:55</creation-date>
+    <lastmodification-date>14/2/2005 - 16:43:55</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>587</x-position>
+    <y-position>103</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>IsEven</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>IsEven</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>IsEven</FuncName>
+      <PyFunc><![CDATA[from time import * ]]></PyFunc>
+      <PyFunc><![CDATA[def IsEven(a) : ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1) ]]></PyFunc>
+      <PyFunc><![CDATA[    return a  ]]></PyFunc>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 16:43:55</creation-date>
+    <lastmodification-date>14/2/2005 - 16:43:55</lastmodification-date>
+    <editor-release>2.0</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>400</x-position>
+    <y-position>160</y-position>   </node>  </node-list>
+  <link-list>
+<link>
+<fromnode-name>IsOdd</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndSwitch</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>InitLoop</fromnode-name>
+    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+    <tonode-name>EndOfInitLoop</tonode-name>
+    <toserviceparameter-name>DoLoop</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>InitLoop</fromnode-name>
+    <fromserviceparameter-name>Index</fromserviceparameter-name>
+    <tonode-name>Switch</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>InitLoop</fromnode-name>
+    <fromserviceparameter-name>Min</fromserviceparameter-name>
+    <tonode-name>EndOfInitLoop</tonode-name>
+    <toserviceparameter-name>Min</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>InitLoop</fromnode-name>
+    <fromserviceparameter-name>Max</fromserviceparameter-name>
+    <tonode-name>EndOfInitLoop</tonode-name>
+    <toserviceparameter-name>Max</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndOfInitLoop</fromnode-name>
+    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+    <tonode-name>InitLoop</tonode-name>
+    <toserviceparameter-name>DoLoop</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Switch</fromnode-name>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>IsOdd</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Switch</fromnode-name>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>IsEven</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Switch</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>IsOdd</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Switch</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>IsEven</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndSwitch</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfInitLoop</tonode-name>
+    <toserviceparameter-name>Index</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>IsEven</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndSwitch</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>  </link-list>
+  <data-list>
+<data>
+<fromnode-name>GraphLoopSwitchOddEven</fromnode-name>
+    <fromserviceparameter-name>InitLoop__Index</fromserviceparameter-name>
+    <tonode-name>InitLoop</tonode-name>
+    <toserviceparameter-name>Index</toserviceparameter-name>
+    <data-value>
+<value-type>3</value-type>
+     <value>0</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
+<fromnode-name>GraphLoopSwitchOddEven</fromnode-name>
+    <fromserviceparameter-name>InitLoop__Min</fromserviceparameter-name>
+    <tonode-name>InitLoop</tonode-name>
+    <toserviceparameter-name>Min</toserviceparameter-name>
+    <data-value>
+<value-type>3</value-type>
+     <value>5</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
+<fromnode-name>GraphLoopSwitchOddEven</fromnode-name>
+    <fromserviceparameter-name>InitLoop__Max</fromserviceparameter-name>
+    <tonode-name>InitLoop</tonode-name>
+    <toserviceparameter-name>Max</toserviceparameter-name>
+    <data-value>
+<value-type>3</value-type>
+     <value>23</value>    </data-value>
+    <coord-list/>   </data>  </data-list> </dataflow></supergraph>
diff --git a/examples/GraphLoopSwitchOfSwitch1.py b/examples/GraphLoopSwitchOfSwitch1.py
new file mode 100644 (file)
index 0000000..00f5c14
--- /dev/null
@@ -0,0 +1,249 @@
+
+# Generated python file of Graph GraphLoopSwitchOfSwitch1
+
+from SuperV import *
+
+# Graph creation of GraphLoopSwitchOfSwitch1
+def DefGraphLoopSwitchOfSwitch1() :
+    GraphLoopSwitchOfSwitch1 = Graph( 'GraphLoopSwitchOfSwitch1' )
+    GraphLoopSwitchOfSwitch1.SetName( 'GraphLoopSwitchOfSwitch1' )
+    GraphLoopSwitchOfSwitch1.SetAuthor( 'JR' )
+    GraphLoopSwitchOfSwitch1.SetComment( 'DefaultPorts of SwitchOdd and EndSwitchOdd are not connected but that link was not used' )
+    GraphLoopSwitchOfSwitch1.Coords( 0 , 0 )
+    
+    # Creation of Factory Nodes
+    
+    # Creation of InLine Nodes
+    PyIsEven = []
+    PyIsEven.append( 'from time import *    ' )
+    PyIsEven.append( 'def IsEven(a) :        ' )
+    PyIsEven.append( '    print a,"IsEven (GraphSwitch)"       ' )
+    PyIsEven.append( '    sleep( 1 )    ' )
+    PyIsEven.append( '    return a      ' )
+    IsEven = GraphLoopSwitchOfSwitch1.INode( 'IsEven' , PyIsEven )
+    IsEven.SetName( 'IsEven' )
+    IsEven.SetAuthor( '' )
+    IsEven.SetComment( 'Compute Node' )
+    IsEven.Coords( 437 , 520 )
+    IIsEvena = IsEven.InPort( 'a' , 'long' )
+    IIsEvenGate = IsEven.GetInPort( 'Gate' )
+    OIsEvena = IsEven.OutPort( 'a' , 'long' )
+    OIsEvenGate = IsEven.GetOutPort( 'Gate' )
+    
+    PyPseudoPOne = []
+    PyPseudoPOne.append( 'from time import * ' )
+    PyPseudoPOne.append( 'def PseudoPOne(POne) : ' )
+    PyPseudoPOne.append( '    sleep(1) ' )
+    PyPseudoPOne.append( '    return 6*POne+1  ' )
+    PseudoPOne = GraphLoopSwitchOfSwitch1.INode( 'PseudoPOne' , PyPseudoPOne )
+    PseudoPOne.SetName( 'PseudoPOne' )
+    PseudoPOne.SetAuthor( '' )
+    PseudoPOne.SetComment( 'Compute Node' )
+    PseudoPOne.Coords( 612 , 5 )
+    IPseudoPOnePOne = PseudoPOne.InPort( 'POne' , 'long' )
+    IPseudoPOneGate = PseudoPOne.GetInPort( 'Gate' )
+    OPseudoPOnea = PseudoPOne.OutPort( 'a' , 'long' )
+    OPseudoPOneGate = PseudoPOne.GetOutPort( 'Gate' )
+    
+    PyPseudoPThree = []
+    PyPseudoPThree.append( 'from time import * ' )
+    PyPseudoPThree.append( 'def PseudoPThree_1(PThree) : ' )
+    PyPseudoPThree.append( '    sleep(1) ' )
+    PyPseudoPThree.append( '    return 6*PThree+3  ' )
+    PseudoPThree = GraphLoopSwitchOfSwitch1.INode( 'PseudoPThree_1' , PyPseudoPThree )
+    PseudoPThree.SetName( 'PseudoPThree' )
+    PseudoPThree.SetAuthor( '' )
+    PseudoPThree.SetComment( 'Compute Node' )
+    PseudoPThree.Coords( 620 , 149 )
+    IPseudoPThreePThree = PseudoPThree.InPort( 'PThree' , 'long' )
+    IPseudoPThreeGate = PseudoPThree.GetInPort( 'Gate' )
+    OPseudoPThreea = PseudoPThree.OutPort( 'a' , 'long' )
+    OPseudoPThreeGate = PseudoPThree.GetOutPort( 'Gate' )
+    
+    PyPseudoPFive = []
+    PyPseudoPFive.append( 'from time import * ' )
+    PyPseudoPFive.append( 'def PseudoPFive(PFive) : ' )
+    PyPseudoPFive.append( '    sleep(1) ' )
+    PyPseudoPFive.append( '    return 6*PFive+5  ' )
+    PseudoPFive = GraphLoopSwitchOfSwitch1.INode( 'PseudoPFive' , PyPseudoPFive )
+    PseudoPFive.SetName( 'PseudoPFive' )
+    PseudoPFive.SetAuthor( '' )
+    PseudoPFive.SetComment( 'Compute Node' )
+    PseudoPFive.Coords( 625 , 343 )
+    IPseudoPFivePFive = PseudoPFive.InPort( 'PFive' , 'long' )
+    IPseudoPFiveGate = PseudoPFive.GetInPort( 'Gate' )
+    OPseudoPFivea = PseudoPFive.OutPort( 'a' , 'long' )
+    OPseudoPFiveGate = PseudoPFive.GetOutPort( 'Gate' )
+    
+    # Creation of Loop Nodes
+    PyLoopSwitch = []
+    PyLoopSwitch.append( 'def InitLoop(Index,Min,Max) :       ' )
+    PyLoopSwitch.append( '     Index = Max ' )
+    PyLoopSwitch.append( '     return Index,Min,Max      ' )
+    PyMoreLoopSwitch = []
+    PyMoreLoopSwitch.append( 'def MoreLoop(Index,Min,Max) :      ' )
+    PyMoreLoopSwitch.append( ' if Index >= Min :    ' )
+    PyMoreLoopSwitch.append( '         DoLoop = 1      ' )
+    PyMoreLoopSwitch.append( ' else :      ' )
+    PyMoreLoopSwitch.append( '         DoLoop = 0      ' )
+    PyMoreLoopSwitch.append( ' return DoLoop,Index,Min,Max      ' )
+    PyNextLoopSwitch = []
+    PyNextLoopSwitch.append( 'def NextLoop(Index,Min,Max) :      ' )
+    PyNextLoopSwitch.append( ' Index = Index - 1      ' )
+    PyNextLoopSwitch.append( ' return Index,Min,Max      ' )
+    LoopSwitch,EndOfLoopSwitch = GraphLoopSwitchOfSwitch1.LNode( 'InitLoop' , PyLoopSwitch , 'MoreLoop' , PyMoreLoopSwitch , 'NextLoop' , PyNextLoopSwitch )
+    EndOfLoopSwitch.SetName( 'EndOfLoopSwitch' )
+    EndOfLoopSwitch.SetAuthor( '' )
+    EndOfLoopSwitch.SetComment( 'Compute Node' )
+    EndOfLoopSwitch.Coords( 1268 , 210 )
+    PyEndOfLoopSwitch = []
+    EndOfLoopSwitch.SetPyFunction( '' , PyEndOfLoopSwitch )
+    ILoopSwitchDoLoop = LoopSwitch.GetInPort( 'DoLoop' )
+    ILoopSwitchIndex = LoopSwitch.InPort( 'Index' , 'long' )
+    ILoopSwitchMin = LoopSwitch.InPort( 'Min' , 'long' )
+    ILoopSwitchMax = LoopSwitch.InPort( 'Max' , 'long' )
+    ILoopSwitchGate = LoopSwitch.GetInPort( 'Gate' )
+    OLoopSwitchDoLoop = LoopSwitch.GetOutPort( 'DoLoop' )
+    OLoopSwitchIndex = LoopSwitch.GetOutPort( 'Index' )
+    OLoopSwitchMin = LoopSwitch.GetOutPort( 'Min' )
+    OLoopSwitchMax = LoopSwitch.GetOutPort( 'Max' )
+    IEndOfLoopSwitchDoLoop = EndOfLoopSwitch.GetInPort( 'DoLoop' )
+    IEndOfLoopSwitchIndex = EndOfLoopSwitch.GetInPort( 'Index' )
+    IEndOfLoopSwitchMin = EndOfLoopSwitch.GetInPort( 'Min' )
+    IEndOfLoopSwitchMax = EndOfLoopSwitch.GetInPort( 'Max' )
+    IEndOfLoopSwitchGate = EndOfLoopSwitch.GetInPort( 'Gate' )
+    OEndOfLoopSwitchDoLoop = EndOfLoopSwitch.GetOutPort( 'DoLoop' )
+    OEndOfLoopSwitchIndex = EndOfLoopSwitch.GetOutPort( 'Index' )
+    OEndOfLoopSwitchMin = EndOfLoopSwitch.GetOutPort( 'Min' )
+    OEndOfLoopSwitchMax = EndOfLoopSwitch.GetOutPort( 'Max' )
+    OEndOfLoopSwitchGate = EndOfLoopSwitch.GetOutPort( 'Gate' )
+    LoopSwitch.SetName( 'LoopSwitch' )
+    LoopSwitch.SetAuthor( '' )
+    LoopSwitch.SetComment( 'Compute Node' )
+    LoopSwitch.Coords( 6 , 233 )
+    
+    # Creation of Switch Nodes
+    PySwitch = []
+    PySwitch.append( 'from time import *       ' )
+    PySwitch.append( 'def Switch(a) :   ' )
+    PySwitch.append( '    sleep(1)   ' )
+    PySwitch.append( '    if a <= 0 :      ' )
+    PySwitch.append( '        return 0,a,0 ' )
+    PySwitch.append( '    return a & 1,a,1-(a&1)        ' )
+    Switch,EndOfSwitch = GraphLoopSwitchOfSwitch1.SNode( 'Switch' , PySwitch )
+    EndOfSwitch.SetName( 'EndOfSwitch' )
+    EndOfSwitch.SetAuthor( '' )
+    EndOfSwitch.SetComment( 'Compute Node' )
+    EndOfSwitch.Coords( 1075 , 210 )
+    PyEndOfSwitch = []
+    EndOfSwitch.SetPyFunction( 'EndSwitch_1' , PyEndOfSwitch )
+    IEndOfSwitcha = EndOfSwitch.InPort( 'a' , 'long' )
+    IEndOfSwitchDefault = EndOfSwitch.GetInPort( 'Default' )
+    OEndOfSwitcha = EndOfSwitch.OutPort( 'a' , 'long' )
+    OEndOfSwitchGate = EndOfSwitch.GetOutPort( 'Gate' )
+    Switch.SetName( 'Switch' )
+    Switch.SetAuthor( '' )
+    Switch.SetComment( 'Compute Node' )
+    Switch.Coords( 201 , 233 )
+    ISwitcha = Switch.InPort( 'a' , 'long' )
+    ISwitchGate = Switch.GetInPort( 'Gate' )
+    OSwitchOdd = Switch.OutPort( 'Odd' , 'long' )
+    OSwitcha = Switch.OutPort( 'a' , 'int' )
+    OSwitchEven = Switch.OutPort( 'Even' , 'boolean' )
+    OSwitchDefault = Switch.GetOutPort( 'Default' )
+    
+    PySwitchOdd = []
+    PySwitchOdd.append( 'def SwitchOdd(a) :   ' )
+    PySwitchOdd.append( '    n = a/6   ' )
+    PySwitchOdd.append( '    r = a%6   ' )
+    PySwitchOdd.append( '    POne = 0   ' )
+    PySwitchOdd.append( '    PThree = 0   ' )
+    PySwitchOdd.append( '    PFive = 0   ' )
+    PySwitchOdd.append( '    if r == 1 :   ' )
+    PySwitchOdd.append( '        POne = 1  ' )
+    PySwitchOdd.append( '    if r == 3 :   ' )
+    PySwitchOdd.append( '        PThree = 1  ' )
+    PySwitchOdd.append( '    if r == 5 :   ' )
+    PySwitchOdd.append( '        PFive = 1  ' )
+    PySwitchOdd.append( '    return POne,PThree,PFive,n ' )
+    SwitchOdd,EndOfSwitchOdd = GraphLoopSwitchOfSwitch1.SNode( 'SwitchOdd' , PySwitchOdd )
+    EndOfSwitchOdd.SetName( 'EndOfSwitchOdd' )
+    EndOfSwitchOdd.SetAuthor( '' )
+    EndOfSwitchOdd.SetComment( 'Compute Node' )
+    EndOfSwitchOdd.Coords( 851 , 210 )
+    PyEndOfSwitchOdd = []
+    EndOfSwitchOdd.SetPyFunction( 'EndSwitch' , PyEndOfSwitchOdd )
+    IEndOfSwitchOddn = EndOfSwitchOdd.InPort( 'n' , 'long' )
+    IEndOfSwitchOddDefault = EndOfSwitchOdd.GetInPort( 'Default' )
+    OEndOfSwitchOddn = EndOfSwitchOdd.OutPort( 'n' , 'long' )
+    OEndOfSwitchOddGate = EndOfSwitchOdd.GetOutPort( 'Gate' )
+    SwitchOdd.SetName( 'SwitchOdd' )
+    SwitchOdd.SetAuthor( '' )
+    SwitchOdd.SetComment( 'Compute Node' )
+    SwitchOdd.Coords( 412 , 169 )
+    ISwitchOdda = SwitchOdd.InPort( 'a' , 'long' )
+    ISwitchOddGate = SwitchOdd.GetInPort( 'Gate' )
+    OSwitchOddPOne = SwitchOdd.OutPort( 'POne' , 'boolean' )
+    OSwitchOddPThree = SwitchOdd.OutPort( 'PThree' , 'boolean' )
+    OSwitchOddPFive = SwitchOdd.OutPort( 'PFive' , 'boolean' )
+    OSwitchOddn = SwitchOdd.OutPort( 'n' , 'long' )
+    OSwitchOddDefault = SwitchOdd.GetOutPort( 'Default' )
+    
+    # Creation of Links
+    LLoopSwitchIndexSwitcha = GraphLoopSwitchOfSwitch1.Link( OLoopSwitchIndex , ISwitcha )
+    
+    LLoopSwitchMinEndOfLoopSwitchMin = GraphLoopSwitchOfSwitch1.Link( OLoopSwitchMin , IEndOfLoopSwitchMin )
+    
+    LLoopSwitchMaxEndOfLoopSwitchMax = GraphLoopSwitchOfSwitch1.Link( OLoopSwitchMax , IEndOfLoopSwitchMax )
+    
+    LIsEvenaEndOfSwitcha = GraphLoopSwitchOfSwitch1.Link( OIsEvena , IEndOfSwitcha )
+    LIsEvenaEndOfSwitcha.AddCoord( 1 , 719 , 591 )
+    
+    LSwitchOddSwitchOddGate = GraphLoopSwitchOfSwitch1.Link( OSwitchOdd , ISwitchOddGate )
+    
+    LSwitchaIsEvena = GraphLoopSwitchOfSwitch1.Link( OSwitcha , IIsEvena )
+    
+    LSwitchaSwitchOdda = GraphLoopSwitchOfSwitch1.Link( OSwitcha , ISwitchOdda )
+    
+    LSwitchEvenIsEvenGate = GraphLoopSwitchOfSwitch1.Link( OSwitchEven , IIsEvenGate )
+    
+    LSwitchDefaultEndOfSwitchDefault = GraphLoopSwitchOfSwitch1.Link( OSwitchDefault , IEndOfSwitchDefault )
+    LSwitchDefaultEndOfSwitchDefault.AddCoord( 1 , 1057 , 267 )
+    LSwitchDefaultEndOfSwitchDefault.AddCoord( 2 , 1079 , 669 )
+    LSwitchDefaultEndOfSwitchDefault.AddCoord( 3 , 383 , 666 )
+    
+    LEndOfSwitchaEndOfLoopSwitchIndex = GraphLoopSwitchOfSwitch1.Link( OEndOfSwitcha , IEndOfLoopSwitchIndex )
+    
+    LSwitchOddPOnePseudoPOneGate = GraphLoopSwitchOfSwitch1.Link( OSwitchOddPOne , IPseudoPOneGate )
+    
+    LSwitchOddPThreePseudoPThreeGate = GraphLoopSwitchOfSwitch1.Link( OSwitchOddPThree , IPseudoPThreeGate )
+    
+    LSwitchOddPFivePseudoPFiveGate = GraphLoopSwitchOfSwitch1.Link( OSwitchOddPFive , IPseudoPFiveGate )
+    
+    LSwitchOddnPseudoPOnePOne = GraphLoopSwitchOfSwitch1.Link( OSwitchOddn , IPseudoPOnePOne )
+    
+    LSwitchOddnPseudoPThreePThree = GraphLoopSwitchOfSwitch1.Link( OSwitchOddn , IPseudoPThreePThree )
+    
+    LSwitchOddnPseudoPFivePFive = GraphLoopSwitchOfSwitch1.Link( OSwitchOddn , IPseudoPFivePFive )
+    
+    LEndOfSwitchOddnEndOfSwitcha = GraphLoopSwitchOfSwitch1.Link( OEndOfSwitchOddn , IEndOfSwitcha )
+    
+    LPseudoPOneaEndOfSwitchOddn = GraphLoopSwitchOfSwitch1.Link( OPseudoPOnea , IEndOfSwitchOddn )
+    
+    LPseudoPThreeaEndOfSwitchOddn = GraphLoopSwitchOfSwitch1.Link( OPseudoPThreea , IEndOfSwitchOddn )
+    
+    LPseudoPFiveaEndOfSwitchOddn = GraphLoopSwitchOfSwitch1.Link( OPseudoPFivea , IEndOfSwitchOddn )
+    
+    # Input datas
+    ILoopSwitchIndex.Input( 0 )
+    ILoopSwitchMin.Input( -5 )
+    ILoopSwitchMax.Input( 65 )
+    
+    # Output Ports of the graph
+    #OEndOfLoopSwitchIndex = EndOfLoopSwitch.GetOutPort( 'Index' )
+    #OEndOfLoopSwitchMin = EndOfLoopSwitch.GetOutPort( 'Min' )
+    #OEndOfLoopSwitchMax = EndOfLoopSwitch.GetOutPort( 'Max' )
+    return GraphLoopSwitchOfSwitch1
+
+
+GraphLoopSwitchOfSwitch1 = DefGraphLoopSwitchOfSwitch1()
diff --git a/examples/GraphLoopSwitchOfSwitch1.xml b/examples/GraphLoopSwitchOfSwitch1.xml
new file mode 100644 (file)
index 0000000..2b0407b
--- /dev/null
@@ -0,0 +1,590 @@
+<!DOCTYPE SuperGraph>
+<supergraph>
+<dataflow>
+<info-list>
+<node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>GraphLoopSwitchOfSwitch1</node-name>
+    <kind>1</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>GraphLoopSwitchOfSwitch1</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>LoopSwitch__Index</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>LoopSwitch__Min</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>LoopSwitch__Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>EndOfLoopSwitch__Index</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>EndOfLoopSwitch__Min</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>EndOfLoopSwitch__Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>1/10/2003 - 17:23:54</creation-date>
+    <lastmodification-date>11/2/2005 - 12:16:50</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>JR</author>
+    <container>?</container>
+    <comment>DefaultPorts of SwitchOdd and EndSwitchOdd are not connected but that link was not used</comment>
+    <x-position>0</x-position>
+    <y-position>0</y-position>   </node>  </info-list>
+  <node-list>
+<node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>LoopSwitch</node-name>
+    <kind>4</kind>
+    <coupled-node>EndOfLoopSwitch</coupled-node>
+    <service>
+<service-name>LoopSwitch</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Index</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Min</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Index</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Min</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>InitLoop</FuncName>
+      <PyFunc><![CDATA[def InitLoop(Index,Min,Max) :       ]]></PyFunc>
+      <PyFunc><![CDATA[        Index = Max ]]></PyFunc>
+      <PyFunc><![CDATA[        return Index,Min,Max      ]]></PyFunc>     </PyFunction>
+     <PyFunction>
+<FuncName>MoreLoop</FuncName>
+      <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) :      ]]></PyFunc>
+      <PyFunc><![CDATA[        if Index >= Min :    ]]></PyFunc>
+      <PyFunc><![CDATA[                DoLoop = 1      ]]></PyFunc>
+      <PyFunc><![CDATA[        else :      ]]></PyFunc>
+      <PyFunc><![CDATA[                DoLoop = 0      ]]></PyFunc>
+      <PyFunc><![CDATA[        return DoLoop,Index,Min,Max      ]]></PyFunc>     </PyFunction>
+     <PyFunction>
+<FuncName>NextLoop</FuncName>
+      <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>11/2/2005 - 12:10:26</creation-date>
+    <lastmodification-date>11/2/2005 - 12:10:26</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>6</x-position>
+    <y-position>233</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>EndOfLoopSwitch</node-name>
+    <kind>5</kind>
+    <coupled-node>LoopSwitch</coupled-node>
+    <service>
+<service-name>EndOfLoopSwitch</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Index</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Min</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Index</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Min</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>?</FuncName>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 12:10:26</creation-date>
+    <lastmodification-date>11/2/2005 - 12:10:26</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>1268</x-position>
+    <y-position>210</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>IsEven</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>IsEven</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>IsEven</FuncName>
+      <PyFunc><![CDATA[from time import *    ]]></PyFunc>
+      <PyFunc><![CDATA[def IsEven(a) :        ]]></PyFunc>
+      <PyFunc><![CDATA[    print a,"IsEven (GraphSwitch)"       ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep( 1 )    ]]></PyFunc>
+      <PyFunc><![CDATA[    return a      ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 12:10:26</creation-date>
+    <lastmodification-date>11/2/2005 - 12:10:26</lastmodification-date>
+    <editor-release>2.0</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>437</x-position>
+    <y-position>520</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>Switch</node-name>
+    <kind>6</kind>
+    <coupled-node>EndOfSwitch</coupled-node>
+    <service>
+<service-name>Switch</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>int</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>boolean</outParameter-type>
+       <outParameter-name>Even</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>Switch</FuncName>
+      <PyFunc><![CDATA[from time import *       ]]></PyFunc>
+      <PyFunc><![CDATA[def Switch(a) :   ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1)   ]]></PyFunc>
+      <PyFunc><![CDATA[    if a <= 0 :      ]]></PyFunc>
+      <PyFunc><![CDATA[        return 0,a,0 ]]></PyFunc>
+      <PyFunc><![CDATA[    return a & 1,a,1-(a&1)        ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 12:10:26</creation-date>
+    <lastmodification-date>11/2/2005 - 12:10:26</lastmodification-date>
+    <editor-release>2.0</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>201</x-position>
+    <y-position>233</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>EndOfSwitch</node-name>
+    <kind>7</kind>
+    <coupled-node>Switch</coupled-node>
+    <service>
+<service-name>EndOfSwitch</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>EndSwitch_1</FuncName>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 12:10:26</creation-date>
+    <lastmodification-date>11/2/2005 - 12:10:26</lastmodification-date>
+    <editor-release>2.0</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>1075</x-position>
+    <y-position>210</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>SwitchOdd</node-name>
+    <kind>6</kind>
+    <coupled-node>EndOfSwitchOdd</coupled-node>
+    <service>
+<service-name>SwitchOdd</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>boolean</outParameter-type>
+       <outParameter-name>POne</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>boolean</outParameter-type>
+       <outParameter-name>PThree</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>boolean</outParameter-type>
+       <outParameter-name>PFive</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>n</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>SwitchOdd</FuncName>
+      <PyFunc><![CDATA[def SwitchOdd(a) :   ]]></PyFunc>
+      <PyFunc><![CDATA[    n = a/6   ]]></PyFunc>
+      <PyFunc><![CDATA[    r = a%6   ]]></PyFunc>
+      <PyFunc><![CDATA[    POne = 0   ]]></PyFunc>
+      <PyFunc><![CDATA[    PThree = 0   ]]></PyFunc>
+      <PyFunc><![CDATA[    PFive = 0   ]]></PyFunc>
+      <PyFunc><![CDATA[    if r == 1 :   ]]></PyFunc>
+      <PyFunc><![CDATA[        POne = 1  ]]></PyFunc>
+      <PyFunc><![CDATA[    if r == 3 :   ]]></PyFunc>
+      <PyFunc><![CDATA[        PThree = 1  ]]></PyFunc>
+      <PyFunc><![CDATA[    if r == 5 :   ]]></PyFunc>
+      <PyFunc><![CDATA[        PFive = 1  ]]></PyFunc>
+      <PyFunc><![CDATA[    return POne,PThree,PFive,n ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 12:10:26</creation-date>
+    <lastmodification-date>11/2/2005 - 12:10:26</lastmodification-date>
+    <editor-release>2.0</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>412</x-position>
+    <y-position>169</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>EndOfSwitchOdd</node-name>
+    <kind>7</kind>
+    <coupled-node>SwitchOdd</coupled-node>
+    <service>
+<service-name>EndOfSwitchOdd</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>n</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>n</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>EndSwitch</FuncName>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 12:10:26</creation-date>
+    <lastmodification-date>11/2/2005 - 12:10:26</lastmodification-date>
+    <editor-release>2.0</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>851</x-position>
+    <y-position>210</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>PseudoPOne</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>PseudoPOne</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>POne</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>PseudoPOne</FuncName>
+      <PyFunc><![CDATA[from time import * ]]></PyFunc>
+      <PyFunc><![CDATA[def PseudoPOne(POne) : ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1) ]]></PyFunc>
+      <PyFunc><![CDATA[    return 6*POne+1  ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 12:10:26</creation-date>
+    <lastmodification-date>11/2/2005 - 12:10:26</lastmodification-date>
+    <editor-release>2.0</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>612</x-position>
+    <y-position>5</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>PseudoPThree</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>PseudoPThree</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>PThree</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>PseudoPThree_1</FuncName>
+      <PyFunc><![CDATA[from time import * ]]></PyFunc>
+      <PyFunc><![CDATA[def PseudoPThree_1(PThree) : ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1) ]]></PyFunc>
+      <PyFunc><![CDATA[    return 6*PThree+3  ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 12:10:26</creation-date>
+    <lastmodification-date>11/2/2005 - 12:10:26</lastmodification-date>
+    <editor-release>2.0</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>620</x-position>
+    <y-position>149</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>PseudoPFive</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>PseudoPFive</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>PFive</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>PseudoPFive</FuncName>
+      <PyFunc><![CDATA[from time import * ]]></PyFunc>
+      <PyFunc><![CDATA[def PseudoPFive(PFive) : ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1) ]]></PyFunc>
+      <PyFunc><![CDATA[    return 6*PFive+5  ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 12:10:26</creation-date>
+    <lastmodification-date>11/2/2005 - 12:10:26</lastmodification-date>
+    <editor-release>2.0</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>625</x-position>
+    <y-position>343</y-position>   </node>  </node-list>
+  <link-list>
+<link>
+<fromnode-name>LoopSwitch</fromnode-name>
+    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+    <tonode-name>EndOfLoopSwitch</tonode-name>
+    <toserviceparameter-name>DoLoop</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>LoopSwitch</fromnode-name>
+    <fromserviceparameter-name>Index</fromserviceparameter-name>
+    <tonode-name>Switch</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>LoopSwitch</fromnode-name>
+    <fromserviceparameter-name>Min</fromserviceparameter-name>
+    <tonode-name>EndOfLoopSwitch</tonode-name>
+    <toserviceparameter-name>Min</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>LoopSwitch</fromnode-name>
+    <fromserviceparameter-name>Max</fromserviceparameter-name>
+    <tonode-name>EndOfLoopSwitch</tonode-name>
+    <toserviceparameter-name>Max</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndOfLoopSwitch</fromnode-name>
+    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+    <tonode-name>LoopSwitch</tonode-name>
+    <toserviceparameter-name>DoLoop</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>IsEven</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfSwitch</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list>
+<coord>
+<x>719</x>
+      <y>591</y>     </coord>    </coord-list>   </link>
+   <link>
+<fromnode-name>Switch</fromnode-name>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>SwitchOdd</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Switch</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>IsEven</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Switch</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>SwitchOdd</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Switch</fromnode-name>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>IsEven</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Switch</fromnode-name>
+    <fromserviceparameter-name>Default</fromserviceparameter-name>
+    <tonode-name>EndOfSwitch</tonode-name>
+    <toserviceparameter-name>Default</toserviceparameter-name>
+    <coord-list>
+<coord>
+<x>1057</x>
+      <y>267</y>     </coord>
+     <coord>
+<x>1079</x>
+      <y>669</y>     </coord>
+     <coord>
+<x>383</x>
+      <y>666</y>     </coord>    </coord-list>   </link>
+   <link>
+<fromnode-name>EndOfSwitch</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfLoopSwitch</tonode-name>
+    <toserviceparameter-name>Index</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>POne</fromserviceparameter-name>
+    <tonode-name>PseudoPOne</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>PThree</fromserviceparameter-name>
+    <tonode-name>PseudoPThree</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>PFive</fromserviceparameter-name>
+    <tonode-name>PseudoPFive</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>n</fromserviceparameter-name>
+    <tonode-name>PseudoPOne</tonode-name>
+    <toserviceparameter-name>POne</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>n</fromserviceparameter-name>
+    <tonode-name>PseudoPThree</tonode-name>
+    <toserviceparameter-name>PThree</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>n</fromserviceparameter-name>
+    <tonode-name>PseudoPFive</tonode-name>
+    <toserviceparameter-name>PFive</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndOfSwitchOdd</fromnode-name>
+    <fromserviceparameter-name>n</fromserviceparameter-name>
+    <tonode-name>EndOfSwitch</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>PseudoPOne</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchOdd</tonode-name>
+    <toserviceparameter-name>n</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>PseudoPThree</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchOdd</tonode-name>
+    <toserviceparameter-name>n</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>PseudoPFive</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchOdd</tonode-name>
+    <toserviceparameter-name>n</toserviceparameter-name>
+    <coord-list/>   </link>  </link-list>
+  <data-list>
+<data>
+<fromnode-name>GraphLoopSwitchOfSwitch1</fromnode-name>
+    <fromserviceparameter-name>LoopSwitch__Index</fromserviceparameter-name>
+    <tonode-name>LoopSwitch</tonode-name>
+    <toserviceparameter-name>Index</toserviceparameter-name>
+    <data-value>
+<value-type>3</value-type>
+     <value>0</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
+<fromnode-name>GraphLoopSwitchOfSwitch1</fromnode-name>
+    <fromserviceparameter-name>LoopSwitch__Min</fromserviceparameter-name>
+    <tonode-name>LoopSwitch</tonode-name>
+    <toserviceparameter-name>Min</toserviceparameter-name>
+    <data-value>
+<value-type>3</value-type>
+     <value>-5</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
+<fromnode-name>GraphLoopSwitchOfSwitch1</fromnode-name>
+    <fromserviceparameter-name>LoopSwitch__Max</fromserviceparameter-name>
+    <tonode-name>LoopSwitch</tonode-name>
+    <toserviceparameter-name>Max</toserviceparameter-name>
+    <data-value>
+<value-type>3</value-type>
+     <value>65</value>    </data-value>
+    <coord-list/>   </data>  </data-list> </dataflow></supergraph>
diff --git a/examples/GraphLoopSwitchOfSwitchAborted.py b/examples/GraphLoopSwitchOfSwitchAborted.py
new file mode 100644 (file)
index 0000000..93381b1
--- /dev/null
@@ -0,0 +1,244 @@
+
+# Generated python file of Graph GraphLoopSwitchOfSwitchAborted
+
+from SuperV import *
+
+# Graph creation of GraphLoopSwitchOfSwitchAborted
+def DefGraphLoopSwitchOfSwitchAborted() :
+    GraphLoopSwitchOfSwitchAborted = Graph( 'GraphLoopSwitchOfSwitchAborted' )
+    GraphLoopSwitchOfSwitchAborted.SetName( 'GraphLoopSwitchOfSwitchAborted' )
+    GraphLoopSwitchOfSwitchAborted.SetAuthor( 'JR' )
+    GraphLoopSwitchOfSwitchAborted.SetComment( 'DefaultPorts of SwitchOdd and EndSwitchOdd are not connected but that link was not used. DefaultPorts of Switch and EndSwitch are not linked ==> ABORT' )
+    GraphLoopSwitchOfSwitchAborted.Coords( 0 , 0 )
+    
+    # Creation of Factory Nodes
+    
+    # Creation of InLine Nodes
+    PyIsEven = []
+    PyIsEven.append( 'from time import *    ' )
+    PyIsEven.append( 'def IsEven(a) :        ' )
+    PyIsEven.append( '    print a,"IsEven (GraphSwitch)"       ' )
+    PyIsEven.append( '    sleep( 1 )    ' )
+    PyIsEven.append( '    return a      ' )
+    IsEven = GraphLoopSwitchOfSwitchAborted.INode( 'IsEven' , PyIsEven )
+    IsEven.SetName( 'IsEven' )
+    IsEven.SetAuthor( '' )
+    IsEven.SetComment( 'Compute Node' )
+    IsEven.Coords( 437 , 520 )
+    IIsEvena = IsEven.InPort( 'a' , 'long' )
+    IIsEvenGate = IsEven.GetInPort( 'Gate' )
+    OIsEvena = IsEven.OutPort( 'a' , 'long' )
+    OIsEvenGate = IsEven.GetOutPort( 'Gate' )
+    
+    PyPseudoPOne = []
+    PyPseudoPOne.append( 'from time import * ' )
+    PyPseudoPOne.append( 'def PseudoPOne(POne) : ' )
+    PyPseudoPOne.append( '    sleep(1) ' )
+    PyPseudoPOne.append( '    return 6*POne+1  ' )
+    PseudoPOne = GraphLoopSwitchOfSwitchAborted.INode( 'PseudoPOne' , PyPseudoPOne )
+    PseudoPOne.SetName( 'PseudoPOne' )
+    PseudoPOne.SetAuthor( '' )
+    PseudoPOne.SetComment( 'Compute Node' )
+    PseudoPOne.Coords( 612 , 5 )
+    IPseudoPOnePOne = PseudoPOne.InPort( 'POne' , 'long' )
+    IPseudoPOneGate = PseudoPOne.GetInPort( 'Gate' )
+    OPseudoPOnea = PseudoPOne.OutPort( 'a' , 'long' )
+    OPseudoPOneGate = PseudoPOne.GetOutPort( 'Gate' )
+    
+    PyPseudoPThree = []
+    PyPseudoPThree.append( 'from time import * ' )
+    PyPseudoPThree.append( 'def PseudoPThree_1(PThree) : ' )
+    PyPseudoPThree.append( '    sleep(1) ' )
+    PyPseudoPThree.append( '    return 6*PThree+3  ' )
+    PseudoPThree = GraphLoopSwitchOfSwitchAborted.INode( 'PseudoPThree_1' , PyPseudoPThree )
+    PseudoPThree.SetName( 'PseudoPThree' )
+    PseudoPThree.SetAuthor( '' )
+    PseudoPThree.SetComment( 'Compute Node' )
+    PseudoPThree.Coords( 620 , 149 )
+    IPseudoPThreePThree = PseudoPThree.InPort( 'PThree' , 'long' )
+    IPseudoPThreeGate = PseudoPThree.GetInPort( 'Gate' )
+    OPseudoPThreea = PseudoPThree.OutPort( 'a' , 'long' )
+    OPseudoPThreeGate = PseudoPThree.GetOutPort( 'Gate' )
+    
+    PyPseudoPFive = []
+    PyPseudoPFive.append( 'from time import * ' )
+    PyPseudoPFive.append( 'def PseudoPFive(PFive) : ' )
+    PyPseudoPFive.append( '    sleep(1) ' )
+    PyPseudoPFive.append( '    return 6*PFive+5  ' )
+    PseudoPFive = GraphLoopSwitchOfSwitchAborted.INode( 'PseudoPFive' , PyPseudoPFive )
+    PseudoPFive.SetName( 'PseudoPFive' )
+    PseudoPFive.SetAuthor( '' )
+    PseudoPFive.SetComment( 'Compute Node' )
+    PseudoPFive.Coords( 625 , 343 )
+    IPseudoPFivePFive = PseudoPFive.InPort( 'PFive' , 'long' )
+    IPseudoPFiveGate = PseudoPFive.GetInPort( 'Gate' )
+    OPseudoPFivea = PseudoPFive.OutPort( 'a' , 'long' )
+    OPseudoPFiveGate = PseudoPFive.GetOutPort( 'Gate' )
+    
+    # Creation of Loop Nodes
+    PyLoopSwitch = []
+    PyLoopSwitch.append( 'def InitLoop(Index,Min,Max) :       ' )
+    PyLoopSwitch.append( '     Index = Max ' )
+    PyLoopSwitch.append( '     return Index,Min,Max      ' )
+    PyMoreLoopSwitch = []
+    PyMoreLoopSwitch.append( 'def MoreLoop(Index,Min,Max) :      ' )
+    PyMoreLoopSwitch.append( ' if Index >= Min :    ' )
+    PyMoreLoopSwitch.append( '         DoLoop = 1      ' )
+    PyMoreLoopSwitch.append( ' else :      ' )
+    PyMoreLoopSwitch.append( '         DoLoop = 0      ' )
+    PyMoreLoopSwitch.append( ' return DoLoop,Index,Min,Max      ' )
+    PyNextLoopSwitch = []
+    PyNextLoopSwitch.append( 'def NextLoop(Index,Min,Max) :      ' )
+    PyNextLoopSwitch.append( ' Index = Index - 1      ' )
+    PyNextLoopSwitch.append( ' return Index,Min,Max      ' )
+    LoopSwitch,EndOfLoopSwitch = GraphLoopSwitchOfSwitchAborted.LNode( 'InitLoop' , PyLoopSwitch , 'MoreLoop' , PyMoreLoopSwitch , 'NextLoop' , PyNextLoopSwitch )
+    EndOfLoopSwitch.SetName( 'EndOfLoopSwitch' )
+    EndOfLoopSwitch.SetAuthor( '' )
+    EndOfLoopSwitch.SetComment( 'Compute Node' )
+    EndOfLoopSwitch.Coords( 1268 , 210 )
+    PyEndOfLoopSwitch = []
+    EndOfLoopSwitch.SetPyFunction( '' , PyEndOfLoopSwitch )
+    ILoopSwitchDoLoop = LoopSwitch.GetInPort( 'DoLoop' )
+    ILoopSwitchIndex = LoopSwitch.InPort( 'Index' , 'long' )
+    ILoopSwitchMin = LoopSwitch.InPort( 'Min' , 'long' )
+    ILoopSwitchMax = LoopSwitch.InPort( 'Max' , 'long' )
+    ILoopSwitchGate = LoopSwitch.GetInPort( 'Gate' )
+    OLoopSwitchDoLoop = LoopSwitch.GetOutPort( 'DoLoop' )
+    OLoopSwitchIndex = LoopSwitch.GetOutPort( 'Index' )
+    OLoopSwitchMin = LoopSwitch.GetOutPort( 'Min' )
+    OLoopSwitchMax = LoopSwitch.GetOutPort( 'Max' )
+    IEndOfLoopSwitchDoLoop = EndOfLoopSwitch.GetInPort( 'DoLoop' )
+    IEndOfLoopSwitchIndex = EndOfLoopSwitch.GetInPort( 'Index' )
+    IEndOfLoopSwitchMin = EndOfLoopSwitch.GetInPort( 'Min' )
+    IEndOfLoopSwitchMax = EndOfLoopSwitch.GetInPort( 'Max' )
+    IEndOfLoopSwitchGate = EndOfLoopSwitch.GetInPort( 'Gate' )
+    OEndOfLoopSwitchDoLoop = EndOfLoopSwitch.GetOutPort( 'DoLoop' )
+    OEndOfLoopSwitchIndex = EndOfLoopSwitch.GetOutPort( 'Index' )
+    OEndOfLoopSwitchMin = EndOfLoopSwitch.GetOutPort( 'Min' )
+    OEndOfLoopSwitchMax = EndOfLoopSwitch.GetOutPort( 'Max' )
+    OEndOfLoopSwitchGate = EndOfLoopSwitch.GetOutPort( 'Gate' )
+    LoopSwitch.SetName( 'LoopSwitch' )
+    LoopSwitch.SetAuthor( '' )
+    LoopSwitch.SetComment( 'Compute Node' )
+    LoopSwitch.Coords( 6 , 233 )
+    
+    # Creation of Switch Nodes
+    PySwitch = []
+    PySwitch.append( 'from time import *       ' )
+    PySwitch.append( 'def Switch(a) :   ' )
+    PySwitch.append( '    sleep(1)   ' )
+    PySwitch.append( '    if a <= 0 :      ' )
+    PySwitch.append( '        return 0,a,0 ' )
+    PySwitch.append( '    return a & 1,a,1-(a&1)        ' )
+    Switch,EndOfSwitch = GraphLoopSwitchOfSwitchAborted.SNode( 'Switch' , PySwitch )
+    EndOfSwitch.SetName( 'EndOfSwitch' )
+    EndOfSwitch.SetAuthor( '' )
+    EndOfSwitch.SetComment( 'Compute Node' )
+    EndOfSwitch.Coords( 1075 , 210 )
+    PyEndOfSwitch = []
+    EndOfSwitch.SetPyFunction( 'EndSwitch_1' , PyEndOfSwitch )
+    IEndOfSwitcha = EndOfSwitch.InPort( 'a' , 'long' )
+    IEndOfSwitchDefault = EndOfSwitch.GetInPort( 'Default' )
+    OEndOfSwitcha = EndOfSwitch.OutPort( 'a' , 'long' )
+    OEndOfSwitchGate = EndOfSwitch.GetOutPort( 'Gate' )
+    Switch.SetName( 'Switch' )
+    Switch.SetAuthor( '' )
+    Switch.SetComment( 'Compute Node' )
+    Switch.Coords( 201 , 233 )
+    ISwitcha = Switch.InPort( 'a' , 'long' )
+    ISwitchGate = Switch.GetInPort( 'Gate' )
+    OSwitchOdd = Switch.OutPort( 'Odd' , 'long' )
+    OSwitcha = Switch.OutPort( 'a' , 'int' )
+    OSwitchEven = Switch.OutPort( 'Even' , 'boolean' )
+    OSwitchDefault = Switch.GetOutPort( 'Default' )
+    
+    PySwitchOdd = []
+    PySwitchOdd.append( 'def SwitchOdd(a) :   ' )
+    PySwitchOdd.append( '    n = a/6   ' )
+    PySwitchOdd.append( '    r = a%6   ' )
+    PySwitchOdd.append( '    POne = 0   ' )
+    PySwitchOdd.append( '    PThree = 0   ' )
+    PySwitchOdd.append( '    PFive = 0   ' )
+    PySwitchOdd.append( '    if r == 1 :   ' )
+    PySwitchOdd.append( '        POne = 1  ' )
+    PySwitchOdd.append( '    if r == 3 :   ' )
+    PySwitchOdd.append( '        PThree = 1  ' )
+    PySwitchOdd.append( '    if r == 5 :   ' )
+    PySwitchOdd.append( '        PFive = 1  ' )
+    PySwitchOdd.append( '    return POne,PThree,PFive,n ' )
+    SwitchOdd,EndOfSwitchOdd = GraphLoopSwitchOfSwitchAborted.SNode( 'SwitchOdd' , PySwitchOdd )
+    EndOfSwitchOdd.SetName( 'EndOfSwitchOdd' )
+    EndOfSwitchOdd.SetAuthor( '' )
+    EndOfSwitchOdd.SetComment( 'Compute Node' )
+    EndOfSwitchOdd.Coords( 851 , 210 )
+    PyEndOfSwitchOdd = []
+    EndOfSwitchOdd.SetPyFunction( 'EndSwitch' , PyEndOfSwitchOdd )
+    IEndOfSwitchOddn = EndOfSwitchOdd.InPort( 'n' , 'long' )
+    IEndOfSwitchOddDefault = EndOfSwitchOdd.GetInPort( 'Default' )
+    OEndOfSwitchOddn = EndOfSwitchOdd.OutPort( 'n' , 'long' )
+    OEndOfSwitchOddGate = EndOfSwitchOdd.GetOutPort( 'Gate' )
+    SwitchOdd.SetName( 'SwitchOdd' )
+    SwitchOdd.SetAuthor( '' )
+    SwitchOdd.SetComment( 'Compute Node' )
+    SwitchOdd.Coords( 412 , 169 )
+    ISwitchOdda = SwitchOdd.InPort( 'a' , 'long' )
+    ISwitchOddGate = SwitchOdd.GetInPort( 'Gate' )
+    OSwitchOddPOne = SwitchOdd.OutPort( 'POne' , 'boolean' )
+    OSwitchOddPThree = SwitchOdd.OutPort( 'PThree' , 'boolean' )
+    OSwitchOddPFive = SwitchOdd.OutPort( 'PFive' , 'boolean' )
+    OSwitchOddn = SwitchOdd.OutPort( 'n' , 'long' )
+    OSwitchOddDefault = SwitchOdd.GetOutPort( 'Default' )
+    
+    # Creation of Links
+    LLoopSwitchIndexSwitcha = GraphLoopSwitchOfSwitchAborted.Link( OLoopSwitchIndex , ISwitcha )
+    
+    LLoopSwitchMinEndOfLoopSwitchMin = GraphLoopSwitchOfSwitchAborted.Link( OLoopSwitchMin , IEndOfLoopSwitchMin )
+    
+    LLoopSwitchMaxEndOfLoopSwitchMax = GraphLoopSwitchOfSwitchAborted.Link( OLoopSwitchMax , IEndOfLoopSwitchMax )
+    
+    LIsEvenaEndOfSwitcha = GraphLoopSwitchOfSwitchAborted.Link( OIsEvena , IEndOfSwitcha )
+    LIsEvenaEndOfSwitcha.AddCoord( 1 , 719 , 591 )
+    
+    LSwitchOddSwitchOddGate = GraphLoopSwitchOfSwitchAborted.Link( OSwitchOdd , ISwitchOddGate )
+    
+    LSwitchaIsEvena = GraphLoopSwitchOfSwitchAborted.Link( OSwitcha , IIsEvena )
+    
+    LSwitchaSwitchOdda = GraphLoopSwitchOfSwitchAborted.Link( OSwitcha , ISwitchOdda )
+    
+    LSwitchEvenIsEvenGate = GraphLoopSwitchOfSwitchAborted.Link( OSwitchEven , IIsEvenGate )
+    
+    LEndOfSwitchaEndOfLoopSwitchIndex = GraphLoopSwitchOfSwitchAborted.Link( OEndOfSwitcha , IEndOfLoopSwitchIndex )
+    
+    LSwitchOddPOnePseudoPOneGate = GraphLoopSwitchOfSwitchAborted.Link( OSwitchOddPOne , IPseudoPOneGate )
+    
+    LSwitchOddPThreePseudoPThreeGate = GraphLoopSwitchOfSwitchAborted.Link( OSwitchOddPThree , IPseudoPThreeGate )
+    
+    LSwitchOddPFivePseudoPFiveGate = GraphLoopSwitchOfSwitchAborted.Link( OSwitchOddPFive , IPseudoPFiveGate )
+    
+    LSwitchOddnPseudoPOnePOne = GraphLoopSwitchOfSwitchAborted.Link( OSwitchOddn , IPseudoPOnePOne )
+    
+    LSwitchOddnPseudoPThreePThree = GraphLoopSwitchOfSwitchAborted.Link( OSwitchOddn , IPseudoPThreePThree )
+    
+    LSwitchOddnPseudoPFivePFive = GraphLoopSwitchOfSwitchAborted.Link( OSwitchOddn , IPseudoPFivePFive )
+    
+    LEndOfSwitchOddnEndOfSwitcha = GraphLoopSwitchOfSwitchAborted.Link( OEndOfSwitchOddn , IEndOfSwitcha )
+    
+    LPseudoPOneaEndOfSwitchOddn = GraphLoopSwitchOfSwitchAborted.Link( OPseudoPOnea , IEndOfSwitchOddn )
+    
+    LPseudoPThreeaEndOfSwitchOddn = GraphLoopSwitchOfSwitchAborted.Link( OPseudoPThreea , IEndOfSwitchOddn )
+    
+    LPseudoPFiveaEndOfSwitchOddn = GraphLoopSwitchOfSwitchAborted.Link( OPseudoPFivea , IEndOfSwitchOddn )
+    
+    # Input datas
+    ILoopSwitchIndex.Input( 0 )
+    ILoopSwitchMin.Input( -5 )
+    ILoopSwitchMax.Input( 65 )
+    
+    # Output Ports of the graph
+    #OEndOfLoopSwitchIndex = EndOfLoopSwitch.GetOutPort( 'Index' )
+    #OEndOfLoopSwitchMin = EndOfLoopSwitch.GetOutPort( 'Min' )
+    #OEndOfLoopSwitchMax = EndOfLoopSwitch.GetOutPort( 'Max' )
+    return GraphLoopSwitchOfSwitchAborted
+
+
+GraphLoopSwitchOfSwitchAborted = DefGraphLoopSwitchOfSwitchAborted()
diff --git a/examples/GraphLoopSwitchOfSwitchAborted.xml b/examples/GraphLoopSwitchOfSwitchAborted.xml
new file mode 100644 (file)
index 0000000..0c8debb
--- /dev/null
@@ -0,0 +1,575 @@
+<!DOCTYPE SuperGraph>
+<supergraph>
+<dataflow>
+<info-list>
+<node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>GraphLoopSwitchOfSwitchAborted</node-name>
+    <kind>1</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>GraphLoopSwitchOfSwitchAborted</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>LoopSwitch__Index</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>LoopSwitch__Min</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>LoopSwitch__Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>EndOfLoopSwitch__Index</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>EndOfLoopSwitch__Min</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>EndOfLoopSwitch__Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>1/10/2003 - 17:23:54</creation-date>
+    <lastmodification-date>11/2/2005 - 12:21:6</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>JR</author>
+    <container>?</container>
+    <comment>DefaultPorts of SwitchOdd and EndSwitchOdd are not connected but that link was not used. DefaultPorts of Switch and EndSwitch are not linked ==> ABORT</comment>
+    <x-position>0</x-position>
+    <y-position>0</y-position>   </node>  </info-list>
+  <node-list>
+<node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>LoopSwitch</node-name>
+    <kind>4</kind>
+    <coupled-node>EndOfLoopSwitch</coupled-node>
+    <service>
+<service-name>LoopSwitch</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Index</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Min</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Index</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Min</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>InitLoop</FuncName>
+      <PyFunc><![CDATA[def InitLoop(Index,Min,Max) :       ]]></PyFunc>
+      <PyFunc><![CDATA[        Index = Max ]]></PyFunc>
+      <PyFunc><![CDATA[        return Index,Min,Max      ]]></PyFunc>     </PyFunction>
+     <PyFunction>
+<FuncName>MoreLoop</FuncName>
+      <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) :      ]]></PyFunc>
+      <PyFunc><![CDATA[        if Index >= Min :    ]]></PyFunc>
+      <PyFunc><![CDATA[                DoLoop = 1      ]]></PyFunc>
+      <PyFunc><![CDATA[        else :      ]]></PyFunc>
+      <PyFunc><![CDATA[                DoLoop = 0      ]]></PyFunc>
+      <PyFunc><![CDATA[        return DoLoop,Index,Min,Max      ]]></PyFunc>     </PyFunction>
+     <PyFunction>
+<FuncName>NextLoop</FuncName>
+      <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>11/2/2005 - 12:10:26</creation-date>
+    <lastmodification-date>11/2/2005 - 12:10:26</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>6</x-position>
+    <y-position>233</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>EndOfLoopSwitch</node-name>
+    <kind>5</kind>
+    <coupled-node>LoopSwitch</coupled-node>
+    <service>
+<service-name>EndOfLoopSwitch</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Index</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Min</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Index</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Min</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>?</FuncName>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 12:10:26</creation-date>
+    <lastmodification-date>11/2/2005 - 12:10:26</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>1268</x-position>
+    <y-position>210</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>IsEven</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>IsEven</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>IsEven</FuncName>
+      <PyFunc><![CDATA[from time import *    ]]></PyFunc>
+      <PyFunc><![CDATA[def IsEven(a) :        ]]></PyFunc>
+      <PyFunc><![CDATA[    print a,"IsEven (GraphSwitch)"       ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep( 1 )    ]]></PyFunc>
+      <PyFunc><![CDATA[    return a      ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 12:10:26</creation-date>
+    <lastmodification-date>11/2/2005 - 12:10:26</lastmodification-date>
+    <editor-release>2.0</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>437</x-position>
+    <y-position>520</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>Switch</node-name>
+    <kind>6</kind>
+    <coupled-node>EndOfSwitch</coupled-node>
+    <service>
+<service-name>Switch</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>int</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>boolean</outParameter-type>
+       <outParameter-name>Even</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>Switch</FuncName>
+      <PyFunc><![CDATA[from time import *       ]]></PyFunc>
+      <PyFunc><![CDATA[def Switch(a) :   ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1)   ]]></PyFunc>
+      <PyFunc><![CDATA[    if a <= 0 :      ]]></PyFunc>
+      <PyFunc><![CDATA[        return 0,a,0 ]]></PyFunc>
+      <PyFunc><![CDATA[    return a & 1,a,1-(a&1)        ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 12:10:26</creation-date>
+    <lastmodification-date>11/2/2005 - 12:10:26</lastmodification-date>
+    <editor-release>2.0</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>201</x-position>
+    <y-position>233</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>EndOfSwitch</node-name>
+    <kind>7</kind>
+    <coupled-node>Switch</coupled-node>
+    <service>
+<service-name>EndOfSwitch</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>EndSwitch_1</FuncName>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 12:10:26</creation-date>
+    <lastmodification-date>11/2/2005 - 12:10:26</lastmodification-date>
+    <editor-release>2.0</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>1075</x-position>
+    <y-position>210</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>SwitchOdd</node-name>
+    <kind>6</kind>
+    <coupled-node>EndOfSwitchOdd</coupled-node>
+    <service>
+<service-name>SwitchOdd</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>boolean</outParameter-type>
+       <outParameter-name>POne</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>boolean</outParameter-type>
+       <outParameter-name>PThree</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>boolean</outParameter-type>
+       <outParameter-name>PFive</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>n</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>SwitchOdd</FuncName>
+      <PyFunc><![CDATA[def SwitchOdd(a) :   ]]></PyFunc>
+      <PyFunc><![CDATA[    n = a/6   ]]></PyFunc>
+      <PyFunc><![CDATA[    r = a%6   ]]></PyFunc>
+      <PyFunc><![CDATA[    POne = 0   ]]></PyFunc>
+      <PyFunc><![CDATA[    PThree = 0   ]]></PyFunc>
+      <PyFunc><![CDATA[    PFive = 0   ]]></PyFunc>
+      <PyFunc><![CDATA[    if r == 1 :   ]]></PyFunc>
+      <PyFunc><![CDATA[        POne = 1  ]]></PyFunc>
+      <PyFunc><![CDATA[    if r == 3 :   ]]></PyFunc>
+      <PyFunc><![CDATA[        PThree = 1  ]]></PyFunc>
+      <PyFunc><![CDATA[    if r == 5 :   ]]></PyFunc>
+      <PyFunc><![CDATA[        PFive = 1  ]]></PyFunc>
+      <PyFunc><![CDATA[    return POne,PThree,PFive,n ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 12:10:26</creation-date>
+    <lastmodification-date>11/2/2005 - 12:10:26</lastmodification-date>
+    <editor-release>2.0</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>412</x-position>
+    <y-position>169</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>EndOfSwitchOdd</node-name>
+    <kind>7</kind>
+    <coupled-node>SwitchOdd</coupled-node>
+    <service>
+<service-name>EndOfSwitchOdd</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>n</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>n</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>EndSwitch</FuncName>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 12:10:26</creation-date>
+    <lastmodification-date>11/2/2005 - 12:10:26</lastmodification-date>
+    <editor-release>2.0</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>851</x-position>
+    <y-position>210</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>PseudoPOne</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>PseudoPOne</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>POne</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>PseudoPOne</FuncName>
+      <PyFunc><![CDATA[from time import * ]]></PyFunc>
+      <PyFunc><![CDATA[def PseudoPOne(POne) : ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1) ]]></PyFunc>
+      <PyFunc><![CDATA[    return 6*POne+1  ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 12:10:26</creation-date>
+    <lastmodification-date>11/2/2005 - 12:10:26</lastmodification-date>
+    <editor-release>2.0</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>612</x-position>
+    <y-position>5</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>PseudoPThree</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>PseudoPThree</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>PThree</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>PseudoPThree_1</FuncName>
+      <PyFunc><![CDATA[from time import * ]]></PyFunc>
+      <PyFunc><![CDATA[def PseudoPThree_1(PThree) : ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1) ]]></PyFunc>
+      <PyFunc><![CDATA[    return 6*PThree+3  ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 12:10:26</creation-date>
+    <lastmodification-date>11/2/2005 - 12:10:26</lastmodification-date>
+    <editor-release>2.0</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>620</x-position>
+    <y-position>149</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>PseudoPFive</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>PseudoPFive</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>PFive</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>PseudoPFive</FuncName>
+      <PyFunc><![CDATA[from time import * ]]></PyFunc>
+      <PyFunc><![CDATA[def PseudoPFive(PFive) : ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1) ]]></PyFunc>
+      <PyFunc><![CDATA[    return 6*PFive+5  ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 12:10:26</creation-date>
+    <lastmodification-date>11/2/2005 - 12:10:26</lastmodification-date>
+    <editor-release>2.0</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>625</x-position>
+    <y-position>343</y-position>   </node>  </node-list>
+  <link-list>
+<link>
+<fromnode-name>LoopSwitch</fromnode-name>
+    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+    <tonode-name>EndOfLoopSwitch</tonode-name>
+    <toserviceparameter-name>DoLoop</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>LoopSwitch</fromnode-name>
+    <fromserviceparameter-name>Index</fromserviceparameter-name>
+    <tonode-name>Switch</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>LoopSwitch</fromnode-name>
+    <fromserviceparameter-name>Min</fromserviceparameter-name>
+    <tonode-name>EndOfLoopSwitch</tonode-name>
+    <toserviceparameter-name>Min</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>LoopSwitch</fromnode-name>
+    <fromserviceparameter-name>Max</fromserviceparameter-name>
+    <tonode-name>EndOfLoopSwitch</tonode-name>
+    <toserviceparameter-name>Max</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndOfLoopSwitch</fromnode-name>
+    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+    <tonode-name>LoopSwitch</tonode-name>
+    <toserviceparameter-name>DoLoop</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>IsEven</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfSwitch</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list>
+<coord>
+<x>719</x>
+      <y>591</y>     </coord>    </coord-list>   </link>
+   <link>
+<fromnode-name>Switch</fromnode-name>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>SwitchOdd</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Switch</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>IsEven</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Switch</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>SwitchOdd</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Switch</fromnode-name>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>IsEven</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndOfSwitch</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfLoopSwitch</tonode-name>
+    <toserviceparameter-name>Index</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>POne</fromserviceparameter-name>
+    <tonode-name>PseudoPOne</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>PThree</fromserviceparameter-name>
+    <tonode-name>PseudoPThree</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>PFive</fromserviceparameter-name>
+    <tonode-name>PseudoPFive</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>n</fromserviceparameter-name>
+    <tonode-name>PseudoPOne</tonode-name>
+    <toserviceparameter-name>POne</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>n</fromserviceparameter-name>
+    <tonode-name>PseudoPThree</tonode-name>
+    <toserviceparameter-name>PThree</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>n</fromserviceparameter-name>
+    <tonode-name>PseudoPFive</tonode-name>
+    <toserviceparameter-name>PFive</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndOfSwitchOdd</fromnode-name>
+    <fromserviceparameter-name>n</fromserviceparameter-name>
+    <tonode-name>EndOfSwitch</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>PseudoPOne</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchOdd</tonode-name>
+    <toserviceparameter-name>n</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>PseudoPThree</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchOdd</tonode-name>
+    <toserviceparameter-name>n</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>PseudoPFive</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchOdd</tonode-name>
+    <toserviceparameter-name>n</toserviceparameter-name>
+    <coord-list/>   </link>  </link-list>
+  <data-list>
+<data>
+<fromnode-name>GraphLoopSwitchOfSwitchAborted</fromnode-name>
+    <fromserviceparameter-name>LoopSwitch__Index</fromserviceparameter-name>
+    <tonode-name>LoopSwitch</tonode-name>
+    <toserviceparameter-name>Index</toserviceparameter-name>
+    <data-value>
+<value-type>3</value-type>
+     <value>0</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
+<fromnode-name>GraphLoopSwitchOfSwitchAborted</fromnode-name>
+    <fromserviceparameter-name>LoopSwitch__Min</fromserviceparameter-name>
+    <tonode-name>LoopSwitch</tonode-name>
+    <toserviceparameter-name>Min</toserviceparameter-name>
+    <data-value>
+<value-type>3</value-type>
+     <value>-5</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
+<fromnode-name>GraphLoopSwitchOfSwitchAborted</fromnode-name>
+    <fromserviceparameter-name>LoopSwitch__Max</fromserviceparameter-name>
+    <tonode-name>LoopSwitch</tonode-name>
+    <toserviceparameter-name>Max</toserviceparameter-name>
+    <data-value>
+<value-type>3</value-type>
+     <value>65</value>    </data-value>
+    <coord-list/>   </data>  </data-list> </dataflow></supergraph>
index 637832aebc21f0f4458803ab92b9139fd491f8bc..647fbea8a028ad4b17ddd12245533c5803bab505 100644 (file)
@@ -15,11 +15,11 @@ def DefGraphLoopSwitchs() :
     
     # Creation of InLine Nodes
     PyIsOdd = []
-    PyIsOdd.append( 'from time import *    ' )
-    PyIsOdd.append( 'def IsOdd(a) :        ' )
-    PyIsOdd.append( '    print a,"IsOdd"       ' )
-    PyIsOdd.append( '    sleep( 1 )    ' )
-    PyIsOdd.append( '    return a      ' )
+    PyIsOdd.append( 'from time import *     ' )
+    PyIsOdd.append( 'def IsOdd(a) :         ' )
+    PyIsOdd.append( '    print a,"IsOdd"        ' )
+    PyIsOdd.append( '    sleep( 1 )     ' )
+    PyIsOdd.append( '    return a,1 ' )
     IsOdd = GraphLoopSwitchs.INode( 'IsOdd' , PyIsOdd )
     IsOdd.SetName( 'IsOdd' )
     IsOdd.SetAuthor( '' )
@@ -28,27 +28,31 @@ def DefGraphLoopSwitchs() :
     IIsOdda = IsOdd.InPort( 'a' , 'long' )
     IIsOddGate = IsOdd.GetInPort( 'Gate' )
     OIsOdda = IsOdd.OutPort( 'a' , 'long' )
+    OIsOddOdd = IsOdd.OutPort( 'Odd' , 'long' )
     OIsOddGate = IsOdd.GetOutPort( 'Gate' )
     
     PyIsEven = []
-    PyIsEven.append( 'from time import *    ' )
-    PyIsEven.append( 'def IsEven(a) :        ' )
-    PyIsEven.append( '    print a,"IsEven"       ' )
-    PyIsEven.append( '    sleep( 1 )    ' )
-    PyIsEven.append( '    return a      ' )
+    PyIsEven.append( 'from time import *     ' )
+    PyIsEven.append( 'def IsEven(a) :         ' )
+    PyIsEven.append( '    print a,"IsEven"        ' )
+    PyIsEven.append( '    sleep( 1 )     ' )
+    PyIsEven.append( '    return a,1 ' )
     IsEven = GraphLoopSwitchs.INode( 'IsEven' , PyIsEven )
     IsEven.SetName( 'IsEven' )
     IsEven.SetAuthor( '' )
     IsEven.SetComment( 'Python function' )
-    IsEven.Coords( 479 , 311 )
+    IsEven.Coords( 482 , 292 )
     IIsEvena = IsEven.InPort( 'a' , 'long' )
     IIsEvenGate = IsEven.GetInPort( 'Gate' )
     OIsEvena = IsEven.OutPort( 'a' , 'long' )
+    OIsEvenEven = IsEven.OutPort( 'Even' , 'long' )
     OIsEvenGate = IsEven.GetOutPort( 'Gate' )
     
     PySwitchsCompare = []
+    PySwitchsCompare.append( 'from time import * ' )
     PySwitchsCompare.append( 'def SwitchsCompare(aOdd,Odd,aEven,Even) : ' )
-    PySwitchsCompare.append( '    return a ' )
+    PySwitchsCompare.append( '    sleep(1) ' )
+    PySwitchsCompare.append( '    return aOdd  ' )
     SwitchsCompare = GraphLoopSwitchs.INode( 'SwitchsCompare' , PySwitchsCompare )
     SwitchsCompare.SetName( 'SwitchsCompare' )
     SwitchsCompare.SetAuthor( '' )
@@ -110,18 +114,21 @@ def DefGraphLoopSwitchs() :
     
     # Creation of Switch Nodes
     PySwitchOdd = []
-    PySwitchOdd.append( 'from time import * ' )
-    PySwitchOdd.append( 'def Switch(a) :   ' )
-    PySwitchOdd.append( '    if ( a & 1 ) == 0 : ' )
-    PySwitchOdd.append( '        sleep(1)    ' )
-    PySwitchOdd.append( '    return a & 1,1-(a&1),a    ' )
+    PySwitchOdd.append( 'from time import *  ' )
+    PySwitchOdd.append( 'def Switch(a) :    ' )
+    PySwitchOdd.append( '    sleep(1)     ' )
+    PySwitchOdd.append( '    return a & 1,1-(a&1),a     ' )
     SwitchOdd,EndOfSwitchOdd = GraphLoopSwitchs.SNode( 'Switch' , PySwitchOdd )
     EndOfSwitchOdd.SetName( 'EndOfSwitchOdd' )
     EndOfSwitchOdd.SetAuthor( '' )
     EndOfSwitchOdd.SetComment( 'Compute Node' )
     EndOfSwitchOdd.Coords( 711 , 161 )
     PyEndOfSwitchOdd = []
-    EndOfSwitchOdd.SetPyFunction( '' , PyEndOfSwitchOdd )
+    PyEndOfSwitchOdd.append( 'from time import * ' )
+    PyEndOfSwitchOdd.append( 'def EndOfSwitchOdd(a,Odd) : ' )
+    PyEndOfSwitchOdd.append( '    sleep(1) ' )
+    PyEndOfSwitchOdd.append( '    return a,Odd ' )
+    EndOfSwitchOdd.SetPyFunction( 'EndOfSwitchOdd' , PyEndOfSwitchOdd )
     IEndOfSwitchOdda = EndOfSwitchOdd.InPort( 'a' , 'long' )
     IEndOfSwitchOddOdd = EndOfSwitchOdd.InPort( 'Odd' , 'boolean' )
     IEndOfSwitchOddDefault = EndOfSwitchOdd.GetInPort( 'Default' )
@@ -140,18 +147,21 @@ def DefGraphLoopSwitchs() :
     OSwitchOddDefault = SwitchOdd.GetOutPort( 'Default' )
     
     PySwitchEven = []
-    PySwitchEven.append( 'from time import *  ' )
-    PySwitchEven.append( 'def Switch(a) :    ' )
-    PySwitchEven.append( '    if ( a & 1 ) == 0 :  ' )
-    PySwitchEven.append( '        sleep(1)  ' )
-    PySwitchEven.append( '    return a & 1,1-(a&1),a    ' )
+    PySwitchEven.append( 'from time import *   ' )
+    PySwitchEven.append( 'def Switch(a) : ' )
+    PySwitchEven.append( '    sleep(1)   ' )
+    PySwitchEven.append( '    return a & 1,1-(a&1),a     ' )
     SwitchEven,EndOfSwitchEven = GraphLoopSwitchs.SNode( 'Switch' , PySwitchEven )
     EndOfSwitchEven.SetName( 'EndOfSwitchEven' )
     EndOfSwitchEven.SetAuthor( '' )
     EndOfSwitchEven.SetComment( 'Compute Node' )
     EndOfSwitchEven.Coords( 718 , 361 )
     PyEndOfSwitchEven = []
-    EndOfSwitchEven.SetPyFunction( '' , PyEndOfSwitchEven )
+    PyEndOfSwitchEven.append( 'from time import * ' )
+    PyEndOfSwitchEven.append( 'def EndOfSwitchEven(a,Even) : ' )
+    PyEndOfSwitchEven.append( '    sleep(1) ' )
+    PyEndOfSwitchEven.append( '    return a,Even ' )
+    EndOfSwitchEven.SetPyFunction( 'EndOfSwitchEven' , PyEndOfSwitchEven )
     IEndOfSwitchEvena = EndOfSwitchEven.InPort( 'a' , 'long' )
     IEndOfSwitchEvenEven = EndOfSwitchEven.InPort( 'Even' , 'boolean' )
     IEndOfSwitchEvenDefault = EndOfSwitchEven.GetInPort( 'Default' )
@@ -172,13 +182,11 @@ def DefGraphLoopSwitchs() :
     # Creation of Links
     LIsOddaEndOfSwitchOdda = GraphLoopSwitchs.Link( OIsOdda , IEndOfSwitchOdda )
     
-    LSwitchOddOddIsOddGate = GraphLoopSwitchs.Link( OSwitchOddOdd , IIsOddGate )
+    LIsOddOddEndOfSwitchOddOdd = GraphLoopSwitchs.Link( OIsOddOdd , IEndOfSwitchOddOdd )
     
-    LSwitchOddOddEndOfSwitchOddOdd = GraphLoopSwitchs.Link( OSwitchOddOdd , IEndOfSwitchOddOdd )
+    LSwitchOddOddIsOddGate = GraphLoopSwitchs.Link( OSwitchOddOdd , IIsOddGate )
     
     LSwitchOddaIsOdda = GraphLoopSwitchs.Link( OSwitchOdda , IIsOdda )
-    LSwitchOddaIsOdda.AddCoord( 1 , 443 , 121 )
-    LSwitchOddaIsOdda.AddCoord( 2 , 443 , 212 )
     
     LSwitchOddDefaultEndOfSwitchOddDefault = GraphLoopSwitchs.Link( OSwitchOddDefault , IEndOfSwitchOddDefault )
     
@@ -188,6 +196,8 @@ def DefGraphLoopSwitchs() :
     
     LIsEvenaEndOfSwitchEvena = GraphLoopSwitchs.Link( OIsEvena , IEndOfSwitchEvena )
     
+    LIsEvenEvenEndOfSwitchEvenEven = GraphLoopSwitchs.Link( OIsEvenEven , IEndOfSwitchEvenEven )
+    
     LLoopIndexSwitchEvena = GraphLoopSwitchs.Link( OLoopIndex , ISwitchEvena )
     
     LLoopIndexSwitchOdda = GraphLoopSwitchs.Link( OLoopIndex , ISwitchOdda )
@@ -196,13 +206,11 @@ def DefGraphLoopSwitchs() :
     
     LLoopMaxEndOfLoopMax = GraphLoopSwitchs.Link( OLoopMax , IEndOfLoopMax )
     
-    LSwitchEvenOddIsEvenGate = GraphLoopSwitchs.Link( OSwitchEvenOdd , IIsEvenGate )
-    
-    LSwitchEvenEvenEndOfSwitchEvenDefault = GraphLoopSwitchs.Link( OSwitchEvenEven , IEndOfSwitchEvenDefault )
+    LSwitchEvenEvenIsEvenGate = GraphLoopSwitchs.Link( OSwitchEvenEven , IIsEvenGate )
     
     LSwitchEvenaIsEvena = GraphLoopSwitchs.Link( OSwitchEvena , IIsEvena )
-    LSwitchEvenaIsEvena.AddCoord( 1 , 434 , 382 )
-    LSwitchEvenaIsEvena.AddCoord( 2 , 434 , 457 )
+    
+    LSwitchEvenDefaultEndOfSwitchEvenDefault = GraphLoopSwitchs.Link( OSwitchEvenDefault , IEndOfSwitchEvenDefault )
     
     LEndOfSwitchEvenaSwitchsCompareaEven = GraphLoopSwitchs.Link( OEndOfSwitchEvena , ISwitchsCompareaEven )
     
@@ -213,13 +221,14 @@ def DefGraphLoopSwitchs() :
     # Input datas
     ILoopIndex.Input( 0 )
     ILoopMin.Input( 0 )
-    ILoopMax.Input( 100 )
+    ILoopMax.Input( 23 )
     
     # Output Ports of the graph
     #OSwitchOddEven = SwitchOdd.GetOutPort( 'Even' )
     #OEndOfLoopIndex = EndOfLoop.GetOutPort( 'Index' )
     #OEndOfLoopMin = EndOfLoop.GetOutPort( 'Min' )
     #OEndOfLoopMax = EndOfLoop.GetOutPort( 'Max' )
+    #OSwitchEvenOdd = SwitchEven.GetOutPort( 'Odd' )
     return GraphLoopSwitchs
 
 
index 7403dd0c7357dcaa2a445dec17ed18f7fde1e18e..7e9ba1f845044a9e8acf5be751fc1985fa620417 100644 (file)
@@ -9,7 +9,7 @@
     <kind>1</kind>
     <coupled-node>?</coupled-node>
     <service>
-<service-name>GraphLoopSwitchs</service-name>
+<service-name>GraphLoopSwitchs_1_1</service-name>
      <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
        <outParameter-name>EndOfLoop__Min</outParameter-name>      </outParameter>
       <outParameter>
 <outParameter-type>long</outParameter-type>
-       <outParameter-name>EndOfLoop__Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+       <outParameter-name>EndOfLoop__Max</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>SwitchEven__Odd</outParameter-name>      </outParameter>     </outParameter-list>    </service>
     <DataStream-list/>
     <PyFunction-list/>
     <creation-date>14/10/2003 - 10:29:4</creation-date>
-    <lastmodification-date>19/1/2005 - 18:42:37</lastmodification-date>
+    <lastmodification-date>11/2/2005 - 12:25:10</lastmodification-date>
     <editor-release>1.05</editor-release>
     <author>JR</author>
     <container>?</container>
      <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+       <outParameter-name>a</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>     </outParameter-list>    </service>
     <DataStream-list/>
     <PyFunction-list>
 <PyFunction>
 <FuncName>IsOdd</FuncName>
-      <PyFunc><![CDATA[from time import *    ]]></PyFunc>
-      <PyFunc><![CDATA[def IsOdd(a) :        ]]></PyFunc>
-      <PyFunc><![CDATA[    print a,"IsOdd"       ]]></PyFunc>
-      <PyFunc><![CDATA[    sleep( 1 )    ]]></PyFunc>
-      <PyFunc><![CDATA[    return a      ]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>19/1/2005 - 18:26:50</creation-date>
-    <lastmodification-date>19/1/2005 - 18:26:50</lastmodification-date>
+      <PyFunc><![CDATA[from time import *     ]]></PyFunc>
+      <PyFunc><![CDATA[def IsOdd(a) :         ]]></PyFunc>
+      <PyFunc><![CDATA[    print a,"IsOdd"        ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep( 1 )     ]]></PyFunc>
+      <PyFunc><![CDATA[    return a,1 ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 12:25:10</creation-date>
+    <lastmodification-date>11/2/2005 - 12:25:10</lastmodification-date>
     <editor-release>1.05</editor-release>
     <author>?</author>
     <container>?</container>
@@ -84,7 +90,7 @@
     <kind>6</kind>
     <coupled-node>EndOfSwitchOdd</coupled-node>
     <service>
-<service-name>Switch</service-name>
+<service-name>SwitchOdd</service-name>
      <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
     <PyFunction-list>
 <PyFunction>
 <FuncName>Switch</FuncName>
-      <PyFunc><![CDATA[from time import * ]]></PyFunc>
-      <PyFunc><![CDATA[def Switch(a) :   ]]></PyFunc>
-      <PyFunc><![CDATA[    if ( a & 1 ) == 0 : ]]></PyFunc>
-      <PyFunc><![CDATA[        sleep(1)    ]]></PyFunc>
-      <PyFunc><![CDATA[    return a & 1,1-(a&1),a    ]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>19/1/2005 - 18:26:50</creation-date>
-    <lastmodification-date>19/1/2005 - 18:26:50</lastmodification-date>
+      <PyFunc><![CDATA[from time import *  ]]></PyFunc>
+      <PyFunc><![CDATA[def Switch(a) :    ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1)     ]]></PyFunc>
+      <PyFunc><![CDATA[    return a & 1,1-(a&1),a     ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 12:25:10</creation-date>
+    <lastmodification-date>11/2/2005 - 12:25:10</lastmodification-date>
     <editor-release>1.05</editor-release>
     <author>?</author>
     <container>?</container>
     <kind>7</kind>
     <coupled-node>SwitchOdd</coupled-node>
     <service>
-<service-name>EndOfSwitch</service-name>
+<service-name>EndOfSwitchOdd</service-name>
      <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
     <DataStream-list/>
     <PyFunction-list>
 <PyFunction>
-<FuncName>?</FuncName>
-      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>19/1/2005 - 18:26:50</creation-date>
-    <lastmodification-date>19/1/2005 - 18:26:50</lastmodification-date>
+<FuncName>EndOfSwitchOdd</FuncName>
+      <PyFunc><![CDATA[from time import * ]]></PyFunc>
+      <PyFunc><![CDATA[def EndOfSwitchOdd(a,Odd) : ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1) ]]></PyFunc>
+      <PyFunc><![CDATA[    return a,Odd ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 12:25:10</creation-date>
+    <lastmodification-date>11/2/2005 - 12:25:10</lastmodification-date>
     <editor-release>1.05</editor-release>
     <author>?</author>
     <container>?</container>
     <kind>3</kind>
     <coupled-node>?</coupled-node>
     <service>
-<service-name>IsOdd_1</service-name>
+<service-name>IsEven</service-name>
      <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
      <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+       <outParameter-name>a</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Even</outParameter-name>      </outParameter>     </outParameter-list>    </service>
     <DataStream-list/>
     <PyFunction-list>
 <PyFunction>
 <FuncName>IsEven</FuncName>
-      <PyFunc><![CDATA[from time import *    ]]></PyFunc>
-      <PyFunc><![CDATA[def IsEven(a) :        ]]></PyFunc>
-      <PyFunc><![CDATA[    print a,"IsEven"       ]]></PyFunc>
-      <PyFunc><![CDATA[    sleep( 1 )    ]]></PyFunc>
-      <PyFunc><![CDATA[    return a      ]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>19/1/2005 - 18:26:50</creation-date>
-    <lastmodification-date>19/1/2005 - 18:26:50</lastmodification-date>
+      <PyFunc><![CDATA[from time import *     ]]></PyFunc>
+      <PyFunc><![CDATA[def IsEven(a) :         ]]></PyFunc>
+      <PyFunc><![CDATA[    print a,"IsEven"        ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep( 1 )     ]]></PyFunc>
+      <PyFunc><![CDATA[    return a,1 ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 12:25:10</creation-date>
+    <lastmodification-date>11/2/2005 - 12:25:10</lastmodification-date>
     <editor-release>1.05</editor-release>
     <author>?</author>
     <container>?</container>
     <comment>Python function</comment>
-    <x-position>479</x-position>
-    <y-position>311</y-position>   </node>
+    <x-position>482</x-position>
+    <y-position>292</y-position>   </node>
    <node>
 <component-name>?</component-name>
     <interface-name>?</interface-name>
     <kind>4</kind>
     <coupled-node>EndOfLoop</coupled-node>
     <service>
-<service-name>InitLoop</service-name>
+<service-name>Loop</service-name>
      <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
       <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>19/1/2005 - 18:26:50</creation-date>
-    <lastmodification-date>19/1/2005 - 18:26:50</lastmodification-date>
+    <creation-date>11/2/2005 - 12:25:10</creation-date>
+    <lastmodification-date>11/2/2005 - 12:25:10</lastmodification-date>
     <editor-release>1.05</editor-release>
     <author>?</author>
     <container>?</container>
     <kind>5</kind>
     <coupled-node>Loop</coupled-node>
     <service>
-<service-name>EndOfInitLoop</service-name>
+<service-name>EndOfLoop</service-name>
      <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
 <PyFunction>
 <FuncName>?</FuncName>
       <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>19/1/2005 - 18:26:50</creation-date>
-    <lastmodification-date>19/1/2005 - 18:26:50</lastmodification-date>
+    <creation-date>11/2/2005 - 12:25:10</creation-date>
+    <lastmodification-date>11/2/2005 - 12:25:10</lastmodification-date>
     <editor-release>1.05</editor-release>
     <author>?</author>
     <container>?</container>
     <kind>6</kind>
     <coupled-node>EndOfSwitchEven</coupled-node>
     <service>
-<service-name>Switch_1</service-name>
+<service-name>SwitchEven</service-name>
      <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
     <PyFunction-list>
 <PyFunction>
 <FuncName>Switch</FuncName>
-      <PyFunc><![CDATA[from time import *  ]]></PyFunc>
-      <PyFunc><![CDATA[def Switch(a) :    ]]></PyFunc>
-      <PyFunc><![CDATA[    if ( a & 1 ) == 0 :  ]]></PyFunc>
-      <PyFunc><![CDATA[        sleep(1)  ]]></PyFunc>
-      <PyFunc><![CDATA[    return a & 1,1-(a&1),a    ]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>19/1/2005 - 18:26:50</creation-date>
-    <lastmodification-date>19/1/2005 - 18:26:50</lastmodification-date>
+      <PyFunc><![CDATA[from time import *   ]]></PyFunc>
+      <PyFunc><![CDATA[def Switch(a) : ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1)   ]]></PyFunc>
+      <PyFunc><![CDATA[    return a & 1,1-(a&1),a     ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 12:25:10</creation-date>
+    <lastmodification-date>11/2/2005 - 12:25:10</lastmodification-date>
     <editor-release>1.05</editor-release>
     <author>?</author>
     <container>?</container>
     <kind>7</kind>
     <coupled-node>SwitchEven</coupled-node>
     <service>
-<service-name>EndSwitch</service-name>
+<service-name>EndOfSwitchEven</service-name>
      <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
     <DataStream-list/>
     <PyFunction-list>
 <PyFunction>
-<FuncName>?</FuncName>
-      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>19/1/2005 - 18:26:50</creation-date>
-    <lastmodification-date>19/1/2005 - 18:26:50</lastmodification-date>
+<FuncName>EndOfSwitchEven</FuncName>
+      <PyFunc><![CDATA[from time import * ]]></PyFunc>
+      <PyFunc><![CDATA[def EndOfSwitchEven(a,Even) : ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1) ]]></PyFunc>
+      <PyFunc><![CDATA[    return a,Even ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 12:25:10</creation-date>
+    <lastmodification-date>11/2/2005 - 12:25:10</lastmodification-date>
     <editor-release>1.05</editor-release>
     <author>?</author>
     <container>?</container>
     <PyFunction-list>
 <PyFunction>
 <FuncName>SwitchsCompare</FuncName>
+      <PyFunc><![CDATA[from time import * ]]></PyFunc>
       <PyFunc><![CDATA[def SwitchsCompare(aOdd,Odd,aEven,Even) : ]]></PyFunc>
-      <PyFunc><![CDATA[    return a ]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>19/1/2005 - 18:34:18</creation-date>
-    <lastmodification-date>19/1/2005 - 18:34:18</lastmodification-date>
+      <PyFunc><![CDATA[    sleep(1) ]]></PyFunc>
+      <PyFunc><![CDATA[    return aOdd  ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 12:25:10</creation-date>
+    <lastmodification-date>11/2/2005 - 12:25:10</lastmodification-date>
     <editor-release>2.0</editor-release>
     <author>?</author>
     <container>?</container>
     <toserviceparameter-name>a</toserviceparameter-name>
     <coord-list/>   </link>
    <link>
-<fromnode-name>SwitchOdd</fromnode-name>
+<fromnode-name>IsOdd</fromnode-name>
     <fromserviceparameter-name>Odd</fromserviceparameter-name>
-    <tonode-name>IsOdd</tonode-name>
-    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <tonode-name>EndOfSwitchOdd</tonode-name>
+    <toserviceparameter-name>Odd</toserviceparameter-name>
     <coord-list/>   </link>
    <link>
 <fromnode-name>SwitchOdd</fromnode-name>
     <fromserviceparameter-name>Odd</fromserviceparameter-name>
-    <tonode-name>EndOfSwitchOdd</tonode-name>
-    <toserviceparameter-name>Odd</toserviceparameter-name>
+    <tonode-name>IsOdd</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
     <coord-list/>   </link>
    <link>
 <fromnode-name>SwitchOdd</fromnode-name>
     <fromserviceparameter-name>a</fromserviceparameter-name>
     <tonode-name>IsOdd</tonode-name>
     <toserviceparameter-name>a</toserviceparameter-name>
-    <coord-list>
-<coord>
-<x>443</x>
-      <y>121</y>     </coord>
-     <coord>
-<x>443</x>
-      <y>212</y>     </coord>    </coord-list>   </link>
+    <coord-list/>   </link>
    <link>
 <fromnode-name>SwitchOdd</fromnode-name>
     <fromserviceparameter-name>Default</fromserviceparameter-name>
     <toserviceparameter-name>a</toserviceparameter-name>
     <coord-list/>   </link>
    <link>
+<fromnode-name>IsEven</fromnode-name>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchEven</tonode-name>
+    <toserviceparameter-name>Even</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>Loop</fromnode-name>
     <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
     <tonode-name>EndOfLoop</tonode-name>
     <coord-list/>   </link>
    <link>
 <fromnode-name>SwitchEven</fromnode-name>
-    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
     <tonode-name>IsEven</tonode-name>
     <toserviceparameter-name>Gate</toserviceparameter-name>
     <coord-list/>   </link>
    <link>
-<fromnode-name>SwitchEven</fromnode-name>
-    <fromserviceparameter-name>Even</fromserviceparameter-name>
-    <tonode-name>EndOfSwitchEven</tonode-name>
-    <toserviceparameter-name>Default</toserviceparameter-name>
-    <coord-list/>   </link>
-   <link>
 <fromnode-name>SwitchEven</fromnode-name>
     <fromserviceparameter-name>a</fromserviceparameter-name>
     <tonode-name>IsEven</tonode-name>
     <toserviceparameter-name>a</toserviceparameter-name>
-    <coord-list>
-<coord>
-<x>434</x>
-      <y>382</y>     </coord>
-     <coord>
-<x>434</x>
-      <y>457</y>     </coord>    </coord-list>   </link>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchEven</fromnode-name>
+    <fromserviceparameter-name>Default</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchEven</tonode-name>
+    <toserviceparameter-name>Default</toserviceparameter-name>
+    <coord-list/>   </link>
    <link>
 <fromnode-name>EndOfSwitchEven</fromnode-name>
     <fromserviceparameter-name>a</fromserviceparameter-name>
     <toserviceparameter-name>Max</toserviceparameter-name>
     <data-value>
 <value-type>3</value-type>
-     <value>100</value>    </data-value>
+     <value>23</value>    </data-value>
     <coord-list/>   </data>  </data-list> </dataflow></supergraph>
diff --git a/examples/GraphLoopSwitchsAborted.py b/examples/GraphLoopSwitchsAborted.py
new file mode 100644 (file)
index 0000000..c34b09f
--- /dev/null
@@ -0,0 +1,231 @@
+
+# Generated python file of Graph GraphLoopSwitchsAborted
+
+from SuperV import *
+
+# Graph creation of GraphLoopSwitchsAborted
+def DefGraphLoopSwitchsAborted() :
+    GraphLoopSwitchsAborted = Graph( 'GraphLoopSwitchsAborted' )
+    GraphLoopSwitchsAborted.SetName( 'GraphLoopSwitchsAborted' )
+    GraphLoopSwitchsAborted.SetAuthor( 'JR' )
+    GraphLoopSwitchsAborted.SetComment( 'Default links are missing' )
+    GraphLoopSwitchsAborted.Coords( 0 , 0 )
+    
+    # Creation of Factory Nodes
+    
+    # Creation of InLine Nodes
+    PyIsOdd = []
+    PyIsOdd.append( 'from time import *     ' )
+    PyIsOdd.append( 'def IsOdd(a) :         ' )
+    PyIsOdd.append( '    print a,"IsOdd"        ' )
+    PyIsOdd.append( '    sleep( 1 )     ' )
+    PyIsOdd.append( '    return a,1 ' )
+    IsOdd = GraphLoopSwitchsAborted.INode( 'IsOdd' , PyIsOdd )
+    IsOdd.SetName( 'IsOdd' )
+    IsOdd.SetAuthor( '' )
+    IsOdd.SetComment( 'Python function' )
+    IsOdd.Coords( 476 , 50 )
+    IIsOdda = IsOdd.InPort( 'a' , 'long' )
+    IIsOddGate = IsOdd.GetInPort( 'Gate' )
+    OIsOdda = IsOdd.OutPort( 'a' , 'long' )
+    OIsOddOdd = IsOdd.OutPort( 'Odd' , 'long' )
+    OIsOddGate = IsOdd.GetOutPort( 'Gate' )
+    
+    PyIsEven = []
+    PyIsEven.append( 'from time import *     ' )
+    PyIsEven.append( 'def IsEven(a) :         ' )
+    PyIsEven.append( '    print a,"IsEven"        ' )
+    PyIsEven.append( '    sleep( 1 )     ' )
+    PyIsEven.append( '    return a,1 ' )
+    IsEven = GraphLoopSwitchsAborted.INode( 'IsEven' , PyIsEven )
+    IsEven.SetName( 'IsEven' )
+    IsEven.SetAuthor( '' )
+    IsEven.SetComment( 'Python function' )
+    IsEven.Coords( 482 , 292 )
+    IIsEvena = IsEven.InPort( 'a' , 'long' )
+    IIsEvenGate = IsEven.GetInPort( 'Gate' )
+    OIsEvena = IsEven.OutPort( 'a' , 'long' )
+    OIsEvenEven = IsEven.OutPort( 'Even' , 'long' )
+    OIsEvenGate = IsEven.GetOutPort( 'Gate' )
+    
+    PySwitchsCompare = []
+    PySwitchsCompare.append( 'from time import * ' )
+    PySwitchsCompare.append( 'def SwitchsCompare(aOdd,Odd,aEven,Even) : ' )
+    PySwitchsCompare.append( '    sleep(1) ' )
+    PySwitchsCompare.append( '    return aOdd  ' )
+    SwitchsCompare = GraphLoopSwitchsAborted.INode( 'SwitchsCompare' , PySwitchsCompare )
+    SwitchsCompare.SetName( 'SwitchsCompare' )
+    SwitchsCompare.SetAuthor( '' )
+    SwitchsCompare.SetComment( 'Compute Node' )
+    SwitchsCompare.Coords( 919 , 242 )
+    ISwitchsCompareaOdd = SwitchsCompare.InPort( 'aOdd' , 'long' )
+    ISwitchsCompareOdd = SwitchsCompare.InPort( 'Odd' , 'boolean' )
+    ISwitchsCompareaEven = SwitchsCompare.InPort( 'aEven' , 'long' )
+    ISwitchsCompareEven = SwitchsCompare.InPort( 'Even' , 'boolean' )
+    ISwitchsCompareGate = SwitchsCompare.GetInPort( 'Gate' )
+    OSwitchsComparea = SwitchsCompare.OutPort( 'a' , 'long' )
+    OSwitchsCompareGate = SwitchsCompare.GetOutPort( 'Gate' )
+    
+    # Creation of Loop Nodes
+    PyLoop = []
+    PyLoop.append( 'def InitLoop(Index,Min,Max) :      ' )
+    PyLoop.append( '   return Index,Min,Max     ' )
+    PyMoreLoop = []
+    PyMoreLoop.append( 'def MoreLoop(Index,Min,Max) :     ' )
+    PyMoreLoop.append( '       if Index <= Max :   ' )
+    PyMoreLoop.append( '               DoLoop = 1     ' )
+    PyMoreLoop.append( '       else :     ' )
+    PyMoreLoop.append( '               DoLoop = 0     ' )
+    PyMoreLoop.append( '       return DoLoop,Index,Min,Max     ' )
+    PyNextLoop = []
+    PyNextLoop.append( 'def NextLoop(Index,Min,Max) :     ' )
+    PyNextLoop.append( '       Index = Index + 1     ' )
+    PyNextLoop.append( '       return Index,Min,Max     ' )
+    Loop,EndOfLoop = GraphLoopSwitchsAborted.LNode( 'InitLoop' , PyLoop , 'MoreLoop' , PyMoreLoop , 'NextLoop' , PyNextLoop )
+    EndOfLoop.SetName( 'EndOfLoop' )
+    EndOfLoop.SetAuthor( '' )
+    EndOfLoop.SetComment( 'Compute Node' )
+    EndOfLoop.Coords( 1102 , 282 )
+    PyEndOfLoop = []
+    EndOfLoop.SetPyFunction( '' , PyEndOfLoop )
+    ILoopDoLoop = Loop.GetInPort( 'DoLoop' )
+    ILoopIndex = Loop.InPort( 'Index' , 'long' )
+    ILoopMin = Loop.InPort( 'Min' , 'long' )
+    ILoopMax = Loop.InPort( 'Max' , 'long' )
+    ILoopGate = Loop.GetInPort( 'Gate' )
+    OLoopDoLoop = Loop.GetOutPort( 'DoLoop' )
+    OLoopIndex = Loop.GetOutPort( 'Index' )
+    OLoopMin = Loop.GetOutPort( 'Min' )
+    OLoopMax = Loop.GetOutPort( 'Max' )
+    IEndOfLoopDoLoop = EndOfLoop.GetInPort( 'DoLoop' )
+    IEndOfLoopIndex = EndOfLoop.GetInPort( 'Index' )
+    IEndOfLoopMin = EndOfLoop.GetInPort( 'Min' )
+    IEndOfLoopMax = EndOfLoop.GetInPort( 'Max' )
+    IEndOfLoopGate = EndOfLoop.GetInPort( 'Gate' )
+    OEndOfLoopDoLoop = EndOfLoop.GetOutPort( 'DoLoop' )
+    OEndOfLoopIndex = EndOfLoop.GetOutPort( 'Index' )
+    OEndOfLoopMin = EndOfLoop.GetOutPort( 'Min' )
+    OEndOfLoopMax = EndOfLoop.GetOutPort( 'Max' )
+    OEndOfLoopGate = EndOfLoop.GetOutPort( 'Gate' )
+    Loop.SetName( 'Loop' )
+    Loop.SetAuthor( '' )
+    Loop.SetComment( 'Compute Node' )
+    Loop.Coords( 12 , 276 )
+    
+    # Creation of Switch Nodes
+    PySwitchOdd = []
+    PySwitchOdd.append( 'from time import *  ' )
+    PySwitchOdd.append( 'def Switch(a) :    ' )
+    PySwitchOdd.append( '    sleep(1)     ' )
+    PySwitchOdd.append( '    return a & 1,1-(a&1),a     ' )
+    SwitchOdd,EndOfSwitchOdd = GraphLoopSwitchsAborted.SNode( 'Switch' , PySwitchOdd )
+    EndOfSwitchOdd.SetName( 'EndOfSwitchOdd' )
+    EndOfSwitchOdd.SetAuthor( '' )
+    EndOfSwitchOdd.SetComment( 'Compute Node' )
+    EndOfSwitchOdd.Coords( 711 , 161 )
+    PyEndOfSwitchOdd = []
+    PyEndOfSwitchOdd.append( 'from time import * ' )
+    PyEndOfSwitchOdd.append( 'def EndOfSwitchOdd(a,Odd) : ' )
+    PyEndOfSwitchOdd.append( '    sleep(1) ' )
+    PyEndOfSwitchOdd.append( '    return a,Odd ' )
+    EndOfSwitchOdd.SetPyFunction( 'EndOfSwitchOdd' , PyEndOfSwitchOdd )
+    IEndOfSwitchOdda = EndOfSwitchOdd.InPort( 'a' , 'long' )
+    IEndOfSwitchOddOdd = EndOfSwitchOdd.InPort( 'Odd' , 'boolean' )
+    IEndOfSwitchOddDefault = EndOfSwitchOdd.GetInPort( 'Default' )
+    OEndOfSwitchOdda = EndOfSwitchOdd.OutPort( 'a' , 'long' )
+    OEndOfSwitchOddOdd = EndOfSwitchOdd.OutPort( 'Odd' , 'boolean' )
+    OEndOfSwitchOddGate = EndOfSwitchOdd.GetOutPort( 'Gate' )
+    SwitchOdd.SetName( 'SwitchOdd' )
+    SwitchOdd.SetAuthor( '' )
+    SwitchOdd.SetComment( 'Compute Node' )
+    SwitchOdd.Coords( 240 , 141 )
+    ISwitchOdda = SwitchOdd.InPort( 'a' , 'long' )
+    ISwitchOddGate = SwitchOdd.GetInPort( 'Gate' )
+    OSwitchOddOdd = SwitchOdd.OutPort( 'Odd' , 'long' )
+    OSwitchOddEven = SwitchOdd.OutPort( 'Even' , 'int' )
+    OSwitchOdda = SwitchOdd.OutPort( 'a' , 'int' )
+    OSwitchOddDefault = SwitchOdd.GetOutPort( 'Default' )
+    
+    PySwitchEven = []
+    PySwitchEven.append( 'from time import *   ' )
+    PySwitchEven.append( 'def Switch(a) : ' )
+    PySwitchEven.append( '    sleep(1)   ' )
+    PySwitchEven.append( '    return a & 1,1-(a&1),a     ' )
+    SwitchEven,EndOfSwitchEven = GraphLoopSwitchsAborted.SNode( 'Switch' , PySwitchEven )
+    EndOfSwitchEven.SetName( 'EndOfSwitchEven' )
+    EndOfSwitchEven.SetAuthor( '' )
+    EndOfSwitchEven.SetComment( 'Compute Node' )
+    EndOfSwitchEven.Coords( 718 , 361 )
+    PyEndOfSwitchEven = []
+    PyEndOfSwitchEven.append( 'from time import * ' )
+    PyEndOfSwitchEven.append( 'def EndOfSwitchEven(a,Even) : ' )
+    PyEndOfSwitchEven.append( '    sleep(1) ' )
+    PyEndOfSwitchEven.append( '    return a,Even ' )
+    EndOfSwitchEven.SetPyFunction( 'EndOfSwitchEven' , PyEndOfSwitchEven )
+    IEndOfSwitchEvena = EndOfSwitchEven.InPort( 'a' , 'long' )
+    IEndOfSwitchEvenEven = EndOfSwitchEven.InPort( 'Even' , 'boolean' )
+    IEndOfSwitchEvenDefault = EndOfSwitchEven.GetInPort( 'Default' )
+    OEndOfSwitchEvena = EndOfSwitchEven.OutPort( 'a' , 'long' )
+    OEndOfSwitchEvenEven = EndOfSwitchEven.OutPort( 'Even' , 'boolean' )
+    OEndOfSwitchEvenGate = EndOfSwitchEven.GetOutPort( 'Gate' )
+    SwitchEven.SetName( 'SwitchEven' )
+    SwitchEven.SetAuthor( '' )
+    SwitchEven.SetComment( 'Compute Node' )
+    SwitchEven.Coords( 235 , 386 )
+    ISwitchEvena = SwitchEven.InPort( 'a' , 'long' )
+    ISwitchEvenGate = SwitchEven.GetInPort( 'Gate' )
+    OSwitchEvenOdd = SwitchEven.OutPort( 'Odd' , 'long' )
+    OSwitchEvenEven = SwitchEven.OutPort( 'Even' , 'int' )
+    OSwitchEvena = SwitchEven.OutPort( 'a' , 'int' )
+    OSwitchEvenDefault = SwitchEven.GetOutPort( 'Default' )
+    
+    # Creation of Links
+    LIsOddaEndOfSwitchOdda = GraphLoopSwitchsAborted.Link( OIsOdda , IEndOfSwitchOdda )
+    
+    LIsOddOddEndOfSwitchOddOdd = GraphLoopSwitchsAborted.Link( OIsOddOdd , IEndOfSwitchOddOdd )
+    
+    LSwitchOddOddIsOddGate = GraphLoopSwitchsAborted.Link( OSwitchOddOdd , IIsOddGate )
+    
+    LSwitchOddaIsOdda = GraphLoopSwitchsAborted.Link( OSwitchOdda , IIsOdda )
+    
+    LEndOfSwitchOddaSwitchsCompareaOdd = GraphLoopSwitchsAborted.Link( OEndOfSwitchOdda , ISwitchsCompareaOdd )
+    
+    LEndOfSwitchOddOddSwitchsCompareOdd = GraphLoopSwitchsAborted.Link( OEndOfSwitchOddOdd , ISwitchsCompareOdd )
+    
+    LIsEvenaEndOfSwitchEvena = GraphLoopSwitchsAborted.Link( OIsEvena , IEndOfSwitchEvena )
+    
+    LIsEvenEvenEndOfSwitchEvenEven = GraphLoopSwitchsAborted.Link( OIsEvenEven , IEndOfSwitchEvenEven )
+    
+    LLoopIndexSwitchEvena = GraphLoopSwitchsAborted.Link( OLoopIndex , ISwitchEvena )
+    
+    LLoopIndexSwitchOdda = GraphLoopSwitchsAborted.Link( OLoopIndex , ISwitchOdda )
+    
+    LLoopMinEndOfLoopMin = GraphLoopSwitchsAborted.Link( OLoopMin , IEndOfLoopMin )
+    
+    LLoopMaxEndOfLoopMax = GraphLoopSwitchsAborted.Link( OLoopMax , IEndOfLoopMax )
+    
+    LSwitchEvenEvenIsEvenGate = GraphLoopSwitchsAborted.Link( OSwitchEvenEven , IIsEvenGate )
+    
+    LSwitchEvenaIsEvena = GraphLoopSwitchsAborted.Link( OSwitchEvena , IIsEvena )
+    
+    LEndOfSwitchEvenaSwitchsCompareaEven = GraphLoopSwitchsAborted.Link( OEndOfSwitchEvena , ISwitchsCompareaEven )
+    
+    LEndOfSwitchEvenEvenSwitchsCompareEven = GraphLoopSwitchsAborted.Link( OEndOfSwitchEvenEven , ISwitchsCompareEven )
+    
+    LSwitchsCompareaEndOfLoopIndex = GraphLoopSwitchsAborted.Link( OSwitchsComparea , IEndOfLoopIndex )
+    
+    # Input datas
+    ILoopIndex.Input( 0 )
+    ILoopMin.Input( 0 )
+    ILoopMax.Input( 23 )
+    
+    # Output Ports of the graph
+    #OSwitchOddEven = SwitchOdd.GetOutPort( 'Even' )
+    #OEndOfLoopIndex = EndOfLoop.GetOutPort( 'Index' )
+    #OEndOfLoopMin = EndOfLoop.GetOutPort( 'Min' )
+    #OEndOfLoopMax = EndOfLoop.GetOutPort( 'Max' )
+    #OSwitchEvenOdd = SwitchEven.GetOutPort( 'Odd' )
+    return GraphLoopSwitchsAborted
+
+
+GraphLoopSwitchsAborted = DefGraphLoopSwitchsAborted()
diff --git a/examples/GraphLoopSwitchsAborted.xml b/examples/GraphLoopSwitchsAborted.xml
new file mode 100644 (file)
index 0000000..0529923
--- /dev/null
@@ -0,0 +1,553 @@
+<!DOCTYPE SuperGraph>
+<supergraph>
+<dataflow>
+<info-list>
+<node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>GraphLoopSwitchsAborted</node-name>
+    <kind>1</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>GraphLoopSwitchs_1</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Loop__Index</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Loop__Min</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Loop__Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>int</outParameter-type>
+       <outParameter-name>SwitchOdd__Even</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>EndOfLoop__Index</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>EndOfLoop__Min</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>EndOfLoop__Max</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>SwitchEven__Odd</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>14/10/2003 - 10:29:4</creation-date>
+    <lastmodification-date>14/2/2005 - 16:59:13</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>JR</author>
+    <container>?</container>
+    <comment>Default links are missing</comment>
+    <x-position>0</x-position>
+    <y-position>0</y-position>   </node>  </info-list>
+  <node-list>
+<node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>IsOdd</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>IsOdd</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>IsOdd</FuncName>
+      <PyFunc><![CDATA[from time import *     ]]></PyFunc>
+      <PyFunc><![CDATA[def IsOdd(a) :         ]]></PyFunc>
+      <PyFunc><![CDATA[    print a,"IsOdd"        ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep( 1 )     ]]></PyFunc>
+      <PyFunc><![CDATA[    return a,1 ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 16:59:13</creation-date>
+    <lastmodification-date>14/2/2005 - 16:59:13</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Python function</comment>
+    <x-position>476</x-position>
+    <y-position>50</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>SwitchOdd</node-name>
+    <kind>6</kind>
+    <coupled-node>EndOfSwitchOdd</coupled-node>
+    <service>
+<service-name>SwitchOdd</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>int</outParameter-type>
+       <outParameter-name>Even</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>int</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>Switch</FuncName>
+      <PyFunc><![CDATA[from time import *  ]]></PyFunc>
+      <PyFunc><![CDATA[def Switch(a) :    ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1)     ]]></PyFunc>
+      <PyFunc><![CDATA[    return a & 1,1-(a&1),a     ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 16:59:13</creation-date>
+    <lastmodification-date>14/2/2005 - 16:59:13</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>240</x-position>
+    <y-position>141</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>EndOfSwitchOdd</node-name>
+    <kind>7</kind>
+    <coupled-node>SwitchOdd</coupled-node>
+    <service>
+<service-name>EndOfSwitchOdd</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>boolean</inParameter-type>
+       <inParameter-name>Odd</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>boolean</outParameter-type>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>EndOfSwitchOdd</FuncName>
+      <PyFunc><![CDATA[from time import * ]]></PyFunc>
+      <PyFunc><![CDATA[def EndOfSwitchOdd(a,Odd) : ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1) ]]></PyFunc>
+      <PyFunc><![CDATA[    return a,Odd ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 16:59:13</creation-date>
+    <lastmodification-date>14/2/2005 - 16:59:13</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>711</x-position>
+    <y-position>161</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>IsEven</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>IsEven</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Even</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>IsEven</FuncName>
+      <PyFunc><![CDATA[from time import *     ]]></PyFunc>
+      <PyFunc><![CDATA[def IsEven(a) :         ]]></PyFunc>
+      <PyFunc><![CDATA[    print a,"IsEven"        ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep( 1 )     ]]></PyFunc>
+      <PyFunc><![CDATA[    return a,1 ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 16:59:13</creation-date>
+    <lastmodification-date>14/2/2005 - 16:59:13</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Python function</comment>
+    <x-position>482</x-position>
+    <y-position>292</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>Loop</node-name>
+    <kind>4</kind>
+    <coupled-node>EndOfLoop</coupled-node>
+    <service>
+<service-name>Loop</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Index</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Min</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Index</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Min</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>InitLoop</FuncName>
+      <PyFunc><![CDATA[def InitLoop(Index,Min,Max) :      ]]></PyFunc>
+      <PyFunc><![CDATA[        return Index,Min,Max     ]]></PyFunc>     </PyFunction>
+     <PyFunction>
+<FuncName>MoreLoop</FuncName>
+      <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) :     ]]></PyFunc>
+      <PyFunc><![CDATA[        if Index <= Max :   ]]></PyFunc>
+      <PyFunc><![CDATA[                DoLoop = 1     ]]></PyFunc>
+      <PyFunc><![CDATA[        else :     ]]></PyFunc>
+      <PyFunc><![CDATA[                DoLoop = 0     ]]></PyFunc>
+      <PyFunc><![CDATA[        return DoLoop,Index,Min,Max     ]]></PyFunc>     </PyFunction>
+     <PyFunction>
+<FuncName>NextLoop</FuncName>
+      <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>14/2/2005 - 16:59:13</creation-date>
+    <lastmodification-date>14/2/2005 - 16:59:13</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>12</x-position>
+    <y-position>276</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>EndOfLoop</node-name>
+    <kind>5</kind>
+    <coupled-node>Loop</coupled-node>
+    <service>
+<service-name>EndOfLoop</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Index</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Min</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Index</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Min</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>?</FuncName>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 16:59:13</creation-date>
+    <lastmodification-date>14/2/2005 - 16:59:13</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>1102</x-position>
+    <y-position>282</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>SwitchEven</node-name>
+    <kind>6</kind>
+    <coupled-node>EndOfSwitchEven</coupled-node>
+    <service>
+<service-name>SwitchEven</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>int</outParameter-type>
+       <outParameter-name>Even</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>int</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>Switch</FuncName>
+      <PyFunc><![CDATA[from time import *   ]]></PyFunc>
+      <PyFunc><![CDATA[def Switch(a) : ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1)   ]]></PyFunc>
+      <PyFunc><![CDATA[    return a & 1,1-(a&1),a     ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 16:59:13</creation-date>
+    <lastmodification-date>14/2/2005 - 16:59:13</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>235</x-position>
+    <y-position>386</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>EndOfSwitchEven</node-name>
+    <kind>7</kind>
+    <coupled-node>SwitchEven</coupled-node>
+    <service>
+<service-name>EndOfSwitchEven</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>boolean</inParameter-type>
+       <inParameter-name>Even</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>boolean</outParameter-type>
+       <outParameter-name>Even</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>EndOfSwitchEven</FuncName>
+      <PyFunc><![CDATA[from time import * ]]></PyFunc>
+      <PyFunc><![CDATA[def EndOfSwitchEven(a,Even) : ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1) ]]></PyFunc>
+      <PyFunc><![CDATA[    return a,Even ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 16:59:13</creation-date>
+    <lastmodification-date>14/2/2005 - 16:59:13</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>718</x-position>
+    <y-position>361</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>SwitchsCompare</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>SwitchsCompare</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>aOdd</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>boolean</inParameter-type>
+       <inParameter-name>Odd</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>aEven</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>boolean</inParameter-type>
+       <inParameter-name>Even</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>SwitchsCompare</FuncName>
+      <PyFunc><![CDATA[from time import * ]]></PyFunc>
+      <PyFunc><![CDATA[def SwitchsCompare(aOdd,Odd,aEven,Even) : ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1) ]]></PyFunc>
+      <PyFunc><![CDATA[    return aOdd  ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 16:59:13</creation-date>
+    <lastmodification-date>14/2/2005 - 16:59:13</lastmodification-date>
+    <editor-release>2.0</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>919</x-position>
+    <y-position>242</y-position>   </node>  </node-list>
+  <link-list>
+<link>
+<fromnode-name>IsOdd</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchOdd</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>IsOdd</fromnode-name>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchOdd</tonode-name>
+    <toserviceparameter-name>Odd</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>IsOdd</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>IsOdd</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndOfSwitchOdd</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>SwitchsCompare</tonode-name>
+    <toserviceparameter-name>aOdd</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndOfSwitchOdd</fromnode-name>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>SwitchsCompare</tonode-name>
+    <toserviceparameter-name>Odd</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>IsEven</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchEven</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>IsEven</fromnode-name>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchEven</tonode-name>
+    <toserviceparameter-name>Even</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Loop</fromnode-name>
+    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+    <tonode-name>EndOfLoop</tonode-name>
+    <toserviceparameter-name>DoLoop</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Loop</fromnode-name>
+    <fromserviceparameter-name>Index</fromserviceparameter-name>
+    <tonode-name>SwitchEven</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Loop</fromnode-name>
+    <fromserviceparameter-name>Index</fromserviceparameter-name>
+    <tonode-name>SwitchOdd</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Loop</fromnode-name>
+    <fromserviceparameter-name>Min</fromserviceparameter-name>
+    <tonode-name>EndOfLoop</tonode-name>
+    <toserviceparameter-name>Min</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Loop</fromnode-name>
+    <fromserviceparameter-name>Max</fromserviceparameter-name>
+    <tonode-name>EndOfLoop</tonode-name>
+    <toserviceparameter-name>Max</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndOfLoop</fromnode-name>
+    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+    <tonode-name>Loop</tonode-name>
+    <toserviceparameter-name>DoLoop</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchEven</fromnode-name>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>IsEven</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchEven</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>IsEven</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndOfSwitchEven</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>SwitchsCompare</tonode-name>
+    <toserviceparameter-name>aEven</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndOfSwitchEven</fromnode-name>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>SwitchsCompare</tonode-name>
+    <toserviceparameter-name>Even</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchsCompare</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfLoop</tonode-name>
+    <toserviceparameter-name>Index</toserviceparameter-name>
+    <coord-list/>   </link>  </link-list>
+  <data-list>
+<data>
+<fromnode-name>GraphLoopSwitchsAborted</fromnode-name>
+    <fromserviceparameter-name>Loop__Index</fromserviceparameter-name>
+    <tonode-name>Loop</tonode-name>
+    <toserviceparameter-name>Index</toserviceparameter-name>
+    <data-value>
+<value-type>3</value-type>
+     <value>0</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
+<fromnode-name>GraphLoopSwitchsAborted</fromnode-name>
+    <fromserviceparameter-name>Loop__Min</fromserviceparameter-name>
+    <tonode-name>Loop</tonode-name>
+    <toserviceparameter-name>Min</toserviceparameter-name>
+    <data-value>
+<value-type>3</value-type>
+     <value>0</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
+<fromnode-name>GraphLoopSwitchsAborted</fromnode-name>
+    <fromserviceparameter-name>Loop__Max</fromserviceparameter-name>
+    <tonode-name>Loop</tonode-name>
+    <toserviceparameter-name>Max</toserviceparameter-name>
+    <data-value>
+<value-type>3</value-type>
+     <value>23</value>    </data-value>
+    <coord-list/>   </data>  </data-list> </dataflow></supergraph>
diff --git a/examples/GraphLoopSwitchsBranches.py b/examples/GraphLoopSwitchsBranches.py
new file mode 100644 (file)
index 0000000..40b474c
--- /dev/null
@@ -0,0 +1,290 @@
+
+# Generated python file of Graph GraphLoopSwitchsBranches_1
+
+from SuperV import *
+
+# Graph creation of GraphLoopSwitchsBranches_1
+def DefGraphLoopSwitchsBranches_1() :
+    GraphLoopSwitchsBranches_1 = Graph( 'GraphLoopSwitchsBranches_1' )
+    GraphLoopSwitchsBranches_1.SetName( 'GraphLoopSwitchsBranches_1' )
+    GraphLoopSwitchsBranches_1.SetAuthor( 'JR' )
+    GraphLoopSwitchsBranches_1.SetComment( '' )
+    GraphLoopSwitchsBranches_1.Coords( 0 , 0 )
+    
+    # Creation of Factory Nodes
+    
+    # Creation of InLine Nodes
+    PyIsOdd = []
+    PyIsOdd.append( 'from time import *     ' )
+    PyIsOdd.append( 'def IsOdd(a) :         ' )
+    PyIsOdd.append( '    print a,"IsOdd"        ' )
+    PyIsOdd.append( '    sleep( 1 )     ' )
+    PyIsOdd.append( '    return a,1 ' )
+    IsOdd = GraphLoopSwitchsBranches_1.INode( 'IsOdd' , PyIsOdd )
+    IsOdd.SetName( 'IsOdd' )
+    IsOdd.SetAuthor( '' )
+    IsOdd.SetComment( 'Python function' )
+    IsOdd.Coords( 476 , 2 )
+    IIsOdda = IsOdd.InPort( 'a' , 'long' )
+    IIsOddGate = IsOdd.GetInPort( 'Gate' )
+    OIsOdda = IsOdd.OutPort( 'a' , 'long' )
+    OIsOddOdd = IsOdd.OutPort( 'Odd' , 'long' )
+    OIsOddGate = IsOdd.GetOutPort( 'Gate' )
+    
+    PyIsEven = []
+    PyIsEven.append( 'from time import *     ' )
+    PyIsEven.append( 'def IsEven(a) :         ' )
+    PyIsEven.append( '    print a,"IsEven"        ' )
+    PyIsEven.append( '    sleep( 1 )     ' )
+    PyIsEven.append( '    return a,1 ' )
+    IsEven = GraphLoopSwitchsBranches_1.INode( 'IsEven' , PyIsEven )
+    IsEven.SetName( 'IsEven' )
+    IsEven.SetAuthor( '' )
+    IsEven.SetComment( 'Python function' )
+    IsEven.Coords( 472 , 724 )
+    IIsEvena = IsEven.InPort( 'a' , 'long' )
+    IIsEvenGate = IsEven.GetInPort( 'Gate' )
+    OIsEvena = IsEven.OutPort( 'a' , 'long' )
+    OIsEvenEven = IsEven.OutPort( 'Even' , 'long' )
+    OIsEvenGate = IsEven.GetOutPort( 'Gate' )
+    
+    PySwitchsCompare = []
+    PySwitchsCompare.append( 'from time import *  ' )
+    PySwitchsCompare.append( 'def SwitchsCompare(aOdd,Odd,aEven,Even,Index) :  ' )
+    PySwitchsCompare.append( '    sleep(1)  ' )
+    PySwitchsCompare.append( '    return Index ' )
+    SwitchsCompare = GraphLoopSwitchsBranches_1.INode( 'SwitchsCompare' , PySwitchsCompare )
+    SwitchsCompare.SetName( 'SwitchsCompare' )
+    SwitchsCompare.SetAuthor( '' )
+    SwitchsCompare.SetComment( 'Compute Node' )
+    SwitchsCompare.Coords( 918 , 221 )
+    ISwitchsCompareaOdd = SwitchsCompare.InPort( 'aOdd' , 'long' )
+    ISwitchsCompareOdd = SwitchsCompare.InPort( 'Odd' , 'boolean' )
+    ISwitchsCompareaEven = SwitchsCompare.InPort( 'aEven' , 'long' )
+    ISwitchsCompareEven = SwitchsCompare.InPort( 'Even' , 'boolean' )
+    ISwitchsCompareIndex = SwitchsCompare.InPort( 'Index' , 'long' )
+    ISwitchsCompareGate = SwitchsCompare.GetInPort( 'Gate' )
+    OSwitchsCompareIndex = SwitchsCompare.OutPort( 'Index' , 'long' )
+    OSwitchsCompareGate = SwitchsCompare.GetOutPort( 'Gate' )
+    
+    PyIsNotOdd = []
+    PyIsNotOdd.append( 'from time import * ' )
+    PyIsNotOdd.append( 'def IsNotOdd(Even) : ' )
+    PyIsNotOdd.append( '    sleep(1) ' )
+    PyIsNotOdd.append( '    return Even ' )
+    IsNotOdd = GraphLoopSwitchsBranches_1.INode( 'IsNotOdd' , PyIsNotOdd )
+    IsNotOdd.SetName( 'IsNotOdd' )
+    IsNotOdd.SetAuthor( '' )
+    IsNotOdd.SetComment( 'Compute Node' )
+    IsNotOdd.Coords( 477 , 145 )
+    IIsNotOddEven = IsNotOdd.InPort( 'Even' , 'long' )
+    IIsNotOddGate = IsNotOdd.GetInPort( 'Gate' )
+    OIsNotOddEven = IsNotOdd.OutPort( 'Even' , 'long' )
+    OIsNotOddGate = IsNotOdd.GetOutPort( 'Gate' )
+    
+    PyIsNotEven = []
+    PyIsNotEven.append( 'from time import *  ' )
+    PyIsNotEven.append( 'def IsNotEven(Odd) :  ' )
+    PyIsNotEven.append( '    sleep(1)  ' )
+    PyIsNotEven.append( '    return Odd ' )
+    IsNotEven = GraphLoopSwitchsBranches_1.INode( 'IsNotEven' , PyIsNotEven )
+    IsNotEven.SetName( 'IsNotEven' )
+    IsNotEven.SetAuthor( '' )
+    IsNotEven.SetComment( 'Compute Node' )
+    IsNotEven.Coords( 477 , 570 )
+    IIsNotEvenOdd = IsNotEven.InPort( 'Odd' , 'long' )
+    IIsNotEvenGate = IsNotEven.GetInPort( 'Gate' )
+    OIsNotEvenOdd = IsNotEven.OutPort( 'Odd' , 'long' )
+    OIsNotEvenGate = IsNotEven.GetOutPort( 'Gate' )
+    
+    # Creation of Loop Nodes
+    PyLoop = []
+    PyLoop.append( 'def InitLoop(Index,Min,Max) :      ' )
+    PyLoop.append( '   return Index,Min,Max     ' )
+    PyMoreLoop = []
+    PyMoreLoop.append( 'def MoreLoop(Index,Min,Max) :     ' )
+    PyMoreLoop.append( '       if Index <= Max :   ' )
+    PyMoreLoop.append( '               DoLoop = 1     ' )
+    PyMoreLoop.append( '       else :     ' )
+    PyMoreLoop.append( '               DoLoop = 0     ' )
+    PyMoreLoop.append( '       return DoLoop,Index,Min,Max     ' )
+    PyNextLoop = []
+    PyNextLoop.append( 'def NextLoop(Index,Min,Max) :     ' )
+    PyNextLoop.append( '       Index = Index + 1     ' )
+    PyNextLoop.append( '       return Index,Min,Max     ' )
+    Loop,EndOfLoop = GraphLoopSwitchsBranches_1.LNode( 'InitLoop' , PyLoop , 'MoreLoop' , PyMoreLoop , 'NextLoop' , PyNextLoop )
+    EndOfLoop.SetName( 'EndOfLoop' )
+    EndOfLoop.SetAuthor( '' )
+    EndOfLoop.SetComment( 'Compute Node' )
+    EndOfLoop.Coords( 1099 , 261 )
+    PyEndOfLoop = []
+    EndOfLoop.SetPyFunction( '' , PyEndOfLoop )
+    ILoopDoLoop = Loop.GetInPort( 'DoLoop' )
+    ILoopIndex = Loop.InPort( 'Index' , 'long' )
+    ILoopMin = Loop.InPort( 'Min' , 'long' )
+    ILoopMax = Loop.InPort( 'Max' , 'long' )
+    ILoopGate = Loop.GetInPort( 'Gate' )
+    OLoopDoLoop = Loop.GetOutPort( 'DoLoop' )
+    OLoopIndex = Loop.GetOutPort( 'Index' )
+    OLoopMin = Loop.GetOutPort( 'Min' )
+    OLoopMax = Loop.GetOutPort( 'Max' )
+    IEndOfLoopDoLoop = EndOfLoop.GetInPort( 'DoLoop' )
+    IEndOfLoopIndex = EndOfLoop.GetInPort( 'Index' )
+    IEndOfLoopMin = EndOfLoop.GetInPort( 'Min' )
+    IEndOfLoopMax = EndOfLoop.GetInPort( 'Max' )
+    IEndOfLoopGate = EndOfLoop.GetInPort( 'Gate' )
+    OEndOfLoopDoLoop = EndOfLoop.GetOutPort( 'DoLoop' )
+    OEndOfLoopIndex = EndOfLoop.GetOutPort( 'Index' )
+    OEndOfLoopMin = EndOfLoop.GetOutPort( 'Min' )
+    OEndOfLoopMax = EndOfLoop.GetOutPort( 'Max' )
+    OEndOfLoopGate = EndOfLoop.GetOutPort( 'Gate' )
+    Loop.SetName( 'Loop' )
+    Loop.SetAuthor( '' )
+    Loop.SetComment( 'Compute Node' )
+    Loop.Coords( 19 , 341 )
+    
+    # Creation of Switch Nodes
+    PySwitchOdd = []
+    PySwitchOdd.append( 'from time import *    ' )
+    PySwitchOdd.append( 'def SwitchOdd(a) :      ' )
+    PySwitchOdd.append( '    sleep(1)  ' )
+    PySwitchOdd.append( '    OddEven = 'Odd'  ' )
+    PySwitchOdd.append( '    if (a&1) == 0 :  ' )
+    PySwitchOdd.append( '        OddEven = 'Even'  ' )
+    PySwitchOdd.append( '    return a & 1,1-(a&1),a,OddEven  ' )
+    SwitchOdd,EndOfSwitchOdd = GraphLoopSwitchsBranches_1.SNode( 'SwitchOdd' , PySwitchOdd )
+    EndOfSwitchOdd.SetName( 'EndOfSwitchOdd' )
+    EndOfSwitchOdd.SetAuthor( '' )
+    EndOfSwitchOdd.SetComment( 'Compute Node' )
+    EndOfSwitchOdd.Coords( 715 , 208 )
+    PyEndOfSwitchOdd = []
+    PyEndOfSwitchOdd.append( 'from time import *  ' )
+    PyEndOfSwitchOdd.append( 'def EndOfSwitchOdd(a,Odd,Even,OddEven) :  ' )
+    PyEndOfSwitchOdd.append( '    sleep(1)  ' )
+    PyEndOfSwitchOdd.append( '    return a,Odd  ' )
+    EndOfSwitchOdd.SetPyFunction( 'EndOfSwitchOdd' , PyEndOfSwitchOdd )
+    IEndOfSwitchOdda = EndOfSwitchOdd.InPort( 'a' , 'long' )
+    IEndOfSwitchOddOdd = EndOfSwitchOdd.InPort( 'Odd' , 'boolean' )
+    IEndOfSwitchOddEven = EndOfSwitchOdd.InPort( 'Even' , 'long' )
+    IEndOfSwitchOddOddEven = EndOfSwitchOdd.InPort( 'OddEven' , 'boolean' )
+    IEndOfSwitchOddDefault = EndOfSwitchOdd.GetInPort( 'Default' )
+    OEndOfSwitchOdda = EndOfSwitchOdd.OutPort( 'a' , 'long' )
+    OEndOfSwitchOddOdd = EndOfSwitchOdd.OutPort( 'Odd' , 'boolean' )
+    OEndOfSwitchOddGate = EndOfSwitchOdd.GetOutPort( 'Gate' )
+    SwitchOdd.SetName( 'SwitchOdd' )
+    SwitchOdd.SetAuthor( '' )
+    SwitchOdd.SetComment( 'Compute Node' )
+    SwitchOdd.Coords( 241 , 208 )
+    ISwitchOdda = SwitchOdd.InPort( 'a' , 'long' )
+    ISwitchOddGate = SwitchOdd.GetInPort( 'Gate' )
+    OSwitchOddOdd = SwitchOdd.OutPort( 'Odd' , 'long' )
+    OSwitchOddEven = SwitchOdd.OutPort( 'Even' , 'int' )
+    OSwitchOdda = SwitchOdd.OutPort( 'a' , 'int' )
+    OSwitchOddOddEven = SwitchOdd.OutPort( 'OddEven' , 'string' )
+    OSwitchOddDefault = SwitchOdd.GetOutPort( 'Default' )
+    
+    PySwitchEven = []
+    PySwitchEven.append( 'from time import *      ' )
+    PySwitchEven.append( 'def SwitchEven(a) :    ' )
+    PySwitchEven.append( '    sleep(1)   ' )
+    PySwitchEven.append( '    OddEven = 'Even'   ' )
+    PySwitchEven.append( '    if (a&1) != 0 :   ' )
+    PySwitchEven.append( '        OddEven = 'Odd'  ' )
+    PySwitchEven.append( '    return a & 1,1-(a&1),a,OddEven   ' )
+    SwitchEven,EndOfSwitchEven = GraphLoopSwitchsBranches_1.SNode( 'SwitchEven' , PySwitchEven )
+    EndOfSwitchEven.SetName( 'EndOfSwitchEven' )
+    EndOfSwitchEven.SetAuthor( '' )
+    EndOfSwitchEven.SetComment( 'Compute Node' )
+    EndOfSwitchEven.Coords( 722 , 425 )
+    PyEndOfSwitchEven = []
+    PyEndOfSwitchEven.append( 'from time import *  ' )
+    PyEndOfSwitchEven.append( 'def EndOfSwitchEven(a,Even,Odd,OddEven) :  ' )
+    PyEndOfSwitchEven.append( '    sleep(1)  ' )
+    PyEndOfSwitchEven.append( '    return a,Even  ' )
+    EndOfSwitchEven.SetPyFunction( 'EndOfSwitchEven' , PyEndOfSwitchEven )
+    IEndOfSwitchEvena = EndOfSwitchEven.InPort( 'a' , 'long' )
+    IEndOfSwitchEvenEven = EndOfSwitchEven.InPort( 'Even' , 'boolean' )
+    IEndOfSwitchEvenOdd = EndOfSwitchEven.InPort( 'Odd' , 'long' )
+    IEndOfSwitchEvenOddEven = EndOfSwitchEven.InPort( 'OddEven' , 'string' )
+    IEndOfSwitchEvenDefault = EndOfSwitchEven.GetInPort( 'Default' )
+    OEndOfSwitchEvena = EndOfSwitchEven.OutPort( 'a' , 'long' )
+    OEndOfSwitchEvenEven = EndOfSwitchEven.OutPort( 'Even' , 'boolean' )
+    OEndOfSwitchEvenGate = EndOfSwitchEven.GetOutPort( 'Gate' )
+    SwitchEven.SetName( 'SwitchEven' )
+    SwitchEven.SetAuthor( '' )
+    SwitchEven.SetComment( 'Compute Node' )
+    SwitchEven.Coords( 228 , 425 )
+    ISwitchEvena = SwitchEven.InPort( 'a' , 'long' )
+    ISwitchEvenGate = SwitchEven.GetInPort( 'Gate' )
+    OSwitchEvenOdd = SwitchEven.OutPort( 'Odd' , 'long' )
+    OSwitchEvenEven = SwitchEven.OutPort( 'Even' , 'int' )
+    OSwitchEvena = SwitchEven.OutPort( 'a' , 'int' )
+    OSwitchEvenOddEven = SwitchEven.OutPort( 'OddEven' , 'string' )
+    OSwitchEvenDefault = SwitchEven.GetOutPort( 'Default' )
+    
+    # Creation of Links
+    LIsOddaEndOfSwitchOdda = GraphLoopSwitchsBranches_1.Link( OIsOdda , IEndOfSwitchOdda )
+    
+    LIsOddOddEndOfSwitchOddOdd = GraphLoopSwitchsBranches_1.Link( OIsOddOdd , IEndOfSwitchOddOdd )
+    
+    LSwitchOddOddIsOddGate = GraphLoopSwitchsBranches_1.Link( OSwitchOddOdd , IIsOddGate )
+    
+    LSwitchOddEvenIsNotOddEven = GraphLoopSwitchsBranches_1.Link( OSwitchOddEven , IIsNotOddEven )
+    
+    LSwitchOddaIsOdda = GraphLoopSwitchsBranches_1.Link( OSwitchOdda , IIsOdda )
+    
+    LSwitchOddOddEvenEndOfSwitchOddOddEven = GraphLoopSwitchsBranches_1.Link( OSwitchOddOddEven , IEndOfSwitchOddOddEven )
+    
+    LSwitchOddDefaultEndOfSwitchOddDefault = GraphLoopSwitchsBranches_1.Link( OSwitchOddDefault , IEndOfSwitchOddDefault )
+    
+    LEndOfSwitchOddaSwitchsCompareaOdd = GraphLoopSwitchsBranches_1.Link( OEndOfSwitchOdda , ISwitchsCompareaOdd )
+    
+    LEndOfSwitchOddOddSwitchsCompareOdd = GraphLoopSwitchsBranches_1.Link( OEndOfSwitchOddOdd , ISwitchsCompareOdd )
+    
+    LIsEvenaEndOfSwitchEvena = GraphLoopSwitchsBranches_1.Link( OIsEvena , IEndOfSwitchEvena )
+    
+    LIsEvenEvenEndOfSwitchEvenEven = GraphLoopSwitchsBranches_1.Link( OIsEvenEven , IEndOfSwitchEvenEven )
+    
+    LLoopIndexSwitchOdda = GraphLoopSwitchsBranches_1.Link( OLoopIndex , ISwitchOdda )
+    
+    LLoopIndexSwitchEvena = GraphLoopSwitchsBranches_1.Link( OLoopIndex , ISwitchEvena )
+    
+    LLoopIndexSwitchsCompareIndex = GraphLoopSwitchsBranches_1.Link( OLoopIndex , ISwitchsCompareIndex )
+    
+    LLoopMinEndOfLoopMin = GraphLoopSwitchsBranches_1.Link( OLoopMin , IEndOfLoopMin )
+    
+    LLoopMaxEndOfLoopMax = GraphLoopSwitchsBranches_1.Link( OLoopMax , IEndOfLoopMax )
+    
+    LSwitchEvenOddIsNotEvenOdd = GraphLoopSwitchsBranches_1.Link( OSwitchEvenOdd , IIsNotEvenOdd )
+    
+    LSwitchEvenEvenIsEvenGate = GraphLoopSwitchsBranches_1.Link( OSwitchEvenEven , IIsEvenGate )
+    
+    LSwitchEvenaIsEvena = GraphLoopSwitchsBranches_1.Link( OSwitchEvena , IIsEvena )
+    
+    LSwitchEvenOddEvenEndOfSwitchEvenOddEven = GraphLoopSwitchsBranches_1.Link( OSwitchEvenOddEven , IEndOfSwitchEvenOddEven )
+    
+    LSwitchEvenDefaultEndOfSwitchEvenDefault = GraphLoopSwitchsBranches_1.Link( OSwitchEvenDefault , IEndOfSwitchEvenDefault )
+    
+    LEndOfSwitchEvenaSwitchsCompareaEven = GraphLoopSwitchsBranches_1.Link( OEndOfSwitchEvena , ISwitchsCompareaEven )
+    
+    LEndOfSwitchEvenEvenSwitchsCompareEven = GraphLoopSwitchsBranches_1.Link( OEndOfSwitchEvenEven , ISwitchsCompareEven )
+    
+    LSwitchsCompareIndexEndOfLoopIndex = GraphLoopSwitchsBranches_1.Link( OSwitchsCompareIndex , IEndOfLoopIndex )
+    
+    LIsNotOddEvenEndOfSwitchOddEven = GraphLoopSwitchsBranches_1.Link( OIsNotOddEven , IEndOfSwitchOddEven )
+    
+    LIsNotEvenOddEndOfSwitchEvenOdd = GraphLoopSwitchsBranches_1.Link( OIsNotEvenOdd , IEndOfSwitchEvenOdd )
+    
+    # Input datas
+    ILoopIndex.Input( 0 )
+    ILoopMin.Input( 0 )
+    ILoopMax.Input( 23 )
+    
+    # Output Ports of the graph
+    #OEndOfLoopIndex = EndOfLoop.GetOutPort( 'Index' )
+    #OEndOfLoopMin = EndOfLoop.GetOutPort( 'Min' )
+    #OEndOfLoopMax = EndOfLoop.GetOutPort( 'Max' )
+    return GraphLoopSwitchsBranches_1
+
+
+GraphLoopSwitchsBranches_1 = DefGraphLoopSwitchsBranches_1()
diff --git a/examples/GraphLoopSwitchsBranches.xml b/examples/GraphLoopSwitchsBranches.xml
new file mode 100644 (file)
index 0000000..293e2cd
--- /dev/null
@@ -0,0 +1,692 @@
+<!DOCTYPE SuperGraph>
+<supergraph>
+<dataflow>
+<info-list>
+<node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>GraphLoopSwitchsBranches_1</node-name>
+    <kind>1</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>GraphLoopSwitchsBranches_1</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Loop__Index</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Loop__Min</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Loop__Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>EndOfLoop__Index</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>EndOfLoop__Min</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>EndOfLoop__Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>14/10/2003 - 10:29:4</creation-date>
+    <lastmodification-date>11/2/2005 - 17:27:23</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>JR</author>
+    <container>?</container>
+    <comment>?</comment>
+    <x-position>0</x-position>
+    <y-position>0</y-position>   </node>  </info-list>
+  <node-list>
+<node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>IsOdd</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>IsOdd</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>IsOdd</FuncName>
+      <PyFunc><![CDATA[from time import *     ]]></PyFunc>
+      <PyFunc><![CDATA[def IsOdd(a) :         ]]></PyFunc>
+      <PyFunc><![CDATA[    print a,"IsOdd"        ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep( 1 )     ]]></PyFunc>
+      <PyFunc><![CDATA[    return a,1 ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 17:27:23</creation-date>
+    <lastmodification-date>11/2/2005 - 17:27:23</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Python function</comment>
+    <x-position>476</x-position>
+    <y-position>2</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>SwitchOdd</node-name>
+    <kind>6</kind>
+    <coupled-node>EndOfSwitchOdd</coupled-node>
+    <service>
+<service-name>SwitchOdd</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>int</outParameter-type>
+       <outParameter-name>Even</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>int</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>string</outParameter-type>
+       <outParameter-name>OddEven</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>SwitchOdd</FuncName>
+      <PyFunc><![CDATA[from time import *    ]]></PyFunc>
+      <PyFunc><![CDATA[def SwitchOdd(a) :      ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1)  ]]></PyFunc>
+      <PyFunc><![CDATA[    OddEven = 'Odd'  ]]></PyFunc>
+      <PyFunc><![CDATA[    if (a&1) == 0 :  ]]></PyFunc>
+      <PyFunc><![CDATA[        OddEven = 'Even'  ]]></PyFunc>
+      <PyFunc><![CDATA[    return a & 1,1-(a&1),a,OddEven  ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 17:27:23</creation-date>
+    <lastmodification-date>11/2/2005 - 17:27:23</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>241</x-position>
+    <y-position>208</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>EndOfSwitchOdd</node-name>
+    <kind>7</kind>
+    <coupled-node>SwitchOdd</coupled-node>
+    <service>
+<service-name>EndOfSwitchOdd</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>boolean</inParameter-type>
+       <inParameter-name>Odd</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Even</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>boolean</inParameter-type>
+       <inParameter-name>OddEven</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>boolean</outParameter-type>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>EndOfSwitchOdd</FuncName>
+      <PyFunc><![CDATA[from time import *  ]]></PyFunc>
+      <PyFunc><![CDATA[def EndOfSwitchOdd(a,Odd,Even,OddEven) :  ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1)  ]]></PyFunc>
+      <PyFunc><![CDATA[    return a,Odd  ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 17:27:23</creation-date>
+    <lastmodification-date>11/2/2005 - 17:27:23</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>715</x-position>
+    <y-position>208</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>IsEven</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>IsEven</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Even</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>IsEven</FuncName>
+      <PyFunc><![CDATA[from time import *     ]]></PyFunc>
+      <PyFunc><![CDATA[def IsEven(a) :         ]]></PyFunc>
+      <PyFunc><![CDATA[    print a,"IsEven"        ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep( 1 )     ]]></PyFunc>
+      <PyFunc><![CDATA[    return a,1 ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 17:27:23</creation-date>
+    <lastmodification-date>11/2/2005 - 17:27:23</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Python function</comment>
+    <x-position>472</x-position>
+    <y-position>724</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>Loop</node-name>
+    <kind>4</kind>
+    <coupled-node>EndOfLoop</coupled-node>
+    <service>
+<service-name>Loop</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Index</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Min</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Index</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Min</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>InitLoop</FuncName>
+      <PyFunc><![CDATA[def InitLoop(Index,Min,Max) :      ]]></PyFunc>
+      <PyFunc><![CDATA[        return Index,Min,Max     ]]></PyFunc>     </PyFunction>
+     <PyFunction>
+<FuncName>MoreLoop</FuncName>
+      <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) :     ]]></PyFunc>
+      <PyFunc><![CDATA[        if Index <= Max :   ]]></PyFunc>
+      <PyFunc><![CDATA[                DoLoop = 1     ]]></PyFunc>
+      <PyFunc><![CDATA[        else :     ]]></PyFunc>
+      <PyFunc><![CDATA[                DoLoop = 0     ]]></PyFunc>
+      <PyFunc><![CDATA[        return DoLoop,Index,Min,Max     ]]></PyFunc>     </PyFunction>
+     <PyFunction>
+<FuncName>NextLoop</FuncName>
+      <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>11/2/2005 - 17:27:23</creation-date>
+    <lastmodification-date>11/2/2005 - 17:27:23</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>19</x-position>
+    <y-position>341</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>EndOfLoop</node-name>
+    <kind>5</kind>
+    <coupled-node>Loop</coupled-node>
+    <service>
+<service-name>EndOfLoop</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Index</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Min</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Index</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Min</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>?</FuncName>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 17:27:23</creation-date>
+    <lastmodification-date>11/2/2005 - 17:27:23</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>1099</x-position>
+    <y-position>261</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>SwitchEven</node-name>
+    <kind>6</kind>
+    <coupled-node>EndOfSwitchEven</coupled-node>
+    <service>
+<service-name>SwitchEven</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>int</outParameter-type>
+       <outParameter-name>Even</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>int</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>string</outParameter-type>
+       <outParameter-name>OddEven</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>SwitchEven</FuncName>
+      <PyFunc><![CDATA[from time import *      ]]></PyFunc>
+      <PyFunc><![CDATA[def SwitchEven(a) :    ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1)   ]]></PyFunc>
+      <PyFunc><![CDATA[    OddEven = 'Even'   ]]></PyFunc>
+      <PyFunc><![CDATA[    if (a&1) != 0 :   ]]></PyFunc>
+      <PyFunc><![CDATA[        OddEven = 'Odd'  ]]></PyFunc>
+      <PyFunc><![CDATA[    return a & 1,1-(a&1),a,OddEven   ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 17:27:23</creation-date>
+    <lastmodification-date>11/2/2005 - 17:27:23</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>228</x-position>
+    <y-position>425</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>EndOfSwitchEven</node-name>
+    <kind>7</kind>
+    <coupled-node>SwitchEven</coupled-node>
+    <service>
+<service-name>EndOfSwitchEven</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>boolean</inParameter-type>
+       <inParameter-name>Even</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Odd</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>string</inParameter-type>
+       <inParameter-name>OddEven</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>boolean</outParameter-type>
+       <outParameter-name>Even</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>EndOfSwitchEven</FuncName>
+      <PyFunc><![CDATA[from time import *  ]]></PyFunc>
+      <PyFunc><![CDATA[def EndOfSwitchEven(a,Even,Odd,OddEven) :  ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1)  ]]></PyFunc>
+      <PyFunc><![CDATA[    return a,Even  ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 17:27:23</creation-date>
+    <lastmodification-date>11/2/2005 - 17:27:23</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>722</x-position>
+    <y-position>425</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>SwitchsCompare</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>SwitchsCompare</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>aOdd</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>boolean</inParameter-type>
+       <inParameter-name>Odd</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>aEven</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>boolean</inParameter-type>
+       <inParameter-name>Even</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Index</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Index</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>SwitchsCompare</FuncName>
+      <PyFunc><![CDATA[from time import *  ]]></PyFunc>
+      <PyFunc><![CDATA[def SwitchsCompare(aOdd,Odd,aEven,Even,Index) :  ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1)  ]]></PyFunc>
+      <PyFunc><![CDATA[    return Index ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 17:27:23</creation-date>
+    <lastmodification-date>11/2/2005 - 17:27:23</lastmodification-date>
+    <editor-release>2.0</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>918</x-position>
+    <y-position>221</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>IsNotOdd</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>IsNotOdd</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Even</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Even</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>IsNotOdd</FuncName>
+      <PyFunc><![CDATA[from time import * ]]></PyFunc>
+      <PyFunc><![CDATA[def IsNotOdd(Even) : ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1) ]]></PyFunc>
+      <PyFunc><![CDATA[    return Even ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 17:27:23</creation-date>
+    <lastmodification-date>11/2/2005 - 17:27:23</lastmodification-date>
+    <editor-release>2.0</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>477</x-position>
+    <y-position>145</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>IsNotEven</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>IsNotEven</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Odd</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>IsNotEven</FuncName>
+      <PyFunc><![CDATA[from time import *  ]]></PyFunc>
+      <PyFunc><![CDATA[def IsNotEven(Odd) :  ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1)  ]]></PyFunc>
+      <PyFunc><![CDATA[    return Odd ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 17:27:23</creation-date>
+    <lastmodification-date>11/2/2005 - 17:27:23</lastmodification-date>
+    <editor-release>2.0</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>477</x-position>
+    <y-position>570</y-position>   </node>  </node-list>
+  <link-list>
+<link>
+<fromnode-name>IsOdd</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchOdd</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>IsOdd</fromnode-name>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchOdd</tonode-name>
+    <toserviceparameter-name>Odd</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>IsOdd</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>IsNotOdd</tonode-name>
+    <toserviceparameter-name>Even</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>IsOdd</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>OddEven</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchOdd</tonode-name>
+    <toserviceparameter-name>OddEven</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>Default</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchOdd</tonode-name>
+    <toserviceparameter-name>Default</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndOfSwitchOdd</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>SwitchsCompare</tonode-name>
+    <toserviceparameter-name>aOdd</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndOfSwitchOdd</fromnode-name>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>SwitchsCompare</tonode-name>
+    <toserviceparameter-name>Odd</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>IsEven</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchEven</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>IsEven</fromnode-name>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchEven</tonode-name>
+    <toserviceparameter-name>Even</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Loop</fromnode-name>
+    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+    <tonode-name>EndOfLoop</tonode-name>
+    <toserviceparameter-name>DoLoop</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Loop</fromnode-name>
+    <fromserviceparameter-name>Index</fromserviceparameter-name>
+    <tonode-name>SwitchOdd</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Loop</fromnode-name>
+    <fromserviceparameter-name>Index</fromserviceparameter-name>
+    <tonode-name>SwitchEven</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Loop</fromnode-name>
+    <fromserviceparameter-name>Index</fromserviceparameter-name>
+    <tonode-name>SwitchsCompare</tonode-name>
+    <toserviceparameter-name>Index</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Loop</fromnode-name>
+    <fromserviceparameter-name>Min</fromserviceparameter-name>
+    <tonode-name>EndOfLoop</tonode-name>
+    <toserviceparameter-name>Min</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Loop</fromnode-name>
+    <fromserviceparameter-name>Max</fromserviceparameter-name>
+    <tonode-name>EndOfLoop</tonode-name>
+    <toserviceparameter-name>Max</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndOfLoop</fromnode-name>
+    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+    <tonode-name>Loop</tonode-name>
+    <toserviceparameter-name>DoLoop</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchEven</fromnode-name>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>IsNotEven</tonode-name>
+    <toserviceparameter-name>Odd</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchEven</fromnode-name>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>IsEven</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchEven</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>IsEven</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchEven</fromnode-name>
+    <fromserviceparameter-name>OddEven</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchEven</tonode-name>
+    <toserviceparameter-name>OddEven</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchEven</fromnode-name>
+    <fromserviceparameter-name>Default</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchEven</tonode-name>
+    <toserviceparameter-name>Default</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndOfSwitchEven</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>SwitchsCompare</tonode-name>
+    <toserviceparameter-name>aEven</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndOfSwitchEven</fromnode-name>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>SwitchsCompare</tonode-name>
+    <toserviceparameter-name>Even</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchsCompare</fromnode-name>
+    <fromserviceparameter-name>Index</fromserviceparameter-name>
+    <tonode-name>EndOfLoop</tonode-name>
+    <toserviceparameter-name>Index</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>IsNotOdd</fromnode-name>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchOdd</tonode-name>
+    <toserviceparameter-name>Even</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>IsNotEven</fromnode-name>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchEven</tonode-name>
+    <toserviceparameter-name>Odd</toserviceparameter-name>
+    <coord-list/>   </link>  </link-list>
+  <data-list>
+<data>
+<fromnode-name>GraphLoopSwitchsBranches_1</fromnode-name>
+    <fromserviceparameter-name>Loop__Index</fromserviceparameter-name>
+    <tonode-name>Loop</tonode-name>
+    <toserviceparameter-name>Index</toserviceparameter-name>
+    <data-value>
+<value-type>3</value-type>
+     <value>0</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
+<fromnode-name>GraphLoopSwitchsBranches_1</fromnode-name>
+    <fromserviceparameter-name>Loop__Min</fromserviceparameter-name>
+    <tonode-name>Loop</tonode-name>
+    <toserviceparameter-name>Min</toserviceparameter-name>
+    <data-value>
+<value-type>3</value-type>
+     <value>0</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
+<fromnode-name>GraphLoopSwitchsBranches_1</fromnode-name>
+    <fromserviceparameter-name>Loop__Max</fromserviceparameter-name>
+    <tonode-name>Loop</tonode-name>
+    <toserviceparameter-name>Max</toserviceparameter-name>
+    <data-value>
+<value-type>3</value-type>
+     <value>23</value>    </data-value>
+    <coord-list/>   </data>  </data-list> </dataflow></supergraph>
diff --git a/examples/GraphLoopSwitchsBranchesDefaultAborted.py b/examples/GraphLoopSwitchsBranchesDefaultAborted.py
new file mode 100644 (file)
index 0000000..8591848
--- /dev/null
@@ -0,0 +1,346 @@
+
+# Generated python file of Graph GraphLoopSwitchsBranchesdefaultAborted
+
+from SuperV import *
+
+# Graph creation of GraphLoopSwitchsBranchesdefaultAborted
+def DefGraphLoopSwitchsBranchesdefaultAborted() :
+    GraphLoopSwitchsBranchesdefaultAborted = Graph( 'GraphLoopSwitchsBranchesdefaultAborted' )
+    GraphLoopSwitchsBranchesdefaultAborted.SetName( 'GraphLoopSwitchsBranchesdefaultAborted' )
+    GraphLoopSwitchsBranchesdefaultAborted.SetAuthor( 'JR' )
+    GraphLoopSwitchsBranchesdefaultAborted.SetComment( '' )
+    GraphLoopSwitchsBranchesdefaultAborted.Coords( 0 , 0 )
+    
+    # Creation of Factory Nodes
+    
+    # Creation of InLine Nodes
+    PyIsOdd = []
+    PyIsOdd.append( 'from time import *     ' )
+    PyIsOdd.append( 'def IsOdd(a) :         ' )
+    PyIsOdd.append( '    print a,"IsOdd"        ' )
+    PyIsOdd.append( '    sleep( 1 )     ' )
+    PyIsOdd.append( '    return a,1 ' )
+    IsOdd = GraphLoopSwitchsBranchesdefaultAborted.INode( 'IsOdd' , PyIsOdd )
+    IsOdd.SetName( 'IsOdd' )
+    IsOdd.SetAuthor( '' )
+    IsOdd.SetComment( 'Python function' )
+    IsOdd.Coords( 476 , 2 )
+    IIsOdda = IsOdd.InPort( 'a' , 'long' )
+    IIsOddGate = IsOdd.GetInPort( 'Gate' )
+    OIsOdda = IsOdd.OutPort( 'a' , 'long' )
+    OIsOddOdd = IsOdd.OutPort( 'Odd' , 'long' )
+    OIsOddGate = IsOdd.GetOutPort( 'Gate' )
+    
+    PyIsEven = []
+    PyIsEven.append( 'from time import *     ' )
+    PyIsEven.append( 'def IsEven(a) :         ' )
+    PyIsEven.append( '    print a,"IsEven"        ' )
+    PyIsEven.append( '    sleep( 1 )     ' )
+    PyIsEven.append( '    return a,1 ' )
+    IsEven = GraphLoopSwitchsBranchesdefaultAborted.INode( 'IsEven' , PyIsEven )
+    IsEven.SetName( 'IsEven' )
+    IsEven.SetAuthor( '' )
+    IsEven.SetComment( 'Python function' )
+    IsEven.Coords( 472 , 724 )
+    IIsEvena = IsEven.InPort( 'a' , 'long' )
+    IIsEvenGate = IsEven.GetInPort( 'Gate' )
+    OIsEvena = IsEven.OutPort( 'a' , 'long' )
+    OIsEvenEven = IsEven.OutPort( 'Even' , 'long' )
+    OIsEvenGate = IsEven.GetOutPort( 'Gate' )
+    
+    PySwitchsCompare = []
+    PySwitchsCompare.append( 'from time import *  ' )
+    PySwitchsCompare.append( 'def SwitchsCompare(aOdd,Odd,aEven,Even,Index) :  ' )
+    PySwitchsCompare.append( '    sleep(1)  ' )
+    PySwitchsCompare.append( '    return Index ' )
+    SwitchsCompare = GraphLoopSwitchsBranchesdefaultAborted.INode( 'SwitchsCompare' , PySwitchsCompare )
+    SwitchsCompare.SetName( 'SwitchsCompare' )
+    SwitchsCompare.SetAuthor( '' )
+    SwitchsCompare.SetComment( 'Compute Node' )
+    SwitchsCompare.Coords( 916 , 269 )
+    ISwitchsCompareaOdd = SwitchsCompare.InPort( 'aOdd' , 'long' )
+    ISwitchsCompareOdd = SwitchsCompare.InPort( 'Odd' , 'boolean' )
+    ISwitchsCompareaEven = SwitchsCompare.InPort( 'aEven' , 'long' )
+    ISwitchsCompareEven = SwitchsCompare.InPort( 'Even' , 'boolean' )
+    ISwitchsCompareIndex = SwitchsCompare.InPort( 'Index' , 'long' )
+    ISwitchsCompareGate = SwitchsCompare.GetInPort( 'Gate' )
+    OSwitchsCompareIndex = SwitchsCompare.OutPort( 'Index' , 'long' )
+    OSwitchsCompareGate = SwitchsCompare.GetOutPort( 'Gate' )
+    
+    PyIsNotOdd = []
+    PyIsNotOdd.append( 'from time import * ' )
+    PyIsNotOdd.append( 'def IsNotOdd(Even) : ' )
+    PyIsNotOdd.append( '    sleep(1) ' )
+    PyIsNotOdd.append( '    return Even ' )
+    IsNotOdd = GraphLoopSwitchsBranchesdefaultAborted.INode( 'IsNotOdd' , PyIsNotOdd )
+    IsNotOdd.SetName( 'IsNotOdd' )
+    IsNotOdd.SetAuthor( '' )
+    IsNotOdd.SetComment( 'Compute Node' )
+    IsNotOdd.Coords( 477 , 137 )
+    IIsNotOddEven = IsNotOdd.InPort( 'Even' , 'long' )
+    IIsNotOddGate = IsNotOdd.GetInPort( 'Gate' )
+    OIsNotOddEven = IsNotOdd.OutPort( 'Even' , 'long' )
+    OIsNotOddGate = IsNotOdd.GetOutPort( 'Gate' )
+    
+    PyIsNotEven = []
+    PyIsNotEven.append( 'from time import *  ' )
+    PyIsNotEven.append( 'def IsNotEven(Odd) :  ' )
+    PyIsNotEven.append( '    sleep(1)  ' )
+    PyIsNotEven.append( '    return Odd ' )
+    IsNotEven = GraphLoopSwitchsBranchesdefaultAborted.INode( 'IsNotEven' , PyIsNotEven )
+    IsNotEven.SetName( 'IsNotEven' )
+    IsNotEven.SetAuthor( '' )
+    IsNotEven.SetComment( 'Compute Node' )
+    IsNotEven.Coords( 475 , 601 )
+    IIsNotEvenOdd = IsNotEven.InPort( 'Odd' , 'long' )
+    IIsNotEvenGate = IsNotEven.GetInPort( 'Gate' )
+    OIsNotEvenOdd = IsNotEven.OutPort( 'Odd' , 'long' )
+    OIsNotEvenGate = IsNotEven.GetOutPort( 'Gate' )
+    
+    PyIsOdddefault = []
+    PyIsOdddefault.append( 'from time import * ' )
+    PyIsOdddefault.append( 'def IsOdddefault(a) : ' )
+    PyIsOdddefault.append( '    sleep(1) ' )
+    PyIsOdddefault.append( '    return a,0 ' )
+    PyIsOdddefault.append( '' )
+    IsOdddefault = GraphLoopSwitchsBranchesdefaultAborted.INode( 'IsOdddefault' , PyIsOdddefault )
+    IsOdddefault.SetName( 'IsOdddefault' )
+    IsOdddefault.SetAuthor( '' )
+    IsOdddefault.SetComment( 'Compute Node' )
+    IsOdddefault.Coords( 477 , 285 )
+    IIsOdddefaulta = IsOdddefault.InPort( 'a' , 'long' )
+    IIsOdddefaultGate = IsOdddefault.GetInPort( 'Gate' )
+    OIsOdddefaulta = IsOdddefault.OutPort( 'a' , 'long' )
+    OIsOdddefaultOdd = IsOdddefault.OutPort( 'Odd' , 'long' )
+    OIsOdddefaultGate = IsOdddefault.GetOutPort( 'Gate' )
+    
+    PyIsEvendefault = []
+    PyIsEvendefault.append( 'from time import *  ' )
+    PyIsEvendefault.append( 'def IsEvendefault(a) :  ' )
+    PyIsEvendefault.append( '    sleep(1)  ' )
+    PyIsEvendefault.append( '    return a,0  ' )
+    PyIsEvendefault.append( '' )
+    IsEvendefault = GraphLoopSwitchsBranchesdefaultAborted.INode( 'IsEvendefault' , PyIsEvendefault )
+    IsEvendefault.SetName( 'IsEvendefault' )
+    IsEvendefault.SetAuthor( '' )
+    IsEvendefault.SetComment( 'Compute Node' )
+    IsEvendefault.Coords( 478 , 434 )
+    IIsEvendefaulta = IsEvendefault.InPort( 'a' , 'long' )
+    IIsEvendefaultGate = IsEvendefault.GetInPort( 'Gate' )
+    OIsEvendefaulta = IsEvendefault.OutPort( 'a' , 'long' )
+    OIsEvendefaultEven = IsEvendefault.OutPort( 'Even' , 'long' )
+    OIsEvendefaultGate = IsEvendefault.GetOutPort( 'Gate' )
+    
+    # Creation of Loop Nodes
+    PyLoop = []
+    PyLoop.append( 'def InitLoop(Index,Min,Max) : ' )
+    PyLoop.append( '    Index = Max ' )
+    PyLoop.append( '    return Index,Min,Max      ' )
+    PyMoreLoop = []
+    PyMoreLoop.append( 'def MoreLoop(Index,Min,Max) :      ' )
+    PyMoreLoop.append( '       if Index >= Min :    ' )
+    PyMoreLoop.append( '               DoLoop = 1      ' )
+    PyMoreLoop.append( '       else :      ' )
+    PyMoreLoop.append( '               DoLoop = 0      ' )
+    PyMoreLoop.append( '       return DoLoop,Index,Min,Max      ' )
+    PyNextLoop = []
+    PyNextLoop.append( 'def NextLoop(Index,Min,Max) :      ' )
+    PyNextLoop.append( '       Index = Index - 1      ' )
+    PyNextLoop.append( '       return Index,Min,Max      ' )
+    Loop,EndOfLoop = GraphLoopSwitchsBranchesdefaultAborted.LNode( 'InitLoop' , PyLoop , 'MoreLoop' , PyMoreLoop , 'NextLoop' , PyNextLoop )
+    EndOfLoop.SetName( 'EndOfLoop' )
+    EndOfLoop.SetAuthor( '' )
+    EndOfLoop.SetComment( 'Compute Node' )
+    EndOfLoop.Coords( 1097 , 309 )
+    PyEndOfLoop = []
+    EndOfLoop.SetPyFunction( '' , PyEndOfLoop )
+    ILoopDoLoop = Loop.GetInPort( 'DoLoop' )
+    ILoopIndex = Loop.InPort( 'Index' , 'long' )
+    ILoopMin = Loop.InPort( 'Min' , 'long' )
+    ILoopMax = Loop.InPort( 'Max' , 'long' )
+    ILoopGate = Loop.GetInPort( 'Gate' )
+    OLoopDoLoop = Loop.GetOutPort( 'DoLoop' )
+    OLoopIndex = Loop.GetOutPort( 'Index' )
+    OLoopMin = Loop.GetOutPort( 'Min' )
+    OLoopMax = Loop.GetOutPort( 'Max' )
+    IEndOfLoopDoLoop = EndOfLoop.GetInPort( 'DoLoop' )
+    IEndOfLoopIndex = EndOfLoop.GetInPort( 'Index' )
+    IEndOfLoopMin = EndOfLoop.GetInPort( 'Min' )
+    IEndOfLoopMax = EndOfLoop.GetInPort( 'Max' )
+    IEndOfLoopGate = EndOfLoop.GetInPort( 'Gate' )
+    OEndOfLoopDoLoop = EndOfLoop.GetOutPort( 'DoLoop' )
+    OEndOfLoopIndex = EndOfLoop.GetOutPort( 'Index' )
+    OEndOfLoopMin = EndOfLoop.GetOutPort( 'Min' )
+    OEndOfLoopMax = EndOfLoop.GetOutPort( 'Max' )
+    OEndOfLoopGate = EndOfLoop.GetOutPort( 'Gate' )
+    Loop.SetName( 'Loop' )
+    Loop.SetAuthor( '' )
+    Loop.SetComment( 'Compute Node' )
+    Loop.Coords( 18 , 389 )
+    
+    # Creation of Switch Nodes
+    PySwitchOdd = []
+    PySwitchOdd.append( 'from time import *      ' )
+    PySwitchOdd.append( 'def SwitchOdd(a) :        ' )
+    PySwitchOdd.append( '    sleep(1) ' )
+    PySwitchOdd.append( '    if a <= 0 : ' )
+    PySwitchOdd.append( '        OddEven = '<=0' ' )
+    PySwitchOdd.append( '        return 0,0,0,a,OddEven ' )
+    PySwitchOdd.append( '    OddEven = 'Odd'    ' )
+    PySwitchOdd.append( '    if (a&1) == 0 :    ' )
+    PySwitchOdd.append( '        OddEven = 'Even'    ' )
+    PySwitchOdd.append( '    return a & 1,1-(a&1),1-(a&1),a,OddEven    ' )
+    SwitchOdd,EndOfSwitchOdd = GraphLoopSwitchsBranchesdefaultAborted.SNode( 'SwitchOdd' , PySwitchOdd )
+    EndOfSwitchOdd.SetName( 'EndOfSwitchOdd' )
+    EndOfSwitchOdd.SetAuthor( '' )
+    EndOfSwitchOdd.SetComment( 'Compute Node' )
+    EndOfSwitchOdd.Coords( 718 , 162 )
+    PyEndOfSwitchOdd = []
+    PyEndOfSwitchOdd.append( 'from time import *  ' )
+    PyEndOfSwitchOdd.append( 'def EndOfSwitchOdd(a,Odd,Even,OddEven) :  ' )
+    PyEndOfSwitchOdd.append( '    sleep(1)  ' )
+    PyEndOfSwitchOdd.append( '    return a,Odd  ' )
+    EndOfSwitchOdd.SetPyFunction( 'EndOfSwitchOdd' , PyEndOfSwitchOdd )
+    IEndOfSwitchOdda = EndOfSwitchOdd.InPort( 'a' , 'long' )
+    IEndOfSwitchOddOdd = EndOfSwitchOdd.InPort( 'Odd' , 'boolean' )
+    IEndOfSwitchOddEven = EndOfSwitchOdd.InPort( 'Even' , 'long' )
+    IEndOfSwitchOddOddEven = EndOfSwitchOdd.InPort( 'OddEven' , 'boolean' )
+    IEndOfSwitchOddDefault = EndOfSwitchOdd.GetInPort( 'Default' )
+    OEndOfSwitchOdda = EndOfSwitchOdd.OutPort( 'a' , 'long' )
+    OEndOfSwitchOddOdd = EndOfSwitchOdd.OutPort( 'Odd' , 'boolean' )
+    OEndOfSwitchOddGate = EndOfSwitchOdd.GetOutPort( 'Gate' )
+    SwitchOdd.SetName( 'SwitchOdd' )
+    SwitchOdd.SetAuthor( '' )
+    SwitchOdd.SetComment( 'Compute Node' )
+    SwitchOdd.Coords( 240 , 142 )
+    ISwitchOdda = SwitchOdd.InPort( 'a' , 'long' )
+    ISwitchOddGate = SwitchOdd.GetInPort( 'Gate' )
+    OSwitchOddOdd = SwitchOdd.OutPort( 'Odd' , 'long' )
+    OSwitchOddEven = SwitchOdd.OutPort( 'Even' , 'int' )
+    OSwitchOdddefault = SwitchOdd.OutPort( 'default' , 'long' )
+    OSwitchOdda = SwitchOdd.OutPort( 'a' , 'long' )
+    OSwitchOddOddEven = SwitchOdd.OutPort( 'OddEven' , 'string' )
+    OSwitchOddDefault = SwitchOdd.GetOutPort( 'Default' )
+    
+    PySwitchEven = []
+    PySwitchEven.append( 'from time import *            ' )
+    PySwitchEven.append( 'def SwitchEven(a) :          ' )
+    PySwitchEven.append( '    sleep(1)  ' )
+    PySwitchEven.append( '    if a <= 0 :  ' )
+    PySwitchEven.append( '        OddEven = '<=0'  ' )
+    PySwitchEven.append( '        return 0,0,0,a,OddEven  ' )
+    PySwitchEven.append( '    OddEven = 'Even'         ' )
+    PySwitchEven.append( '    if (a&1) != 0 :         ' )
+    PySwitchEven.append( '        OddEven = 'Odd'      ' )
+    PySwitchEven.append( '    print (a&1),1-(a&1),(a&1),a,OddEven    ' )
+    PySwitchEven.append( '    return (a&1),1-(a&1),(a&1),a,OddEven         ' )
+    SwitchEven,EndOfSwitchEven = GraphLoopSwitchsBranchesdefaultAborted.SNode( 'SwitchEven' , PySwitchEven )
+    EndOfSwitchEven.SetName( 'EndOfSwitchEven' )
+    EndOfSwitchEven.SetAuthor( '' )
+    EndOfSwitchEven.SetComment( 'Compute Node' )
+    EndOfSwitchEven.Coords( 721 , 477 )
+    PyEndOfSwitchEven = []
+    PyEndOfSwitchEven.append( 'from time import *  ' )
+    PyEndOfSwitchEven.append( 'def EndOfSwitchEven(a,Even,Odd,OddEven) :  ' )
+    PyEndOfSwitchEven.append( '    sleep(1)  ' )
+    PyEndOfSwitchEven.append( '    return a,Even  ' )
+    EndOfSwitchEven.SetPyFunction( 'EndOfSwitchEven' , PyEndOfSwitchEven )
+    IEndOfSwitchEvena = EndOfSwitchEven.InPort( 'a' , 'long' )
+    IEndOfSwitchEvenEven = EndOfSwitchEven.InPort( 'Even' , 'boolean' )
+    IEndOfSwitchEvenOdd = EndOfSwitchEven.InPort( 'Odd' , 'long' )
+    IEndOfSwitchEvenOddEven = EndOfSwitchEven.InPort( 'OddEven' , 'string' )
+    IEndOfSwitchEvenDefault = EndOfSwitchEven.GetInPort( 'Default' )
+    OEndOfSwitchEvena = EndOfSwitchEven.OutPort( 'a' , 'long' )
+    OEndOfSwitchEvenEven = EndOfSwitchEven.OutPort( 'Even' , 'boolean' )
+    OEndOfSwitchEvenGate = EndOfSwitchEven.GetOutPort( 'Gate' )
+    SwitchEven.SetName( 'SwitchEven' )
+    SwitchEven.SetAuthor( '' )
+    SwitchEven.SetComment( 'Compute Node' )
+    SwitchEven.Coords( 230 , 457 )
+    ISwitchEvena = SwitchEven.InPort( 'a' , 'long' )
+    ISwitchEvenGate = SwitchEven.GetInPort( 'Gate' )
+    OSwitchEvenOdd = SwitchEven.OutPort( 'Odd' , 'long' )
+    OSwitchEvenEven = SwitchEven.OutPort( 'Even' , 'int' )
+    OSwitchEvendefault = SwitchEven.OutPort( 'default' , 'long' )
+    OSwitchEvena = SwitchEven.OutPort( 'a' , 'int' )
+    OSwitchEvenOddEven = SwitchEven.OutPort( 'OddEven' , 'string' )
+    OSwitchEvenDefault = SwitchEven.GetOutPort( 'Default' )
+    
+    # Creation of Links
+    LIsOddaEndOfSwitchOdda = GraphLoopSwitchsBranchesdefaultAborted.Link( OIsOdda , IEndOfSwitchOdda )
+    
+    LIsOddOddEndOfSwitchOddOdd = GraphLoopSwitchsBranchesdefaultAborted.Link( OIsOddOdd , IEndOfSwitchOddOdd )
+    
+    LSwitchOddOddIsOddGate = GraphLoopSwitchsBranchesdefaultAborted.Link( OSwitchOddOdd , IIsOddGate )
+    
+    LSwitchOddEvenIsNotOddEven = GraphLoopSwitchsBranchesdefaultAborted.Link( OSwitchOddEven , IIsNotOddEven )
+    
+    LSwitchOdddefaultIsOdddefaultGate = GraphLoopSwitchsBranchesdefaultAborted.Link( OSwitchOdddefault , IIsOdddefaultGate )
+    
+    LSwitchOddaIsOdddefaulta = GraphLoopSwitchsBranchesdefaultAborted.Link( OSwitchOdda , IIsOdddefaulta )
+    
+    LSwitchOddaIsOdda = GraphLoopSwitchsBranchesdefaultAborted.Link( OSwitchOdda , IIsOdda )
+    
+    LSwitchOddOddEvenEndOfSwitchOddOddEven = GraphLoopSwitchsBranchesdefaultAborted.Link( OSwitchOddOddEven , IEndOfSwitchOddOddEven )
+    
+    LEndOfSwitchOddaSwitchsCompareaOdd = GraphLoopSwitchsBranchesdefaultAborted.Link( OEndOfSwitchOdda , ISwitchsCompareaOdd )
+    
+    LEndOfSwitchOddOddSwitchsCompareOdd = GraphLoopSwitchsBranchesdefaultAborted.Link( OEndOfSwitchOddOdd , ISwitchsCompareOdd )
+    
+    LIsEvenaEndOfSwitchEvena = GraphLoopSwitchsBranchesdefaultAborted.Link( OIsEvena , IEndOfSwitchEvena )
+    
+    LIsEvenEvenEndOfSwitchEvenEven = GraphLoopSwitchsBranchesdefaultAborted.Link( OIsEvenEven , IEndOfSwitchEvenEven )
+    
+    LLoopIndexSwitchsCompareIndex = GraphLoopSwitchsBranchesdefaultAborted.Link( OLoopIndex , ISwitchsCompareIndex )
+    
+    LLoopIndexSwitchOdda = GraphLoopSwitchsBranchesdefaultAborted.Link( OLoopIndex , ISwitchOdda )
+    
+    LLoopIndexSwitchEvena = GraphLoopSwitchsBranchesdefaultAborted.Link( OLoopIndex , ISwitchEvena )
+    
+    LLoopMinEndOfLoopMin = GraphLoopSwitchsBranchesdefaultAborted.Link( OLoopMin , IEndOfLoopMin )
+    
+    LLoopMaxEndOfLoopMax = GraphLoopSwitchsBranchesdefaultAborted.Link( OLoopMax , IEndOfLoopMax )
+    
+    LSwitchEvenOddIsNotEvenOdd = GraphLoopSwitchsBranchesdefaultAborted.Link( OSwitchEvenOdd , IIsNotEvenOdd )
+    
+    LSwitchEvenEvenIsEvenGate = GraphLoopSwitchsBranchesdefaultAborted.Link( OSwitchEvenEven , IIsEvenGate )
+    
+    LSwitchEvendefaultIsEvendefaultGate = GraphLoopSwitchsBranchesdefaultAborted.Link( OSwitchEvendefault , IIsEvendefaultGate )
+    
+    LSwitchEvenaIsEvena = GraphLoopSwitchsBranchesdefaultAborted.Link( OSwitchEvena , IIsEvena )
+    
+    LSwitchEvenaIsEvendefaulta = GraphLoopSwitchsBranchesdefaultAborted.Link( OSwitchEvena , IIsEvendefaulta )
+    
+    LSwitchEvenOddEvenEndOfSwitchEvenOddEven = GraphLoopSwitchsBranchesdefaultAborted.Link( OSwitchEvenOddEven , IEndOfSwitchEvenOddEven )
+    
+    LEndOfSwitchEvenaSwitchsCompareaEven = GraphLoopSwitchsBranchesdefaultAborted.Link( OEndOfSwitchEvena , ISwitchsCompareaEven )
+    
+    LEndOfSwitchEvenEvenSwitchsCompareEven = GraphLoopSwitchsBranchesdefaultAborted.Link( OEndOfSwitchEvenEven , ISwitchsCompareEven )
+    
+    LSwitchsCompareIndexEndOfLoopIndex = GraphLoopSwitchsBranchesdefaultAborted.Link( OSwitchsCompareIndex , IEndOfLoopIndex )
+    
+    LIsNotOddEvenEndOfSwitchOddEven = GraphLoopSwitchsBranchesdefaultAborted.Link( OIsNotOddEven , IEndOfSwitchOddEven )
+    
+    LIsNotEvenOddEndOfSwitchEvenOdd = GraphLoopSwitchsBranchesdefaultAborted.Link( OIsNotEvenOdd , IEndOfSwitchEvenOdd )
+    
+    LIsOdddefaultaEndOfSwitchOdda = GraphLoopSwitchsBranchesdefaultAborted.Link( OIsOdddefaulta , IEndOfSwitchOdda )
+    
+    LIsOdddefaultOddEndOfSwitchOddOdd = GraphLoopSwitchsBranchesdefaultAborted.Link( OIsOdddefaultOdd , IEndOfSwitchOddOdd )
+    
+    LIsEvendefaultaEndOfSwitchEvena = GraphLoopSwitchsBranchesdefaultAborted.Link( OIsEvendefaulta , IEndOfSwitchEvena )
+    
+    LIsEvendefaultEvenEndOfSwitchEvenEven = GraphLoopSwitchsBranchesdefaultAborted.Link( OIsEvendefaultEven , IEndOfSwitchEvenEven )
+    
+    # Input datas
+    ILoopIndex.Input( 0 )
+    ILoopMin.Input( -5 )
+    ILoopMax.Input( 11 )
+    
+    # Output Ports of the graph
+    #OEndOfLoopIndex = EndOfLoop.GetOutPort( 'Index' )
+    #OEndOfLoopMin = EndOfLoop.GetOutPort( 'Min' )
+    #OEndOfLoopMax = EndOfLoop.GetOutPort( 'Max' )
+    return GraphLoopSwitchsBranchesdefaultAborted
+
+
+GraphLoopSwitchsBranchesdefaultAborted = DefGraphLoopSwitchsBranchesdefaultAborted()
diff --git a/examples/GraphLoopSwitchsBranchesDefaultAborted.xml b/examples/GraphLoopSwitchsBranchesDefaultAborted.xml
new file mode 100644 (file)
index 0000000..ee1f2b3
--- /dev/null
@@ -0,0 +1,814 @@
+<!DOCTYPE SuperGraph>
+<supergraph>
+<dataflow>
+<info-list>
+<node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>GraphLoopSwitchsBranchesdefaultAborted</node-name>
+    <kind>1</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>GraphLoopSwitchsBranchesdefault</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Loop__Index</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Loop__Min</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Loop__Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>EndOfLoop__Index</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>EndOfLoop__Min</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>EndOfLoop__Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>14/10/2003 - 10:29:4</creation-date>
+    <lastmodification-date>14/2/2005 - 17:10:5</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>JR</author>
+    <container>?</container>
+    <comment>?</comment>
+    <x-position>0</x-position>
+    <y-position>0</y-position>   </node>  </info-list>
+  <node-list>
+<node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>IsOdd</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>IsOdd</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>IsOdd</FuncName>
+      <PyFunc><![CDATA[from time import *     ]]></PyFunc>
+      <PyFunc><![CDATA[def IsOdd(a) :         ]]></PyFunc>
+      <PyFunc><![CDATA[    print a,"IsOdd"        ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep( 1 )     ]]></PyFunc>
+      <PyFunc><![CDATA[    return a,1 ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 17:10:5</creation-date>
+    <lastmodification-date>14/2/2005 - 17:10:5</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Python function</comment>
+    <x-position>476</x-position>
+    <y-position>2</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>SwitchOdd</node-name>
+    <kind>6</kind>
+    <coupled-node>EndOfSwitchOdd</coupled-node>
+    <service>
+<service-name>SwitchOdd</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>int</outParameter-type>
+       <outParameter-name>Even</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>default</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>string</outParameter-type>
+       <outParameter-name>OddEven</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>SwitchOdd</FuncName>
+      <PyFunc><![CDATA[from time import *      ]]></PyFunc>
+      <PyFunc><![CDATA[def SwitchOdd(a) :        ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1) ]]></PyFunc>
+      <PyFunc><![CDATA[    if a <= 0 : ]]></PyFunc>
+      <PyFunc><![CDATA[        OddEven = '<=0' ]]></PyFunc>
+      <PyFunc><![CDATA[        return 0,0,0,a,OddEven ]]></PyFunc>
+      <PyFunc><![CDATA[    OddEven = 'Odd'    ]]></PyFunc>
+      <PyFunc><![CDATA[    if (a&1) == 0 :    ]]></PyFunc>
+      <PyFunc><![CDATA[        OddEven = 'Even'    ]]></PyFunc>
+      <PyFunc><![CDATA[    return a & 1,1-(a&1),1-(a&1),a,OddEven    ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 17:10:5</creation-date>
+    <lastmodification-date>14/2/2005 - 17:10:5</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>240</x-position>
+    <y-position>142</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>EndOfSwitchOdd</node-name>
+    <kind>7</kind>
+    <coupled-node>SwitchOdd</coupled-node>
+    <service>
+<service-name>EndOfSwitchOdd</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>boolean</inParameter-type>
+       <inParameter-name>Odd</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Even</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>boolean</inParameter-type>
+       <inParameter-name>OddEven</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>boolean</outParameter-type>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>EndOfSwitchOdd</FuncName>
+      <PyFunc><![CDATA[from time import *  ]]></PyFunc>
+      <PyFunc><![CDATA[def EndOfSwitchOdd(a,Odd,Even,OddEven) :  ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1)  ]]></PyFunc>
+      <PyFunc><![CDATA[    return a,Odd  ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 17:10:5</creation-date>
+    <lastmodification-date>14/2/2005 - 17:10:5</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>718</x-position>
+    <y-position>162</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>IsEven</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>IsEven</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Even</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>IsEven</FuncName>
+      <PyFunc><![CDATA[from time import *     ]]></PyFunc>
+      <PyFunc><![CDATA[def IsEven(a) :         ]]></PyFunc>
+      <PyFunc><![CDATA[    print a,"IsEven"        ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep( 1 )     ]]></PyFunc>
+      <PyFunc><![CDATA[    return a,1 ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 17:10:5</creation-date>
+    <lastmodification-date>14/2/2005 - 17:10:5</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Python function</comment>
+    <x-position>472</x-position>
+    <y-position>724</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>Loop</node-name>
+    <kind>4</kind>
+    <coupled-node>EndOfLoop</coupled-node>
+    <service>
+<service-name>Loop</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Index</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Min</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Index</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Min</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>InitLoop</FuncName>
+      <PyFunc><![CDATA[def InitLoop(Index,Min,Max) : ]]></PyFunc>
+      <PyFunc><![CDATA[    Index = Max ]]></PyFunc>
+      <PyFunc><![CDATA[    return Index,Min,Max      ]]></PyFunc>     </PyFunction>
+     <PyFunction>
+<FuncName>MoreLoop</FuncName>
+      <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) :      ]]></PyFunc>
+      <PyFunc><![CDATA[        if Index >= Min :    ]]></PyFunc>
+      <PyFunc><![CDATA[                DoLoop = 1      ]]></PyFunc>
+      <PyFunc><![CDATA[        else :      ]]></PyFunc>
+      <PyFunc><![CDATA[                DoLoop = 0      ]]></PyFunc>
+      <PyFunc><![CDATA[        return DoLoop,Index,Min,Max      ]]></PyFunc>     </PyFunction>
+     <PyFunction>
+<FuncName>NextLoop</FuncName>
+      <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>14/2/2005 - 17:10:5</creation-date>
+    <lastmodification-date>14/2/2005 - 17:10:5</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>18</x-position>
+    <y-position>389</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>EndOfLoop</node-name>
+    <kind>5</kind>
+    <coupled-node>Loop</coupled-node>
+    <service>
+<service-name>EndOfLoop</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Index</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Min</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Index</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Min</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>?</FuncName>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 17:10:5</creation-date>
+    <lastmodification-date>14/2/2005 - 17:10:5</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>1097</x-position>
+    <y-position>309</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>SwitchEven</node-name>
+    <kind>6</kind>
+    <coupled-node>EndOfSwitchEven</coupled-node>
+    <service>
+<service-name>SwitchEven</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>int</outParameter-type>
+       <outParameter-name>Even</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>default</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>int</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>string</outParameter-type>
+       <outParameter-name>OddEven</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>SwitchEven</FuncName>
+      <PyFunc><![CDATA[from time import *            ]]></PyFunc>
+      <PyFunc><![CDATA[def SwitchEven(a) :          ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1)  ]]></PyFunc>
+      <PyFunc><![CDATA[    if a <= 0 :  ]]></PyFunc>
+      <PyFunc><![CDATA[        OddEven = '<=0'  ]]></PyFunc>
+      <PyFunc><![CDATA[        return 0,0,0,a,OddEven  ]]></PyFunc>
+      <PyFunc><![CDATA[    OddEven = 'Even'         ]]></PyFunc>
+      <PyFunc><![CDATA[    if (a&1) != 0 :         ]]></PyFunc>
+      <PyFunc><![CDATA[        OddEven = 'Odd'      ]]></PyFunc>
+      <PyFunc><![CDATA[    print (a&1),1-(a&1),(a&1),a,OddEven    ]]></PyFunc>
+      <PyFunc><![CDATA[    return (a&1),1-(a&1),(a&1),a,OddEven         ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 17:10:5</creation-date>
+    <lastmodification-date>14/2/2005 - 17:10:5</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>230</x-position>
+    <y-position>457</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>EndOfSwitchEven</node-name>
+    <kind>7</kind>
+    <coupled-node>SwitchEven</coupled-node>
+    <service>
+<service-name>EndOfSwitchEven</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>boolean</inParameter-type>
+       <inParameter-name>Even</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Odd</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>string</inParameter-type>
+       <inParameter-name>OddEven</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>boolean</outParameter-type>
+       <outParameter-name>Even</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>EndOfSwitchEven</FuncName>
+      <PyFunc><![CDATA[from time import *  ]]></PyFunc>
+      <PyFunc><![CDATA[def EndOfSwitchEven(a,Even,Odd,OddEven) :  ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1)  ]]></PyFunc>
+      <PyFunc><![CDATA[    return a,Even  ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 17:10:5</creation-date>
+    <lastmodification-date>14/2/2005 - 17:10:5</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>721</x-position>
+    <y-position>477</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>SwitchsCompare</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>SwitchsCompare</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>aOdd</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>boolean</inParameter-type>
+       <inParameter-name>Odd</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>aEven</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>boolean</inParameter-type>
+       <inParameter-name>Even</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Index</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Index</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>SwitchsCompare</FuncName>
+      <PyFunc><![CDATA[from time import *  ]]></PyFunc>
+      <PyFunc><![CDATA[def SwitchsCompare(aOdd,Odd,aEven,Even,Index) :  ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1)  ]]></PyFunc>
+      <PyFunc><![CDATA[    return Index ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 17:10:5</creation-date>
+    <lastmodification-date>14/2/2005 - 17:10:5</lastmodification-date>
+    <editor-release>2.0</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>916</x-position>
+    <y-position>269</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>IsNotOdd</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>IsNotOdd</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Even</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Even</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>IsNotOdd</FuncName>
+      <PyFunc><![CDATA[from time import * ]]></PyFunc>
+      <PyFunc><![CDATA[def IsNotOdd(Even) : ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1) ]]></PyFunc>
+      <PyFunc><![CDATA[    return Even ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 17:10:5</creation-date>
+    <lastmodification-date>14/2/2005 - 17:10:5</lastmodification-date>
+    <editor-release>2.0</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>477</x-position>
+    <y-position>137</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>IsNotEven</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>IsNotEven</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Odd</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>IsNotEven</FuncName>
+      <PyFunc><![CDATA[from time import *  ]]></PyFunc>
+      <PyFunc><![CDATA[def IsNotEven(Odd) :  ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1)  ]]></PyFunc>
+      <PyFunc><![CDATA[    return Odd ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 17:10:5</creation-date>
+    <lastmodification-date>14/2/2005 - 17:10:5</lastmodification-date>
+    <editor-release>2.0</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>475</x-position>
+    <y-position>601</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>IsOdddefault</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>IsOdddefault</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>IsOdddefault</FuncName>
+      <PyFunc><![CDATA[from time import * ]]></PyFunc>
+      <PyFunc><![CDATA[def IsOdddefault(a) : ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1) ]]></PyFunc>
+      <PyFunc><![CDATA[    return a,0 ]]></PyFunc>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 17:10:5</creation-date>
+    <lastmodification-date>14/2/2005 - 17:10:5</lastmodification-date>
+    <editor-release>2.0</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>477</x-position>
+    <y-position>285</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>IsEvendefault</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>IsEvendefault</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Even</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>IsEvendefault</FuncName>
+      <PyFunc><![CDATA[from time import *  ]]></PyFunc>
+      <PyFunc><![CDATA[def IsEvendefault(a) :  ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1)  ]]></PyFunc>
+      <PyFunc><![CDATA[    return a,0  ]]></PyFunc>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 17:10:5</creation-date>
+    <lastmodification-date>14/2/2005 - 17:10:5</lastmodification-date>
+    <editor-release>2.0</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>478</x-position>
+    <y-position>434</y-position>   </node>  </node-list>
+  <link-list>
+<link>
+<fromnode-name>IsOdd</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchOdd</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>IsOdd</fromnode-name>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchOdd</tonode-name>
+    <toserviceparameter-name>Odd</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>IsOdd</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>IsNotOdd</tonode-name>
+    <toserviceparameter-name>Even</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>default</fromserviceparameter-name>
+    <tonode-name>IsOdddefault</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>IsOdddefault</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>IsOdd</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>OddEven</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchOdd</tonode-name>
+    <toserviceparameter-name>OddEven</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndOfSwitchOdd</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>SwitchsCompare</tonode-name>
+    <toserviceparameter-name>aOdd</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndOfSwitchOdd</fromnode-name>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>SwitchsCompare</tonode-name>
+    <toserviceparameter-name>Odd</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>IsEven</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchEven</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>IsEven</fromnode-name>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchEven</tonode-name>
+    <toserviceparameter-name>Even</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Loop</fromnode-name>
+    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+    <tonode-name>EndOfLoop</tonode-name>
+    <toserviceparameter-name>DoLoop</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Loop</fromnode-name>
+    <fromserviceparameter-name>Index</fromserviceparameter-name>
+    <tonode-name>SwitchsCompare</tonode-name>
+    <toserviceparameter-name>Index</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Loop</fromnode-name>
+    <fromserviceparameter-name>Index</fromserviceparameter-name>
+    <tonode-name>SwitchOdd</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Loop</fromnode-name>
+    <fromserviceparameter-name>Index</fromserviceparameter-name>
+    <tonode-name>SwitchEven</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Loop</fromnode-name>
+    <fromserviceparameter-name>Min</fromserviceparameter-name>
+    <tonode-name>EndOfLoop</tonode-name>
+    <toserviceparameter-name>Min</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Loop</fromnode-name>
+    <fromserviceparameter-name>Max</fromserviceparameter-name>
+    <tonode-name>EndOfLoop</tonode-name>
+    <toserviceparameter-name>Max</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndOfLoop</fromnode-name>
+    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+    <tonode-name>Loop</tonode-name>
+    <toserviceparameter-name>DoLoop</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchEven</fromnode-name>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>IsNotEven</tonode-name>
+    <toserviceparameter-name>Odd</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchEven</fromnode-name>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>IsEven</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchEven</fromnode-name>
+    <fromserviceparameter-name>default</fromserviceparameter-name>
+    <tonode-name>IsEvendefault</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchEven</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>IsEven</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchEven</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>IsEvendefault</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchEven</fromnode-name>
+    <fromserviceparameter-name>OddEven</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchEven</tonode-name>
+    <toserviceparameter-name>OddEven</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndOfSwitchEven</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>SwitchsCompare</tonode-name>
+    <toserviceparameter-name>aEven</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndOfSwitchEven</fromnode-name>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>SwitchsCompare</tonode-name>
+    <toserviceparameter-name>Even</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchsCompare</fromnode-name>
+    <fromserviceparameter-name>Index</fromserviceparameter-name>
+    <tonode-name>EndOfLoop</tonode-name>
+    <toserviceparameter-name>Index</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>IsNotOdd</fromnode-name>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchOdd</tonode-name>
+    <toserviceparameter-name>Even</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>IsNotEven</fromnode-name>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchEven</tonode-name>
+    <toserviceparameter-name>Odd</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>IsOdddefault</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchOdd</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>IsOdddefault</fromnode-name>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchOdd</tonode-name>
+    <toserviceparameter-name>Odd</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>IsEvendefault</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchEven</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>IsEvendefault</fromnode-name>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchEven</tonode-name>
+    <toserviceparameter-name>Even</toserviceparameter-name>
+    <coord-list/>   </link>  </link-list>
+  <data-list>
+<data>
+<fromnode-name>GraphLoopSwitchsBranchesdefaultAborted</fromnode-name>
+    <fromserviceparameter-name>Loop__Index</fromserviceparameter-name>
+    <tonode-name>Loop</tonode-name>
+    <toserviceparameter-name>Index</toserviceparameter-name>
+    <data-value>
+<value-type>3</value-type>
+     <value>0</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
+<fromnode-name>GraphLoopSwitchsBranchesdefaultAborted</fromnode-name>
+    <fromserviceparameter-name>Loop__Min</fromserviceparameter-name>
+    <tonode-name>Loop</tonode-name>
+    <toserviceparameter-name>Min</toserviceparameter-name>
+    <data-value>
+<value-type>3</value-type>
+     <value>-5</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
+<fromnode-name>GraphLoopSwitchsBranchesdefaultAborted</fromnode-name>
+    <fromserviceparameter-name>Loop__Max</fromserviceparameter-name>
+    <tonode-name>Loop</tonode-name>
+    <toserviceparameter-name>Max</toserviceparameter-name>
+    <data-value>
+<value-type>3</value-type>
+     <value>11</value>    </data-value>
+    <coord-list/>   </data>  </data-list> </dataflow></supergraph>
diff --git a/examples/GraphLoopSwitchsBranchesdefault.py b/examples/GraphLoopSwitchsBranchesdefault.py
new file mode 100644 (file)
index 0000000..1af8dd7
--- /dev/null
@@ -0,0 +1,350 @@
+
+# Generated python file of Graph GraphLoopSwitchsBranchesdefault
+
+from SuperV import *
+
+# Graph creation of GraphLoopSwitchsBranchesdefault
+def DefGraphLoopSwitchsBranchesdefault() :
+    GraphLoopSwitchsBranchesdefault = Graph( 'GraphLoopSwitchsBranchesdefault' )
+    GraphLoopSwitchsBranchesdefault.SetName( 'GraphLoopSwitchsBranchesdefault' )
+    GraphLoopSwitchsBranchesdefault.SetAuthor( 'JR' )
+    GraphLoopSwitchsBranchesdefault.SetComment( '' )
+    GraphLoopSwitchsBranchesdefault.Coords( 0 , 0 )
+    
+    # Creation of Factory Nodes
+    
+    # Creation of InLine Nodes
+    PyIsOdd = []
+    PyIsOdd.append( 'from time import *     ' )
+    PyIsOdd.append( 'def IsOdd(a) :         ' )
+    PyIsOdd.append( '    print a,"IsOdd"        ' )
+    PyIsOdd.append( '    sleep( 1 )     ' )
+    PyIsOdd.append( '    return a,1 ' )
+    IsOdd = GraphLoopSwitchsBranchesdefault.INode( 'IsOdd' , PyIsOdd )
+    IsOdd.SetName( 'IsOdd' )
+    IsOdd.SetAuthor( '' )
+    IsOdd.SetComment( 'Python function' )
+    IsOdd.Coords( 476 , 2 )
+    IIsOdda = IsOdd.InPort( 'a' , 'long' )
+    IIsOddGate = IsOdd.GetInPort( 'Gate' )
+    OIsOdda = IsOdd.OutPort( 'a' , 'long' )
+    OIsOddOdd = IsOdd.OutPort( 'Odd' , 'long' )
+    OIsOddGate = IsOdd.GetOutPort( 'Gate' )
+    
+    PyIsEven = []
+    PyIsEven.append( 'from time import *     ' )
+    PyIsEven.append( 'def IsEven(a) :         ' )
+    PyIsEven.append( '    print a,"IsEven"        ' )
+    PyIsEven.append( '    sleep( 1 )     ' )
+    PyIsEven.append( '    return a,1 ' )
+    IsEven = GraphLoopSwitchsBranchesdefault.INode( 'IsEven' , PyIsEven )
+    IsEven.SetName( 'IsEven' )
+    IsEven.SetAuthor( '' )
+    IsEven.SetComment( 'Python function' )
+    IsEven.Coords( 472 , 724 )
+    IIsEvena = IsEven.InPort( 'a' , 'long' )
+    IIsEvenGate = IsEven.GetInPort( 'Gate' )
+    OIsEvena = IsEven.OutPort( 'a' , 'long' )
+    OIsEvenEven = IsEven.OutPort( 'Even' , 'long' )
+    OIsEvenGate = IsEven.GetOutPort( 'Gate' )
+    
+    PySwitchsCompare = []
+    PySwitchsCompare.append( 'from time import *  ' )
+    PySwitchsCompare.append( 'def SwitchsCompare(aOdd,Odd,aEven,Even,Index) :  ' )
+    PySwitchsCompare.append( '    sleep(1)  ' )
+    PySwitchsCompare.append( '    return Index ' )
+    SwitchsCompare = GraphLoopSwitchsBranchesdefault.INode( 'SwitchsCompare' , PySwitchsCompare )
+    SwitchsCompare.SetName( 'SwitchsCompare' )
+    SwitchsCompare.SetAuthor( '' )
+    SwitchsCompare.SetComment( 'Compute Node' )
+    SwitchsCompare.Coords( 916 , 269 )
+    ISwitchsCompareaOdd = SwitchsCompare.InPort( 'aOdd' , 'long' )
+    ISwitchsCompareOdd = SwitchsCompare.InPort( 'Odd' , 'boolean' )
+    ISwitchsCompareaEven = SwitchsCompare.InPort( 'aEven' , 'long' )
+    ISwitchsCompareEven = SwitchsCompare.InPort( 'Even' , 'boolean' )
+    ISwitchsCompareIndex = SwitchsCompare.InPort( 'Index' , 'long' )
+    ISwitchsCompareGate = SwitchsCompare.GetInPort( 'Gate' )
+    OSwitchsCompareIndex = SwitchsCompare.OutPort( 'Index' , 'long' )
+    OSwitchsCompareGate = SwitchsCompare.GetOutPort( 'Gate' )
+    
+    PyIsNotOdd = []
+    PyIsNotOdd.append( 'from time import * ' )
+    PyIsNotOdd.append( 'def IsNotOdd(Even) : ' )
+    PyIsNotOdd.append( '    sleep(1) ' )
+    PyIsNotOdd.append( '    return Even ' )
+    IsNotOdd = GraphLoopSwitchsBranchesdefault.INode( 'IsNotOdd' , PyIsNotOdd )
+    IsNotOdd.SetName( 'IsNotOdd' )
+    IsNotOdd.SetAuthor( '' )
+    IsNotOdd.SetComment( 'Compute Node' )
+    IsNotOdd.Coords( 477 , 137 )
+    IIsNotOddEven = IsNotOdd.InPort( 'Even' , 'long' )
+    IIsNotOddGate = IsNotOdd.GetInPort( 'Gate' )
+    OIsNotOddEven = IsNotOdd.OutPort( 'Even' , 'long' )
+    OIsNotOddGate = IsNotOdd.GetOutPort( 'Gate' )
+    
+    PyIsNotEven = []
+    PyIsNotEven.append( 'from time import *  ' )
+    PyIsNotEven.append( 'def IsNotEven(Odd) :  ' )
+    PyIsNotEven.append( '    sleep(1)  ' )
+    PyIsNotEven.append( '    return Odd ' )
+    IsNotEven = GraphLoopSwitchsBranchesdefault.INode( 'IsNotEven' , PyIsNotEven )
+    IsNotEven.SetName( 'IsNotEven' )
+    IsNotEven.SetAuthor( '' )
+    IsNotEven.SetComment( 'Compute Node' )
+    IsNotEven.Coords( 475 , 601 )
+    IIsNotEvenOdd = IsNotEven.InPort( 'Odd' , 'long' )
+    IIsNotEvenGate = IsNotEven.GetInPort( 'Gate' )
+    OIsNotEvenOdd = IsNotEven.OutPort( 'Odd' , 'long' )
+    OIsNotEvenGate = IsNotEven.GetOutPort( 'Gate' )
+    
+    PyIsOdddefault = []
+    PyIsOdddefault.append( 'from time import * ' )
+    PyIsOdddefault.append( 'def IsOdddefault(a) : ' )
+    PyIsOdddefault.append( '    sleep(1) ' )
+    PyIsOdddefault.append( '    return a,0 ' )
+    PyIsOdddefault.append( ' ' )
+    IsOdddefault = GraphLoopSwitchsBranchesdefault.INode( 'IsOdddefault' , PyIsOdddefault )
+    IsOdddefault.SetName( 'IsOdddefault' )
+    IsOdddefault.SetAuthor( '' )
+    IsOdddefault.SetComment( 'Compute Node' )
+    IsOdddefault.Coords( 477 , 285 )
+    IIsOdddefaulta = IsOdddefault.InPort( 'a' , 'long' )
+    IIsOdddefaultGate = IsOdddefault.GetInPort( 'Gate' )
+    OIsOdddefaulta = IsOdddefault.OutPort( 'a' , 'long' )
+    OIsOdddefaultOdd = IsOdddefault.OutPort( 'Odd' , 'long' )
+    OIsOdddefaultGate = IsOdddefault.GetOutPort( 'Gate' )
+    
+    PyIsEvendefault = []
+    PyIsEvendefault.append( 'from time import *  ' )
+    PyIsEvendefault.append( 'def IsEvendefault(a) :  ' )
+    PyIsEvendefault.append( '    sleep(1)  ' )
+    PyIsEvendefault.append( '    return a,0  ' )
+    PyIsEvendefault.append( '  ' )
+    IsEvendefault = GraphLoopSwitchsBranchesdefault.INode( 'IsEvendefault' , PyIsEvendefault )
+    IsEvendefault.SetName( 'IsEvendefault' )
+    IsEvendefault.SetAuthor( '' )
+    IsEvendefault.SetComment( 'Compute Node' )
+    IsEvendefault.Coords( 478 , 434 )
+    IIsEvendefaulta = IsEvendefault.InPort( 'a' , 'long' )
+    IIsEvendefaultGate = IsEvendefault.GetInPort( 'Gate' )
+    OIsEvendefaulta = IsEvendefault.OutPort( 'a' , 'long' )
+    OIsEvendefaultEven = IsEvendefault.OutPort( 'Even' , 'long' )
+    OIsEvendefaultGate = IsEvendefault.GetOutPort( 'Gate' )
+    
+    # Creation of Loop Nodes
+    PyLoop = []
+    PyLoop.append( 'def InitLoop(Index,Min,Max) : ' )
+    PyLoop.append( '    Index = Max ' )
+    PyLoop.append( '    return Index,Min,Max      ' )
+    PyMoreLoop = []
+    PyMoreLoop.append( 'def MoreLoop(Index,Min,Max) :      ' )
+    PyMoreLoop.append( '       if Index >= Min :    ' )
+    PyMoreLoop.append( '               DoLoop = 1      ' )
+    PyMoreLoop.append( '       else :      ' )
+    PyMoreLoop.append( '               DoLoop = 0      ' )
+    PyMoreLoop.append( '       return DoLoop,Index,Min,Max      ' )
+    PyNextLoop = []
+    PyNextLoop.append( 'def NextLoop(Index,Min,Max) :      ' )
+    PyNextLoop.append( '       Index = Index - 1      ' )
+    PyNextLoop.append( '       return Index,Min,Max      ' )
+    Loop,EndOfLoop = GraphLoopSwitchsBranchesdefault.LNode( 'InitLoop' , PyLoop , 'MoreLoop' , PyMoreLoop , 'NextLoop' , PyNextLoop )
+    EndOfLoop.SetName( 'EndOfLoop' )
+    EndOfLoop.SetAuthor( '' )
+    EndOfLoop.SetComment( 'Compute Node' )
+    EndOfLoop.Coords( 1097 , 309 )
+    PyEndOfLoop = []
+    EndOfLoop.SetPyFunction( '' , PyEndOfLoop )
+    ILoopDoLoop = Loop.GetInPort( 'DoLoop' )
+    ILoopIndex = Loop.InPort( 'Index' , 'long' )
+    ILoopMin = Loop.InPort( 'Min' , 'long' )
+    ILoopMax = Loop.InPort( 'Max' , 'long' )
+    ILoopGate = Loop.GetInPort( 'Gate' )
+    OLoopDoLoop = Loop.GetOutPort( 'DoLoop' )
+    OLoopIndex = Loop.GetOutPort( 'Index' )
+    OLoopMin = Loop.GetOutPort( 'Min' )
+    OLoopMax = Loop.GetOutPort( 'Max' )
+    IEndOfLoopDoLoop = EndOfLoop.GetInPort( 'DoLoop' )
+    IEndOfLoopIndex = EndOfLoop.GetInPort( 'Index' )
+    IEndOfLoopMin = EndOfLoop.GetInPort( 'Min' )
+    IEndOfLoopMax = EndOfLoop.GetInPort( 'Max' )
+    IEndOfLoopGate = EndOfLoop.GetInPort( 'Gate' )
+    OEndOfLoopDoLoop = EndOfLoop.GetOutPort( 'DoLoop' )
+    OEndOfLoopIndex = EndOfLoop.GetOutPort( 'Index' )
+    OEndOfLoopMin = EndOfLoop.GetOutPort( 'Min' )
+    OEndOfLoopMax = EndOfLoop.GetOutPort( 'Max' )
+    OEndOfLoopGate = EndOfLoop.GetOutPort( 'Gate' )
+    Loop.SetName( 'Loop' )
+    Loop.SetAuthor( '' )
+    Loop.SetComment( 'Compute Node' )
+    Loop.Coords( 18 , 389 )
+    
+    # Creation of Switch Nodes
+    PySwitchOdd = []
+    PySwitchOdd.append( 'from time import *      ' )
+    PySwitchOdd.append( 'def SwitchOdd(a) :        ' )
+    PySwitchOdd.append( '    sleep(1) ' )
+    PySwitchOdd.append( '    if a <= 0 : ' )
+    PySwitchOdd.append( '        OddEven = '<=0' ' )
+    PySwitchOdd.append( '        return 0,0,0,a,OddEven ' )
+    PySwitchOdd.append( '    OddEven = 'Odd'    ' )
+    PySwitchOdd.append( '    if (a&1) == 0 :    ' )
+    PySwitchOdd.append( '        OddEven = 'Even'    ' )
+    PySwitchOdd.append( '    return a & 1,1-(a&1),1-(a&1),a,OddEven    ' )
+    SwitchOdd,EndOfSwitchOdd = GraphLoopSwitchsBranchesdefault.SNode( 'SwitchOdd' , PySwitchOdd )
+    EndOfSwitchOdd.SetName( 'EndOfSwitchOdd' )
+    EndOfSwitchOdd.SetAuthor( '' )
+    EndOfSwitchOdd.SetComment( 'Compute Node' )
+    EndOfSwitchOdd.Coords( 718 , 162 )
+    PyEndOfSwitchOdd = []
+    PyEndOfSwitchOdd.append( 'from time import *  ' )
+    PyEndOfSwitchOdd.append( 'def EndOfSwitchOdd(a,Odd,Even,OddEven) :  ' )
+    PyEndOfSwitchOdd.append( '    sleep(1)  ' )
+    PyEndOfSwitchOdd.append( '    return a,Odd  ' )
+    EndOfSwitchOdd.SetPyFunction( 'EndOfSwitchOdd' , PyEndOfSwitchOdd )
+    IEndOfSwitchOdda = EndOfSwitchOdd.InPort( 'a' , 'long' )
+    IEndOfSwitchOddOdd = EndOfSwitchOdd.InPort( 'Odd' , 'boolean' )
+    IEndOfSwitchOddEven = EndOfSwitchOdd.InPort( 'Even' , 'long' )
+    IEndOfSwitchOddOddEven = EndOfSwitchOdd.InPort( 'OddEven' , 'boolean' )
+    IEndOfSwitchOddDefault = EndOfSwitchOdd.GetInPort( 'Default' )
+    OEndOfSwitchOdda = EndOfSwitchOdd.OutPort( 'a' , 'long' )
+    OEndOfSwitchOddOdd = EndOfSwitchOdd.OutPort( 'Odd' , 'boolean' )
+    OEndOfSwitchOddGate = EndOfSwitchOdd.GetOutPort( 'Gate' )
+    SwitchOdd.SetName( 'SwitchOdd' )
+    SwitchOdd.SetAuthor( '' )
+    SwitchOdd.SetComment( 'Compute Node' )
+    SwitchOdd.Coords( 240 , 142 )
+    ISwitchOdda = SwitchOdd.InPort( 'a' , 'long' )
+    ISwitchOddGate = SwitchOdd.GetInPort( 'Gate' )
+    OSwitchOddOdd = SwitchOdd.OutPort( 'Odd' , 'long' )
+    OSwitchOddEven = SwitchOdd.OutPort( 'Even' , 'int' )
+    OSwitchOdddefault = SwitchOdd.OutPort( 'default' , 'long' )
+    OSwitchOdda = SwitchOdd.OutPort( 'a' , 'long' )
+    OSwitchOddOddEven = SwitchOdd.OutPort( 'OddEven' , 'string' )
+    OSwitchOddDefault = SwitchOdd.GetOutPort( 'Default' )
+    
+    PySwitchEven = []
+    PySwitchEven.append( 'from time import *            ' )
+    PySwitchEven.append( 'def SwitchEven(a) :          ' )
+    PySwitchEven.append( '    sleep(1)  ' )
+    PySwitchEven.append( '    if a <= 0 :  ' )
+    PySwitchEven.append( '        OddEven = '<=0'  ' )
+    PySwitchEven.append( '        return 0,0,0,a,OddEven  ' )
+    PySwitchEven.append( '    OddEven = 'Even'         ' )
+    PySwitchEven.append( '    if (a&1) != 0 :         ' )
+    PySwitchEven.append( '        OddEven = 'Odd'      ' )
+    PySwitchEven.append( '    print (a&1),1-(a&1),(a&1),a,OddEven    ' )
+    PySwitchEven.append( '    return (a&1),1-(a&1),(a&1),a,OddEven         ' )
+    SwitchEven,EndOfSwitchEven = GraphLoopSwitchsBranchesdefault.SNode( 'SwitchEven' , PySwitchEven )
+    EndOfSwitchEven.SetName( 'EndOfSwitchEven' )
+    EndOfSwitchEven.SetAuthor( '' )
+    EndOfSwitchEven.SetComment( 'Compute Node' )
+    EndOfSwitchEven.Coords( 721 , 477 )
+    PyEndOfSwitchEven = []
+    PyEndOfSwitchEven.append( 'from time import *  ' )
+    PyEndOfSwitchEven.append( 'def EndOfSwitchEven(a,Even,Odd,OddEven) :  ' )
+    PyEndOfSwitchEven.append( '    sleep(1)  ' )
+    PyEndOfSwitchEven.append( '    return a,Even  ' )
+    EndOfSwitchEven.SetPyFunction( 'EndOfSwitchEven' , PyEndOfSwitchEven )
+    IEndOfSwitchEvena = EndOfSwitchEven.InPort( 'a' , 'long' )
+    IEndOfSwitchEvenEven = EndOfSwitchEven.InPort( 'Even' , 'boolean' )
+    IEndOfSwitchEvenOdd = EndOfSwitchEven.InPort( 'Odd' , 'long' )
+    IEndOfSwitchEvenOddEven = EndOfSwitchEven.InPort( 'OddEven' , 'string' )
+    IEndOfSwitchEvenDefault = EndOfSwitchEven.GetInPort( 'Default' )
+    OEndOfSwitchEvena = EndOfSwitchEven.OutPort( 'a' , 'long' )
+    OEndOfSwitchEvenEven = EndOfSwitchEven.OutPort( 'Even' , 'boolean' )
+    OEndOfSwitchEvenGate = EndOfSwitchEven.GetOutPort( 'Gate' )
+    SwitchEven.SetName( 'SwitchEven' )
+    SwitchEven.SetAuthor( '' )
+    SwitchEven.SetComment( 'Compute Node' )
+    SwitchEven.Coords( 230 , 457 )
+    ISwitchEvena = SwitchEven.InPort( 'a' , 'long' )
+    ISwitchEvenGate = SwitchEven.GetInPort( 'Gate' )
+    OSwitchEvenOdd = SwitchEven.OutPort( 'Odd' , 'long' )
+    OSwitchEvenEven = SwitchEven.OutPort( 'Even' , 'int' )
+    OSwitchEvendefault = SwitchEven.OutPort( 'default' , 'long' )
+    OSwitchEvena = SwitchEven.OutPort( 'a' , 'int' )
+    OSwitchEvenOddEven = SwitchEven.OutPort( 'OddEven' , 'string' )
+    OSwitchEvenDefault = SwitchEven.GetOutPort( 'Default' )
+    
+    # Creation of Links
+    LIsOddaEndOfSwitchOdda = GraphLoopSwitchsBranchesdefault.Link( OIsOdda , IEndOfSwitchOdda )
+    
+    LIsOddOddEndOfSwitchOddOdd = GraphLoopSwitchsBranchesdefault.Link( OIsOddOdd , IEndOfSwitchOddOdd )
+    
+    LSwitchOddOddIsOddGate = GraphLoopSwitchsBranchesdefault.Link( OSwitchOddOdd , IIsOddGate )
+    
+    LSwitchOddEvenIsNotOddEven = GraphLoopSwitchsBranchesdefault.Link( OSwitchOddEven , IIsNotOddEven )
+    
+    LSwitchOdddefaultIsOdddefaultGate = GraphLoopSwitchsBranchesdefault.Link( OSwitchOdddefault , IIsOdddefaultGate )
+    
+    LSwitchOddaIsOdddefaulta = GraphLoopSwitchsBranchesdefault.Link( OSwitchOdda , IIsOdddefaulta )
+    
+    LSwitchOddaIsOdda = GraphLoopSwitchsBranchesdefault.Link( OSwitchOdda , IIsOdda )
+    
+    LSwitchOddOddEvenEndOfSwitchOddOddEven = GraphLoopSwitchsBranchesdefault.Link( OSwitchOddOddEven , IEndOfSwitchOddOddEven )
+    
+    LSwitchOddDefaultEndOfSwitchOddDefault = GraphLoopSwitchsBranchesdefault.Link( OSwitchOddDefault , IEndOfSwitchOddDefault )
+    
+    LEndOfSwitchOddaSwitchsCompareaOdd = GraphLoopSwitchsBranchesdefault.Link( OEndOfSwitchOdda , ISwitchsCompareaOdd )
+    
+    LEndOfSwitchOddOddSwitchsCompareOdd = GraphLoopSwitchsBranchesdefault.Link( OEndOfSwitchOddOdd , ISwitchsCompareOdd )
+    
+    LIsEvenaEndOfSwitchEvena = GraphLoopSwitchsBranchesdefault.Link( OIsEvena , IEndOfSwitchEvena )
+    
+    LIsEvenEvenEndOfSwitchEvenEven = GraphLoopSwitchsBranchesdefault.Link( OIsEvenEven , IEndOfSwitchEvenEven )
+    
+    LLoopIndexSwitchsCompareIndex = GraphLoopSwitchsBranchesdefault.Link( OLoopIndex , ISwitchsCompareIndex )
+    
+    LLoopIndexSwitchOdda = GraphLoopSwitchsBranchesdefault.Link( OLoopIndex , ISwitchOdda )
+    
+    LLoopIndexSwitchEvena = GraphLoopSwitchsBranchesdefault.Link( OLoopIndex , ISwitchEvena )
+    
+    LLoopMinEndOfLoopMin = GraphLoopSwitchsBranchesdefault.Link( OLoopMin , IEndOfLoopMin )
+    
+    LLoopMaxEndOfLoopMax = GraphLoopSwitchsBranchesdefault.Link( OLoopMax , IEndOfLoopMax )
+    
+    LSwitchEvenOddIsNotEvenOdd = GraphLoopSwitchsBranchesdefault.Link( OSwitchEvenOdd , IIsNotEvenOdd )
+    
+    LSwitchEvenEvenIsEvenGate = GraphLoopSwitchsBranchesdefault.Link( OSwitchEvenEven , IIsEvenGate )
+    
+    LSwitchEvendefaultIsEvendefaultGate = GraphLoopSwitchsBranchesdefault.Link( OSwitchEvendefault , IIsEvendefaultGate )
+    
+    LSwitchEvenaIsEvena = GraphLoopSwitchsBranchesdefault.Link( OSwitchEvena , IIsEvena )
+    
+    LSwitchEvenaIsEvendefaulta = GraphLoopSwitchsBranchesdefault.Link( OSwitchEvena , IIsEvendefaulta )
+    
+    LSwitchEvenOddEvenEndOfSwitchEvenOddEven = GraphLoopSwitchsBranchesdefault.Link( OSwitchEvenOddEven , IEndOfSwitchEvenOddEven )
+    
+    LSwitchEvenDefaultEndOfSwitchEvenDefault = GraphLoopSwitchsBranchesdefault.Link( OSwitchEvenDefault , IEndOfSwitchEvenDefault )
+    
+    LEndOfSwitchEvenaSwitchsCompareaEven = GraphLoopSwitchsBranchesdefault.Link( OEndOfSwitchEvena , ISwitchsCompareaEven )
+    
+    LEndOfSwitchEvenEvenSwitchsCompareEven = GraphLoopSwitchsBranchesdefault.Link( OEndOfSwitchEvenEven , ISwitchsCompareEven )
+    
+    LSwitchsCompareIndexEndOfLoopIndex = GraphLoopSwitchsBranchesdefault.Link( OSwitchsCompareIndex , IEndOfLoopIndex )
+    
+    LIsNotOddEvenEndOfSwitchOddEven = GraphLoopSwitchsBranchesdefault.Link( OIsNotOddEven , IEndOfSwitchOddEven )
+    
+    LIsNotEvenOddEndOfSwitchEvenOdd = GraphLoopSwitchsBranchesdefault.Link( OIsNotEvenOdd , IEndOfSwitchEvenOdd )
+    
+    LIsOdddefaultaEndOfSwitchOdda = GraphLoopSwitchsBranchesdefault.Link( OIsOdddefaulta , IEndOfSwitchOdda )
+    
+    LIsOdddefaultOddEndOfSwitchOddOdd = GraphLoopSwitchsBranchesdefault.Link( OIsOdddefaultOdd , IEndOfSwitchOddOdd )
+    
+    LIsEvendefaultaEndOfSwitchEvena = GraphLoopSwitchsBranchesdefault.Link( OIsEvendefaulta , IEndOfSwitchEvena )
+    
+    LIsEvendefaultEvenEndOfSwitchEvenEven = GraphLoopSwitchsBranchesdefault.Link( OIsEvendefaultEven , IEndOfSwitchEvenEven )
+    
+    # Input datas
+    ILoopIndex.Input( 0 )
+    ILoopMin.Input( -5 )
+    ILoopMax.Input( 23 )
+    
+    # Output Ports of the graph
+    #OEndOfLoopIndex = EndOfLoop.GetOutPort( 'Index' )
+    #OEndOfLoopMin = EndOfLoop.GetOutPort( 'Min' )
+    #OEndOfLoopMax = EndOfLoop.GetOutPort( 'Max' )
+    return GraphLoopSwitchsBranchesdefault
+
+
+GraphLoopSwitchsBranchesdefault = DefGraphLoopSwitchsBranchesdefault()
diff --git a/examples/GraphLoopSwitchsBranchesdefault.xml b/examples/GraphLoopSwitchsBranchesdefault.xml
new file mode 100644 (file)
index 0000000..29a71f6
--- /dev/null
@@ -0,0 +1,826 @@
+<!DOCTYPE SuperGraph>
+<supergraph>
+<dataflow>
+<info-list>
+<node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>GraphLoopSwitchsBranchesdefault</node-name>
+    <kind>1</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>GraphLoopSwitchsBranchesdefault</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Loop__Index</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Loop__Min</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Loop__Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>EndOfLoop__Index</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>EndOfLoop__Min</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>EndOfLoop__Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>14/10/2003 - 10:29:4</creation-date>
+    <lastmodification-date>11/2/2005 - 17:25:28</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>JR</author>
+    <container>?</container>
+    <comment>?</comment>
+    <x-position>0</x-position>
+    <y-position>0</y-position>   </node>  </info-list>
+  <node-list>
+<node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>IsOdd</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>IsOdd</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>IsOdd</FuncName>
+      <PyFunc><![CDATA[from time import *     ]]></PyFunc>
+      <PyFunc><![CDATA[def IsOdd(a) :         ]]></PyFunc>
+      <PyFunc><![CDATA[    print a,"IsOdd"        ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep( 1 )     ]]></PyFunc>
+      <PyFunc><![CDATA[    return a,1 ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 17:9:54</creation-date>
+    <lastmodification-date>11/2/2005 - 17:9:54</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Python function</comment>
+    <x-position>476</x-position>
+    <y-position>2</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>SwitchOdd</node-name>
+    <kind>6</kind>
+    <coupled-node>EndOfSwitchOdd</coupled-node>
+    <service>
+<service-name>SwitchOdd</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>int</outParameter-type>
+       <outParameter-name>Even</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>default</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>string</outParameter-type>
+       <outParameter-name>OddEven</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>SwitchOdd</FuncName>
+      <PyFunc><![CDATA[from time import *      ]]></PyFunc>
+      <PyFunc><![CDATA[def SwitchOdd(a) :        ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1) ]]></PyFunc>
+      <PyFunc><![CDATA[    if a <= 0 : ]]></PyFunc>
+      <PyFunc><![CDATA[        OddEven = '<=0' ]]></PyFunc>
+      <PyFunc><![CDATA[        return 0,0,0,a,OddEven ]]></PyFunc>
+      <PyFunc><![CDATA[    OddEven = 'Odd'    ]]></PyFunc>
+      <PyFunc><![CDATA[    if (a&1) == 0 :    ]]></PyFunc>
+      <PyFunc><![CDATA[        OddEven = 'Even'    ]]></PyFunc>
+      <PyFunc><![CDATA[    return a & 1,1-(a&1),1-(a&1),a,OddEven    ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 17:9:54</creation-date>
+    <lastmodification-date>11/2/2005 - 17:9:54</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>240</x-position>
+    <y-position>142</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>EndOfSwitchOdd</node-name>
+    <kind>7</kind>
+    <coupled-node>SwitchOdd</coupled-node>
+    <service>
+<service-name>EndOfSwitchOdd</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>boolean</inParameter-type>
+       <inParameter-name>Odd</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Even</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>boolean</inParameter-type>
+       <inParameter-name>OddEven</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>boolean</outParameter-type>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>EndOfSwitchOdd</FuncName>
+      <PyFunc><![CDATA[from time import *  ]]></PyFunc>
+      <PyFunc><![CDATA[def EndOfSwitchOdd(a,Odd,Even,OddEven) :  ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1)  ]]></PyFunc>
+      <PyFunc><![CDATA[    return a,Odd  ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 17:9:54</creation-date>
+    <lastmodification-date>11/2/2005 - 17:9:54</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>718</x-position>
+    <y-position>162</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>IsEven</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>IsEven</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Even</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>IsEven</FuncName>
+      <PyFunc><![CDATA[from time import *     ]]></PyFunc>
+      <PyFunc><![CDATA[def IsEven(a) :         ]]></PyFunc>
+      <PyFunc><![CDATA[    print a,"IsEven"        ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep( 1 )     ]]></PyFunc>
+      <PyFunc><![CDATA[    return a,1 ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 17:9:54</creation-date>
+    <lastmodification-date>11/2/2005 - 17:9:54</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Python function</comment>
+    <x-position>472</x-position>
+    <y-position>724</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>Loop</node-name>
+    <kind>4</kind>
+    <coupled-node>EndOfLoop</coupled-node>
+    <service>
+<service-name>Loop</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Index</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Min</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Index</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Min</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>InitLoop</FuncName>
+      <PyFunc><![CDATA[def InitLoop(Index,Min,Max) : ]]></PyFunc>
+      <PyFunc><![CDATA[    Index = Max ]]></PyFunc>
+      <PyFunc><![CDATA[    return Index,Min,Max      ]]></PyFunc>     </PyFunction>
+     <PyFunction>
+<FuncName>MoreLoop</FuncName>
+      <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) :      ]]></PyFunc>
+      <PyFunc><![CDATA[        if Index >= Min :    ]]></PyFunc>
+      <PyFunc><![CDATA[                DoLoop = 1      ]]></PyFunc>
+      <PyFunc><![CDATA[        else :      ]]></PyFunc>
+      <PyFunc><![CDATA[                DoLoop = 0      ]]></PyFunc>
+      <PyFunc><![CDATA[        return DoLoop,Index,Min,Max      ]]></PyFunc>     </PyFunction>
+     <PyFunction>
+<FuncName>NextLoop</FuncName>
+      <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>11/2/2005 - 17:9:54</creation-date>
+    <lastmodification-date>11/2/2005 - 17:9:54</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>18</x-position>
+    <y-position>389</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>EndOfLoop</node-name>
+    <kind>5</kind>
+    <coupled-node>Loop</coupled-node>
+    <service>
+<service-name>EndOfLoop</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Index</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Min</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Index</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Min</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>?</FuncName>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 17:9:54</creation-date>
+    <lastmodification-date>11/2/2005 - 17:9:54</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>1097</x-position>
+    <y-position>309</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>SwitchEven</node-name>
+    <kind>6</kind>
+    <coupled-node>EndOfSwitchEven</coupled-node>
+    <service>
+<service-name>SwitchEven</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>int</outParameter-type>
+       <outParameter-name>Even</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>default</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>int</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>string</outParameter-type>
+       <outParameter-name>OddEven</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>SwitchEven</FuncName>
+      <PyFunc><![CDATA[from time import *            ]]></PyFunc>
+      <PyFunc><![CDATA[def SwitchEven(a) :          ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1)  ]]></PyFunc>
+      <PyFunc><![CDATA[    if a <= 0 :  ]]></PyFunc>
+      <PyFunc><![CDATA[        OddEven = '<=0'  ]]></PyFunc>
+      <PyFunc><![CDATA[        return 0,0,0,a,OddEven  ]]></PyFunc>
+      <PyFunc><![CDATA[    OddEven = 'Even'         ]]></PyFunc>
+      <PyFunc><![CDATA[    if (a&1) != 0 :         ]]></PyFunc>
+      <PyFunc><![CDATA[        OddEven = 'Odd'      ]]></PyFunc>
+      <PyFunc><![CDATA[    print (a&1),1-(a&1),(a&1),a,OddEven    ]]></PyFunc>
+      <PyFunc><![CDATA[    return (a&1),1-(a&1),(a&1),a,OddEven         ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 17:9:54</creation-date>
+    <lastmodification-date>11/2/2005 - 17:9:54</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>230</x-position>
+    <y-position>457</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>EndOfSwitchEven</node-name>
+    <kind>7</kind>
+    <coupled-node>SwitchEven</coupled-node>
+    <service>
+<service-name>EndOfSwitchEven</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>boolean</inParameter-type>
+       <inParameter-name>Even</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Odd</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>string</inParameter-type>
+       <inParameter-name>OddEven</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>boolean</outParameter-type>
+       <outParameter-name>Even</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>EndOfSwitchEven</FuncName>
+      <PyFunc><![CDATA[from time import *  ]]></PyFunc>
+      <PyFunc><![CDATA[def EndOfSwitchEven(a,Even,Odd,OddEven) :  ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1)  ]]></PyFunc>
+      <PyFunc><![CDATA[    return a,Even  ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 17:9:54</creation-date>
+    <lastmodification-date>11/2/2005 - 17:9:54</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>721</x-position>
+    <y-position>477</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>SwitchsCompare</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>SwitchsCompare</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>aOdd</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>boolean</inParameter-type>
+       <inParameter-name>Odd</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>aEven</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>boolean</inParameter-type>
+       <inParameter-name>Even</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Index</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Index</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>SwitchsCompare</FuncName>
+      <PyFunc><![CDATA[from time import *  ]]></PyFunc>
+      <PyFunc><![CDATA[def SwitchsCompare(aOdd,Odd,aEven,Even,Index) :  ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1)  ]]></PyFunc>
+      <PyFunc><![CDATA[    return Index ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 17:9:54</creation-date>
+    <lastmodification-date>11/2/2005 - 17:9:54</lastmodification-date>
+    <editor-release>2.0</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>916</x-position>
+    <y-position>269</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>IsNotOdd</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>IsNotOdd</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Even</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Even</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>IsNotOdd</FuncName>
+      <PyFunc><![CDATA[from time import * ]]></PyFunc>
+      <PyFunc><![CDATA[def IsNotOdd(Even) : ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1) ]]></PyFunc>
+      <PyFunc><![CDATA[    return Even ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 17:9:54</creation-date>
+    <lastmodification-date>11/2/2005 - 17:9:54</lastmodification-date>
+    <editor-release>2.0</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>477</x-position>
+    <y-position>137</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>IsNotEven</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>IsNotEven</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Odd</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>IsNotEven</FuncName>
+      <PyFunc><![CDATA[from time import *  ]]></PyFunc>
+      <PyFunc><![CDATA[def IsNotEven(Odd) :  ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1)  ]]></PyFunc>
+      <PyFunc><![CDATA[    return Odd ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 17:9:54</creation-date>
+    <lastmodification-date>11/2/2005 - 17:9:54</lastmodification-date>
+    <editor-release>2.0</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>475</x-position>
+    <y-position>601</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>IsOdddefault</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>IsOdddefault</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>IsOdddefault</FuncName>
+      <PyFunc><![CDATA[from time import * ]]></PyFunc>
+      <PyFunc><![CDATA[def IsOdddefault(a) : ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1) ]]></PyFunc>
+      <PyFunc><![CDATA[    return a,0 ]]></PyFunc>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 17:16:6</creation-date>
+    <lastmodification-date>11/2/2005 - 17:16:6</lastmodification-date>
+    <editor-release>2.0</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>477</x-position>
+    <y-position>285</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>IsEvendefault</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>IsOdddefault_1</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Even</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>IsEvendefault</FuncName>
+      <PyFunc><![CDATA[from time import *  ]]></PyFunc>
+      <PyFunc><![CDATA[def IsEvendefault(a) :  ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1)  ]]></PyFunc>
+      <PyFunc><![CDATA[    return a,0  ]]></PyFunc>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>11/2/2005 - 17:23:32</creation-date>
+    <lastmodification-date>11/2/2005 - 17:23:32</lastmodification-date>
+    <editor-release>2.0</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>478</x-position>
+    <y-position>434</y-position>   </node>  </node-list>
+  <link-list>
+<link>
+<fromnode-name>IsOdd</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchOdd</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>IsOdd</fromnode-name>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchOdd</tonode-name>
+    <toserviceparameter-name>Odd</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>IsOdd</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>IsNotOdd</tonode-name>
+    <toserviceparameter-name>Even</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>default</fromserviceparameter-name>
+    <tonode-name>IsOdddefault</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>IsOdddefault</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>IsOdd</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>OddEven</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchOdd</tonode-name>
+    <toserviceparameter-name>OddEven</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>Default</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchOdd</tonode-name>
+    <toserviceparameter-name>Default</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndOfSwitchOdd</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>SwitchsCompare</tonode-name>
+    <toserviceparameter-name>aOdd</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndOfSwitchOdd</fromnode-name>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>SwitchsCompare</tonode-name>
+    <toserviceparameter-name>Odd</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>IsEven</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchEven</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>IsEven</fromnode-name>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchEven</tonode-name>
+    <toserviceparameter-name>Even</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Loop</fromnode-name>
+    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+    <tonode-name>EndOfLoop</tonode-name>
+    <toserviceparameter-name>DoLoop</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Loop</fromnode-name>
+    <fromserviceparameter-name>Index</fromserviceparameter-name>
+    <tonode-name>SwitchsCompare</tonode-name>
+    <toserviceparameter-name>Index</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Loop</fromnode-name>
+    <fromserviceparameter-name>Index</fromserviceparameter-name>
+    <tonode-name>SwitchOdd</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Loop</fromnode-name>
+    <fromserviceparameter-name>Index</fromserviceparameter-name>
+    <tonode-name>SwitchEven</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Loop</fromnode-name>
+    <fromserviceparameter-name>Min</fromserviceparameter-name>
+    <tonode-name>EndOfLoop</tonode-name>
+    <toserviceparameter-name>Min</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Loop</fromnode-name>
+    <fromserviceparameter-name>Max</fromserviceparameter-name>
+    <tonode-name>EndOfLoop</tonode-name>
+    <toserviceparameter-name>Max</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndOfLoop</fromnode-name>
+    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+    <tonode-name>Loop</tonode-name>
+    <toserviceparameter-name>DoLoop</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchEven</fromnode-name>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>IsNotEven</tonode-name>
+    <toserviceparameter-name>Odd</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchEven</fromnode-name>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>IsEven</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchEven</fromnode-name>
+    <fromserviceparameter-name>default</fromserviceparameter-name>
+    <tonode-name>IsEvendefault</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchEven</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>IsEven</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchEven</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>IsEvendefault</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchEven</fromnode-name>
+    <fromserviceparameter-name>OddEven</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchEven</tonode-name>
+    <toserviceparameter-name>OddEven</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchEven</fromnode-name>
+    <fromserviceparameter-name>Default</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchEven</tonode-name>
+    <toserviceparameter-name>Default</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndOfSwitchEven</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>SwitchsCompare</tonode-name>
+    <toserviceparameter-name>aEven</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndOfSwitchEven</fromnode-name>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>SwitchsCompare</tonode-name>
+    <toserviceparameter-name>Even</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchsCompare</fromnode-name>
+    <fromserviceparameter-name>Index</fromserviceparameter-name>
+    <tonode-name>EndOfLoop</tonode-name>
+    <toserviceparameter-name>Index</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>IsNotOdd</fromnode-name>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchOdd</tonode-name>
+    <toserviceparameter-name>Even</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>IsNotEven</fromnode-name>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchEven</tonode-name>
+    <toserviceparameter-name>Odd</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>IsOdddefault</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchOdd</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>IsOdddefault</fromnode-name>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchOdd</tonode-name>
+    <toserviceparameter-name>Odd</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>IsEvendefault</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchEven</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>IsEvendefault</fromnode-name>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchEven</tonode-name>
+    <toserviceparameter-name>Even</toserviceparameter-name>
+    <coord-list/>   </link>  </link-list>
+  <data-list>
+<data>
+<fromnode-name>GraphLoopSwitchsBranchesdefault</fromnode-name>
+    <fromserviceparameter-name>Loop__Index</fromserviceparameter-name>
+    <tonode-name>Loop</tonode-name>
+    <toserviceparameter-name>Index</toserviceparameter-name>
+    <data-value>
+<value-type>3</value-type>
+     <value>0</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
+<fromnode-name>GraphLoopSwitchsBranchesdefault</fromnode-name>
+    <fromserviceparameter-name>Loop__Min</fromserviceparameter-name>
+    <tonode-name>Loop</tonode-name>
+    <toserviceparameter-name>Min</toserviceparameter-name>
+    <data-value>
+<value-type>3</value-type>
+     <value>-5</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
+<fromnode-name>GraphLoopSwitchsBranchesdefault</fromnode-name>
+    <fromserviceparameter-name>Loop__Max</fromserviceparameter-name>
+    <tonode-name>Loop</tonode-name>
+    <toserviceparameter-name>Max</toserviceparameter-name>
+    <data-value>
+<value-type>3</value-type>
+     <value>23</value>    </data-value>
+    <coord-list/>   </data>  </data-list> </dataflow></supergraph>
diff --git a/examples/GraphLoopSwitchsNOTValid.py b/examples/GraphLoopSwitchsNOTValid.py
new file mode 100644 (file)
index 0000000..09b9a00
--- /dev/null
@@ -0,0 +1,229 @@
+
+# Generated python file of Graph GraphLoopSwitchsNOTValid
+
+from SuperV import *
+
+# Graph creation of GraphLoopSwitchsNOTValid
+def DefGraphLoopSwitchsNOTValid() :
+    GraphLoopSwitchsNOTValid = Graph( 'GraphLoopSwitchsNOTValid' )
+    GraphLoopSwitchsNOTValid.SetName( 'GraphLoopSwitchsNOTValid' )
+    GraphLoopSwitchsNOTValid.SetAuthor( 'JR' )
+    GraphLoopSwitchsNOTValid.SetComment( '' )
+    GraphLoopSwitchsNOTValid.Coords( 0 , 0 )
+    
+    # Creation of Factory Nodes
+    
+    # Creation of InLine Nodes
+    PyIsOdd = []
+    PyIsOdd.append( 'from time import *    ' )
+    PyIsOdd.append( 'def IsOdd(a) :        ' )
+    PyIsOdd.append( '    print a,"IsOdd"       ' )
+    PyIsOdd.append( '    sleep( 1 )    ' )
+    PyIsOdd.append( '    return a      ' )
+    IsOdd = GraphLoopSwitchsNOTValid.INode( 'IsOdd' , PyIsOdd )
+    IsOdd.SetName( 'IsOdd' )
+    IsOdd.SetAuthor( '' )
+    IsOdd.SetComment( 'Python function' )
+    IsOdd.Coords( 476 , 50 )
+    IIsOdda = IsOdd.InPort( 'a' , 'long' )
+    IIsOddGate = IsOdd.GetInPort( 'Gate' )
+    OIsOdda = IsOdd.OutPort( 'a' , 'long' )
+    OIsOddGate = IsOdd.GetOutPort( 'Gate' )
+    
+    PyIsEven = []
+    PyIsEven.append( 'from time import *    ' )
+    PyIsEven.append( 'def IsEven(a) :        ' )
+    PyIsEven.append( '    print a,"IsEven"       ' )
+    PyIsEven.append( '    sleep( 1 )    ' )
+    PyIsEven.append( '    return a      ' )
+    IsEven = GraphLoopSwitchsNOTValid.INode( 'IsEven' , PyIsEven )
+    IsEven.SetName( 'IsEven' )
+    IsEven.SetAuthor( '' )
+    IsEven.SetComment( 'Python function' )
+    IsEven.Coords( 479 , 311 )
+    IIsEvena = IsEven.InPort( 'a' , 'long' )
+    IIsEvenGate = IsEven.GetInPort( 'Gate' )
+    OIsEvena = IsEven.OutPort( 'a' , 'long' )
+    OIsEvenGate = IsEven.GetOutPort( 'Gate' )
+    
+    PySwitchsCompare = []
+    PySwitchsCompare.append( 'def SwitchsCompare(aOdd,Odd,aEven,Even) : ' )
+    PySwitchsCompare.append( '    return a ' )
+    SwitchsCompare = GraphLoopSwitchsNOTValid.INode( 'SwitchsCompare' , PySwitchsCompare )
+    SwitchsCompare.SetName( 'SwitchsCompare' )
+    SwitchsCompare.SetAuthor( '' )
+    SwitchsCompare.SetComment( 'Compute Node' )
+    SwitchsCompare.Coords( 919 , 242 )
+    ISwitchsCompareaOdd = SwitchsCompare.InPort( 'aOdd' , 'long' )
+    ISwitchsCompareOdd = SwitchsCompare.InPort( 'Odd' , 'boolean' )
+    ISwitchsCompareaEven = SwitchsCompare.InPort( 'aEven' , 'long' )
+    ISwitchsCompareEven = SwitchsCompare.InPort( 'Even' , 'boolean' )
+    ISwitchsCompareGate = SwitchsCompare.GetInPort( 'Gate' )
+    OSwitchsComparea = SwitchsCompare.OutPort( 'a' , 'long' )
+    OSwitchsCompareGate = SwitchsCompare.GetOutPort( 'Gate' )
+    
+    # Creation of Loop Nodes
+    PyLoop = []
+    PyLoop.append( 'def InitLoop(Index,Min,Max) :      ' )
+    PyLoop.append( '   return Index,Min,Max     ' )
+    PyMoreLoop = []
+    PyMoreLoop.append( 'def MoreLoop(Index,Min,Max) :     ' )
+    PyMoreLoop.append( '       if Index <= Max :   ' )
+    PyMoreLoop.append( '               DoLoop = 1     ' )
+    PyMoreLoop.append( '       else :     ' )
+    PyMoreLoop.append( '               DoLoop = 0     ' )
+    PyMoreLoop.append( '       return DoLoop,Index,Min,Max     ' )
+    PyNextLoop = []
+    PyNextLoop.append( 'def NextLoop(Index,Min,Max) :     ' )
+    PyNextLoop.append( '       Index = Index + 1     ' )
+    PyNextLoop.append( '       return Index,Min,Max     ' )
+    Loop,EndOfLoop = GraphLoopSwitchsNOTValid.LNode( 'InitLoop' , PyLoop , 'MoreLoop' , PyMoreLoop , 'NextLoop' , PyNextLoop )
+    EndOfLoop.SetName( 'EndOfLoop' )
+    EndOfLoop.SetAuthor( '' )
+    EndOfLoop.SetComment( 'Compute Node' )
+    EndOfLoop.Coords( 1102 , 282 )
+    PyEndOfLoop = []
+    EndOfLoop.SetPyFunction( '' , PyEndOfLoop )
+    ILoopDoLoop = Loop.GetInPort( 'DoLoop' )
+    ILoopIndex = Loop.InPort( 'Index' , 'long' )
+    ILoopMin = Loop.InPort( 'Min' , 'long' )
+    ILoopMax = Loop.InPort( 'Max' , 'long' )
+    ILoopGate = Loop.GetInPort( 'Gate' )
+    OLoopDoLoop = Loop.GetOutPort( 'DoLoop' )
+    OLoopIndex = Loop.GetOutPort( 'Index' )
+    OLoopMin = Loop.GetOutPort( 'Min' )
+    OLoopMax = Loop.GetOutPort( 'Max' )
+    IEndOfLoopDoLoop = EndOfLoop.GetInPort( 'DoLoop' )
+    IEndOfLoopIndex = EndOfLoop.GetInPort( 'Index' )
+    IEndOfLoopMin = EndOfLoop.GetInPort( 'Min' )
+    IEndOfLoopMax = EndOfLoop.GetInPort( 'Max' )
+    IEndOfLoopGate = EndOfLoop.GetInPort( 'Gate' )
+    OEndOfLoopDoLoop = EndOfLoop.GetOutPort( 'DoLoop' )
+    OEndOfLoopIndex = EndOfLoop.GetOutPort( 'Index' )
+    OEndOfLoopMin = EndOfLoop.GetOutPort( 'Min' )
+    OEndOfLoopMax = EndOfLoop.GetOutPort( 'Max' )
+    OEndOfLoopGate = EndOfLoop.GetOutPort( 'Gate' )
+    Loop.SetName( 'Loop' )
+    Loop.SetAuthor( '' )
+    Loop.SetComment( 'Compute Node' )
+    Loop.Coords( 12 , 276 )
+    
+    # Creation of Switch Nodes
+    PySwitchOdd = []
+    PySwitchOdd.append( 'from time import * ' )
+    PySwitchOdd.append( 'def Switch(a) :   ' )
+    PySwitchOdd.append( '    if ( a & 1 ) == 0 : ' )
+    PySwitchOdd.append( '        sleep(1)    ' )
+    PySwitchOdd.append( '    return a & 1,1-(a&1),a    ' )
+    SwitchOdd,EndOfSwitchOdd = GraphLoopSwitchsNOTValid.SNode( 'Switch' , PySwitchOdd )
+    EndOfSwitchOdd.SetName( 'EndOfSwitchOdd' )
+    EndOfSwitchOdd.SetAuthor( '' )
+    EndOfSwitchOdd.SetComment( 'Compute Node' )
+    EndOfSwitchOdd.Coords( 711 , 161 )
+    PyEndOfSwitchOdd = []
+    EndOfSwitchOdd.SetPyFunction( '' , PyEndOfSwitchOdd )
+    IEndOfSwitchOdda = EndOfSwitchOdd.InPort( 'a' , 'long' )
+    IEndOfSwitchOddOdd = EndOfSwitchOdd.InPort( 'Odd' , 'boolean' )
+    IEndOfSwitchOddDefault = EndOfSwitchOdd.GetInPort( 'Default' )
+    OEndOfSwitchOdda = EndOfSwitchOdd.OutPort( 'a' , 'long' )
+    OEndOfSwitchOddOdd = EndOfSwitchOdd.OutPort( 'Odd' , 'boolean' )
+    OEndOfSwitchOddGate = EndOfSwitchOdd.GetOutPort( 'Gate' )
+    SwitchOdd.SetName( 'SwitchOdd' )
+    SwitchOdd.SetAuthor( '' )
+    SwitchOdd.SetComment( 'Compute Node' )
+    SwitchOdd.Coords( 240 , 141 )
+    ISwitchOdda = SwitchOdd.InPort( 'a' , 'long' )
+    ISwitchOddGate = SwitchOdd.GetInPort( 'Gate' )
+    OSwitchOddOdd = SwitchOdd.OutPort( 'Odd' , 'long' )
+    OSwitchOddEven = SwitchOdd.OutPort( 'Even' , 'int' )
+    OSwitchOdda = SwitchOdd.OutPort( 'a' , 'int' )
+    OSwitchOddDefault = SwitchOdd.GetOutPort( 'Default' )
+    
+    PySwitchEven = []
+    PySwitchEven.append( 'from time import *  ' )
+    PySwitchEven.append( 'def Switch(a) :    ' )
+    PySwitchEven.append( '    if ( a & 1 ) == 0 :  ' )
+    PySwitchEven.append( '        sleep(1)  ' )
+    PySwitchEven.append( '    return a & 1,1-(a&1),a    ' )
+    SwitchEven,EndOfSwitchEven = GraphLoopSwitchsNOTValid.SNode( 'Switch' , PySwitchEven )
+    EndOfSwitchEven.SetName( 'EndOfSwitchEven' )
+    EndOfSwitchEven.SetAuthor( '' )
+    EndOfSwitchEven.SetComment( 'Compute Node' )
+    EndOfSwitchEven.Coords( 718 , 361 )
+    PyEndOfSwitchEven = []
+    EndOfSwitchEven.SetPyFunction( '' , PyEndOfSwitchEven )
+    IEndOfSwitchEvena = EndOfSwitchEven.InPort( 'a' , 'long' )
+    IEndOfSwitchEvenEven = EndOfSwitchEven.InPort( 'Even' , 'boolean' )
+    IEndOfSwitchEvenDefault = EndOfSwitchEven.GetInPort( 'Default' )
+    OEndOfSwitchEvena = EndOfSwitchEven.OutPort( 'a' , 'long' )
+    OEndOfSwitchEvenEven = EndOfSwitchEven.OutPort( 'Even' , 'boolean' )
+    OEndOfSwitchEvenGate = EndOfSwitchEven.GetOutPort( 'Gate' )
+    SwitchEven.SetName( 'SwitchEven' )
+    SwitchEven.SetAuthor( '' )
+    SwitchEven.SetComment( 'Compute Node' )
+    SwitchEven.Coords( 235 , 386 )
+    ISwitchEvena = SwitchEven.InPort( 'a' , 'long' )
+    ISwitchEvenGate = SwitchEven.GetInPort( 'Gate' )
+    OSwitchEvenOdd = SwitchEven.OutPort( 'Odd' , 'long' )
+    OSwitchEvenEven = SwitchEven.OutPort( 'Even' , 'int' )
+    OSwitchEvena = SwitchEven.OutPort( 'a' , 'int' )
+    OSwitchEvenDefault = SwitchEven.GetOutPort( 'Default' )
+    
+    # Creation of Links
+    LIsOddaEndOfSwitchOdda = GraphLoopSwitchsNOTValid.Link( OIsOdda , IEndOfSwitchOdda )
+    
+    LSwitchOddOddIsOddGate = GraphLoopSwitchsNOTValid.Link( OSwitchOddOdd , IIsOddGate )
+    
+    LSwitchOddOddEndOfSwitchOddOdd = GraphLoopSwitchsNOTValid.Link( OSwitchOddOdd , IEndOfSwitchOddOdd )
+    
+    LSwitchOddaIsOdda = GraphLoopSwitchsNOTValid.Link( OSwitchOdda , IIsOdda )
+    LSwitchOddaIsOdda.AddCoord( 1 , 443 , 121 )
+    LSwitchOddaIsOdda.AddCoord( 2 , 443 , 212 )
+    
+    LSwitchOddDefaultEndOfSwitchOddDefault = GraphLoopSwitchsNOTValid.Link( OSwitchOddDefault , IEndOfSwitchOddDefault )
+    
+    LEndOfSwitchOddaSwitchsCompareaOdd = GraphLoopSwitchsNOTValid.Link( OEndOfSwitchOdda , ISwitchsCompareaOdd )
+    
+    LEndOfSwitchOddOddSwitchsCompareOdd = GraphLoopSwitchsNOTValid.Link( OEndOfSwitchOddOdd , ISwitchsCompareOdd )
+    
+    LIsEvenaEndOfSwitchEvena = GraphLoopSwitchsNOTValid.Link( OIsEvena , IEndOfSwitchEvena )
+    
+    LLoopIndexSwitchEvena = GraphLoopSwitchsNOTValid.Link( OLoopIndex , ISwitchEvena )
+    
+    LLoopIndexSwitchOdda = GraphLoopSwitchsNOTValid.Link( OLoopIndex , ISwitchOdda )
+    
+    LLoopMinEndOfLoopMin = GraphLoopSwitchsNOTValid.Link( OLoopMin , IEndOfLoopMin )
+    
+    LLoopMaxEndOfLoopMax = GraphLoopSwitchsNOTValid.Link( OLoopMax , IEndOfLoopMax )
+    
+    LSwitchEvenOddIsEvenGate = GraphLoopSwitchsNOTValid.Link( OSwitchEvenOdd , IIsEvenGate )
+    
+    LSwitchEvenEvenEndOfSwitchEvenDefault = GraphLoopSwitchsNOTValid.Link( OSwitchEvenEven , IEndOfSwitchEvenDefault )
+    
+    LSwitchEvenaIsEvena = GraphLoopSwitchsNOTValid.Link( OSwitchEvena , IIsEvena )
+    LSwitchEvenaIsEvena.AddCoord( 1 , 434 , 382 )
+    LSwitchEvenaIsEvena.AddCoord( 2 , 434 , 457 )
+    
+    LEndOfSwitchEvenaSwitchsCompareaEven = GraphLoopSwitchsNOTValid.Link( OEndOfSwitchEvena , ISwitchsCompareaEven )
+    
+    LEndOfSwitchEvenEvenSwitchsCompareEven = GraphLoopSwitchsNOTValid.Link( OEndOfSwitchEvenEven , ISwitchsCompareEven )
+    
+    LSwitchsCompareaEndOfLoopIndex = GraphLoopSwitchsNOTValid.Link( OSwitchsComparea , IEndOfLoopIndex )
+    
+    # Input datas
+    ILoopIndex.Input( 0 )
+    ILoopMin.Input( 0 )
+    ILoopMax.Input( 100 )
+    
+    # Input Ports of the graph
+    #IEndOfSwitchEvenEven = EndOfSwitchEven.GetInPort( 'Even' )
+    
+    # Output Ports of the graph
+    #OSwitchOddEven = SwitchOdd.GetOutPort( 'Even' )
+    #OEndOfLoopIndex = EndOfLoop.GetOutPort( 'Index' )
+    #OEndOfLoopMin = EndOfLoop.GetOutPort( 'Min' )
+    #OEndOfLoopMax = EndOfLoop.GetOutPort( 'Max' )
+    return GraphLoopSwitchsNOTValid
+
+
+GraphLoopSwitchsNOTValid = DefGraphLoopSwitchsNOTValid()
diff --git a/examples/GraphLoopSwitchsNOTValid.xml b/examples/GraphLoopSwitchsNOTValid.xml
new file mode 100644 (file)
index 0000000..5ba6267
--- /dev/null
@@ -0,0 +1,559 @@
+<!DOCTYPE SuperGraph>
+<supergraph>
+<dataflow>
+<info-list>
+<node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>GraphLoopSwitchsNOTValid</node-name>
+    <kind>1</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>GraphLoopSwitchsNOTValid</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Loop__Index</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Loop__Min</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Loop__Max</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>boolean</inParameter-type>
+       <inParameter-name>EndOfSwitchEven__Even</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>int</outParameter-type>
+       <outParameter-name>SwitchOdd__Even</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>EndOfLoop__Index</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>EndOfLoop__Min</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>EndOfLoop__Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>14/10/2003 - 10:29:4</creation-date>
+    <lastmodification-date>8/2/2005 - 11:26:57</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>JR</author>
+    <container>?</container>
+    <comment>?</comment>
+    <x-position>0</x-position>
+    <y-position>0</y-position>   </node>  </info-list>
+  <node-list>
+<node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>IsOdd</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>IsOdd</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>IsOdd</FuncName>
+      <PyFunc><![CDATA[from time import *    ]]></PyFunc>
+      <PyFunc><![CDATA[def IsOdd(a) :        ]]></PyFunc>
+      <PyFunc><![CDATA[    print a,"IsOdd"       ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep( 1 )    ]]></PyFunc>
+      <PyFunc><![CDATA[    return a      ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>8/2/2005 - 11:26:56</creation-date>
+    <lastmodification-date>8/2/2005 - 11:26:56</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Python function</comment>
+    <x-position>476</x-position>
+    <y-position>50</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>SwitchOdd</node-name>
+    <kind>6</kind>
+    <coupled-node>EndOfSwitchOdd</coupled-node>
+    <service>
+<service-name>SwitchOdd</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>int</outParameter-type>
+       <outParameter-name>Even</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>int</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>Switch</FuncName>
+      <PyFunc><![CDATA[from time import * ]]></PyFunc>
+      <PyFunc><![CDATA[def Switch(a) :   ]]></PyFunc>
+      <PyFunc><![CDATA[    if ( a & 1 ) == 0 : ]]></PyFunc>
+      <PyFunc><![CDATA[        sleep(1)    ]]></PyFunc>
+      <PyFunc><![CDATA[    return a & 1,1-(a&1),a    ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>8/2/2005 - 11:26:56</creation-date>
+    <lastmodification-date>8/2/2005 - 11:26:56</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>240</x-position>
+    <y-position>141</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>EndOfSwitchOdd</node-name>
+    <kind>7</kind>
+    <coupled-node>SwitchOdd</coupled-node>
+    <service>
+<service-name>EndOfSwitchOdd</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>boolean</inParameter-type>
+       <inParameter-name>Odd</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>boolean</outParameter-type>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>?</FuncName>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>8/2/2005 - 11:26:56</creation-date>
+    <lastmodification-date>8/2/2005 - 11:26:56</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>711</x-position>
+    <y-position>161</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>IsEven</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>IsEven</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>IsEven</FuncName>
+      <PyFunc><![CDATA[from time import *    ]]></PyFunc>
+      <PyFunc><![CDATA[def IsEven(a) :        ]]></PyFunc>
+      <PyFunc><![CDATA[    print a,"IsEven"       ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep( 1 )    ]]></PyFunc>
+      <PyFunc><![CDATA[    return a      ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>8/2/2005 - 11:26:56</creation-date>
+    <lastmodification-date>8/2/2005 - 11:26:56</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Python function</comment>
+    <x-position>479</x-position>
+    <y-position>311</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>Loop</node-name>
+    <kind>4</kind>
+    <coupled-node>EndOfLoop</coupled-node>
+    <service>
+<service-name>Loop</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Index</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Min</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Index</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Min</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>InitLoop</FuncName>
+      <PyFunc><![CDATA[def InitLoop(Index,Min,Max) :      ]]></PyFunc>
+      <PyFunc><![CDATA[        return Index,Min,Max     ]]></PyFunc>     </PyFunction>
+     <PyFunction>
+<FuncName>MoreLoop</FuncName>
+      <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) :     ]]></PyFunc>
+      <PyFunc><![CDATA[        if Index <= Max :   ]]></PyFunc>
+      <PyFunc><![CDATA[                DoLoop = 1     ]]></PyFunc>
+      <PyFunc><![CDATA[        else :     ]]></PyFunc>
+      <PyFunc><![CDATA[                DoLoop = 0     ]]></PyFunc>
+      <PyFunc><![CDATA[        return DoLoop,Index,Min,Max     ]]></PyFunc>     </PyFunction>
+     <PyFunction>
+<FuncName>NextLoop</FuncName>
+      <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>8/2/2005 - 11:26:56</creation-date>
+    <lastmodification-date>8/2/2005 - 11:26:56</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>12</x-position>
+    <y-position>276</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>EndOfLoop</node-name>
+    <kind>5</kind>
+    <coupled-node>Loop</coupled-node>
+    <service>
+<service-name>EndOfLoop</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Index</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Min</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Index</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Min</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>?</FuncName>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>8/2/2005 - 11:26:56</creation-date>
+    <lastmodification-date>8/2/2005 - 11:26:56</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>1102</x-position>
+    <y-position>282</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>SwitchEven</node-name>
+    <kind>6</kind>
+    <coupled-node>EndOfSwitchEven</coupled-node>
+    <service>
+<service-name>SwitchEven</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>int</outParameter-type>
+       <outParameter-name>Even</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>int</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>Switch</FuncName>
+      <PyFunc><![CDATA[from time import *  ]]></PyFunc>
+      <PyFunc><![CDATA[def Switch(a) :    ]]></PyFunc>
+      <PyFunc><![CDATA[    if ( a & 1 ) == 0 :  ]]></PyFunc>
+      <PyFunc><![CDATA[        sleep(1)  ]]></PyFunc>
+      <PyFunc><![CDATA[    return a & 1,1-(a&1),a    ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>8/2/2005 - 11:26:56</creation-date>
+    <lastmodification-date>8/2/2005 - 11:26:56</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>235</x-position>
+    <y-position>386</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>EndOfSwitchEven</node-name>
+    <kind>7</kind>
+    <coupled-node>SwitchEven</coupled-node>
+    <service>
+<service-name>EndOfSwitchEven</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>a</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>boolean</inParameter-type>
+       <inParameter-name>Even</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>boolean</outParameter-type>
+       <outParameter-name>Even</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>?</FuncName>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>8/2/2005 - 11:26:56</creation-date>
+    <lastmodification-date>8/2/2005 - 11:26:56</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>718</x-position>
+    <y-position>361</y-position>   </node>
+   <node>
+<component-name>?</component-name>
+    <interface-name>?</interface-name>
+    <node-name>SwitchsCompare</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>SwitchsCompare</service-name>
+     <inParameter-list>
+<inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>aOdd</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>boolean</inParameter-type>
+       <inParameter-name>Odd</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>long</inParameter-type>
+       <inParameter-name>aEven</inParameter-name>      </inParameter>
+      <inParameter>
+<inParameter-type>boolean</inParameter-type>
+       <inParameter-name>Even</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
+<outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>SwitchsCompare</FuncName>
+      <PyFunc><![CDATA[def SwitchsCompare(aOdd,Odd,aEven,Even) : ]]></PyFunc>
+      <PyFunc><![CDATA[    return a ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>8/2/2005 - 11:26:56</creation-date>
+    <lastmodification-date>8/2/2005 - 11:26:56</lastmodification-date>
+    <editor-release>2.0</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>919</x-position>
+    <y-position>242</y-position>   </node>  </node-list>
+  <link-list>
+<link>
+<fromnode-name>IsOdd</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchOdd</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>IsOdd</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchOdd</tonode-name>
+    <toserviceparameter-name>Odd</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>IsOdd</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list>
+<coord>
+<x>443</x>
+      <y>121</y>     </coord>
+     <coord>
+<x>443</x>
+      <y>212</y>     </coord>    </coord-list>   </link>
+   <link>
+<fromnode-name>SwitchOdd</fromnode-name>
+    <fromserviceparameter-name>Default</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchOdd</tonode-name>
+    <toserviceparameter-name>Default</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndOfSwitchOdd</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>SwitchsCompare</tonode-name>
+    <toserviceparameter-name>aOdd</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndOfSwitchOdd</fromnode-name>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>SwitchsCompare</tonode-name>
+    <toserviceparameter-name>Odd</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>IsEven</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchEven</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Loop</fromnode-name>
+    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+    <tonode-name>EndOfLoop</tonode-name>
+    <toserviceparameter-name>DoLoop</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Loop</fromnode-name>
+    <fromserviceparameter-name>Index</fromserviceparameter-name>
+    <tonode-name>SwitchEven</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Loop</fromnode-name>
+    <fromserviceparameter-name>Index</fromserviceparameter-name>
+    <tonode-name>SwitchOdd</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Loop</fromnode-name>
+    <fromserviceparameter-name>Min</fromserviceparameter-name>
+    <tonode-name>EndOfLoop</tonode-name>
+    <toserviceparameter-name>Min</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>Loop</fromnode-name>
+    <fromserviceparameter-name>Max</fromserviceparameter-name>
+    <tonode-name>EndOfLoop</tonode-name>
+    <toserviceparameter-name>Max</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndOfLoop</fromnode-name>
+    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+    <tonode-name>Loop</tonode-name>
+    <toserviceparameter-name>DoLoop</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchEven</fromnode-name>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>IsEven</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchEven</fromnode-name>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>EndOfSwitchEven</tonode-name>
+    <toserviceparameter-name>Default</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchEven</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>IsEven</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list>
+<coord>
+<x>434</x>
+      <y>382</y>     </coord>
+     <coord>
+<x>434</x>
+      <y>457</y>     </coord>    </coord-list>   </link>
+   <link>
+<fromnode-name>EndOfSwitchEven</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>SwitchsCompare</tonode-name>
+    <toserviceparameter-name>aEven</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>EndOfSwitchEven</fromnode-name>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>SwitchsCompare</tonode-name>
+    <toserviceparameter-name>Even</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
+<fromnode-name>SwitchsCompare</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfLoop</tonode-name>
+    <toserviceparameter-name>Index</toserviceparameter-name>
+    <coord-list/>   </link>  </link-list>
+  <data-list>
+<data>
+<fromnode-name>GraphLoopSwitchsNOTValid</fromnode-name>
+    <fromserviceparameter-name>Loop__Index</fromserviceparameter-name>
+    <tonode-name>Loop</tonode-name>
+    <toserviceparameter-name>Index</toserviceparameter-name>
+    <data-value>
+<value-type>3</value-type>
+     <value>0</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
+<fromnode-name>GraphLoopSwitchsNOTValid</fromnode-name>
+    <fromserviceparameter-name>Loop__Min</fromserviceparameter-name>
+    <tonode-name>Loop</tonode-name>
+    <toserviceparameter-name>Min</toserviceparameter-name>
+    <data-value>
+<value-type>3</value-type>
+     <value>0</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
+<fromnode-name>GraphLoopSwitchsNOTValid</fromnode-name>
+    <fromserviceparameter-name>Loop__Max</fromserviceparameter-name>
+    <tonode-name>Loop</tonode-name>
+    <toserviceparameter-name>Max</toserviceparameter-name>
+    <data-value>
+<value-type>3</value-type>
+     <value>100</value>    </data-value>
+    <coord-list/>   </data>  </data-list> </dataflow></supergraph>
index 8515637053211fce41693476fe3758a589bd4554..8a2a1eab30b2d868c2d97119b6c05e9a7aeddb36 100644 (file)
 # Generated python file of Graph GraphSwitch
 
 from SuperV import *
-# Graph creation 
-GraphSwitch = Graph( 'GraphSwitch' )
-GraphSwitch.SetName( 'GraphSwitch' )
-GraphSwitch.SetAuthor( '' )
-GraphSwitch.SetComment( '' )
-GraphSwitch.Coords( 0 , 0 )
 
-# Creation of Factory Nodes
-
-# Creation of InLine Nodes
-PyIsOdd = []
-PyIsOdd.append( 'from time import *   ' )
-PyIsOdd.append( 'def IsOdd(a) :       ' )
-PyIsOdd.append( '    print a,"IsOdd (GraphSwitch)"      ' )
-PyIsOdd.append( '    sleep( 1 )   ' )
-PyIsOdd.append( '    return a     ' )
-IsOdd = GraphSwitch.INode( 'IsOdd' , PyIsOdd )
-IsOdd.SetName( 'IsOdd' )
-IsOdd.SetAuthor( '' )
-IsOdd.SetComment( 'Python function' )
-IsOdd.Coords( 388 , 50 )
-IsOdd.InPort( 'a' , 'long' )
-IsOdd.OutPort( 'a' , 'long' )
-
-# Creation of Loop Nodes
-PyInitLoopSwitch = []
-PyInitLoopSwitch.append( 'def InitLoop(Index,Min,Max) :      ' )
-PyInitLoopSwitch.append( '     return Index,Min,Max     ' )
-PyMoreInitLoopSwitch = []
-PyMoreInitLoopSwitch.append( 'def MoreLoop(Index,Min,Max) :     ' )
-PyMoreInitLoopSwitch.append( ' if Index <= Max :   ' )
-PyMoreInitLoopSwitch.append( '         DoLoop = 1     ' )
-PyMoreInitLoopSwitch.append( ' else :     ' )
-PyMoreInitLoopSwitch.append( '         DoLoop = 0     ' )
-PyMoreInitLoopSwitch.append( ' return DoLoop,Index,Min,Max     ' )
-PyNextInitLoopSwitch = []
-PyNextInitLoopSwitch.append( 'def NextLoop(Index,Min,Max) :     ' )
-PyNextInitLoopSwitch.append( ' Index = Index + 1     ' )
-PyNextInitLoopSwitch.append( ' return Index,Min,Max     ' )
-InitLoopSwitch,EndOfInitLoopSwitch = GraphSwitch.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch )
-EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' )
-EndOfInitLoopSwitch.SetAuthor( '' )
-EndOfInitLoopSwitch.SetComment( '' )
-EndOfInitLoopSwitch.Coords( 766 , 127 )
-InitLoopSwitch.SetName( 'InitLoopSwitch' )
-InitLoopSwitch.SetAuthor( '' )
-InitLoopSwitch.SetComment( '' )
-InitLoopSwitch.Coords( 10 , 129 )
-InitLoopSwitch.InPort( 'Index' , 'long' )
-InitLoopSwitch.InPort( 'Min' , 'long' )
-InitLoopSwitch.InPort( 'Max' , 'long' )
-InitLoopSwitch.OutPort( 'Index' , 'long' )
-InitLoopSwitch.OutPort( 'Min' , 'long' )
-InitLoopSwitch.OutPort( 'Max' , 'long' )
-
-# Creation of Switch Nodes
-PySwitch = []
-PySwitch.append( 'from time import * ' )
-PySwitch.append( 'def Switch(a) :   ' )
-PySwitch.append( '    if ( a & 1 ) == 0 : ' )
-PySwitch.append( '        sleep(1)    ' )
-PySwitch.append( '    return a & 1,1-(a&1),a    ' )
-Switch,EndOfSwitch = GraphSwitch.SNode( 'Switch' , PySwitch )
-EndOfSwitch.SetName( 'EndOfSwitch' )
-EndOfSwitch.SetAuthor( '' )
-EndOfSwitch.SetComment( '' )
-EndOfSwitch.Coords( 587 , 126 )
-PyEndOfSwitch = []
-EndOfSwitch.SetPyFunction( 'EndSwitch' , PyEndOfSwitch )
-EndOfSwitch.InPort( 'a' , 'long' )
-EndOfSwitch.OutPort( 'a' , 'long' )
-Switch.SetName( 'Switch' )
-Switch.SetAuthor( '' )
-Switch.SetComment( '' )
-Switch.Coords( 186 , 130 )
-Switch.InPort( 'a' , 'long' )
-Switch.OutPort( 'Odd' , 'long' )
-Switch.OutPort( 'Even' , 'int' )
-Switch.OutPort( 'a' , 'int' )
-
-# Creation of Links
-IsOdda = IsOdd.Port( 'a' )
-EndOfSwitcha = GraphSwitch.Link( IsOdda , EndOfSwitch.Port( 'a' ) )
-EndOfSwitcha.AddCoord( 1 , 571 , 161 )
-EndOfSwitcha.AddCoord( 2 , 571 , 131 )
-
-InitLoopSwitchIndex = InitLoopSwitch.Port( 'Index' )
-Switcha = GraphSwitch.Link( InitLoopSwitchIndex , Switch.Port( 'a' ) )
-
-InitLoopSwitchMin = InitLoopSwitch.Port( 'Min' )
-EndOfInitLoopSwitchMin = GraphSwitch.Link( InitLoopSwitchMin , EndOfInitLoopSwitch.Port( 'Min' ) )
-
-InitLoopSwitchMax = InitLoopSwitch.Port( 'Max' )
-EndOfInitLoopSwitchMax = GraphSwitch.Link( InitLoopSwitchMax , EndOfInitLoopSwitch.Port( 'Max' ) )
-
-SwitchOdd = Switch.Port( 'Odd' )
-IsOddInGate = GraphSwitch.Link( SwitchOdd , IsOdd.Port( 'InGate' ) )
-
-Switcha = Switch.Port( 'a' )
-IsOdda = GraphSwitch.Link( Switcha , IsOdd.Port( 'a' ) )
-IsOdda.AddCoord( 1 , 372 , 129 )
-IsOdda.AddCoord( 2 , 371 , 223 )
-
-SwitchDefault = Switch.Port( 'Default' )
-EndOfSwitchDefault = GraphSwitch.Link( SwitchDefault , EndOfSwitch.Port( 'Default' ) )
-EndOfSwitchDefault.AddCoord( 1 , 572 , 194 )
-EndOfSwitchDefault.AddCoord( 2 , 571 , 257 )
-
-EndOfSwitcha = EndOfSwitch.Port( 'a' )
-EndOfInitLoopSwitchIndex = GraphSwitch.Link( EndOfSwitcha , EndOfInitLoopSwitch.Port( 'Index' ) )
-
-# Creation of Input datas
-InitLoopSwitchIndex = InitLoopSwitch.Input( 'Index' , 0)
-InitLoopSwitchMin = InitLoopSwitch.Input( 'Min' , 0)
-InitLoopSwitchMax = InitLoopSwitch.Input( 'Max' , 100)
-
-# Creation of Output variables
-EndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.Port( 'Index' )
-EndOfInitLoopSwitchMin = EndOfInitLoopSwitch.Port( 'Min' )
-EndOfInitLoopSwitchMax = EndOfInitLoopSwitch.Port( 'Max' )
-SwitchEven = Switch.Port( 'Even' )
-
-GraphSwitch.Run()
-GraphSwitch.DoneW()
-print GraphSwitch.State()
-GraphSwitch.PrintPorts()
+# Graph creation of GraphSwitch
+def DefGraphSwitch() :
+    GraphSwitch = Graph( 'GraphSwitch' )
+    GraphSwitch.SetName( 'GraphSwitch' )
+    GraphSwitch.SetAuthor( '' )
+    GraphSwitch.SetComment( '' )
+    GraphSwitch.Coords( 0 , 0 )
+    
+    # Creation of Factory Nodes
+    
+    # Creation of InLine Nodes
+    PyIsOdd = []
+    PyIsOdd.append( 'from time import *   ' )
+    PyIsOdd.append( 'def IsOdd(a) :       ' )
+    PyIsOdd.append( '    print a,"IsOdd (GraphSwitch)"      ' )
+    PyIsOdd.append( '    sleep( 1 )   ' )
+    PyIsOdd.append( '    return a     ' )
+    IsOdd = GraphSwitch.INode( 'IsOdd' , PyIsOdd )
+    IsOdd.SetName( 'IsOdd' )
+    IsOdd.SetAuthor( '' )
+    IsOdd.SetComment( 'Python function' )
+    IsOdd.Coords( 389 , 65 )
+    IIsOdda = IsOdd.InPort( 'a' , 'long' )
+    IIsOddGate = IsOdd.GetInPort( 'Gate' )
+    OIsOdda = IsOdd.OutPort( 'a' , 'long' )
+    OIsOddGate = IsOdd.GetOutPort( 'Gate' )
+    
+    # Creation of Loop Nodes
+    PyInitLoopSwitch = []
+    PyInitLoopSwitch.append( 'def InitLoop(Index,Min,Max) :      ' )
+    PyInitLoopSwitch.append( ' return Index,Min,Max     ' )
+    PyMoreInitLoopSwitch = []
+    PyMoreInitLoopSwitch.append( 'def MoreLoop(Index,Min,Max) :     ' )
+    PyMoreInitLoopSwitch.append( '     if Index <= Max :   ' )
+    PyMoreInitLoopSwitch.append( '             DoLoop = 1     ' )
+    PyMoreInitLoopSwitch.append( '     else :     ' )
+    PyMoreInitLoopSwitch.append( '             DoLoop = 0     ' )
+    PyMoreInitLoopSwitch.append( '     return DoLoop,Index,Min,Max     ' )
+    PyNextInitLoopSwitch = []
+    PyNextInitLoopSwitch.append( 'def NextLoop(Index,Min,Max) :     ' )
+    PyNextInitLoopSwitch.append( '     Index = Index + 1     ' )
+    PyNextInitLoopSwitch.append( '     return Index,Min,Max     ' )
+    InitLoopSwitch,EndOfInitLoopSwitch = GraphSwitch.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch )
+    EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' )
+    EndOfInitLoopSwitch.SetAuthor( '' )
+    EndOfInitLoopSwitch.SetComment( 'Compute Node' )
+    EndOfInitLoopSwitch.Coords( 776 , 170 )
+    PyEndOfInitLoopSwitch = []
+    EndOfInitLoopSwitch.SetPyFunction( '' , PyEndOfInitLoopSwitch )
+    IInitLoopSwitchDoLoop = InitLoopSwitch.GetInPort( 'DoLoop' )
+    IInitLoopSwitchIndex = InitLoopSwitch.InPort( 'Index' , 'long' )
+    IInitLoopSwitchMin = InitLoopSwitch.InPort( 'Min' , 'long' )
+    IInitLoopSwitchMax = InitLoopSwitch.InPort( 'Max' , 'long' )
+    IInitLoopSwitchGate = InitLoopSwitch.GetInPort( 'Gate' )
+    OInitLoopSwitchDoLoop = InitLoopSwitch.GetOutPort( 'DoLoop' )
+    OInitLoopSwitchIndex = InitLoopSwitch.GetOutPort( 'Index' )
+    OInitLoopSwitchMin = InitLoopSwitch.GetOutPort( 'Min' )
+    OInitLoopSwitchMax = InitLoopSwitch.GetOutPort( 'Max' )
+    IEndOfInitLoopSwitchDoLoop = EndOfInitLoopSwitch.GetInPort( 'DoLoop' )
+    IEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetInPort( 'Index' )
+    IEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetInPort( 'Min' )
+    IEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetInPort( 'Max' )
+    IEndOfInitLoopSwitchGate = EndOfInitLoopSwitch.GetInPort( 'Gate' )
+    OEndOfInitLoopSwitchDoLoop = EndOfInitLoopSwitch.GetOutPort( 'DoLoop' )
+    OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' )
+    OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' )
+    OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' )
+    OEndOfInitLoopSwitchGate = EndOfInitLoopSwitch.GetOutPort( 'Gate' )
+    InitLoopSwitch.SetName( 'InitLoopSwitch' )
+    InitLoopSwitch.SetAuthor( '' )
+    InitLoopSwitch.SetComment( 'Compute Node' )
+    InitLoopSwitch.Coords( 10 , 129 )
+    
+    # Creation of Switch Nodes
+    PySwitch = []
+    PySwitch.append( 'from time import * ' )
+    PySwitch.append( 'def Switch(a) :   ' )
+    PySwitch.append( '    if ( a & 1 ) == 0 : ' )
+    PySwitch.append( '        sleep(1)    ' )
+    PySwitch.append( '    return a & 1,1-(a&1),a    ' )
+    Switch,EndOfSwitch = GraphSwitch.SNode( 'Switch' , PySwitch )
+    EndOfSwitch.SetName( 'EndOfSwitch' )
+    EndOfSwitch.SetAuthor( '' )
+    EndOfSwitch.SetComment( 'Compute Node' )
+    EndOfSwitch.Coords( 582 , 170 )
+    PyEndOfSwitch = []
+    EndOfSwitch.SetPyFunction( '' , PyEndOfSwitch )
+    IEndOfSwitcha = EndOfSwitch.InPort( 'a' , 'long' )
+    IEndOfSwitchDefault = EndOfSwitch.GetInPort( 'Default' )
+    OEndOfSwitcha = EndOfSwitch.OutPort( 'a' , 'long' )
+    OEndOfSwitchGate = EndOfSwitch.GetOutPort( 'Gate' )
+    Switch.SetName( 'Switch' )
+    Switch.SetAuthor( '' )
+    Switch.SetComment( 'Compute Node' )
+    Switch.Coords( 194 , 129 )
+    ISwitcha = Switch.InPort( 'a' , 'long' )
+    ISwitchGate = Switch.GetInPort( 'Gate' )
+    OSwitchOdd = Switch.OutPort( 'Odd' , 'long' )
+    OSwitchEven = Switch.OutPort( 'Even' , 'int' )
+    OSwitcha = Switch.OutPort( 'a' , 'int' )
+    OSwitchDefault = Switch.GetOutPort( 'Default' )
+    
+    # Creation of Links
+    LIsOddaEndOfSwitcha = GraphSwitch.Link( OIsOdda , IEndOfSwitcha )
+    LIsOddaEndOfSwitcha.AddCoord( 1 , 564 , 201 )
+    LIsOddaEndOfSwitcha.AddCoord( 2 , 564 , 137 )
+    
+    LInitLoopSwitchIndexSwitcha = GraphSwitch.Link( OInitLoopSwitchIndex , ISwitcha )
+    
+    LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitch.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin )
+    
+    LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitch.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax )
+    
+    LSwitchOddIsOddGate = GraphSwitch.Link( OSwitchOdd , IIsOddGate )
+    
+    LSwitchaIsOdda = GraphSwitch.Link( OSwitcha , IIsOdda )
+    LSwitchaIsOdda.AddCoord( 1 , 371 , 136 )
+    LSwitchaIsOdda.AddCoord( 2 , 371 , 200 )
+    
+    LSwitchDefaultEndOfSwitchDefault = GraphSwitch.Link( OSwitchDefault , IEndOfSwitchDefault )
+    
+    LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitch.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex )
+    
+    # Input datas
+    IInitLoopSwitchIndex.Input( 0 )
+    IInitLoopSwitchMin.Input( 3 )
+    IInitLoopSwitchMax.Input( 23 )
+    
+    # Output Ports of the graph
+    #OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' )
+    #OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' )
+    #OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' )
+    #OSwitchEven = Switch.GetOutPort( 'Even' )
+    return GraphSwitch
+
+
+GraphSwitch = DefGraphSwitch()
index f25242c0ae40c89c71134e2ffa8739b189e7acde..72b79e6ec44929816437dab76869065a312b98de 100644 (file)
-<!DOCTYPE Dataflow>
+<!DOCTYPE SuperGraph>
+<supergraph>
 <dataflow>
 <info-list>
 <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>GraphSwitch</node-name>
-   <kind>1</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>GraphSwitch</node-name>
+    <kind>1</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>GraphSwitch</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>InitLoopSwitch\Index</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>InitLoopSwitch__Index</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>InitLoopSwitch\Min</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>InitLoopSwitch__Min</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>InitLoopSwitch\Max</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>InitLoopSwitch__Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>EndOfInitLoopSwitch\Index</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>EndOfInitLoopSwitch__Index</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>EndOfInitLoopSwitch\Min</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>EndOfInitLoopSwitch__Min</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>EndOfInitLoopSwitch\Max</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>EndOfInitLoopSwitch__Max</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>int</outParameter-type>
-      <outParameter-name>Switch\Even</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list/>
-   <creation-date>1/10/2003 - 17:23:54</creation-date>
-   <lastmodification-date>13/10/2003 - 10:53:44</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>0</x-position>
-   <y-position>0</y-position>  </node> </info-list>
- <node-list>
+       <outParameter-name>Switch__Even</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>1/10/2003 - 17:23:54</creation-date>
+    <lastmodification-date>9/2/2005 - 15:24:45</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>?</comment>
+    <x-position>0</x-position>
+    <y-position>0</y-position>   </node>  </info-list>
 <node-list>
 <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>IsOdd</node-name>
-   <kind>3</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>IsOdd</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>IsOdd</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>a</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>a</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>IsOdd</FuncName>
-     <PyFunc><![CDATA[from time import *   ]]></PyFunc>
-     <PyFunc><![CDATA[def IsOdd(a) :       ]]></PyFunc>
-     <PyFunc><![CDATA[    print a,"IsOdd (GraphSwitch)"      ]]></PyFunc>
-     <PyFunc><![CDATA[    sleep( 1 )   ]]></PyFunc>
-     <PyFunc><![CDATA[    return a     ]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>13/10/2003 - 10:53:44</creation-date>
-   <lastmodification-date>13/10/2003 - 10:53:44</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>Python function</comment>
-   <x-position>388</x-position>
-   <y-position>50</y-position>  </node>
-  <node>
+      <PyFunc><![CDATA[from time import *   ]]></PyFunc>
+      <PyFunc><![CDATA[def IsOdd(a) :       ]]></PyFunc>
+      <PyFunc><![CDATA[    print a,"IsOdd (GraphSwitch)"      ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep( 1 )   ]]></PyFunc>
+      <PyFunc><![CDATA[    return a     ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>9/2/2005 - 15:24:45</creation-date>
+    <lastmodification-date>9/2/2005 - 15:24:45</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Python function</comment>
+    <x-position>389</x-position>
+    <y-position>65</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>InitLoopSwitch</node-name>
-   <kind>4</kind>
-   <coupled-node>EndOfInitLoopSwitch</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>InitLoopSwitch</node-name>
+    <kind>4</kind>
+    <coupled-node>EndOfInitLoopSwitch</coupled-node>
+    <service>
 <service-name>InitLoopSwitch</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>Index</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>Index</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>Min</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>Min</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>Max</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Index</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Index</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Min</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Min</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Max</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
+       <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>InitLoop</FuncName>
-     <PyFunc><![CDATA[def InitLoop(Index,Min,Max) :      ]]></PyFunc>
-     <PyFunc><![CDATA[ return Index,Min,Max     ]]></PyFunc>    </PyFunction>
-    <PyFunction>
+      <PyFunc><![CDATA[def InitLoop(Index,Min,Max) :      ]]></PyFunc>
+      <PyFunc><![CDATA[        return Index,Min,Max     ]]></PyFunc>     </PyFunction>
+     <PyFunction>
 <FuncName>MoreLoop</FuncName>
-     <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) :     ]]></PyFunc>
-     <PyFunc><![CDATA[ if Index <= Max :   ]]></PyFunc>
-     <PyFunc><![CDATA[         DoLoop = 1     ]]></PyFunc>
-     <PyFunc><![CDATA[ else :     ]]></PyFunc>
-     <PyFunc><![CDATA[         DoLoop = 0     ]]></PyFunc>
-     <PyFunc><![CDATA[ return DoLoop,Index,Min,Max     ]]></PyFunc>    </PyFunction>
-    <PyFunction>
+      <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) :     ]]></PyFunc>
+      <PyFunc><![CDATA[        if Index <= Max :   ]]></PyFunc>
+      <PyFunc><![CDATA[                DoLoop = 1     ]]></PyFunc>
+      <PyFunc><![CDATA[        else :     ]]></PyFunc>
+      <PyFunc><![CDATA[                DoLoop = 0     ]]></PyFunc>
+      <PyFunc><![CDATA[        return DoLoop,Index,Min,Max     ]]></PyFunc>     </PyFunction>
+     <PyFunction>
 <FuncName>NextLoop</FuncName>
-     <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/10/2003 - 10:53:44</creation-date>
-   <lastmodification-date>13/10/2003 - 10:53:44</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>10</x-position>
-   <y-position>129</y-position>  </node>
-  <node>
+      <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>9/2/2005 - 15:24:45</creation-date>
+    <lastmodification-date>9/2/2005 - 15:24:45</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>10</x-position>
+    <y-position>129</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>EndOfInitLoopSwitch</node-name>
-   <kind>5</kind>
-   <coupled-node>InitLoopSwitch</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>EndOfInitLoopSwitch</node-name>
+    <kind>5</kind>
+    <coupled-node>InitLoopSwitch</coupled-node>
+    <service>
 <service-name>EndOfInitLoopSwitch</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>Index</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>Index</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>Min</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>Min</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>Max</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Index</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Index</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Min</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Min</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Max</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
-<PyFunction/>   </PyFunction-list>
-   <creation-date>13/10/2003 - 10:53:44</creation-date>
-   <lastmodification-date>13/10/2003 - 10:53:44</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>766</x-position>
-   <y-position>127</y-position>  </node>
-  <node>
+       <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>?</FuncName>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>9/2/2005 - 15:24:45</creation-date>
+    <lastmodification-date>9/2/2005 - 15:24:45</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>776</x-position>
+    <y-position>170</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>Switch</node-name>
-   <kind>6</kind>
-   <coupled-node>EndOfSwitch</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>Switch</node-name>
+    <kind>6</kind>
+    <coupled-node>EndOfSwitch</coupled-node>
+    <service>
 <service-name>Switch</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>a</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Odd</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>int</outParameter-type>
-      <outParameter-name>Even</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Even</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>int</outParameter-type>
-      <outParameter-name>a</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>Switch</FuncName>
-     <PyFunc><![CDATA[from time import * ]]></PyFunc>
-     <PyFunc><![CDATA[def Switch(a) :   ]]></PyFunc>
-     <PyFunc><![CDATA[    if ( a & 1 ) == 0 : ]]></PyFunc>
-     <PyFunc><![CDATA[        sleep(1)    ]]></PyFunc>
-     <PyFunc><![CDATA[    return a & 1,1-(a&1),a    ]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>13/10/2003 - 10:53:44</creation-date>
-   <lastmodification-date>13/10/2003 - 10:53:44</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>186</x-position>
-   <y-position>130</y-position>  </node>
-  <node>
+      <PyFunc><![CDATA[from time import * ]]></PyFunc>
+      <PyFunc><![CDATA[def Switch(a) :   ]]></PyFunc>
+      <PyFunc><![CDATA[    if ( a & 1 ) == 0 : ]]></PyFunc>
+      <PyFunc><![CDATA[        sleep(1)    ]]></PyFunc>
+      <PyFunc><![CDATA[    return a & 1,1-(a&1),a    ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>9/2/2005 - 15:24:45</creation-date>
+    <lastmodification-date>9/2/2005 - 15:24:45</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>194</x-position>
+    <y-position>129</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>EndOfSwitch</node-name>
-   <kind>7</kind>
-   <coupled-node>Switch</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>EndOfSwitch</node-name>
+    <kind>7</kind>
+    <coupled-node>Switch</coupled-node>
+    <service>
 <service-name>EndOfSwitch</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>a</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>a</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
-<PyFunction/>   </PyFunction-list>
-   <creation-date>13/10/2003 - 10:53:44</creation-date>
-   <lastmodification-date>13/10/2003 - 10:53:44</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>587</x-position>
-   <y-position>126</y-position>  </node> </node-list>
- <link-list>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>?</FuncName>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>9/2/2005 - 15:24:45</creation-date>
+    <lastmodification-date>9/2/2005 - 15:24:45</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>582</x-position>
+    <y-position>170</y-position>   </node>  </node-list>
+  <link-list>
 <link>
 <fromnode-name>IsOdd</fromnode-name>
-   <fromserviceparameter-name>a</fromserviceparameter-name>
-   <tonode-name>EndOfSwitch</tonode-name>
-   <toserviceparameter-name>a</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfSwitch</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>571</x>
-     <y>161</y>    </coord>
-    <coord>
-<x>571</x>
-     <y>131</y>    </coord>   </coord-list>  </link>
-  <link>
+<x>564</x>
+      <y>201</y>     </coord>
+     <coord>
+<x>564</x>
+      <y>137</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>InitLoopSwitch</fromnode-name>
-   <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
-   <tonode-name>EndOfInitLoopSwitch</tonode-name>
-   <toserviceparameter-name>DoLoop</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+    <tonode-name>EndOfInitLoopSwitch</tonode-name>
+    <toserviceparameter-name>DoLoop</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>InitLoopSwitch</fromnode-name>
-   <fromserviceparameter-name>Index</fromserviceparameter-name>
-   <tonode-name>Switch</tonode-name>
-   <toserviceparameter-name>a</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>Index</fromserviceparameter-name>
+    <tonode-name>Switch</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>InitLoopSwitch</fromnode-name>
-   <fromserviceparameter-name>Min</fromserviceparameter-name>
-   <tonode-name>EndOfInitLoopSwitch</tonode-name>
-   <toserviceparameter-name>Min</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>Min</fromserviceparameter-name>
+    <tonode-name>EndOfInitLoopSwitch</tonode-name>
+    <toserviceparameter-name>Min</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>InitLoopSwitch</fromnode-name>
-   <fromserviceparameter-name>Max</fromserviceparameter-name>
-   <tonode-name>EndOfInitLoopSwitch</tonode-name>
-   <toserviceparameter-name>Max</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>Max</fromserviceparameter-name>
+    <tonode-name>EndOfInitLoopSwitch</tonode-name>
+    <toserviceparameter-name>Max</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>EndOfInitLoopSwitch</fromnode-name>
-   <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
-   <tonode-name>InitLoopSwitch</tonode-name>
-   <toserviceparameter-name>DoLoop</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+    <tonode-name>InitLoopSwitch</tonode-name>
+    <toserviceparameter-name>DoLoop</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>Switch</fromnode-name>
-   <fromserviceparameter-name>Odd</fromserviceparameter-name>
-   <tonode-name>IsOdd</tonode-name>
-   <toserviceparameter-name>InGate</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>IsOdd</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>Switch</fromnode-name>
-   <fromserviceparameter-name>a</fromserviceparameter-name>
-   <tonode-name>IsOdd</tonode-name>
-   <toserviceparameter-name>a</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>IsOdd</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>372</x>
-     <y>129</y>    </coord>
-    <coord>
 <x>371</x>
-     <y>223</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>136</y>     </coord>
+     <coord>
+<x>371</x>
+      <y>200</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>Switch</fromnode-name>
-   <fromserviceparameter-name>Default</fromserviceparameter-name>
-   <tonode-name>EndOfSwitch</tonode-name>
-   <toserviceparameter-name>Default</toserviceparameter-name>
-   <coord-list>
-<coord>
-<x>572</x>
-     <y>194</y>    </coord>
-    <coord>
-<x>571</x>
-     <y>257</y>    </coord>   </coord-list>  </link>
-  <link>
+    <fromserviceparameter-name>Default</fromserviceparameter-name>
+    <tonode-name>EndOfSwitch</tonode-name>
+    <toserviceparameter-name>Default</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>EndOfSwitch</fromnode-name>
-   <fromserviceparameter-name>a</fromserviceparameter-name>
-   <tonode-name>EndOfInitLoopSwitch</tonode-name>
-   <toserviceparameter-name>Index</toserviceparameter-name>
-   <coord-list/>  </link> </link-list>
- <data-list>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfInitLoopSwitch</tonode-name>
+    <toserviceparameter-name>Index</toserviceparameter-name>
+    <coord-list/>   </link>  </link-list>
 <data-list>
 <data>
 <fromnode-name>GraphSwitch</fromnode-name>
-   <fromserviceparameter-name>InitLoopSwitch\Index</fromserviceparameter-name>
-   <tonode-name>InitLoopSwitch</tonode-name>
-   <toserviceparameter-name>Index</toserviceparameter-name>
-   <data-value>
+    <fromserviceparameter-name>InitLoopSwitch__Index</fromserviceparameter-name>
+    <tonode-name>InitLoopSwitch</tonode-name>
+    <toserviceparameter-name>Index</toserviceparameter-name>
+    <data-value>
 <value-type>3</value-type>
-    <value>0</value>   </data-value>
-   <coord-list/>  </data>
-  <data>
+     <value>0</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
 <fromnode-name>GraphSwitch</fromnode-name>
-   <fromserviceparameter-name>InitLoopSwitch\Min</fromserviceparameter-name>
-   <tonode-name>InitLoopSwitch</tonode-name>
-   <toserviceparameter-name>Min</toserviceparameter-name>
-   <data-value>
+    <fromserviceparameter-name>InitLoopSwitch__Min</fromserviceparameter-name>
+    <tonode-name>InitLoopSwitch</tonode-name>
+    <toserviceparameter-name>Min</toserviceparameter-name>
+    <data-value>
 <value-type>3</value-type>
-    <value>0</value>   </data-value>
-   <coord-list/>  </data>
-  <data>
+     <value>3</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
 <fromnode-name>GraphSwitch</fromnode-name>
-   <fromserviceparameter-name>InitLoopSwitch\Max</fromserviceparameter-name>
-   <tonode-name>InitLoopSwitch</tonode-name>
-   <toserviceparameter-name>Max</toserviceparameter-name>
-   <data-value>
+    <fromserviceparameter-name>InitLoopSwitch__Max</fromserviceparameter-name>
+    <tonode-name>InitLoopSwitch</tonode-name>
+    <toserviceparameter-name>Max</toserviceparameter-name>
+    <data-value>
 <value-type>3</value-type>
-    <value>100</value>   </data-value>
-   <coord-list/>  </data> </data-list></dataflow>
+     <value>23</value>    </data-value>
+    <coord-list/>   </data>  </data-list> </dataflow></supergraph>
index 3bdae8d84bf55820cc546051a794908b76ef7615..6f3df364cef8ea0e79223ce27ecd438921117dc5 100644 (file)
@@ -1,15 +1,15 @@
 
-# Generated python file of Graph GraphSwitch_1_1
+# Generated python file of Graph GraphSwitch2
 
 from SuperV import *
 
-# Graph creation of GraphSwitch_1_1
-def DefGraphSwitch_1_1() :
-    GraphSwitch_1_1 = Graph( 'GraphSwitch_1_1' )
-    GraphSwitch_1_1.SetName( 'GraphSwitch_1_1' )
-    GraphSwitch_1_1.SetAuthor( '' )
-    GraphSwitch_1_1.SetComment( '' )
-    GraphSwitch_1_1.Coords( 0 , 0 )
+# Graph creation of GraphSwitch2
+def DefGraphSwitch2() :
+    GraphSwitch2 = Graph( 'GraphSwitch2' )
+    GraphSwitch2.SetName( 'GraphSwitch2' )
+    GraphSwitch2.SetAuthor( 'JR' )
+    GraphSwitch2.SetComment( '' )
+    GraphSwitch2.Coords( 0 , 0 )
     
     # Creation of Factory Nodes
     
@@ -20,7 +20,7 @@ def DefGraphSwitch_1_1() :
     PyIsOdd.append( '    print a,"IsOdd (GraphSwitch)"      ' )
     PyIsOdd.append( '    sleep( 1 )   ' )
     PyIsOdd.append( '    return a     ' )
-    IsOdd = GraphSwitch_1_1.INode( 'IsOdd' , PyIsOdd )
+    IsOdd = GraphSwitch2.INode( 'IsOdd' , PyIsOdd )
     IsOdd.SetName( 'IsOdd' )
     IsOdd.SetAuthor( '' )
     IsOdd.SetComment( 'Python function' )
@@ -36,7 +36,7 @@ def DefGraphSwitch_1_1() :
     PyIsEven.append( '    print a,"IsEven (GraphSwitch)"       ' )
     PyIsEven.append( '    sleep( 1 )    ' )
     PyIsEven.append( '    return a      ' )
-    IsEven = GraphSwitch_1_1.INode( 'IsEven' , PyIsEven )
+    IsEven = GraphSwitch2.INode( 'IsEven' , PyIsEven )
     IsEven.SetName( 'IsEven' )
     IsEven.SetAuthor( '' )
     IsEven.SetComment( 'Compute Node' )
@@ -62,11 +62,11 @@ def DefGraphSwitch_1_1() :
     PyNextInitLoopSwitch.append( 'def NextLoop(Index,Min,Max) :      ' )
     PyNextInitLoopSwitch.append( '     Index = Index - 1      ' )
     PyNextInitLoopSwitch.append( '     return Index,Min,Max      ' )
-    InitLoopSwitch,EndOfInitLoopSwitch = GraphSwitch_1_1.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch )
+    InitLoopSwitch,EndOfInitLoopSwitch = GraphSwitch2.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch )
     EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' )
     EndOfInitLoopSwitch.SetAuthor( '' )
     EndOfInitLoopSwitch.SetComment( 'Compute Node' )
-    EndOfInitLoopSwitch.Coords( 766 , 127 )
+    EndOfInitLoopSwitch.Coords( 775 , 169 )
     PyEndOfInitLoopSwitch = []
     EndOfInitLoopSwitch.SetPyFunction( '' , PyEndOfInitLoopSwitch )
     IInitLoopSwitchDoLoop = InitLoopSwitch.GetInPort( 'DoLoop' )
@@ -95,18 +95,17 @@ def DefGraphSwitch_1_1() :
     
     # Creation of Switch Nodes
     PySwitch = []
-    PySwitch.append( 'from time import *    ' )
-    PySwitch.append( 'def Switch(a) :      ' )
-    PySwitch.append( '    if a <= 0 :   ' )
-    PySwitch.append( '        return 0,0,a   ' )
-    PySwitch.append( '    if ( a & 1 ) == 0 :    ' )
-    PySwitch.append( '        sleep(1)       ' )
-    PySwitch.append( '    return a & 1,1-(a&1),a       ' )
-    Switch,EndOfSwitch = GraphSwitch_1_1.SNode( 'Switch' , PySwitch )
+    PySwitch.append( 'from time import *     ' )
+    PySwitch.append( 'def Switch(a) : ' )
+    PySwitch.append( '    sleep(1) ' )
+    PySwitch.append( '    if a <= 0 :    ' )
+    PySwitch.append( '        return 0,0,a    ' )
+    PySwitch.append( '    return a & 1,1-(a&1),a        ' )
+    Switch,EndOfSwitch = GraphSwitch2.SNode( 'Switch' , PySwitch )
     EndOfSwitch.SetName( 'EndOfSwitch' )
     EndOfSwitch.SetAuthor( '' )
     EndOfSwitch.SetComment( 'Compute Node' )
-    EndOfSwitch.Coords( 580 , 147 )
+    EndOfSwitch.Coords( 583 , 169 )
     PyEndOfSwitch = []
     EndOfSwitch.SetPyFunction( 'EndSwitch_1' , PyEndOfSwitch )
     IEndOfSwitcha = EndOfSwitch.InPort( 'a' , 'long' )
@@ -125,38 +124,38 @@ def DefGraphSwitch_1_1() :
     OSwitchDefault = Switch.GetOutPort( 'Default' )
     
     # Creation of Links
-    LIsOddaEndOfSwitcha = GraphSwitch_1_1.Link( OIsOdda , IEndOfSwitcha )
+    LIsOddaEndOfSwitcha = GraphSwitch2.Link( OIsOdda , IEndOfSwitcha )
     
-    LInitLoopSwitchIndexSwitcha = GraphSwitch_1_1.Link( OInitLoopSwitchIndex , ISwitcha )
+    LInitLoopSwitchIndexSwitcha = GraphSwitch2.Link( OInitLoopSwitchIndex , ISwitcha )
     
-    LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitch_1_1.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin )
+    LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitch2.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin )
     
-    LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitch_1_1.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax )
+    LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitch2.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax )
     
-    LIsEvenaEndOfSwitcha = GraphSwitch_1_1.Link( OIsEvena , IEndOfSwitcha )
+    LIsEvenaEndOfSwitcha = GraphSwitch2.Link( OIsEvena , IEndOfSwitcha )
     
-    LSwitchOddIsOddGate = GraphSwitch_1_1.Link( OSwitchOdd , IIsOddGate )
+    LSwitchOddIsOddGate = GraphSwitch2.Link( OSwitchOdd , IIsOddGate )
     
-    LSwitchEvenIsEvenGate = GraphSwitch_1_1.Link( OSwitchEven , IIsEvenGate )
+    LSwitchEvenIsEvenGate = GraphSwitch2.Link( OSwitchEven , IIsEvenGate )
     
-    LSwitchaIsOdda = GraphSwitch_1_1.Link( OSwitcha , IIsOdda )
+    LSwitchaIsOdda = GraphSwitch2.Link( OSwitcha , IIsOdda )
     
-    LSwitchaIsEvena = GraphSwitch_1_1.Link( OSwitcha , IIsEvena )
+    LSwitchaIsEvena = GraphSwitch2.Link( OSwitcha , IIsEvena )
     
-    LSwitchDefaultEndOfSwitchDefault = GraphSwitch_1_1.Link( OSwitchDefault , IEndOfSwitchDefault )
+    LSwitchDefaultEndOfSwitchDefault = GraphSwitch2.Link( OSwitchDefault , IEndOfSwitchDefault )
     
-    LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitch_1_1.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex )
+    LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitch2.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex )
     
     # Input datas
     IInitLoopSwitchIndex.Input( 0 )
     IInitLoopSwitchMin.Input( -5 )
-    IInitLoopSwitchMax.Input( 10 )
+    IInitLoopSwitchMax.Input( 23 )
     
     # Output Ports of the graph
     #OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' )
     #OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' )
     #OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' )
-    return GraphSwitch_1_1
+    return GraphSwitch2
 
 
-GraphSwitch_1_1 = DefGraphSwitch_1_1()
+GraphSwitch2 = DefGraphSwitch2()
index 98d34c18a4dad1204b070718485cd26fe0510e0c..0181fdf98c77b65865ffbe86a27ae2c0019a9b51 100644 (file)
@@ -5,7 +5,7 @@
 <node>
 <component-name>?</component-name>
     <interface-name>?</interface-name>
-    <node-name>GraphSwitch_1_1</node-name>
+    <node-name>GraphSwitch2</node-name>
     <kind>1</kind>
     <coupled-node>?</coupled-node>
     <service>
@@ -33,9 +33,9 @@
     <DataStream-list/>
     <PyFunction-list/>
     <creation-date>1/10/2003 - 17:23:54</creation-date>
-    <lastmodification-date>12/1/2005 - 17:7:20</lastmodification-date>
+    <lastmodification-date>14/2/2005 - 17:25:12</lastmodification-date>
     <editor-release>1.05</editor-release>
-    <author>?</author>
+    <author>JR</author>
     <container>?</container>
     <comment>?</comment>
     <x-position>0</x-position>
@@ -66,8 +66,8 @@
       <PyFunc><![CDATA[    print a,"IsOdd (GraphSwitch)"      ]]></PyFunc>
       <PyFunc><![CDATA[    sleep( 1 )   ]]></PyFunc>
       <PyFunc><![CDATA[    return a     ]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>12/1/2005 - 17:7:20</creation-date>
-    <lastmodification-date>12/1/2005 - 17:7:20</lastmodification-date>
+    <creation-date>14/2/2005 - 17:25:12</creation-date>
+    <lastmodification-date>14/2/2005 - 17:25:12</lastmodification-date>
     <editor-release>1.05</editor-release>
     <author>?</author>
     <container>?</container>
       <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>12/1/2005 - 17:7:20</creation-date>
-    <lastmodification-date>12/1/2005 - 17:7:20</lastmodification-date>
+    <creation-date>14/2/2005 - 17:25:12</creation-date>
+    <lastmodification-date>14/2/2005 - 17:25:12</lastmodification-date>
     <editor-release>1.05</editor-release>
     <author>?</author>
     <container>?</container>
 <PyFunction>
 <FuncName>?</FuncName>
       <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>12/1/2005 - 17:7:20</creation-date>
-    <lastmodification-date>12/1/2005 - 17:7:20</lastmodification-date>
+    <creation-date>14/2/2005 - 17:25:12</creation-date>
+    <lastmodification-date>14/2/2005 - 17:25:12</lastmodification-date>
     <editor-release>1.05</editor-release>
     <author>?</author>
     <container>?</container>
     <comment>Compute Node</comment>
-    <x-position>766</x-position>
-    <y-position>127</y-position>   </node>
+    <x-position>775</x-position>
+    <y-position>169</y-position>   </node>
    <node>
 <component-name>?</component-name>
     <interface-name>?</interface-name>
       <PyFunc><![CDATA[    print a,"IsEven (GraphSwitch)"       ]]></PyFunc>
       <PyFunc><![CDATA[    sleep( 1 )    ]]></PyFunc>
       <PyFunc><![CDATA[    return a      ]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>12/1/2005 - 17:7:20</creation-date>
-    <lastmodification-date>12/1/2005 - 17:7:20</lastmodification-date>
+    <creation-date>14/2/2005 - 17:25:12</creation-date>
+    <lastmodification-date>14/2/2005 - 17:25:12</lastmodification-date>
     <editor-release>2.0</editor-release>
     <author>?</author>
     <container>?</container>
     <PyFunction-list>
 <PyFunction>
 <FuncName>Switch</FuncName>
-      <PyFunc><![CDATA[from time import *    ]]></PyFunc>
-      <PyFunc><![CDATA[def Switch(a) :      ]]></PyFunc>
-      <PyFunc><![CDATA[    if a <= 0 :   ]]></PyFunc>
-      <PyFunc><![CDATA[        return 0,0,a   ]]></PyFunc>
-      <PyFunc><![CDATA[    if ( a & 1 ) == 0 :    ]]></PyFunc>
-      <PyFunc><![CDATA[        sleep(1)       ]]></PyFunc>
-      <PyFunc><![CDATA[    return a & 1,1-(a&1),a       ]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>12/1/2005 - 17:7:20</creation-date>
-    <lastmodification-date>12/1/2005 - 17:7:20</lastmodification-date>
+      <PyFunc><![CDATA[from time import *     ]]></PyFunc>
+      <PyFunc><![CDATA[def Switch(a) : ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep(1) ]]></PyFunc>
+      <PyFunc><![CDATA[    if a <= 0 :    ]]></PyFunc>
+      <PyFunc><![CDATA[        return 0,0,a    ]]></PyFunc>
+      <PyFunc><![CDATA[    return a & 1,1-(a&1),a        ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 17:25:12</creation-date>
+    <lastmodification-date>14/2/2005 - 17:25:12</lastmodification-date>
     <editor-release>2.0</editor-release>
     <author>?</author>
     <container>?</container>
 <PyFunction>
 <FuncName>EndSwitch_1</FuncName>
       <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>12/1/2005 - 17:7:20</creation-date>
-    <lastmodification-date>12/1/2005 - 17:7:20</lastmodification-date>
+    <creation-date>14/2/2005 - 17:25:12</creation-date>
+    <lastmodification-date>14/2/2005 - 17:25:12</lastmodification-date>
     <editor-release>2.0</editor-release>
     <author>?</author>
     <container>?</container>
     <comment>Compute Node</comment>
-    <x-position>580</x-position>
-    <y-position>147</y-position>   </node>  </node-list>
+    <x-position>583</x-position>
+    <y-position>169</y-position>   </node>  </node-list>
   <link-list>
 <link>
 <fromnode-name>IsOdd</fromnode-name>
     <coord-list/>   </link>  </link-list>
   <data-list>
 <data>
-<fromnode-name>GraphSwitch_1_1</fromnode-name>
+<fromnode-name>GraphSwitch2</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>GraphSwitch_1_1</fromnode-name>
+<fromnode-name>GraphSwitch2</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>GraphSwitch_1_1</fromnode-name>
+<fromnode-name>GraphSwitch2</fromnode-name>
     <fromserviceparameter-name>InitLoopSwitch__Max</fromserviceparameter-name>
     <tonode-name>InitLoopSwitch</tonode-name>
     <toserviceparameter-name>Max</toserviceparameter-name>
     <data-value>
 <value-type>3</value-type>
-     <value>10</value>    </data-value>
+     <value>23</value>    </data-value>
     <coord-list/>   </data>  </data-list> </dataflow></supergraph>
index 8232e3090d44745076150c392b5cfddd5931d1c1..f281785f6f0c51c08a7403e13ad8e9d2ac6cf71c 100644 (file)
@@ -97,23 +97,6 @@ def DefGraphSwitchCheckDefault() :
     OEmptyNodeBranch = EmptyNode.OutPort( 'Branch' , 'string' )
     OEmptyNodeGate = EmptyNode.GetOutPort( 'Gate' )
     
-    PyDefault = []
-    PyDefault.append( 'from time import * ' )
-    PyDefault.append( 'def Default(a,Branch) : ' )
-    PyDefault.append( '    sleep(1) ' )
-    PyDefault.append( '    return a,Branch ' )
-    Default = GraphSwitchCheckDefault.INode( 'Default' , PyDefault )
-    Default.SetName( 'Default' )
-    Default.SetAuthor( '' )
-    Default.SetComment( 'Compute Node' )
-    Default.Coords( 421 , 592 )
-    IDefaulta = Default.InPort( 'a' , 'long' )
-    IDefaultBranch = Default.InPort( 'Branch' , 'string' )
-    IDefaultGate = Default.GetInPort( 'Gate' )
-    ODefaulta = Default.OutPort( 'a' , 'long' )
-    ODefaultBranch = Default.OutPort( 'Branch' , 'string' )
-    ODefaultGate = Default.GetOutPort( 'Gate' )
-    
     # Creation of Loop Nodes
     PyInitLoopSwitch = []
     PyInitLoopSwitch.append( 'def InitLoop(Index,Min,Max) :        ' )
@@ -223,10 +206,6 @@ def DefGraphSwitchCheckDefault() :
     
     LEmptyNodeBranchEndOfSwitchBranch = GraphSwitchCheckDefault.Link( OEmptyNodeBranch , IEndOfSwitchBranch )
     
-    LDefaultaEndOfSwitcha = GraphSwitchCheckDefault.Link( ODefaulta , IEndOfSwitcha )
-    
-    LDefaultBranchEndOfSwitchBranch = GraphSwitchCheckDefault.Link( ODefaultBranch , IEndOfSwitchBranch )
-    
     LInitLoopSwitchIndexSwitcha = GraphSwitchCheckDefault.Link( OInitLoopSwitchIndex , ISwitcha )
     
     LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitchCheckDefault.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin )
@@ -263,23 +242,13 @@ def DefGraphSwitchCheckDefault() :
     LSwitchaPrintEvena.AddCoord( 1 , 381 , 361 )
     LSwitchaPrintEvena.AddCoord( 2 , 382 , 200 )
     
-    LSwitchaDefaulta = GraphSwitchCheckDefault.Link( OSwitcha , IDefaulta )
-    LSwitchaDefaulta.AddCoord( 1 , 382 , 663 )
-    LSwitchaDefaulta.AddCoord( 2 , 382 , 199 )
-    
     LSwitchBranchPrintOddBranch = GraphSwitchCheckDefault.Link( OSwitchBranch , IPrintOddBranch )
     
     LSwitchBranchPrintEvenBranch = GraphSwitchCheckDefault.Link( OSwitchBranch , IPrintEvenBranch )
     LSwitchBranchPrintEvenBranch.AddCoord( 1 , 369 , 381 )
     LSwitchBranchPrintEvenBranch.AddCoord( 2 , 369 , 219 )
     
-    LSwitchBranchDefaultBranch = GraphSwitchCheckDefault.Link( OSwitchBranch , IDefaultBranch )
-    LSwitchBranchDefaultBranch.AddCoord( 1 , 370 , 683 )
-    LSwitchBranchDefaultBranch.AddCoord( 2 , 370 , 220 )
-    
-    LSwitchDefaultDefaultGate = GraphSwitchCheckDefault.Link( OSwitchDefault , IDefaultGate )
-    LSwitchDefaultDefaultGate.AddCoord( 1 , 360 , 707 )
-    LSwitchDefaultDefaultGate.AddCoord( 2 , 360 , 263 )
+    LSwitchDefaultEndOfSwitchDefault = GraphSwitchCheckDefault.Link( OSwitchDefault , IEndOfSwitchDefault )
     
     LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitchCheckDefault.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex )
     
index 81e7ab6219092a72fe15b1c32ae3b95f7b8f0a5a..9263de8d30a51d9ada7a0e93fa98d72652075e8d 100644 (file)
@@ -9,7 +9,7 @@
     <kind>1</kind>
     <coupled-node>?</coupled-node>
     <service>
-<service-name>GraphSwitchCheck_2</service-name>
+<service-name>GraphSwitchCheckDefault</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>9/2/2005 - 17:21: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>9/2/2005 - 17:20:8</creation-date>
+    <lastmodification-date>9/2/2005 - 17:20:8</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>9/2/2005 - 17:20:8</creation-date>
+    <lastmodification-date>9/2/2005 - 17:20:8</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>9/2/2005 - 17:20:8</creation-date>
+    <lastmodification-date>9/2/2005 - 17:20:8</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>9/2/2005 - 17:20:8</creation-date>
+    <lastmodification-date>9/2/2005 - 17:20:8</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>9/2/2005 - 17:20:8</creation-date>
+    <lastmodification-date>9/2/2005 - 17:20:8</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>9/2/2005 - 17:20:8</creation-date>
+    <lastmodification-date>9/2/2005 - 17:20:8</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>9/2/2005 - 17:20:8</creation-date>
+    <lastmodification-date>9/2/2005 - 17:20:8</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>9/2/2005 - 17:20:8</creation-date>
+    <lastmodification-date>9/2/2005 - 17:20:8</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>9/2/2005 - 17:20:8</creation-date>
+    <lastmodification-date>9/2/2005 - 17:20:8</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>
index a7cbc2ab98d7e6b2ba448de374b367c3238754d1..cf92c4082b0839531598ff16a6fe9ca499e1fe16 100644 (file)
@@ -97,23 +97,6 @@ def DefGraphSwitchCheckDefault1() :
     OEmptyNodeBranch = EmptyNode.OutPort( 'Branch' , 'string' )
     OEmptyNodeGate = EmptyNode.GetOutPort( 'Gate' )
     
-    PyDefault = []
-    PyDefault.append( 'from time import * ' )
-    PyDefault.append( 'def Default(a,Branch) : ' )
-    PyDefault.append( '    sleep(1) ' )
-    PyDefault.append( '    return a,Branch ' )
-    Default = GraphSwitchCheckDefault1.INode( 'Default' , PyDefault )
-    Default.SetName( 'Default' )
-    Default.SetAuthor( '' )
-    Default.SetComment( 'Compute Node' )
-    Default.Coords( 421 , 592 )
-    IDefaulta = Default.InPort( 'a' , 'long' )
-    IDefaultBranch = Default.InPort( 'Branch' , 'string' )
-    IDefaultGate = Default.GetInPort( 'Gate' )
-    ODefaulta = Default.OutPort( 'a' , 'long' )
-    ODefaultBranch = Default.OutPort( 'Branch' , 'string' )
-    ODefaultGate = Default.GetOutPort( 'Gate' )
-    
     # Creation of Loop Nodes
     PyInitLoopSwitch = []
     PyInitLoopSwitch.append( 'def InitLoop(Index,Min,Max) :        ' )
@@ -223,10 +206,6 @@ def DefGraphSwitchCheckDefault1() :
     
     LEmptyNodeBranchEndOfSwitchBranch = GraphSwitchCheckDefault1.Link( OEmptyNodeBranch , IEndOfSwitchBranch )
     
-    LDefaultaEndOfSwitcha = GraphSwitchCheckDefault1.Link( ODefaulta , IEndOfSwitcha )
-    
-    LDefaultBranchEndOfSwitchBranch = GraphSwitchCheckDefault1.Link( ODefaultBranch , IEndOfSwitchBranch )
-    
     LInitLoopSwitchIndexSwitcha = GraphSwitchCheckDefault1.Link( OInitLoopSwitchIndex , ISwitcha )
     
     LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitchCheckDefault1.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin )
@@ -263,23 +242,13 @@ def DefGraphSwitchCheckDefault1() :
     LSwitchaPrintEvena.AddCoord( 1 , 381 , 361 )
     LSwitchaPrintEvena.AddCoord( 2 , 382 , 200 )
     
-    LSwitchaDefaulta = GraphSwitchCheckDefault1.Link( OSwitcha , IDefaulta )
-    LSwitchaDefaulta.AddCoord( 1 , 382 , 663 )
-    LSwitchaDefaulta.AddCoord( 2 , 382 , 199 )
-    
     LSwitchBranchPrintOddBranch = GraphSwitchCheckDefault1.Link( OSwitchBranch , IPrintOddBranch )
     
     LSwitchBranchPrintEvenBranch = GraphSwitchCheckDefault1.Link( OSwitchBranch , IPrintEvenBranch )
     LSwitchBranchPrintEvenBranch.AddCoord( 1 , 369 , 381 )
     LSwitchBranchPrintEvenBranch.AddCoord( 2 , 369 , 219 )
     
-    LSwitchBranchDefaultBranch = GraphSwitchCheckDefault1.Link( OSwitchBranch , IDefaultBranch )
-    LSwitchBranchDefaultBranch.AddCoord( 1 , 370 , 683 )
-    LSwitchBranchDefaultBranch.AddCoord( 2 , 370 , 220 )
-    
-    LSwitchdefaultDefaultGate = GraphSwitchCheckDefault1.Link( OSwitchdefault , IDefaultGate )
-    LSwitchdefaultDefaultGate.AddCoord( 1 , 363 , 707 )
-    LSwitchdefaultDefaultGate.AddCoord( 2 , 362 , 239 )
+    LSwitchDefaultEndOfSwitchDefault = GraphSwitchCheckDefault1.Link( OSwitchDefault , IEndOfSwitchDefault )
     
     LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitchCheckDefault1.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex )
     
@@ -292,6 +261,7 @@ def DefGraphSwitchCheckDefault1() :
     #OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' )
     #OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' )
     #OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' )
+    #OSwitchdefault = Switch.GetOutPort( 'default' )
     return GraphSwitchCheckDefault1
 
 
index 317bc925872e6f53135c77c07c5d191a79eec039..227fb593f51926ebe101b95b8a8ca9035c407d6f 100644 (file)
@@ -9,7 +9,7 @@
     <kind>1</kind>
     <coupled-node>?</coupled-node>
     <service>
-<service-name>GraphSwitchCheckDefault</service-name>
+<service-name>GraphSwitchCheckDefault_1</service-name>
      <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
        <outParameter-name>EndOfInitLoopSwitch__Min</outParameter-name>      </outParameter>
       <outParameter>
 <outParameter-type>long</outParameter-type>
-       <outParameter-name>EndOfInitLoopSwitch__Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+       <outParameter-name>EndOfInitLoopSwitch__Max</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>boolean</outParameter-type>
+       <outParameter-name>Switch__default</outParameter-name>      </outParameter>     </outParameter-list>    </service>
     <DataStream-list/>
     <PyFunction-list/>
     <creation-date>13/1/2005 - 12:21:43</creation-date>
-    <lastmodification-date>13/1/2005 - 12:28:19</lastmodification-date>
+    <lastmodification-date>9/2/2005 - 17:21:22</lastmodification-date>
     <editor-release>2.0</editor-release>
     <author>JR</author>
     <container>?</container>
@@ -66,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>9/2/2005 - 17:21:22</creation-date>
+    <lastmodification-date>9/2/2005 - 17:21:22</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>9/2/2005 - 17:21:22</creation-date>
+    <lastmodification-date>9/2/2005 - 17:21:22</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>9/2/2005 - 17:21:22</creation-date>
+    <lastmodification-date>9/2/2005 - 17:21:22</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>9/2/2005 - 17:21:22</creation-date>
+    <lastmodification-date>9/2/2005 - 17:21:22</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>9/2/2005 - 17:21:22</creation-date>
+    <lastmodification-date>9/2/2005 - 17:21:22</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>9/2/2005 - 17:21:22</creation-date>
+    <lastmodification-date>9/2/2005 - 17:21:22</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>9/2/2005 - 17:21:22</creation-date>
+    <lastmodification-date>9/2/2005 - 17:21:22</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>9/2/2005 - 17:21:22</creation-date>
+    <lastmodification-date>9/2/2005 - 17:21:22</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>9/2/2005 - 17:21:22</creation-date>
+    <lastmodification-date>9/2/2005 - 17:21:22</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>
       <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>363</x>
-      <y>707</y>     </coord>
-     <coord>
-<x>362</x>
-      <y>239</y>     </coord>    </coord-list>   </link>
+    <fromserviceparameter-name>Default</fromserviceparameter-name>
+    <tonode-name>EndOfSwitch</tonode-name>
+    <toserviceparameter-name>Default</toserviceparameter-name>
+    <coord-list/>   </link>
    <link>
 <fromnode-name>EndOfSwitch</fromnode-name>
     <fromserviceparameter-name>a</fromserviceparameter-name>
index e26b64a17aa7e3388c247d7688fa466bfe770e07..d33f06e0f2a7421dd236f09d15432f32279784f7 100644 (file)
@@ -1,15 +1,15 @@
 
-# Generated python file of Graph GraphSwitchCheckDefault1
+# Generated python file of Graph GraphSwitchCheckDefault2
 
 from SuperV import *
 
-# Graph creation of GraphSwitchCheckDefault1
-def DefGraphSwitchCheckDefault1() :
-    GraphSwitchCheckDefault1 = Graph( 'GraphSwitchCheckDefault1' )
-    GraphSwitchCheckDefault1.SetName( 'GraphSwitchCheckDefault1' )
-    GraphSwitchCheckDefault1.SetAuthor( 'JR' )
-    GraphSwitchCheckDefault1.SetComment( '' )
-    GraphSwitchCheckDefault1.Coords( 0 , 0 )
+# Graph creation of GraphSwitchCheckDefault2
+def DefGraphSwitchCheckDefault2() :
+    GraphSwitchCheckDefault2 = Graph( 'GraphSwitchCheckDefault2' )
+    GraphSwitchCheckDefault2.SetName( 'GraphSwitchCheckDefault2' )
+    GraphSwitchCheckDefault2.SetAuthor( 'JR' )
+    GraphSwitchCheckDefault2.SetComment( '' )
+    GraphSwitchCheckDefault2.Coords( 0 , 0 )
     
     # Creation of Factory Nodes
     
@@ -20,7 +20,7 @@ def DefGraphSwitchCheckDefault1() :
     PyIsOdd.append( '    print a,"IsOdd (GraphSwitch)"      ' )
     PyIsOdd.append( '    sleep( 1 )   ' )
     PyIsOdd.append( '    return a     ' )
-    IsOdd = GraphSwitchCheckDefault1.INode( 'IsOdd' , PyIsOdd )
+    IsOdd = GraphSwitchCheckDefault2.INode( 'IsOdd' , PyIsOdd )
     IsOdd.SetName( 'IsOdd' )
     IsOdd.SetAuthor( '' )
     IsOdd.SetComment( 'Python function' )
@@ -36,7 +36,7 @@ def DefGraphSwitchCheckDefault1() :
     PyIsEven.append( '    print a,"IsEven (GraphSwitch)"       ' )
     PyIsEven.append( '    sleep( 1 )    ' )
     PyIsEven.append( '    return a      ' )
-    IsEven = GraphSwitchCheckDefault1.INode( 'IsEven' , PyIsEven )
+    IsEven = GraphSwitchCheckDefault2.INode( 'IsEven' , PyIsEven )
     IsEven.SetName( 'IsEven' )
     IsEven.SetAuthor( '' )
     IsEven.SetComment( 'Compute Node' )
@@ -52,7 +52,7 @@ def DefGraphSwitchCheckDefault1() :
     PyPrintOdd.append( '    print "Print ",a,Branch ' )
     PyPrintOdd.append( '    sleep(1) ' )
     PyPrintOdd.append( '    return Branch     ' )
-    PrintOdd = GraphSwitchCheckDefault1.INode( 'Print' , PyPrintOdd )
+    PrintOdd = GraphSwitchCheckDefault2.INode( 'Print' , PyPrintOdd )
     PrintOdd.SetName( 'PrintOdd' )
     PrintOdd.SetAuthor( '' )
     PrintOdd.SetComment( 'Compute Node' )
@@ -69,7 +69,7 @@ def DefGraphSwitchCheckDefault1() :
     PyPrintEven.append( '    print "Print ",a,Branch ' )
     PyPrintEven.append( '    sleep(1) ' )
     PyPrintEven.append( '    return Branch     ' )
-    PrintEven = GraphSwitchCheckDefault1.INode( 'Print_1' , PyPrintEven )
+    PrintEven = GraphSwitchCheckDefault2.INode( 'Print_1' , PyPrintEven )
     PrintEven.SetName( 'PrintEven' )
     PrintEven.SetAuthor( '' )
     PrintEven.SetComment( 'Compute Node' )
@@ -85,7 +85,7 @@ def DefGraphSwitchCheckDefault1() :
     PyEmptyNode.append( 'def EmptyNode(a,Branch) : ' )
     PyEmptyNode.append( '    sleep(1) ' )
     PyEmptyNode.append( '    return a,Branch  ' )
-    EmptyNode = GraphSwitchCheckDefault1.INode( 'EmptyNode' , PyEmptyNode )
+    EmptyNode = GraphSwitchCheckDefault2.INode( 'EmptyNode' , PyEmptyNode )
     EmptyNode.SetName( 'EmptyNode' )
     EmptyNode.SetAuthor( '' )
     EmptyNode.SetComment( 'Compute Node' )
@@ -102,7 +102,7 @@ def DefGraphSwitchCheckDefault1() :
     PyDefault.append( 'def Default(a,Branch) : ' )
     PyDefault.append( '    sleep(1) ' )
     PyDefault.append( '    return a,Branch ' )
-    Default = GraphSwitchCheckDefault1.INode( 'Default' , PyDefault )
+    Default = GraphSwitchCheckDefault2.INode( 'Default' , PyDefault )
     Default.SetName( 'Default' )
     Default.SetAuthor( '' )
     Default.SetComment( 'Compute Node' )
@@ -119,11 +119,11 @@ def DefGraphSwitchCheckDefault1() :
     PyPuta.append( 'def Puta(a) : ' )
     PyPuta.append( '    sleep(1) ' )
     PyPuta.append( '    return a ' )
-    Puta = GraphSwitchCheckDefault1.INode( 'Puta' , PyPuta )
+    Puta = GraphSwitchCheckDefault2.INode( 'Puta' , PyPuta )
     Puta.SetName( 'Puta' )
     Puta.SetAuthor( '' )
     Puta.SetComment( 'Compute Node' )
-    Puta.Coords( 658 , 472 )
+    Puta.Coords( 665 , 486 )
     IPutaa = Puta.InPort( 'a' , 'long' )
     IPutaGate = Puta.GetInPort( 'Gate' )
     OPutaa = Puta.OutPort( 'a' , 'long' )
@@ -134,7 +134,7 @@ def DefGraphSwitchCheckDefault1() :
     PyPutBranch.append( 'def PutBranch(Branch) : ' )
     PyPutBranch.append( '    sleep(1) ' )
     PyPutBranch.append( '    return Branch ' )
-    PutBranch = GraphSwitchCheckDefault1.INode( 'PutBranch' , PyPutBranch )
+    PutBranch = GraphSwitchCheckDefault2.INode( 'PutBranch' , PyPutBranch )
     PutBranch.SetName( 'PutBranch' )
     PutBranch.SetAuthor( '' )
     PutBranch.SetComment( 'Compute Node' )
@@ -162,7 +162,7 @@ def DefGraphSwitchCheckDefault1() :
     PyNextInitLoopSwitch.append( 'def NextLoop(Index,Min,Max) :       ' )
     PyNextInitLoopSwitch.append( '     Index = Index - 1       ' )
     PyNextInitLoopSwitch.append( '     return Index,Min,Max       ' )
-    InitLoopSwitch,EndOfInitLoopSwitch = GraphSwitchCheckDefault1.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch )
+    InitLoopSwitch,EndOfInitLoopSwitch = GraphSwitchCheckDefault2.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch )
     EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' )
     EndOfInitLoopSwitch.SetAuthor( '' )
     EndOfInitLoopSwitch.SetComment( 'Compute Node' )
@@ -210,7 +210,7 @@ def DefGraphSwitchCheckDefault1() :
     PySwitch.append( '    else :    ' )
     PySwitch.append( '        Branch = "Odd"    ' )
     PySwitch.append( '    return a & 1,1-(a&1),a,Branch,0  ' )
-    Switch,EndOfSwitch = GraphSwitchCheckDefault1.SNode( 'Switch' , PySwitch )
+    Switch,EndOfSwitch = GraphSwitchCheckDefault2.SNode( 'Switch' , PySwitch )
     EndOfSwitch.SetName( 'EndOfSwitch' )
     EndOfSwitch.SetAuthor( '' )
     EndOfSwitch.SetComment( 'Compute Node' )
@@ -240,82 +240,84 @@ def DefGraphSwitchCheckDefault1() :
     OSwitchDefault = Switch.GetOutPort( 'Default' )
     
     # Creation of Links
-    LIsOddaEmptyNodea = GraphSwitchCheckDefault1.Link( OIsOdda , IEmptyNodea )
+    LIsOddaEmptyNodea = GraphSwitchCheckDefault2.Link( OIsOdda , IEmptyNodea )
     LIsOddaEmptyNodea.AddCoord( 1 , 646 , 78 )
     
-    LPrintOddBranchEmptyNodeBranch = GraphSwitchCheckDefault1.Link( OPrintOddBranch , IEmptyNodeBranch )
+    LIsEvenaEndOfSwitcha = GraphSwitchCheckDefault2.Link( OIsEvena , IEndOfSwitcha )
     
-    LEmptyNodeaEndOfSwitcha = GraphSwitchCheckDefault1.Link( OEmptyNodea , IEndOfSwitcha )
+    LPrintOddBranchEmptyNodeBranch = GraphSwitchCheckDefault2.Link( OPrintOddBranch , IEmptyNodeBranch )
     
-    LEmptyNodeBranchEndOfSwitchBranch = GraphSwitchCheckDefault1.Link( OEmptyNodeBranch , IEndOfSwitchBranch )
+    LPrintEvenBranchEndOfSwitchBranch = GraphSwitchCheckDefault2.Link( OPrintEvenBranch , IEndOfSwitchBranch )
     
-    LDefaultaEndOfSwitcha = GraphSwitchCheckDefault1.Link( ODefaulta , IEndOfSwitcha )
+    LEmptyNodeaEndOfSwitcha = GraphSwitchCheckDefault2.Link( OEmptyNodea , IEndOfSwitcha )
     
-    LDefaultaPutaa = GraphSwitchCheckDefault1.Link( ODefaulta , IPutaa )
+    LEmptyNodeBranchEndOfSwitchBranch = GraphSwitchCheckDefault2.Link( OEmptyNodeBranch , IEndOfSwitchBranch )
     
-    LDefaultBranchEndOfSwitchBranch = GraphSwitchCheckDefault1.Link( ODefaultBranch , IEndOfSwitchBranch )
+    LDefaultaPutaa = GraphSwitchCheckDefault2.Link( ODefaulta , IPutaa )
     
-    LDefaultBranchPutBranchBranch = GraphSwitchCheckDefault1.Link( ODefaultBranch , IPutBranchBranch )
+    LDefaultBranchPutBranchBranch = GraphSwitchCheckDefault2.Link( ODefaultBranch , IPutBranchBranch )
     
-    LInitLoopSwitchIndexSwitcha = GraphSwitchCheckDefault1.Link( OInitLoopSwitchIndex , ISwitcha )
+    LInitLoopSwitchIndexSwitcha = GraphSwitchCheckDefault2.Link( OInitLoopSwitchIndex , ISwitcha )
     
-    LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitchCheckDefault1.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin )
+    LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitchCheckDefault2.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin )
     
-    LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitchCheckDefault1.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax )
+    LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitchCheckDefault2.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax )
     
-    LSwitchOddIsOddGate = GraphSwitchCheckDefault1.Link( OSwitchOdd , IIsOddGate )
+    LSwitchOddIsOddGate = GraphSwitchCheckDefault2.Link( OSwitchOdd , IIsOddGate )
     LSwitchOddIsOddGate.AddCoord( 1 , 401 , 101 )
     LSwitchOddIsOddGate.AddCoord( 2 , 401 , 160 )
     
-    LSwitchOddPrintOddGate = GraphSwitchCheckDefault1.Link( OSwitchOdd , IPrintOddGate )
+    LSwitchOddPrintOddGate = GraphSwitchCheckDefault2.Link( OSwitchOdd , IPrintOddGate )
     LSwitchOddPrintOddGate.AddCoord( 1 , 401 , 245 )
     LSwitchOddPrintOddGate.AddCoord( 2 , 401 , 159 )
     
-    LSwitchEvenIsEvenGate = GraphSwitchCheckDefault1.Link( OSwitchEven , IIsEvenGate )
+    LSwitchEvenIsEvenGate = GraphSwitchCheckDefault2.Link( OSwitchEven , IIsEvenGate )
     LSwitchEvenIsEvenGate.AddCoord( 1 , 392 , 533 )
     LSwitchEvenIsEvenGate.AddCoord( 2 , 392 , 182 )
     
-    LSwitchEvenPrintEvenGate = GraphSwitchCheckDefault1.Link( OSwitchEven , IPrintEvenGate )
+    LSwitchEvenPrintEvenGate = GraphSwitchCheckDefault2.Link( OSwitchEven , IPrintEvenGate )
     LSwitchEvenPrintEvenGate.AddCoord( 1 , 392 , 403 )
     LSwitchEvenPrintEvenGate.AddCoord( 2 , 392 , 181 )
     
-    LSwitchaIsOdda = GraphSwitchCheckDefault1.Link( OSwitcha , IIsOdda )
+    LSwitchaIsOdda = GraphSwitchCheckDefault2.Link( OSwitcha , IIsOdda )
     LSwitchaIsOdda.AddCoord( 1 , 382 , 78 )
     LSwitchaIsOdda.AddCoord( 2 , 382 , 199 )
     
-    LSwitchaIsEvena = GraphSwitchCheckDefault1.Link( OSwitcha , IIsEvena )
+    LSwitchaIsEvena = GraphSwitchCheckDefault2.Link( OSwitcha , IIsEvena )
     LSwitchaIsEvena.AddCoord( 1 , 381 , 509 )
     LSwitchaIsEvena.AddCoord( 2 , 382 , 200 )
     
-    LSwitchaPrintOdda = GraphSwitchCheckDefault1.Link( OSwitcha , IPrintOdda )
+    LSwitchaPrintOdda = GraphSwitchCheckDefault2.Link( OSwitcha , IPrintOdda )
     
-    LSwitchaPrintEvena = GraphSwitchCheckDefault1.Link( OSwitcha , IPrintEvena )
+    LSwitchaPrintEvena = GraphSwitchCheckDefault2.Link( OSwitcha , IPrintEvena )
     LSwitchaPrintEvena.AddCoord( 1 , 381 , 361 )
     LSwitchaPrintEvena.AddCoord( 2 , 382 , 200 )
     
-    LSwitchaDefaulta = GraphSwitchCheckDefault1.Link( OSwitcha , IDefaulta )
+    LSwitchaDefaulta = GraphSwitchCheckDefault2.Link( OSwitcha , IDefaulta )
     LSwitchaDefaulta.AddCoord( 1 , 382 , 663 )
     LSwitchaDefaulta.AddCoord( 2 , 382 , 199 )
     
-    LSwitchBranchPrintOddBranch = GraphSwitchCheckDefault1.Link( OSwitchBranch , IPrintOddBranch )
+    LSwitchBranchPrintOddBranch = GraphSwitchCheckDefault2.Link( OSwitchBranch , IPrintOddBranch )
     
-    LSwitchBranchPrintEvenBranch = GraphSwitchCheckDefault1.Link( OSwitchBranch , IPrintEvenBranch )
+    LSwitchBranchPrintEvenBranch = GraphSwitchCheckDefault2.Link( OSwitchBranch , IPrintEvenBranch )
     LSwitchBranchPrintEvenBranch.AddCoord( 1 , 369 , 381 )
     LSwitchBranchPrintEvenBranch.AddCoord( 2 , 369 , 219 )
     
-    LSwitchBranchDefaultBranch = GraphSwitchCheckDefault1.Link( OSwitchBranch , IDefaultBranch )
+    LSwitchBranchDefaultBranch = GraphSwitchCheckDefault2.Link( OSwitchBranch , IDefaultBranch )
     LSwitchBranchDefaultBranch.AddCoord( 1 , 370 , 683 )
     LSwitchBranchDefaultBranch.AddCoord( 2 , 370 , 220 )
     
-    LSwitchdefaultDefaultGate = GraphSwitchCheckDefault1.Link( OSwitchdefault , IDefaultGate )
+    LSwitchdefaultDefaultGate = GraphSwitchCheckDefault2.Link( OSwitchdefault , IDefaultGate )
     LSwitchdefaultDefaultGate.AddCoord( 1 , 363 , 707 )
     LSwitchdefaultDefaultGate.AddCoord( 2 , 362 , 239 )
     
-    LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitchCheckDefault1.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex )
+    LSwitchDefaultEndOfSwitchDefault = GraphSwitchCheckDefault2.Link( OSwitchDefault , IEndOfSwitchDefault )
     
-    LPutaaEndOfSwitcha = GraphSwitchCheckDefault1.Link( OPutaa , IEndOfSwitcha )
+    LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitchCheckDefault2.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex )
     
-    LPutBranchBranchEndOfSwitchBranch = GraphSwitchCheckDefault1.Link( OPutBranchBranch , IEndOfSwitchBranch )
+    LPutaaEndOfSwitcha = GraphSwitchCheckDefault2.Link( OPutaa , IEndOfSwitcha )
+    
+    LPutBranchBranchEndOfSwitchBranch = GraphSwitchCheckDefault2.Link( OPutBranchBranch , IEndOfSwitchBranch )
     
     # Input datas
     IInitLoopSwitchIndex.Input( 0 )
@@ -323,12 +325,10 @@ def DefGraphSwitchCheckDefault1() :
     IInitLoopSwitchMax.Input( 10 )
     
     # Output Ports of the graph
-    #OIsEvena = IsEven.GetOutPort( 'a' )
-    #OPrintEvenBranch = PrintEven.GetOutPort( 'Branch' )
     #OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' )
     #OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' )
     #OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' )
-    return GraphSwitchCheckDefault1
+    return GraphSwitchCheckDefault2
 
 
-GraphSwitchCheckDefault1 = DefGraphSwitchCheckDefault1()
+GraphSwitchCheckDefault2 = DefGraphSwitchCheckDefault2()
index 3022d346d840bf14a988cb4aa8e0fe662209ce12..ba59f46dd4b1f7cc8d1d04d6ba5bb88dea724d6b 100644 (file)
@@ -5,11 +5,11 @@
 <node>
 <component-name>?</component-name>
     <interface-name>?</interface-name>
-    <node-name>GraphSwitchCheckDefault1</node-name>
+    <node-name>GraphSwitchCheckDefault2</node-name>
     <kind>1</kind>
     <coupled-node>?</coupled-node>
     <service>
-<service-name>GraphSwitchCheckDefault1</service-name>
+<service-name>GraphSwitchCheckDefault1_1_1</service-name>
      <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
        <inParameter-name>InitLoopSwitch__Max</inParameter-name>      </inParameter>     </inParameter-list>
      <outParameter-list>
 <outParameter>
-<outParameter-type>long</outParameter-type>
-       <outParameter-name>IsEven__a</outParameter-name>      </outParameter>
-      <outParameter>
-<outParameter-type>string</outParameter-type>
-       <outParameter-name>PrintEven__Branch</outParameter-name>      </outParameter>
-      <outParameter>
 <outParameter-type>long</outParameter-type>
        <outParameter-name>EndOfInitLoopSwitch__Index</outParameter-name>      </outParameter>
       <outParameter>
@@ -39,7 +33,7 @@
     <DataStream-list/>
     <PyFunction-list/>
     <creation-date>13/1/2005 - 12:21:43</creation-date>
-    <lastmodification-date>13/1/2005 - 12:33:25</lastmodification-date>
+    <lastmodification-date>19/1/2005 - 12:15:25</lastmodification-date>
     <editor-release>2.0</editor-release>
     <author>JR</author>
     <container>?</container>
@@ -72,8 +66,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>19/1/2005 - 12:15:25</creation-date>
+    <lastmodification-date>19/1/2005 - 12:15:25</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>19/1/2005 - 12:15:25</creation-date>
+    <lastmodification-date>19/1/2005 - 12:15:25</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>19/1/2005 - 12:15:25</creation-date>
+    <lastmodification-date>19/1/2005 - 12:15:25</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>19/1/2005 - 12:15:25</creation-date>
+    <lastmodification-date>19/1/2005 - 12:15:25</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>19/1/2005 - 12:15:25</creation-date>
+    <lastmodification-date>19/1/2005 - 12:15:25</lastmodification-date>
     <editor-release>2.0</editor-release>
     <author>?</author>
     <container>?</container>
       <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>
+    <creation-date>19/1/2005 - 12:15:25</creation-date>
+    <lastmodification-date>19/1/2005 - 12:15:25</lastmodification-date>
     <editor-release>2.0</editor-release>
     <author>?</author>
     <container>?</container>
       <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>19/1/2005 - 12:15:25</creation-date>
+    <lastmodification-date>19/1/2005 - 12:15:25</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>19/1/2005 - 12:15:25</creation-date>
+    <lastmodification-date>19/1/2005 - 12:15:25</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>19/1/2005 - 12:15:25</creation-date>
+    <lastmodification-date>19/1/2005 - 12:15:25</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>19/1/2005 - 12:15:25</creation-date>
+    <lastmodification-date>19/1/2005 - 12:15:25</lastmodification-date>
     <editor-release>2.0</editor-release>
     <author>?</author>
     <container>?</container>
       <PyFunc><![CDATA[def Puta(a) : ]]></PyFunc>
       <PyFunc><![CDATA[    sleep(1) ]]></PyFunc>
       <PyFunc><![CDATA[    return a ]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>13/1/2005 - 12:31:48</creation-date>
-    <lastmodification-date>13/1/2005 - 12:31:48</lastmodification-date>
+    <creation-date>19/1/2005 - 12:15:25</creation-date>
+    <lastmodification-date>19/1/2005 - 12:15:25</lastmodification-date>
     <editor-release>2.0</editor-release>
     <author>?</author>
     <container>?</container>
     <comment>Compute Node</comment>
-    <x-position>658</x-position>
-    <y-position>472</y-position>   </node>
+    <x-position>665</x-position>
+    <y-position>486</y-position>   </node>
    <node>
 <component-name>?</component-name>
     <interface-name>?</interface-name>
       <PyFunc><![CDATA[def PutBranch(Branch) : ]]></PyFunc>
       <PyFunc><![CDATA[    sleep(1) ]]></PyFunc>
       <PyFunc><![CDATA[    return Branch ]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>13/1/2005 - 12:32:11</creation-date>
-    <lastmodification-date>13/1/2005 - 12:32:11</lastmodification-date>
+    <creation-date>19/1/2005 - 12:15:25</creation-date>
+    <lastmodification-date>19/1/2005 - 12:15:25</lastmodification-date>
     <editor-release>2.0</editor-release>
     <author>?</author>
     <container>?</container>
 <x>646</x>
       <y>78</y>     </coord>    </coord-list>   </link>
    <link>
+<fromnode-name>IsEven</fromnode-name>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfSwitch</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>PrintOdd</fromnode-name>
     <fromserviceparameter-name>Branch</fromserviceparameter-name>
     <tonode-name>EmptyNode</tonode-name>
     <toserviceparameter-name>Branch</toserviceparameter-name>
     <coord-list/>   </link>
    <link>
+<fromnode-name>PrintEven</fromnode-name>
+    <fromserviceparameter-name>Branch</fromserviceparameter-name>
+    <tonode-name>EndOfSwitch</tonode-name>
+    <toserviceparameter-name>Branch</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>EmptyNode</fromnode-name>
     <fromserviceparameter-name>a</fromserviceparameter-name>
     <tonode-name>EndOfSwitch</tonode-name>
     <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>a</fromserviceparameter-name>
     <tonode-name>Puta</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>Default</fromnode-name>
     <fromserviceparameter-name>Branch</fromserviceparameter-name>
     <tonode-name>PutBranch</tonode-name>
 <x>362</x>
       <y>239</y>     </coord>    </coord-list>   </link>
    <link>
+<fromnode-name>Switch</fromnode-name>
+    <fromserviceparameter-name>Default</fromserviceparameter-name>
+    <tonode-name>EndOfSwitch</tonode-name>
+    <toserviceparameter-name>Default</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>EndOfSwitch</fromnode-name>
     <fromserviceparameter-name>a</fromserviceparameter-name>
     <tonode-name>EndOfInitLoopSwitch</tonode-name>
     <coord-list/>   </link>  </link-list>
   <data-list>
 <data>
-<fromnode-name>GraphSwitchCheckDefault1</fromnode-name>
+<fromnode-name>GraphSwitchCheckDefault2</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>GraphSwitchCheckDefault1</fromnode-name>
+<fromnode-name>GraphSwitchCheckDefault2</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>GraphSwitchCheckDefault1</fromnode-name>
+<fromnode-name>GraphSwitchCheckDefault2</fromnode-name>
     <fromserviceparameter-name>InitLoopSwitch__Max</fromserviceparameter-name>
     <tonode-name>InitLoopSwitch</tonode-name>
     <toserviceparameter-name>Max</toserviceparameter-name>
index f22827a1af1c1bd3d78bac6af0eddfe054c13fac..8c222c384b55fc28c3ded2f547696f1644e9d224 100755 (executable)
 # Generated python file of Graph GraphSwitchCrash
 
 from SuperV import *
-# Graph creation 
-GraphSwitchCrash = Graph( 'GraphSwitchCrash' )
-GraphSwitchCrash.SetName( 'GraphSwitchCrash' )
-GraphSwitchCrash.SetAuthor( '' )
-GraphSwitchCrash.SetComment( '' )
-GraphSwitchCrash.Coords( 0 , 0 )
 
-# Creation of Factory Nodes
+# Graph creation of GraphSwitchCrash
+def DefGraphSwitchCrash() :
+    GraphSwitchCrash = Graph( 'GraphSwitchCrash' )
+    GraphSwitchCrash.SetName( 'GraphSwitchCrash' )
+    GraphSwitchCrash.SetAuthor( '' )
+    GraphSwitchCrash.SetComment( '' )
+    GraphSwitchCrash.Coords( 0 , 0 )
+    
+    # Creation of Factory Nodes
+    
+    # Creation of InLine Nodes
+    PyIsOdd = []
+    PyIsOdd.append( 'from time import *   ' )
+    PyIsOdd.append( 'def IsOdd(a) :       ' )
+    PyIsOdd.append( '    print a,"IsOdd (IsOdd)"      ' )
+    PyIsOdd.append( '    sleep( 1 )   ' )
+    PyIsOdd.append( '    return a     ' )
+    IsOdd = GraphSwitchCrash.INode( 'IsOdd' , PyIsOdd )
+    IsOdd.SetName( 'IsOdd' )
+    IsOdd.SetAuthor( '' )
+    IsOdd.SetComment( 'Python function' )
+    IsOdd.Coords( 387 , 58 )
+    IIsOdda = IsOdd.InPort( 'a' , 'long' )
+    IIsOddGate = IsOdd.GetInPort( 'Gate' )
+    OIsOdda = IsOdd.OutPort( 'a' , 'long' )
+    OIsOddGate = IsOdd.GetOutPort( 'Gate' )
+    
+    PyIsOdd_1 = []
+    PyIsOdd_1.append( 'from time import *    ' )
+    PyIsOdd_1.append( 'def IsOdd(a,Even) :        ' )
+    PyIsOdd_1.append( '    print a,"IsOdd (IsOdd_1)"       ' )
+    PyIsOdd_1.append( '    sleep( 1 )    ' )
+    PyIsOdd_1.append( '    return a      ' )
+    IsOdd_1 = GraphSwitchCrash.INode( 'IsOdd' , PyIsOdd_1 )
+    IsOdd_1.SetName( 'IsOdd_1' )
+    IsOdd_1.SetAuthor( '' )
+    IsOdd_1.SetComment( 'Python function' )
+    IsOdd_1.Coords( 417 , 287 )
+    IIsOdd_1a = IsOdd_1.InPort( 'a' , 'long' )
+    IIsOdd_1Even = IsOdd_1.InPort( 'Even' , 'boolean' )
+    IIsOdd_1Gate = IsOdd_1.GetInPort( 'Gate' )
+    OIsOdd_1a = IsOdd_1.OutPort( 'a' , 'long' )
+    OIsOdd_1Gate = IsOdd_1.GetOutPort( 'Gate' )
+    
+    # Creation of Loop Nodes
+    PyInitLoopSwitch = []
+    PyInitLoopSwitch.append( 'def InitLoop(Index,Min,Max) :      ' )
+    PyInitLoopSwitch.append( ' return Index,Min,Max     ' )
+    PyMoreInitLoopSwitch = []
+    PyMoreInitLoopSwitch.append( 'def MoreLoop(Index,Min,Max) :     ' )
+    PyMoreInitLoopSwitch.append( '     if Index <= Max :   ' )
+    PyMoreInitLoopSwitch.append( '             DoLoop = 1     ' )
+    PyMoreInitLoopSwitch.append( '     else :     ' )
+    PyMoreInitLoopSwitch.append( '             DoLoop = 0     ' )
+    PyMoreInitLoopSwitch.append( '     return DoLoop,Index,Min,Max     ' )
+    PyNextInitLoopSwitch = []
+    PyNextInitLoopSwitch.append( 'def NextLoop(Index,Min,Max) :     ' )
+    PyNextInitLoopSwitch.append( '     Index = Index + 1     ' )
+    PyNextInitLoopSwitch.append( '     return Index,Min,Max     ' )
+    InitLoopSwitch,EndOfInitLoopSwitch = GraphSwitchCrash.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch )
+    EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' )
+    EndOfInitLoopSwitch.SetAuthor( '' )
+    EndOfInitLoopSwitch.SetComment( 'Compute Node' )
+    EndOfInitLoopSwitch.Coords( 766 , 127 )
+    PyEndOfInitLoopSwitch = []
+    EndOfInitLoopSwitch.SetPyFunction( '' , PyEndOfInitLoopSwitch )
+    IInitLoopSwitchDoLoop = InitLoopSwitch.GetInPort( 'DoLoop' )
+    IInitLoopSwitchIndex = InitLoopSwitch.InPort( 'Index' , 'long' )
+    IInitLoopSwitchMin = InitLoopSwitch.InPort( 'Min' , 'long' )
+    IInitLoopSwitchMax = InitLoopSwitch.InPort( 'Max' , 'long' )
+    IInitLoopSwitchGate = InitLoopSwitch.GetInPort( 'Gate' )
+    OInitLoopSwitchDoLoop = InitLoopSwitch.GetOutPort( 'DoLoop' )
+    OInitLoopSwitchIndex = InitLoopSwitch.GetOutPort( 'Index' )
+    OInitLoopSwitchMin = InitLoopSwitch.GetOutPort( 'Min' )
+    OInitLoopSwitchMax = InitLoopSwitch.GetOutPort( 'Max' )
+    IEndOfInitLoopSwitchDoLoop = EndOfInitLoopSwitch.GetInPort( 'DoLoop' )
+    IEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetInPort( 'Index' )
+    IEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetInPort( 'Min' )
+    IEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetInPort( 'Max' )
+    IEndOfInitLoopSwitchGate = EndOfInitLoopSwitch.GetInPort( 'Gate' )
+    OEndOfInitLoopSwitchDoLoop = EndOfInitLoopSwitch.GetOutPort( 'DoLoop' )
+    OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' )
+    OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' )
+    OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' )
+    OEndOfInitLoopSwitchGate = EndOfInitLoopSwitch.GetOutPort( 'Gate' )
+    InitLoopSwitch.SetName( 'InitLoopSwitch' )
+    InitLoopSwitch.SetAuthor( '' )
+    InitLoopSwitch.SetComment( 'Compute Node' )
+    InitLoopSwitch.Coords( 10 , 129 )
+    
+    PyInitLoop = []
+    PyInitLoop.append( 'def InitLoop(Index,Min,Max) :      ' )
+    PyInitLoop.append( '       return Index,Min,Max     ' )
+    PyMoreInitLoop = []
+    PyMoreInitLoop.append( 'def MoreLoop(Index,Min,Max) :     ' )
+    PyMoreInitLoop.append( '   if Index <= Max :   ' )
+    PyMoreInitLoop.append( '           DoLoop = 1     ' )
+    PyMoreInitLoop.append( '   else :     ' )
+    PyMoreInitLoop.append( '           DoLoop = 0     ' )
+    PyMoreInitLoop.append( '   return DoLoop,Index,Min,Max     ' )
+    PyNextInitLoop = []
+    PyNextInitLoop.append( 'def NextLoop(Index,Min,Max) :     ' )
+    PyNextInitLoop.append( '   Index = Index + 1     ' )
+    PyNextInitLoop.append( '   return Index,Min,Max     ' )
+    InitLoop,EndOfInitLoop = GraphSwitchCrash.LNode( 'InitLoop' , PyInitLoop , 'MoreLoop' , PyMoreInitLoop , 'NextLoop' , PyNextInitLoop )
+    EndOfInitLoop.SetName( 'EndOfInitLoop' )
+    EndOfInitLoop.SetAuthor( '' )
+    EndOfInitLoop.SetComment( 'Compute Node' )
+    EndOfInitLoop.Coords( 783 , 381 )
+    PyEndOfInitLoop = []
+    EndOfInitLoop.SetPyFunction( '' , PyEndOfInitLoop )
+    IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' )
+    IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' )
+    IInitLoopMin = InitLoop.InPort( 'Min' , 'long' )
+    IInitLoopMax = InitLoop.InPort( 'Max' , 'long' )
+    IInitLoopGate = InitLoop.GetInPort( 'Gate' )
+    OInitLoopDoLoop = InitLoop.GetOutPort( 'DoLoop' )
+    OInitLoopIndex = InitLoop.GetOutPort( 'Index' )
+    OInitLoopMin = InitLoop.GetOutPort( 'Min' )
+    OInitLoopMax = InitLoop.GetOutPort( 'Max' )
+    IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' )
+    IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' )
+    IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' )
+    IEndOfInitLoopMax = EndOfInitLoop.GetInPort( 'Max' )
+    IEndOfInitLoopGate = EndOfInitLoop.GetInPort( 'Gate' )
+    OEndOfInitLoopDoLoop = EndOfInitLoop.GetOutPort( 'DoLoop' )
+    OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' )
+    OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' )
+    OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' )
+    OEndOfInitLoopGate = EndOfInitLoop.GetOutPort( 'Gate' )
+    InitLoop.SetName( 'InitLoop' )
+    InitLoop.SetAuthor( '' )
+    InitLoop.SetComment( 'Compute Node' )
+    InitLoop.Coords( 10 , 388 )
+    
+    # Creation of Switch Nodes
+    PySwitch = []
+    PySwitch.append( 'from time import * ' )
+    PySwitch.append( 'def Switch(a) :   ' )
+    PySwitch.append( '    if ( a & 1 ) == 0 : ' )
+    PySwitch.append( '        sleep(1)    ' )
+    PySwitch.append( '    return a & 1,1-(a&1),a    ' )
+    Switch,EndOfSwitch = GraphSwitchCrash.SNode( 'Switch' , PySwitch )
+    EndOfSwitch.SetName( 'EndOfSwitch' )
+    EndOfSwitch.SetAuthor( '' )
+    EndOfSwitch.SetComment( 'Compute Node' )
+    EndOfSwitch.Coords( 587 , 126 )
+    PyEndOfSwitch = []
+    EndOfSwitch.SetPyFunction( '' , PyEndOfSwitch )
+    IEndOfSwitcha = EndOfSwitch.InPort( 'a' , 'long' )
+    IEndOfSwitchDefault = EndOfSwitch.GetInPort( 'Default' )
+    OEndOfSwitcha = EndOfSwitch.OutPort( 'a' , 'long' )
+    OEndOfSwitchGate = EndOfSwitch.GetOutPort( 'Gate' )
+    Switch.SetName( 'Switch' )
+    Switch.SetAuthor( '' )
+    Switch.SetComment( 'Compute Node' )
+    Switch.Coords( 186 , 130 )
+    ISwitcha = Switch.InPort( 'a' , 'long' )
+    ISwitchGate = Switch.GetInPort( 'Gate' )
+    OSwitchOdd = Switch.OutPort( 'Odd' , 'long' )
+    OSwitchEven = Switch.OutPort( 'Even' , 'int' )
+    OSwitcha = Switch.OutPort( 'a' , 'int' )
+    OSwitchDefault = Switch.GetOutPort( 'Default' )
+    
+    PySwitch_1 = []
+    PySwitch_1.append( 'from time import *  ' )
+    PySwitch_1.append( 'def Switch(a) :    ' )
+    PySwitch_1.append( '    if ( a & 1 ) == 0 :  ' )
+    PySwitch_1.append( '        sleep(1)  ' )
+    PySwitch_1.append( '    return a & 1,1-(a&1),a    ' )
+    Switch_1,EndSwitch = GraphSwitchCrash.SNode( 'Switch' , PySwitch_1 )
+    EndSwitch.SetName( 'EndSwitch' )
+    EndSwitch.SetAuthor( '' )
+    EndSwitch.SetComment( 'Compute Node' )
+    EndSwitch.Coords( 605 , 382 )
+    PyEndSwitch = []
+    EndSwitch.SetPyFunction( '' , PyEndSwitch )
+    IEndSwitcha = EndSwitch.InPort( 'a' , 'long' )
+    IEndSwitchDefault = EndSwitch.GetInPort( 'Default' )
+    OEndSwitcha = EndSwitch.OutPort( 'a' , 'long' )
+    OEndSwitchGate = EndSwitch.GetOutPort( 'Gate' )
+    Switch_1.SetName( 'Switch_1' )
+    Switch_1.SetAuthor( '' )
+    Switch_1.SetComment( 'Compute Node' )
+    Switch_1.Coords( 193 , 388 )
+    ISwitch_1a = Switch_1.InPort( 'a' , 'long' )
+    ISwitch_1Gate = Switch_1.GetInPort( 'Gate' )
+    OSwitch_1Odd = Switch_1.OutPort( 'Odd' , 'long' )
+    OSwitch_1Even = Switch_1.OutPort( 'Even' , 'int' )
+    OSwitch_1a = Switch_1.OutPort( 'a' , 'int' )
+    OSwitch_1Default = Switch_1.GetOutPort( 'Default' )
+    
+    # Creation of Links
+    LIsOddaEndOfSwitcha = GraphSwitchCrash.Link( OIsOdda , IEndOfSwitcha )
+    LIsOddaEndOfSwitcha.AddCoord( 1 , 572 , 157 )
+    LIsOddaEndOfSwitcha.AddCoord( 2 , 572 , 130 )
+    
+    LInitLoopSwitchIndexSwitcha = GraphSwitchCrash.Link( OInitLoopSwitchIndex , ISwitcha )
+    
+    LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitchCrash.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin )
+    
+    LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitchCrash.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax )
+    
+    LSwitchOddIsOddGate = GraphSwitchCrash.Link( OSwitchOdd , IIsOddGate )
+    
+    LSwitchaIsOdda = GraphSwitchCrash.Link( OSwitcha , IIsOdda )
+    LSwitchaIsOdda.AddCoord( 1 , 365 , 129 )
+    LSwitchaIsOdda.AddCoord( 2 , 365 , 201 )
+    
+    LSwitchDefaultEndOfSwitchDefault = GraphSwitchCrash.Link( OSwitchDefault , IEndOfSwitchDefault )
+    
+    LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitchCrash.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex )
+    
+    LIsOdd_1aEndSwitcha = GraphSwitchCrash.Link( OIsOdd_1a , IEndSwitcha )
+    LIsOdd_1aEndSwitcha.AddCoord( 1 , 593 , 411 )
+    LIsOdd_1aEndSwitcha.AddCoord( 2 , 593 , 358 )
+    
+    LInitLoopIndexSwitch_1a = GraphSwitchCrash.Link( OInitLoopIndex , ISwitch_1a )
+    
+    LInitLoopMinEndOfInitLoopMin = GraphSwitchCrash.Link( OInitLoopMin , IEndOfInitLoopMin )
+    
+    LInitLoopMaxEndOfInitLoopMax = GraphSwitchCrash.Link( OInitLoopMax , IEndOfInitLoopMax )
+    
+    LSwitch_1OddIsOdd_1Gate = GraphSwitchCrash.Link( OSwitch_1Odd , IIsOdd_1Gate )
+    
+    LSwitch_1EvenIsOdd_1Even = GraphSwitchCrash.Link( OSwitch_1Even , IIsOdd_1Even )
+    
+    LSwitch_1aIsOdd_1a = GraphSwitchCrash.Link( OSwitch_1a , IIsOdd_1a )
+    LSwitch_1aIsOdd_1a.AddCoord( 1 , 377 , 358 )
+    LSwitch_1aIsOdd_1a.AddCoord( 2 , 377 , 460 )
+    
+    LSwitch_1DefaultEndSwitchDefault = GraphSwitchCrash.Link( OSwitch_1Default , IEndSwitchDefault )
+    
+    LEndSwitchaEndOfInitLoopIndex = GraphSwitchCrash.Link( OEndSwitcha , IEndOfInitLoopIndex )
+    
+    # Input datas
+    IInitLoopSwitchIndex.Input( 0 )
+    IInitLoopSwitchMin.Input( 0 )
+    IInitLoopSwitchMax.Input( 23 )
+    IInitLoopIndex.Input( 0 )
+    IInitLoopMin.Input( 0 )
+    IInitLoopMax.Input( 31 )
+    
+    # Output Ports of the graph
+    #OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' )
+    #OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' )
+    #OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' )
+    #OSwitchEven = Switch.GetOutPort( 'Even' )
+    #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' )
+    #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' )
+    #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' )
+    return GraphSwitchCrash
 
-# Creation of InLine Nodes
-PyIsOdd = []
-PyIsOdd.append( 'from time import *   ' )
-PyIsOdd.append( 'def IsOdd(a) :       ' )
-PyIsOdd.append( '    print a,"IsOdd (PyIsOdd)"      ' )
-PyIsOdd.append( '    sleep( 1 )   ' )
-PyIsOdd.append( '    return a     ' )
-IsOdd = GraphSwitchCrash.INode( 'IsOdd' , PyIsOdd )
-IsOdd.SetName( 'IsOdd' )
-IsOdd.SetAuthor( '' )
-IsOdd.SetComment( 'Python function' )
-IsOdd.Coords( 388 , 50 )
-IsOdd.InPort( 'a' , 'long' )
-IsOdd.OutPort( 'a' , 'long' )
 
-PyIsOdd_1 = []
-PyIsOdd_1.append( 'from time import *    ' )
-PyIsOdd_1.append( 'def IsOdd(a,Even) :        ' )
-PyIsOdd_1.append( '    print a,"IsOdd (PyIsOdd_1)"       ' )
-PyIsOdd_1.append( '    sleep( 1 )    ' )
-PyIsOdd_1.append( '    return a      ' )
-IsOdd_1 = GraphSwitchCrash.INode( 'IsOdd' , PyIsOdd_1 )
-IsOdd_1.SetName( 'IsOdd_1' )
-IsOdd_1.SetAuthor( '' )
-IsOdd_1.SetComment( 'Python function' )
-IsOdd_1.Coords( 419 , 279 )
-IsOdd_1.InPort( 'a' , 'long' )
-IsOdd_1.InPort( 'Even' , 'boolean' )
-IsOdd_1.OutPort( 'a' , 'long' )
-
-# Creation of Loop Nodes
-PyInitLoopSwitch = []
-PyInitLoopSwitch.append( 'def InitLoop(Index,Min,Max) :      ' )
-PyInitLoopSwitch.append( '     return Index,Min,Max     ' )
-PyMoreInitLoopSwitch = []
-PyMoreInitLoopSwitch.append( 'def MoreLoop(Index,Min,Max) :     ' )
-PyMoreInitLoopSwitch.append( ' if Index <= Max :   ' )
-PyMoreInitLoopSwitch.append( '         DoLoop = 1     ' )
-PyMoreInitLoopSwitch.append( ' else :     ' )
-PyMoreInitLoopSwitch.append( '         DoLoop = 0     ' )
-PyMoreInitLoopSwitch.append( ' return DoLoop,Index,Min,Max     ' )
-PyNextInitLoopSwitch = []
-PyNextInitLoopSwitch.append( 'def NextLoop(Index,Min,Max) :     ' )
-PyNextInitLoopSwitch.append( ' Index = Index + 1     ' )
-PyNextInitLoopSwitch.append( ' return Index,Min,Max     ' )
-InitLoopSwitch,EndOfInitLoopSwitch = GraphSwitchCrash.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch )
-EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' )
-EndOfInitLoopSwitch.SetAuthor( '' )
-EndOfInitLoopSwitch.SetComment( '' )
-EndOfInitLoopSwitch.Coords( 766 , 127 )
-InitLoopSwitch.SetName( 'InitLoopSwitch' )
-InitLoopSwitch.SetAuthor( '' )
-InitLoopSwitch.SetComment( '' )
-InitLoopSwitch.Coords( 10 , 129 )
-InitLoopSwitch.InPort( 'Index' , 'long' )
-InitLoopSwitch.InPort( 'Min' , 'long' )
-InitLoopSwitch.InPort( 'Max' , 'long' )
-InitLoopSwitch.OutPort( 'Index' , 'long' )
-InitLoopSwitch.OutPort( 'Min' , 'long' )
-InitLoopSwitch.OutPort( 'Max' , 'long' )
-
-PyInitLoop = []
-PyInitLoop.append( 'def InitLoop(Index,Min,Max) :      ' )
-PyInitLoop.append( '   return Index,Min,Max     ' )
-PyMoreInitLoop = []
-PyMoreInitLoop.append( 'def MoreLoop(Index,Min,Max) :     ' )
-PyMoreInitLoop.append( '       if Index <= Max :   ' )
-PyMoreInitLoop.append( '               DoLoop = 1     ' )
-PyMoreInitLoop.append( '       else :     ' )
-PyMoreInitLoop.append( '               DoLoop = 0     ' )
-PyMoreInitLoop.append( '       return DoLoop,Index,Min,Max     ' )
-PyNextInitLoop = []
-PyNextInitLoop.append( 'def NextLoop(Index,Min,Max) :     ' )
-PyNextInitLoop.append( '       Index = Index + 1     ' )
-PyNextInitLoop.append( '       return Index,Min,Max     ' )
-InitLoop,EndOfInitLoop = GraphSwitchCrash.LNode( 'InitLoop' , PyInitLoop , 'MoreLoop' , PyMoreInitLoop , 'NextLoop' , PyNextInitLoop )
-EndOfInitLoop.SetName( 'EndOfInitLoop' )
-EndOfInitLoop.SetAuthor( '' )
-EndOfInitLoop.SetComment( '' )
-EndOfInitLoop.Coords( 783 , 381 )
-InitLoop.SetName( 'InitLoop' )
-InitLoop.SetAuthor( '' )
-InitLoop.SetComment( '' )
-InitLoop.Coords( 10 , 388 )
-InitLoop.InPort( 'Index' , 'long' )
-InitLoop.InPort( 'Min' , 'long' )
-InitLoop.InPort( 'Max' , 'long' )
-InitLoop.OutPort( 'Index' , 'long' )
-InitLoop.OutPort( 'Min' , 'long' )
-InitLoop.OutPort( 'Max' , 'long' )
-
-# Creation of Switch Nodes
-PySwitch = []
-PySwitch.append( 'from time import * ' )
-PySwitch.append( 'def Switch(a) :   ' )
-PySwitch.append( '    if ( a & 1 ) == 0 : ' )
-PySwitch.append( '        sleep(1)    ' )
-PySwitch.append( '    return a & 1,1-(a&1),a    ' )
-Switch,EndOfSwitch = GraphSwitchCrash.SNode( 'Switch' , PySwitch )
-EndOfSwitch.SetName( 'EndOfSwitch' )
-EndOfSwitch.SetAuthor( '' )
-EndOfSwitch.SetComment( '' )
-EndOfSwitch.Coords( 587 , 126 )
-PyEndOfSwitch = []
-EndOfSwitch.SetPyFunction( 'EndSwitch' , PyEndOfSwitch )
-EndOfSwitch.InPort( 'a' , 'long' )
-EndOfSwitch.OutPort( 'a' , 'long' )
-Switch.SetName( 'Switch' )
-Switch.SetAuthor( '' )
-Switch.SetComment( '' )
-Switch.Coords( 186 , 130 )
-Switch.InPort( 'a' , 'long' )
-Switch.OutPort( 'Odd' , 'long' )
-Switch.OutPort( 'Even' , 'int' )
-Switch.OutPort( 'a' , 'int' )
-
-PySwitch_1 = []
-PySwitch_1.append( 'from time import *  ' )
-PySwitch_1.append( 'def Switch(a) :    ' )
-PySwitch_1.append( '    if ( a & 1 ) == 0 :  ' )
-PySwitch_1.append( '        sleep(1)  ' )
-PySwitch_1.append( '    return a & 1,1-(a&1),a    ' )
-Switch_1,EndSwitch = GraphSwitchCrash.SNode( 'Switch' , PySwitch_1 )
-EndSwitch.SetName( 'EndSwitch' )
-EndSwitch.SetAuthor( '' )
-EndSwitch.SetComment( '' )
-EndSwitch.Coords( 605 , 382 )
-PyEndSwitch = []
-EndSwitch.SetPyFunction( 'EndSwitch' , PyEndSwitch )
-EndSwitch.InPort( 'a' , 'long' )
-EndSwitch.OutPort( 'a' , 'long' )
-Switch_1.SetName( 'Switch_1' )
-Switch_1.SetAuthor( '' )
-Switch_1.SetComment( '' )
-Switch_1.Coords( 193 , 388 )
-Switch_1.InPort( 'a' , 'long' )
-Switch_1.OutPort( 'Odd' , 'long' )
-Switch_1.OutPort( 'Even' , 'int' )
-Switch_1.OutPort( 'a' , 'int' )
-
-# Creation of Links
-IsOdda = IsOdd.Port( 'a' )
-EndOfSwitcha = GraphSwitchCrash.Link( IsOdda , EndOfSwitch.Port( 'a' ) )
-EndOfSwitcha.AddCoord( 1 , 573 , 160 )
-EndOfSwitcha.AddCoord( 2 , 572 , 130 )
-
-InitLoopSwitchIndex = InitLoopSwitch.Port( 'Index' )
-Switcha = GraphSwitchCrash.Link( InitLoopSwitchIndex , Switch.Port( 'a' ) )
-
-InitLoopSwitchMin = InitLoopSwitch.Port( 'Min' )
-EndOfInitLoopSwitchMin = GraphSwitchCrash.Link( InitLoopSwitchMin , EndOfInitLoopSwitch.Port( 'Min' ) )
-
-InitLoopSwitchMax = InitLoopSwitch.Port( 'Max' )
-EndOfInitLoopSwitchMax = GraphSwitchCrash.Link( InitLoopSwitchMax , EndOfInitLoopSwitch.Port( 'Max' ) )
-
-SwitchOdd = Switch.Port( 'Odd' )
-IsOddInGate = GraphSwitchCrash.Link( SwitchOdd , IsOdd.Port( 'InGate' ) )
-
-Switcha = Switch.Port( 'a' )
-IsOdda = GraphSwitchCrash.Link( Switcha , IsOdd.Port( 'a' ) )
-IsOdda.AddCoord( 1 , 365 , 129 )
-IsOdda.AddCoord( 2 , 365 , 222 )
-
-SwitchDefault = Switch.Port( 'Default' )
-EndOfSwitchDefault = GraphSwitchCrash.Link( SwitchDefault , EndOfSwitch.Port( 'Default' ) )
-EndOfSwitchDefault.AddCoord( 1 , 572 , 194 )
-EndOfSwitchDefault.AddCoord( 2 , 571 , 257 )
-
-EndOfSwitcha = EndOfSwitch.Port( 'a' )
-EndOfInitLoopSwitchIndex = GraphSwitchCrash.Link( EndOfSwitcha , EndOfInitLoopSwitch.Port( 'Index' ) )
-
-IsOdd_1a = IsOdd_1.Port( 'a' )
-EndSwitcha = GraphSwitchCrash.Link( IsOdd_1a , EndSwitch.Port( 'a' ) )
-EndSwitcha.AddCoord( 1 , 599 , 416 )
-EndSwitcha.AddCoord( 2 , 598 , 358 )
-
-InitLoopIndex = InitLoop.Port( 'Index' )
-Switch_1a = GraphSwitchCrash.Link( InitLoopIndex , Switch_1.Port( 'a' ) )
-
-InitLoopMin = InitLoop.Port( 'Min' )
-EndOfInitLoopMin = GraphSwitchCrash.Link( InitLoopMin , EndOfInitLoop.Port( 'Min' ) )
-
-InitLoopMax = InitLoop.Port( 'Max' )
-EndOfInitLoopMax = GraphSwitchCrash.Link( InitLoopMax , EndOfInitLoop.Port( 'Max' ) )
-
-Switch_1Odd = Switch_1.Port( 'Odd' )
-IsOdd_1InGate = GraphSwitchCrash.Link( Switch_1Odd , IsOdd_1.Port( 'InGate' ) )
-
-Switch_1Even = Switch_1.Port( 'Even' )
-EndSwitchDefault = GraphSwitchCrash.Link( Switch_1Even , EndSwitch.Port( 'Default' ) )
-
-IsOdd_1Even = GraphSwitchCrash.Link( Switch_1Even , IsOdd_1.Port( 'Even' ) )
-IsOdd_1Even.AddCoord( 1 , 402 , 388 )
-IsOdd_1Even.AddCoord( 2 , 402 , 450 )
-
-Switch_1a = Switch_1.Port( 'a' )
-IsOdd_1a = GraphSwitchCrash.Link( Switch_1a , IsOdd_1.Port( 'a' ) )
-IsOdd_1a.AddCoord( 1 , 377 , 358 )
-IsOdd_1a.AddCoord( 2 , 378 , 481 )
-
-EndSwitcha = EndSwitch.Port( 'a' )
-EndOfInitLoopIndex = GraphSwitchCrash.Link( EndSwitcha , EndOfInitLoop.Port( 'Index' ) )
-
-# Creation of Input datas
-InitLoopSwitchIndex = InitLoopSwitch.Input( 'Index' , 0)
-InitLoopSwitchMin = InitLoopSwitch.Input( 'Min' , 0)
-InitLoopSwitchMax = InitLoopSwitch.Input( 'Max' , 100)
-InitLoopIndex = InitLoop.Input( 'Index' , 0)
-InitLoopMin = InitLoop.Input( 'Min' , 0)
-InitLoopMax = InitLoop.Input( 'Max' , 100)
-
-# Creation of Output variables
-EndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.Port( 'Index' )
-EndOfInitLoopSwitchMin = EndOfInitLoopSwitch.Port( 'Min' )
-EndOfInitLoopSwitchMax = EndOfInitLoopSwitch.Port( 'Max' )
-SwitchEven = Switch.Port( 'Even' )
-EndOfInitLoopIndex = EndOfInitLoop.Port( 'Index' )
-EndOfInitLoopMin = EndOfInitLoop.Port( 'Min' )
-EndOfInitLoopMax = EndOfInitLoop.Port( 'Max' )
-
-GraphSwitchCrash.Run()
-GraphSwitchCrash.DoneW()
-print GraphSwitchCrash.State()
-GraphSwitchCrash.PrintPorts()
+GraphSwitchCrash = DefGraphSwitchCrash()
index 50c0b252b42ce3beb562fabe801c9b95761a4ff2..ba5135b671ac8876f9352d6d101cd029795a9a4a 100755 (executable)
-<!DOCTYPE Dataflow>
+<!DOCTYPE SuperGraph>
+<supergraph>
 <dataflow>
 <info-list>
 <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>GraphSwitchCrash</node-name>
-   <kind>1</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>GraphSwitchCrash</node-name>
+    <kind>1</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>GraphSwitchCrash</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>InitLoopSwitch\Index</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>InitLoopSwitch__Index</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>InitLoopSwitch\Min</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>InitLoopSwitch__Min</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>InitLoopSwitch\Max</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>InitLoopSwitch__Max</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>InitLoop\Index</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>InitLoop__Index</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>InitLoop\Min</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>InitLoop__Min</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>InitLoop\Max</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>InitLoop__Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>EndOfInitLoopSwitch\Index</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>EndOfInitLoopSwitch__Index</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>EndOfInitLoopSwitch\Min</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>EndOfInitLoopSwitch__Min</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>EndOfInitLoopSwitch\Max</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>EndOfInitLoopSwitch__Max</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>int</outParameter-type>
-      <outParameter-name>Switch\Even</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Switch__Even</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>EndOfInitLoop\Index</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>EndOfInitLoop__Index</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>EndOfInitLoop\Min</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>EndOfInitLoop__Min</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>EndOfInitLoop\Max</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list/>
-   <creation-date>14/10/2003 - 10:29:4</creation-date>
-   <lastmodification-date>15/10/2003 - 18:11:6</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>0</x-position>
-   <y-position>0</y-position>  </node> </info-list>
- <node-list>
+       <outParameter-name>EndOfInitLoop__Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>14/10/2003 - 10:29:4</creation-date>
+    <lastmodification-date>15/2/2005 - 9:47:50</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>?</comment>
+    <x-position>0</x-position>
+    <y-position>0</y-position>   </node>  </info-list>
 <node-list>
 <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>IsOdd</node-name>
-   <kind>3</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>IsOdd</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>IsOdd</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>a</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>a</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>IsOdd</FuncName>
-     <PyFunc><![CDATA[from time import *   ]]></PyFunc>
-     <PyFunc><![CDATA[def IsOdd(a) :       ]]></PyFunc>
-     <PyFunc><![CDATA[    print a,"IsOdd (IsOdd)"      ]]></PyFunc>
-     <PyFunc><![CDATA[    sleep( 1 )   ]]></PyFunc>
-     <PyFunc><![CDATA[    return a     ]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>15/10/2003 - 18:11:6</creation-date>
-   <lastmodification-date>15/10/2003 - 18:11:6</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>Python function</comment>
-   <x-position>388</x-position>
-   <y-position>50</y-position>  </node>
-  <node>
+      <PyFunc><![CDATA[from time import *   ]]></PyFunc>
+      <PyFunc><![CDATA[def IsOdd(a) :       ]]></PyFunc>
+      <PyFunc><![CDATA[    print a,"IsOdd (IsOdd)"      ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep( 1 )   ]]></PyFunc>
+      <PyFunc><![CDATA[    return a     ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>15/2/2005 - 9:47:50</creation-date>
+    <lastmodification-date>15/2/2005 - 9:47:50</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Python function</comment>
+    <x-position>387</x-position>
+    <y-position>58</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>InitLoopSwitch</node-name>
-   <kind>4</kind>
-   <coupled-node>EndOfInitLoopSwitch</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>InitLoopSwitch</node-name>
+    <kind>4</kind>
+    <coupled-node>EndOfInitLoopSwitch</coupled-node>
+    <service>
 <service-name>InitLoopSwitch</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>Index</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>Index</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>Min</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>Min</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>Max</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Index</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Index</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Min</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Min</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Max</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
+       <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>InitLoop</FuncName>
-     <PyFunc><![CDATA[def InitLoop(Index,Min,Max) :      ]]></PyFunc>
-     <PyFunc><![CDATA[ return Index,Min,Max     ]]></PyFunc>    </PyFunction>
-    <PyFunction>
+      <PyFunc><![CDATA[def InitLoop(Index,Min,Max) :      ]]></PyFunc>
+      <PyFunc><![CDATA[        return Index,Min,Max     ]]></PyFunc>     </PyFunction>
+     <PyFunction>
 <FuncName>MoreLoop</FuncName>
-     <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) :     ]]></PyFunc>
-     <PyFunc><![CDATA[ if Index <= Max :   ]]></PyFunc>
-     <PyFunc><![CDATA[         DoLoop = 1     ]]></PyFunc>
-     <PyFunc><![CDATA[ else :     ]]></PyFunc>
-     <PyFunc><![CDATA[         DoLoop = 0     ]]></PyFunc>
-     <PyFunc><![CDATA[ return DoLoop,Index,Min,Max     ]]></PyFunc>    </PyFunction>
-    <PyFunction>
+      <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) :     ]]></PyFunc>
+      <PyFunc><![CDATA[        if Index <= Max :   ]]></PyFunc>
+      <PyFunc><![CDATA[                DoLoop = 1     ]]></PyFunc>
+      <PyFunc><![CDATA[        else :     ]]></PyFunc>
+      <PyFunc><![CDATA[                DoLoop = 0     ]]></PyFunc>
+      <PyFunc><![CDATA[        return DoLoop,Index,Min,Max     ]]></PyFunc>     </PyFunction>
+     <PyFunction>
 <FuncName>NextLoop</FuncName>
-     <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>15/10/2003 - 18:11:6</creation-date>
-   <lastmodification-date>15/10/2003 - 18:11:6</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>10</x-position>
-   <y-position>129</y-position>  </node>
-  <node>
+      <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>15/2/2005 - 9:47:50</creation-date>
+    <lastmodification-date>15/2/2005 - 9:47:50</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>10</x-position>
+    <y-position>129</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>EndOfInitLoopSwitch</node-name>
-   <kind>5</kind>
-   <coupled-node>InitLoopSwitch</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>EndOfInitLoopSwitch</node-name>
+    <kind>5</kind>
+    <coupled-node>InitLoopSwitch</coupled-node>
+    <service>
 <service-name>EndOfInitLoopSwitch</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>Index</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>Index</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>Min</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>Min</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>Max</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Index</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Index</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Min</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Min</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Max</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
-<PyFunction/>   </PyFunction-list>
-   <creation-date>15/10/2003 - 18:11:6</creation-date>
-   <lastmodification-date>15/10/2003 - 18:11:6</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>766</x-position>
-   <y-position>127</y-position>  </node>
-  <node>
+       <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>?</FuncName>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>15/2/2005 - 9:47:50</creation-date>
+    <lastmodification-date>15/2/2005 - 9:47:50</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>766</x-position>
+    <y-position>127</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>Switch</node-name>
-   <kind>6</kind>
-   <coupled-node>EndOfSwitch</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>Switch</node-name>
+    <kind>6</kind>
+    <coupled-node>EndOfSwitch</coupled-node>
+    <service>
 <service-name>Switch</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>a</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Odd</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>int</outParameter-type>
-      <outParameter-name>Even</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Even</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>int</outParameter-type>
-      <outParameter-name>a</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>Switch</FuncName>
-     <PyFunc><![CDATA[from time import * ]]></PyFunc>
-     <PyFunc><![CDATA[def Switch(a) :   ]]></PyFunc>
-     <PyFunc><![CDATA[    if ( a & 1 ) == 0 : ]]></PyFunc>
-     <PyFunc><![CDATA[        sleep(1)    ]]></PyFunc>
-     <PyFunc><![CDATA[    return a & 1,1-(a&1),a    ]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>15/10/2003 - 18:11:6</creation-date>
-   <lastmodification-date>15/10/2003 - 18:11:6</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>186</x-position>
-   <y-position>130</y-position>  </node>
-  <node>
+      <PyFunc><![CDATA[from time import * ]]></PyFunc>
+      <PyFunc><![CDATA[def Switch(a) :   ]]></PyFunc>
+      <PyFunc><![CDATA[    if ( a & 1 ) == 0 : ]]></PyFunc>
+      <PyFunc><![CDATA[        sleep(1)    ]]></PyFunc>
+      <PyFunc><![CDATA[    return a & 1,1-(a&1),a    ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>15/2/2005 - 9:47:50</creation-date>
+    <lastmodification-date>15/2/2005 - 9:47:50</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>186</x-position>
+    <y-position>130</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>EndOfSwitch</node-name>
-   <kind>7</kind>
-   <coupled-node>Switch</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>EndOfSwitch</node-name>
+    <kind>7</kind>
+    <coupled-node>Switch</coupled-node>
+    <service>
 <service-name>EndOfSwitch</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>a</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>a</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
-<PyFunction/>   </PyFunction-list>
-   <creation-date>15/10/2003 - 18:11:6</creation-date>
-   <lastmodification-date>15/10/2003 - 18:11:6</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>587</x-position>
-   <y-position>126</y-position>  </node>
-  <node>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>?</FuncName>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>15/2/2005 - 9:47:50</creation-date>
+    <lastmodification-date>15/2/2005 - 9:47:50</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>587</x-position>
+    <y-position>126</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>IsOdd_1</node-name>
-   <kind>3</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>IsOdd_1</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>IsOdd_1</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>a</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>a</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>boolean</inParameter-type>
-      <inParameter-name>Even</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>Even</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>a</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>IsOdd</FuncName>
-     <PyFunc><![CDATA[from time import *    ]]></PyFunc>
-     <PyFunc><![CDATA[def IsOdd(a,Even) :        ]]></PyFunc>
-     <PyFunc><![CDATA[    print a,"IsOdd (IsOdd_1)"       ]]></PyFunc>
-     <PyFunc><![CDATA[    sleep( 1 )    ]]></PyFunc>
-     <PyFunc><![CDATA[    return a      ]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>15/10/2003 - 18:11:6</creation-date>
-   <lastmodification-date>15/10/2003 - 18:11:6</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>Python function</comment>
-   <x-position>419</x-position>
-   <y-position>279</y-position>  </node>
-  <node>
+      <PyFunc><![CDATA[from time import *    ]]></PyFunc>
+      <PyFunc><![CDATA[def IsOdd(a,Even) :        ]]></PyFunc>
+      <PyFunc><![CDATA[    print a,"IsOdd (IsOdd_1)"       ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep( 1 )    ]]></PyFunc>
+      <PyFunc><![CDATA[    return a      ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>15/2/2005 - 9:47:50</creation-date>
+    <lastmodification-date>15/2/2005 - 9:47:50</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Python function</comment>
+    <x-position>417</x-position>
+    <y-position>287</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>InitLoop</node-name>
-   <kind>4</kind>
-   <coupled-node>EndOfInitLoop</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>InitLoop</node-name>
+    <kind>4</kind>
+    <coupled-node>EndOfInitLoop</coupled-node>
+    <service>
 <service-name>InitLoop</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>Index</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>Index</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>Min</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>Min</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>Max</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Index</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Index</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Min</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Min</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Max</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
+       <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>InitLoop</FuncName>
-     <PyFunc><![CDATA[def InitLoop(Index,Min,Max) :      ]]></PyFunc>
-     <PyFunc><![CDATA[ return Index,Min,Max     ]]></PyFunc>    </PyFunction>
-    <PyFunction>
+      <PyFunc><![CDATA[def InitLoop(Index,Min,Max) :      ]]></PyFunc>
+      <PyFunc><![CDATA[        return Index,Min,Max     ]]></PyFunc>     </PyFunction>
+     <PyFunction>
 <FuncName>MoreLoop</FuncName>
-     <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) :     ]]></PyFunc>
-     <PyFunc><![CDATA[ if Index <= Max :   ]]></PyFunc>
-     <PyFunc><![CDATA[         DoLoop = 1     ]]></PyFunc>
-     <PyFunc><![CDATA[ else :     ]]></PyFunc>
-     <PyFunc><![CDATA[         DoLoop = 0     ]]></PyFunc>
-     <PyFunc><![CDATA[ return DoLoop,Index,Min,Max     ]]></PyFunc>    </PyFunction>
-    <PyFunction>
+      <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) :     ]]></PyFunc>
+      <PyFunc><![CDATA[        if Index <= Max :   ]]></PyFunc>
+      <PyFunc><![CDATA[                DoLoop = 1     ]]></PyFunc>
+      <PyFunc><![CDATA[        else :     ]]></PyFunc>
+      <PyFunc><![CDATA[                DoLoop = 0     ]]></PyFunc>
+      <PyFunc><![CDATA[        return DoLoop,Index,Min,Max     ]]></PyFunc>     </PyFunction>
+     <PyFunction>
 <FuncName>NextLoop</FuncName>
-     <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>15/10/2003 - 18:11:6</creation-date>
-   <lastmodification-date>15/10/2003 - 18:11:6</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>10</x-position>
-   <y-position>388</y-position>  </node>
-  <node>
+      <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>15/2/2005 - 9:47:50</creation-date>
+    <lastmodification-date>15/2/2005 - 9:47:50</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>10</x-position>
+    <y-position>388</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>EndOfInitLoop</node-name>
-   <kind>5</kind>
-   <coupled-node>InitLoop</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>EndOfInitLoop</node-name>
+    <kind>5</kind>
+    <coupled-node>InitLoop</coupled-node>
+    <service>
 <service-name>EndOfInitLoop</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>Index</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>Index</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>Min</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>Min</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>Max</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Index</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Index</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Min</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Min</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Max</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
-<PyFunction/>   </PyFunction-list>
-   <creation-date>15/10/2003 - 18:11:6</creation-date>
-   <lastmodification-date>15/10/2003 - 18:11:6</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>783</x-position>
-   <y-position>381</y-position>  </node>
-  <node>
+       <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>?</FuncName>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>15/2/2005 - 9:47:50</creation-date>
+    <lastmodification-date>15/2/2005 - 9:47:50</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>783</x-position>
+    <y-position>381</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>Switch_1</node-name>
-   <kind>6</kind>
-   <coupled-node>EndSwitch</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>Switch_1</node-name>
+    <kind>6</kind>
+    <coupled-node>EndSwitch</coupled-node>
+    <service>
 <service-name>Switch_1</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>a</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Odd</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>int</outParameter-type>
-      <outParameter-name>Even</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Even</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>int</outParameter-type>
-      <outParameter-name>a</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>Switch</FuncName>
-     <PyFunc><![CDATA[from time import *  ]]></PyFunc>
-     <PyFunc><![CDATA[def Switch(a) :    ]]></PyFunc>
-     <PyFunc><![CDATA[    if ( a & 1 ) == 0 :  ]]></PyFunc>
-     <PyFunc><![CDATA[        sleep(1)  ]]></PyFunc>
-     <PyFunc><![CDATA[    return a & 1,1-(a&1),a    ]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>15/10/2003 - 18:11:6</creation-date>
-   <lastmodification-date>15/10/2003 - 18:11:6</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>193</x-position>
-   <y-position>388</y-position>  </node>
-  <node>
+      <PyFunc><![CDATA[from time import *  ]]></PyFunc>
+      <PyFunc><![CDATA[def Switch(a) :    ]]></PyFunc>
+      <PyFunc><![CDATA[    if ( a & 1 ) == 0 :  ]]></PyFunc>
+      <PyFunc><![CDATA[        sleep(1)  ]]></PyFunc>
+      <PyFunc><![CDATA[    return a & 1,1-(a&1),a    ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>15/2/2005 - 9:47:50</creation-date>
+    <lastmodification-date>15/2/2005 - 9:47:50</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>193</x-position>
+    <y-position>388</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>EndSwitch</node-name>
-   <kind>7</kind>
-   <coupled-node>Switch_1</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>EndSwitch</node-name>
+    <kind>7</kind>
+    <coupled-node>Switch_1</coupled-node>
+    <service>
 <service-name>EndSwitch</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>a</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>a</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
-<PyFunction/>   </PyFunction-list>
-   <creation-date>15/10/2003 - 18:11:6</creation-date>
-   <lastmodification-date>15/10/2003 - 18:11:6</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>605</x-position>
-   <y-position>382</y-position>  </node> </node-list>
- <link-list>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>?</FuncName>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>15/2/2005 - 9:47:50</creation-date>
+    <lastmodification-date>15/2/2005 - 9:47:50</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>605</x-position>
+    <y-position>382</y-position>   </node>  </node-list>
+  <link-list>
 <link>
 <fromnode-name>IsOdd</fromnode-name>
-   <fromserviceparameter-name>a</fromserviceparameter-name>
-   <tonode-name>EndOfSwitch</tonode-name>
-   <toserviceparameter-name>a</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfSwitch</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>573</x>
-     <y>160</y>    </coord>
-    <coord>
 <x>572</x>
-     <y>130</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>157</y>     </coord>
+     <coord>
+<x>572</x>
+      <y>130</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>InitLoopSwitch</fromnode-name>
-   <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
-   <tonode-name>EndOfInitLoopSwitch</tonode-name>
-   <toserviceparameter-name>DoLoop</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+    <tonode-name>EndOfInitLoopSwitch</tonode-name>
+    <toserviceparameter-name>DoLoop</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>InitLoopSwitch</fromnode-name>
-   <fromserviceparameter-name>Index</fromserviceparameter-name>
-   <tonode-name>Switch</tonode-name>
-   <toserviceparameter-name>a</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>Index</fromserviceparameter-name>
+    <tonode-name>Switch</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>InitLoopSwitch</fromnode-name>
-   <fromserviceparameter-name>Min</fromserviceparameter-name>
-   <tonode-name>EndOfInitLoopSwitch</tonode-name>
-   <toserviceparameter-name>Min</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>Min</fromserviceparameter-name>
+    <tonode-name>EndOfInitLoopSwitch</tonode-name>
+    <toserviceparameter-name>Min</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>InitLoopSwitch</fromnode-name>
-   <fromserviceparameter-name>Max</fromserviceparameter-name>
-   <tonode-name>EndOfInitLoopSwitch</tonode-name>
-   <toserviceparameter-name>Max</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>Max</fromserviceparameter-name>
+    <tonode-name>EndOfInitLoopSwitch</tonode-name>
+    <toserviceparameter-name>Max</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>EndOfInitLoopSwitch</fromnode-name>
-   <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
-   <tonode-name>InitLoopSwitch</tonode-name>
-   <toserviceparameter-name>DoLoop</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+    <tonode-name>InitLoopSwitch</tonode-name>
+    <toserviceparameter-name>DoLoop</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>Switch</fromnode-name>
-   <fromserviceparameter-name>Odd</fromserviceparameter-name>
-   <tonode-name>IsOdd</tonode-name>
-   <toserviceparameter-name>InGate</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>IsOdd</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>Switch</fromnode-name>
-   <fromserviceparameter-name>a</fromserviceparameter-name>
-   <tonode-name>IsOdd</tonode-name>
-   <toserviceparameter-name>a</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>IsOdd</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list>
 <coord>
 <x>365</x>
-     <y>129</y>    </coord>
-    <coord>
+      <y>129</y>     </coord>
+     <coord>
 <x>365</x>
-     <y>222</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>201</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>Switch</fromnode-name>
-   <fromserviceparameter-name>Default</fromserviceparameter-name>
-   <tonode-name>EndOfSwitch</tonode-name>
-   <toserviceparameter-name>Default</toserviceparameter-name>
-   <coord-list>
-<coord>
-<x>572</x>
-     <y>194</y>    </coord>
-    <coord>
-<x>571</x>
-     <y>257</y>    </coord>   </coord-list>  </link>
-  <link>
+    <fromserviceparameter-name>Default</fromserviceparameter-name>
+    <tonode-name>EndOfSwitch</tonode-name>
+    <toserviceparameter-name>Default</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>EndOfSwitch</fromnode-name>
-   <fromserviceparameter-name>a</fromserviceparameter-name>
-   <tonode-name>EndOfInitLoopSwitch</tonode-name>
-   <toserviceparameter-name>Index</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfInitLoopSwitch</tonode-name>
+    <toserviceparameter-name>Index</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>IsOdd_1</fromnode-name>
-   <fromserviceparameter-name>a</fromserviceparameter-name>
-   <tonode-name>EndSwitch</tonode-name>
-   <toserviceparameter-name>a</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndSwitch</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>599</x>
-     <y>416</y>    </coord>
-    <coord>
-<x>598</x>
-     <y>358</y>    </coord>   </coord-list>  </link>
-  <link>
+<x>593</x>
+      <y>411</y>     </coord>
+     <coord>
+<x>593</x>
+      <y>358</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>InitLoop</fromnode-name>
-   <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
-   <tonode-name>EndOfInitLoop</tonode-name>
-   <toserviceparameter-name>DoLoop</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+    <tonode-name>EndOfInitLoop</tonode-name>
+    <toserviceparameter-name>DoLoop</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>InitLoop</fromnode-name>
-   <fromserviceparameter-name>Index</fromserviceparameter-name>
-   <tonode-name>Switch_1</tonode-name>
-   <toserviceparameter-name>a</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>Index</fromserviceparameter-name>
+    <tonode-name>Switch_1</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>InitLoop</fromnode-name>
-   <fromserviceparameter-name>Min</fromserviceparameter-name>
-   <tonode-name>EndOfInitLoop</tonode-name>
-   <toserviceparameter-name>Min</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>Min</fromserviceparameter-name>
+    <tonode-name>EndOfInitLoop</tonode-name>
+    <toserviceparameter-name>Min</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>InitLoop</fromnode-name>
-   <fromserviceparameter-name>Max</fromserviceparameter-name>
-   <tonode-name>EndOfInitLoop</tonode-name>
-   <toserviceparameter-name>Max</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>Max</fromserviceparameter-name>
+    <tonode-name>EndOfInitLoop</tonode-name>
+    <toserviceparameter-name>Max</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>EndOfInitLoop</fromnode-name>
-   <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
-   <tonode-name>InitLoop</tonode-name>
-   <toserviceparameter-name>DoLoop</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
-<fromnode-name>Switch_1</fromnode-name>
-   <fromserviceparameter-name>Odd</fromserviceparameter-name>
-   <tonode-name>IsOdd_1</tonode-name>
-   <toserviceparameter-name>InGate</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+    <tonode-name>InitLoop</tonode-name>
+    <toserviceparameter-name>DoLoop</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>Switch_1</fromnode-name>
-   <fromserviceparameter-name>Even</fromserviceparameter-name>
-   <tonode-name>EndSwitch</tonode-name>
-   <toserviceparameter-name>Default</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>IsOdd_1</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>Switch_1</fromnode-name>
-   <fromserviceparameter-name>Even</fromserviceparameter-name>
-   <tonode-name>IsOdd_1</tonode-name>
-   <toserviceparameter-name>Even</toserviceparameter-name>
-   <coord-list>
-<coord>
-<x>402</x>
-     <y>388</y>    </coord>
-    <coord>
-<x>402</x>
-     <y>450</y>    </coord>   </coord-list>  </link>
-  <link>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>IsOdd_1</tonode-name>
+    <toserviceparameter-name>Even</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>Switch_1</fromnode-name>
-   <fromserviceparameter-name>a</fromserviceparameter-name>
-   <tonode-name>IsOdd_1</tonode-name>
-   <toserviceparameter-name>a</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>IsOdd_1</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list>
 <coord>
 <x>377</x>
-     <y>358</y>    </coord>
-    <coord>
-<x>378</x>
-     <y>481</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>358</y>     </coord>
+     <coord>
+<x>377</x>
+      <y>460</y>     </coord>    </coord-list>   </link>
+   <link>
+<fromnode-name>Switch_1</fromnode-name>
+    <fromserviceparameter-name>Default</fromserviceparameter-name>
+    <tonode-name>EndSwitch</tonode-name>
+    <toserviceparameter-name>Default</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>EndSwitch</fromnode-name>
-   <fromserviceparameter-name>a</fromserviceparameter-name>
-   <tonode-name>EndOfInitLoop</tonode-name>
-   <toserviceparameter-name>Index</toserviceparameter-name>
-   <coord-list/>  </link> </link-list>
- <data-list>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfInitLoop</tonode-name>
+    <toserviceparameter-name>Index</toserviceparameter-name>
+    <coord-list/>   </link>  </link-list>
 <data-list>
 <data>
 <fromnode-name>GraphSwitchCrash</fromnode-name>
-   <fromserviceparameter-name>InitLoopSwitch\Index</fromserviceparameter-name>
-   <tonode-name>InitLoopSwitch</tonode-name>
-   <toserviceparameter-name>Index</toserviceparameter-name>
-   <data-value>
+    <fromserviceparameter-name>InitLoopSwitch__Index</fromserviceparameter-name>
+    <tonode-name>InitLoopSwitch</tonode-name>
+    <toserviceparameter-name>Index</toserviceparameter-name>
+    <data-value>
 <value-type>3</value-type>
-    <value>0</value>   </data-value>
-   <coord-list/>  </data>
-  <data>
+     <value>0</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
 <fromnode-name>GraphSwitchCrash</fromnode-name>
-   <fromserviceparameter-name>InitLoopSwitch\Min</fromserviceparameter-name>
-   <tonode-name>InitLoopSwitch</tonode-name>
-   <toserviceparameter-name>Min</toserviceparameter-name>
-   <data-value>
+    <fromserviceparameter-name>InitLoopSwitch__Min</fromserviceparameter-name>
+    <tonode-name>InitLoopSwitch</tonode-name>
+    <toserviceparameter-name>Min</toserviceparameter-name>
+    <data-value>
 <value-type>3</value-type>
-    <value>0</value>   </data-value>
-   <coord-list/>  </data>
-  <data>
+     <value>0</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
 <fromnode-name>GraphSwitchCrash</fromnode-name>
-   <fromserviceparameter-name>InitLoopSwitch\Max</fromserviceparameter-name>
-   <tonode-name>InitLoopSwitch</tonode-name>
-   <toserviceparameter-name>Max</toserviceparameter-name>
-   <data-value>
+    <fromserviceparameter-name>InitLoopSwitch__Max</fromserviceparameter-name>
+    <tonode-name>InitLoopSwitch</tonode-name>
+    <toserviceparameter-name>Max</toserviceparameter-name>
+    <data-value>
 <value-type>3</value-type>
-    <value>100</value>   </data-value>
-   <coord-list/>  </data>
-  <data>
+     <value>23</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
 <fromnode-name>GraphSwitchCrash</fromnode-name>
-   <fromserviceparameter-name>InitLoop\Index</fromserviceparameter-name>
-   <tonode-name>InitLoop</tonode-name>
-   <toserviceparameter-name>Index</toserviceparameter-name>
-   <data-value>
+    <fromserviceparameter-name>InitLoop__Index</fromserviceparameter-name>
+    <tonode-name>InitLoop</tonode-name>
+    <toserviceparameter-name>Index</toserviceparameter-name>
+    <data-value>
 <value-type>3</value-type>
-    <value>0</value>   </data-value>
-   <coord-list/>  </data>
-  <data>
+     <value>0</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
 <fromnode-name>GraphSwitchCrash</fromnode-name>
-   <fromserviceparameter-name>InitLoop\Min</fromserviceparameter-name>
-   <tonode-name>InitLoop</tonode-name>
-   <toserviceparameter-name>Min</toserviceparameter-name>
-   <data-value>
+    <fromserviceparameter-name>InitLoop__Min</fromserviceparameter-name>
+    <tonode-name>InitLoop</tonode-name>
+    <toserviceparameter-name>Min</toserviceparameter-name>
+    <data-value>
 <value-type>3</value-type>
-    <value>0</value>   </data-value>
-   <coord-list/>  </data>
-  <data>
+     <value>0</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
 <fromnode-name>GraphSwitchCrash</fromnode-name>
-   <fromserviceparameter-name>InitLoop\Max</fromserviceparameter-name>
-   <tonode-name>InitLoop</tonode-name>
-   <toserviceparameter-name>Max</toserviceparameter-name>
-   <data-value>
+    <fromserviceparameter-name>InitLoop__Max</fromserviceparameter-name>
+    <tonode-name>InitLoop</tonode-name>
+    <toserviceparameter-name>Max</toserviceparameter-name>
+    <data-value>
 <value-type>3</value-type>
-    <value>100</value>   </data-value>
-   <coord-list/>  </data> </data-list></dataflow>
+     <value>31</value>    </data-value>
+    <coord-list/>   </data>  </data-list> </dataflow></supergraph>
index 4706bb05bc120563f7f8ce94e77e203c9b672d95..6fd030e6f7683a6c1e59a7f8f5d6cb45af0c0f07 100644 (file)
@@ -1,15 +1,15 @@
 
-# Generated python file of Graph GraphSwitch_1
+# Generated python file of Graph GraphSwitchErrExec
 
 from SuperV import *
 
-# Graph creation of GraphSwitch_1
-def DefGraphSwitch_1() :
-    GraphSwitch_1 = Graph( 'GraphSwitch_1' )
-    GraphSwitch_1.SetName( 'GraphSwitch_1' )
-    GraphSwitch_1.SetAuthor( '' )
-    GraphSwitch_1.SetComment( '' )
-    GraphSwitch_1.Coords( 0 , 0 )
+# Graph creation of GraphSwitchErrExec
+def DefGraphSwitchErrExec() :
+    GraphSwitchErrExec = Graph( 'GraphSwitchErrExec' )
+    GraphSwitchErrExec.SetName( 'GraphSwitchErrExec' )
+    GraphSwitchErrExec.SetAuthor( 'JR' )
+    GraphSwitchErrExec.SetComment( '' )
+    GraphSwitchErrExec.Coords( 0 , 0 )
     
     # Creation of Factory Nodes
     
@@ -20,7 +20,7 @@ def DefGraphSwitch_1() :
     PyIsOdd.append( '    print a,"IsOdd (GraphSwitch)"      ' )
     PyIsOdd.append( '    sleep( 1 )   ' )
     PyIsOdd.append( '    return a     ' )
-    IsOdd = GraphSwitch_1.INode( 'IsOdd' , PyIsOdd )
+    IsOdd = GraphSwitchErrExec.INode( 'IsOdd' , PyIsOdd )
     IsOdd.SetName( 'IsOdd' )
     IsOdd.SetAuthor( '' )
     IsOdd.SetComment( 'Python function' )
@@ -36,7 +36,7 @@ def DefGraphSwitch_1() :
     PyIsEven.append( '    print a,"IsEven (GraphSwitch)"       ' )
     PyIsEven.append( '    sleep( 1 )    ' )
     PyIsEven.append( '    return a      ' )
-    IsEven = GraphSwitch_1.INode( 'IsEven' , PyIsEven )
+    IsEven = GraphSwitchErrExec.INode( 'IsEven' , PyIsEven )
     IsEven.SetName( 'IsEven' )
     IsEven.SetAuthor( '' )
     IsEven.SetComment( 'Compute Node' )
@@ -62,11 +62,11 @@ def DefGraphSwitch_1() :
     PyNextInitLoopSwitch.append( 'def NextLoop(Index,Min,Max) :      ' )
     PyNextInitLoopSwitch.append( '     Index = Index - 1      ' )
     PyNextInitLoopSwitch.append( '     return Index,Min,Max      ' )
-    InitLoopSwitch,EndOfInitLoopSwitch = GraphSwitch_1.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch )
+    InitLoopSwitch,EndOfInitLoopSwitch = GraphSwitchErrExec.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch )
     EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' )
     EndOfInitLoopSwitch.SetAuthor( '' )
     EndOfInitLoopSwitch.SetComment( 'Compute Node' )
-    EndOfInitLoopSwitch.Coords( 766 , 127 )
+    EndOfInitLoopSwitch.Coords( 772 , 169 )
     PyEndOfInitLoopSwitch = []
     EndOfInitLoopSwitch.SetPyFunction( '' , PyEndOfInitLoopSwitch )
     IInitLoopSwitchDoLoop = InitLoopSwitch.GetInPort( 'DoLoop' )
@@ -104,11 +104,11 @@ def DefGraphSwitch_1() :
     PySwitch.append( '    if ( a & 1 ) == 0 :     ' )
     PySwitch.append( '        sleep(1)        ' )
     PySwitch.append( '    return a & 1,1-(a&1),a        ' )
-    Switch,EndOfSwitch = GraphSwitch_1.SNode( 'Switch' , PySwitch )
+    Switch,EndOfSwitch = GraphSwitchErrExec.SNode( 'Switch' , PySwitch )
     EndOfSwitch.SetName( 'EndOfSwitch' )
     EndOfSwitch.SetAuthor( '' )
     EndOfSwitch.SetComment( 'Compute Node' )
-    EndOfSwitch.Coords( 580 , 147 )
+    EndOfSwitch.Coords( 581 , 169 )
     PyEndOfSwitch = []
     EndOfSwitch.SetPyFunction( 'EndSwitch_1' , PyEndOfSwitch )
     IEndOfSwitcha = EndOfSwitch.InPort( 'a' , 'long' )
@@ -127,27 +127,27 @@ def DefGraphSwitch_1() :
     OSwitchDefault = Switch.GetOutPort( 'Default' )
     
     # Creation of Links
-    LIsOddaEndOfSwitcha = GraphSwitch_1.Link( OIsOdda , IEndOfSwitcha )
+    LIsOddaEndOfSwitcha = GraphSwitchErrExec.Link( OIsOdda , IEndOfSwitcha )
     
-    LInitLoopSwitchIndexSwitcha = GraphSwitch_1.Link( OInitLoopSwitchIndex , ISwitcha )
+    LInitLoopSwitchIndexSwitcha = GraphSwitchErrExec.Link( OInitLoopSwitchIndex , ISwitcha )
     
-    LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitch_1.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin )
+    LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitchErrExec.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin )
     
-    LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitch_1.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax )
+    LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitchErrExec.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax )
     
-    LIsEvenaEndOfSwitcha = GraphSwitch_1.Link( OIsEvena , IEndOfSwitcha )
+    LIsEvenaEndOfSwitcha = GraphSwitchErrExec.Link( OIsEvena , IEndOfSwitcha )
     
-    LSwitchOddIsOddGate = GraphSwitch_1.Link( OSwitchOdd , IIsOddGate )
+    LSwitchOddIsOddGate = GraphSwitchErrExec.Link( OSwitchOdd , IIsOddGate )
     
-    LSwitchEvenIsEvenGate = GraphSwitch_1.Link( OSwitchEven , IIsEvenGate )
+    LSwitchEvenIsEvenGate = GraphSwitchErrExec.Link( OSwitchEven , IIsEvenGate )
     
-    LSwitchaIsOdda = GraphSwitch_1.Link( OSwitcha , IIsOdda )
+    LSwitchaIsOdda = GraphSwitchErrExec.Link( OSwitcha , IIsOdda )
     
-    LSwitchaIsEvena = GraphSwitch_1.Link( OSwitcha , IIsEvena )
+    LSwitchaIsEvena = GraphSwitchErrExec.Link( OSwitcha , IIsEvena )
     
-    LSwitchDefaultEndOfSwitchDefault = GraphSwitch_1.Link( OSwitchDefault , IEndOfSwitchDefault )
+    LSwitchDefaultEndOfSwitchDefault = GraphSwitchErrExec.Link( OSwitchDefault , IEndOfSwitchDefault )
     
-    LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitch_1.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex )
+    LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitchErrExec.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex )
     
     # Input datas
     IInitLoopSwitchIndex.Input( 0 )
@@ -158,7 +158,7 @@ def DefGraphSwitch_1() :
     #OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' )
     #OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' )
     #OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' )
-    return GraphSwitch_1
+    return GraphSwitchErrExec
 
 
-GraphSwitch_1 = DefGraphSwitch_1()
+GraphSwitchErrExec = DefGraphSwitchErrExec()
index e588ff6d924721ec76d5906ae700b1fb9b1bfd69..86245a33ed8ad986ebb791cd396aaca828072587 100644 (file)
@@ -5,11 +5,11 @@
 <node>
 <component-name>?</component-name>
     <interface-name>?</interface-name>
-    <node-name>GraphSwitch_1</node-name>
+    <node-name>GraphSwitchErrExec</node-name>
     <kind>1</kind>
     <coupled-node>?</coupled-node>
     <service>
-<service-name>GraphSwitch_1</service-name>
+<service-name>GraphSwitchErrExec</service-name>
      <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
@@ -33,9 +33,9 @@
     <DataStream-list/>
     <PyFunction-list/>
     <creation-date>1/10/2003 - 17:23:54</creation-date>
-    <lastmodification-date>12/1/2005 - 16:10:58</lastmodification-date>
+    <lastmodification-date>15/2/2005 - 9:50:31</lastmodification-date>
     <editor-release>1.05</editor-release>
-    <author>?</author>
+    <author>JR</author>
     <container>?</container>
     <comment>?</comment>
     <x-position>0</x-position>
@@ -66,8 +66,8 @@
       <PyFunc><![CDATA[    print a,"IsOdd (GraphSwitch)"      ]]></PyFunc>
       <PyFunc><![CDATA[    sleep( 1 )   ]]></PyFunc>
       <PyFunc><![CDATA[    return a     ]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>12/1/2005 - 16:10:58</creation-date>
-    <lastmodification-date>12/1/2005 - 16:10:58</lastmodification-date>
+    <creation-date>15/2/2005 - 9:50:31</creation-date>
+    <lastmodification-date>15/2/2005 - 9:50:31</lastmodification-date>
     <editor-release>1.05</editor-release>
     <author>?</author>
     <container>?</container>
       <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>12/1/2005 - 16:10:58</creation-date>
-    <lastmodification-date>12/1/2005 - 16:10:58</lastmodification-date>
+    <creation-date>15/2/2005 - 9:50:31</creation-date>
+    <lastmodification-date>15/2/2005 - 9:50:31</lastmodification-date>
     <editor-release>1.05</editor-release>
     <author>?</author>
     <container>?</container>
 <PyFunction>
 <FuncName>?</FuncName>
       <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>12/1/2005 - 16:10:58</creation-date>
-    <lastmodification-date>12/1/2005 - 16:10:58</lastmodification-date>
+    <creation-date>15/2/2005 - 9:50:31</creation-date>
+    <lastmodification-date>15/2/2005 - 9:50:31</lastmodification-date>
     <editor-release>1.05</editor-release>
     <author>?</author>
     <container>?</container>
     <comment>Compute Node</comment>
-    <x-position>766</x-position>
-    <y-position>127</y-position>   </node>
+    <x-position>772</x-position>
+    <y-position>169</y-position>   </node>
    <node>
 <component-name>?</component-name>
     <interface-name>?</interface-name>
       <PyFunc><![CDATA[    print a,"IsEven (GraphSwitch)"       ]]></PyFunc>
       <PyFunc><![CDATA[    sleep( 1 )    ]]></PyFunc>
       <PyFunc><![CDATA[    return a      ]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>12/1/2005 - 16:10:58</creation-date>
-    <lastmodification-date>12/1/2005 - 16:10:58</lastmodification-date>
+    <creation-date>15/2/2005 - 9:50:31</creation-date>
+    <lastmodification-date>15/2/2005 - 9:50:31</lastmodification-date>
     <editor-release>2.0</editor-release>
     <author>?</author>
     <container>?</container>
       <PyFunc><![CDATA[    if ( a & 1 ) == 0 :     ]]></PyFunc>
       <PyFunc><![CDATA[        sleep(1)        ]]></PyFunc>
       <PyFunc><![CDATA[    return a & 1,1-(a&1),a        ]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>12/1/2005 - 16:10:58</creation-date>
-    <lastmodification-date>12/1/2005 - 16:10:58</lastmodification-date>
+    <creation-date>15/2/2005 - 9:50:31</creation-date>
+    <lastmodification-date>15/2/2005 - 9:50:31</lastmodification-date>
     <editor-release>2.0</editor-release>
     <author>?</author>
     <container>?</container>
 <PyFunction>
 <FuncName>EndSwitch_1</FuncName>
       <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>12/1/2005 - 16:10:58</creation-date>
-    <lastmodification-date>12/1/2005 - 16:10:58</lastmodification-date>
+    <creation-date>15/2/2005 - 9:50:31</creation-date>
+    <lastmodification-date>15/2/2005 - 9:50:31</lastmodification-date>
     <editor-release>2.0</editor-release>
     <author>?</author>
     <container>?</container>
     <comment>Compute Node</comment>
-    <x-position>580</x-position>
-    <y-position>147</y-position>   </node>  </node-list>
+    <x-position>581</x-position>
+    <y-position>169</y-position>   </node>  </node-list>
   <link-list>
 <link>
 <fromnode-name>IsOdd</fromnode-name>
     <coord-list/>   </link>  </link-list>
   <data-list>
 <data>
-<fromnode-name>GraphSwitch_1</fromnode-name>
+<fromnode-name>GraphSwitchErrExec</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>GraphSwitch_1</fromnode-name>
+<fromnode-name>GraphSwitchErrExec</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>GraphSwitch_1</fromnode-name>
+<fromnode-name>GraphSwitchErrExec</fromnode-name>
     <fromserviceparameter-name>InitLoopSwitch__Max</fromserviceparameter-name>
     <tonode-name>InitLoopSwitch</tonode-name>
     <toserviceparameter-name>Max</toserviceparameter-name>
index 2c9c77725b1120e7d1be36f1197b96fc9995aeff..81e96cc8bc6f1f02caf7a25b85a696706058b700 100644 (file)
@@ -1,60 +1,64 @@
 
-# Generated python file of Graph GraphSwitch_1_1
+# Generated python file of Graph GraphSwitchOutput
 
 from SuperV import *
 
-# Graph creation of GraphSwitch_1_1
-def DefGraphSwitch_1_1() :
-    GraphSwitch_1_1 = Graph( 'GraphSwitch_1_1' )
-    GraphSwitch_1_1.SetName( 'GraphSwitch_1_1' )
-    GraphSwitch_1_1.SetAuthor( '' )
-    GraphSwitch_1_1.SetComment( '' )
-    GraphSwitch_1_1.Coords( 0 , 0 )
+# Graph creation of GraphSwitchOutput
+def DefGraphSwitchOutput() :
+    GraphSwitchOutput = Graph( 'GraphSwitchOutput' )
+    GraphSwitchOutput.SetName( 'GraphSwitchOutput' )
+    GraphSwitchOutput.SetAuthor( 'JR' )
+    GraphSwitchOutput.SetComment( '' )
+    GraphSwitchOutput.Coords( 0 , 0 )
     
     # Creation of Factory Nodes
     
     # Creation of InLine Nodes
     PyIsOdd = []
-    PyIsOdd.append( 'from time import *   ' )
-    PyIsOdd.append( 'def IsOdd(a) :       ' )
-    PyIsOdd.append( '    print a,"IsOdd (GraphSwitch)"      ' )
-    PyIsOdd.append( '    sleep( 1 )   ' )
-    PyIsOdd.append( '    return a     ' )
-    IsOdd = GraphSwitch_1_1.INode( 'IsOdd' , PyIsOdd )
+    PyIsOdd.append( 'from time import *    ' )
+    PyIsOdd.append( 'def IsOdd(a,Branch) :        ' )
+    PyIsOdd.append( '    print a,"IsOdd (GraphSwitch)"       ' )
+    PyIsOdd.append( '    sleep( 1 )    ' )
+    PyIsOdd.append( '    return a,Branch ' )
+    IsOdd = GraphSwitchOutput.INode( 'IsOdd' , PyIsOdd )
     IsOdd.SetName( 'IsOdd' )
     IsOdd.SetAuthor( '' )
     IsOdd.SetComment( 'Python function' )
-    IsOdd.Coords( 388 , 50 )
+    IsOdd.Coords( 438 , 50 )
     IIsOdda = IsOdd.InPort( 'a' , 'long' )
+    IIsOddBranch = IsOdd.InPort( 'Branch' , 'string' )
     IIsOddGate = IsOdd.GetInPort( 'Gate' )
     OIsOdda = IsOdd.OutPort( 'a' , 'long' )
+    OIsOddBranch = IsOdd.OutPort( 'Branch' , 'string' )
     OIsOddGate = IsOdd.GetOutPort( 'Gate' )
     
     PyIsEven = []
-    PyIsEven.append( 'from time import *    ' )
-    PyIsEven.append( 'def IsEven(a) :        ' )
-    PyIsEven.append( '    print a,"IsEven (GraphSwitch)"       ' )
-    PyIsEven.append( '    sleep( 1 )    ' )
-    PyIsEven.append( '    return a      ' )
-    IsEven = GraphSwitch_1_1.INode( 'IsEven' , PyIsEven )
+    PyIsEven.append( 'from time import *     ' )
+    PyIsEven.append( 'def IsEven(a,Branch) :         ' )
+    PyIsEven.append( '    print a,"IsEven (GraphSwitch)"        ' )
+    PyIsEven.append( '    sleep( 1 )     ' )
+    PyIsEven.append( '    return a,Branch ' )
+    IsEven = GraphSwitchOutput.INode( 'IsEven' , PyIsEven )
     IsEven.SetName( 'IsEven' )
     IsEven.SetAuthor( '' )
     IsEven.SetComment( 'Compute Node' )
-    IsEven.Coords( 395 , 334 )
+    IsEven.Coords( 437 , 334 )
     IIsEvena = IsEven.InPort( 'a' , 'long' )
+    IIsEvenBranch = IsEven.InPort( 'Branch' , 'string' )
     IIsEvenGate = IsEven.GetInPort( 'Gate' )
     OIsEvena = IsEven.OutPort( 'a' , 'long' )
+    OIsEvenBranch = IsEven.OutPort( 'Branch' , 'string' )
     OIsEvenGate = IsEven.GetOutPort( 'Gate' )
     
     PyPrint = []
     PyPrint.append( 'def Print(a,Branch) :   ' )
     PyPrint.append( '    print "Print ",Branch   ' )
     PyPrint.append( '    return a,Branch   ' )
-    Print = GraphSwitch_1_1.INode( 'Print' , PyPrint )
+    Print = GraphSwitchOutput.INode( 'Print' , PyPrint )
     Print.SetName( 'Print' )
     Print.SetAuthor( '' )
     Print.SetComment( 'Compute Node' )
-    Print.Coords( 639 , 63 )
+    Print.Coords( 640 , 50 )
     IPrinta = Print.InPort( 'a' , 'long' )
     IPrintBranch = Print.InPort( 'Branch' , 'string' )
     IPrintGate = Print.GetInPort( 'Gate' )
@@ -66,11 +70,11 @@ def DefGraphSwitch_1_1() :
     PyPrint_1.append( 'def Print_1(a,Branch) :   ' )
     PyPrint_1.append( '    print "Print ",Branch   ' )
     PyPrint_1.append( '    return a,Branch   ' )
-    Print_1 = GraphSwitch_1_1.INode( 'Print_1' , PyPrint_1 )
+    Print_1 = GraphSwitchOutput.INode( 'Print_1' , PyPrint_1 )
     Print_1.SetName( 'Print_1' )
     Print_1.SetAuthor( '' )
     Print_1.SetComment( 'Compute Node' )
-    Print_1.Coords( 639 , 263 )
+    Print_1.Coords( 634 , 334 )
     IPrint_1a = Print_1.InPort( 'a' , 'long' )
     IPrint_1Branch = Print_1.InPort( 'Branch' , 'string' )
     IPrint_1Gate = Print_1.GetInPort( 'Gate' )
@@ -94,11 +98,11 @@ def DefGraphSwitch_1_1() :
     PyNextInitLoopSwitch.append( 'def NextLoop(Index,Min,Max) :      ' )
     PyNextInitLoopSwitch.append( '     Index = Index - 1      ' )
     PyNextInitLoopSwitch.append( '     return Index,Min,Max      ' )
-    InitLoopSwitch,EndOfInitLoopSwitch = GraphSwitch_1_1.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch )
+    InitLoopSwitch,EndOfInitLoopSwitch = GraphSwitchOutput.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch )
     EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' )
     EndOfInitLoopSwitch.SetAuthor( '' )
     EndOfInitLoopSwitch.SetComment( 'Compute Node' )
-    EndOfInitLoopSwitch.Coords( 1082 , 150 )
+    EndOfInitLoopSwitch.Coords( 1067 , 209 )
     PyEndOfInitLoopSwitch = []
     EndOfInitLoopSwitch.SetPyFunction( '' , PyEndOfInitLoopSwitch )
     IInitLoopSwitchDoLoop = InitLoopSwitch.GetInPort( 'DoLoop' )
@@ -138,11 +142,11 @@ def DefGraphSwitch_1_1() :
     PySwitch.append( '        Branch = 'Odd'   ' )
     PySwitch.append( '    sleep(1)   ' )
     PySwitch.append( '    return a & 1,1-(a&1),a,Branch,0 ' )
-    Switch,EndOfSwitch = GraphSwitch_1_1.SNode( 'Switch' , PySwitch )
+    Switch,EndOfSwitch = GraphSwitchOutput.SNode( 'Switch' , PySwitch )
     EndOfSwitch.SetName( 'EndOfSwitch' )
     EndOfSwitch.SetAuthor( '' )
     EndOfSwitch.SetComment( 'Compute Node' )
-    EndOfSwitch.Coords( 880 , 150 )
+    EndOfSwitch.Coords( 872 , 209 )
     PyEndOfSwitch = []
     EndOfSwitch.SetPyFunction( 'EndSwitch_1' , PyEndOfSwitch )
     IEndOfSwitcha = EndOfSwitch.InPort( 'a' , 'long' )
@@ -163,35 +167,39 @@ def DefGraphSwitch_1_1() :
     OSwitchDefault = Switch.GetOutPort( 'Default' )
     
     # Creation of Links
-    LIsOddaPrinta = GraphSwitch_1_1.Link( OIsOdda , IPrinta )
+    LIsOddaPrinta = GraphSwitchOutput.Link( OIsOdda , IPrinta )
     
-    LInitLoopSwitchIndexSwitcha = GraphSwitch_1_1.Link( OInitLoopSwitchIndex , ISwitcha )
+    LIsOddBranchPrintBranch = GraphSwitchOutput.Link( OIsOddBranch , IPrintBranch )
     
-    LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitch_1_1.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin )
+    LInitLoopSwitchIndexSwitcha = GraphSwitchOutput.Link( OInitLoopSwitchIndex , ISwitcha )
     
-    LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitch_1_1.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax )
+    LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitchOutput.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin )
     
-    LIsEvenaPrint_1a = GraphSwitch_1_1.Link( OIsEvena , IPrint_1a )
+    LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitchOutput.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax )
     
-    LSwitchOddIsOddGate = GraphSwitch_1_1.Link( OSwitchOdd , IIsOddGate )
+    LIsEvenaPrint_1a = GraphSwitchOutput.Link( OIsEvena , IPrint_1a )
     
-    LSwitchEvenIsEvenGate = GraphSwitch_1_1.Link( OSwitchEven , IIsEvenGate )
+    LIsEvenBranchPrint_1Branch = GraphSwitchOutput.Link( OIsEvenBranch , IPrint_1Branch )
     
-    LSwitchaIsOdda = GraphSwitch_1_1.Link( OSwitcha , IIsOdda )
+    LSwitchOddIsOddGate = GraphSwitchOutput.Link( OSwitchOdd , IIsOddGate )
     
-    LSwitchaIsEvena = GraphSwitch_1_1.Link( OSwitcha , IIsEvena )
+    LSwitchEvenIsEvenGate = GraphSwitchOutput.Link( OSwitchEven , IIsEvenGate )
     
-    LSwitchBranchPrintBranch = GraphSwitch_1_1.Link( OSwitchBranch , IPrintBranch )
+    LSwitchaIsOdda = GraphSwitchOutput.Link( OSwitcha , IIsOdda )
     
-    LSwitchBranchPrint_1Branch = GraphSwitch_1_1.Link( OSwitchBranch , IPrint_1Branch )
+    LSwitchaIsEvena = GraphSwitchOutput.Link( OSwitcha , IIsEvena )
     
-    LSwitchDefaultEndOfSwitchDefault = GraphSwitch_1_1.Link( OSwitchDefault , IEndOfSwitchDefault )
+    LSwitchBranchIsOddBranch = GraphSwitchOutput.Link( OSwitchBranch , IIsOddBranch )
     
-    LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitch_1_1.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex )
+    LSwitchBranchIsEvenBranch = GraphSwitchOutput.Link( OSwitchBranch , IIsEvenBranch )
     
-    LPrintaEndOfSwitcha = GraphSwitch_1_1.Link( OPrinta , IEndOfSwitcha )
+    LSwitchDefaultEndOfSwitchDefault = GraphSwitchOutput.Link( OSwitchDefault , IEndOfSwitchDefault )
     
-    LPrint_1aEndOfSwitcha = GraphSwitch_1_1.Link( OPrint_1a , IEndOfSwitcha )
+    LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitchOutput.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex )
+    
+    LPrintaEndOfSwitcha = GraphSwitchOutput.Link( OPrinta , IEndOfSwitcha )
+    
+    LPrint_1aEndOfSwitcha = GraphSwitchOutput.Link( OPrint_1a , IEndOfSwitcha )
     
     # Input datas
     IInitLoopSwitchIndex.Input( 0 )
@@ -205,7 +213,7 @@ def DefGraphSwitch_1_1() :
     #OSwitchdefault = Switch.GetOutPort( 'default' )
     #OPrintBranch = Print.GetOutPort( 'Branch' )
     #OPrint_1Branch = Print_1.GetOutPort( 'Branch' )
-    return GraphSwitch_1_1
+    return GraphSwitchOutput
 
 
-GraphSwitch_1_1 = DefGraphSwitch_1_1()
+GraphSwitchOutput = DefGraphSwitchOutput()
index 86d6720bbc384b3494d63d4f02e59c73f0f7dab5..8c7f0bdc33680e2442e7a8fa21b395b84c4617bc 100644 (file)
@@ -5,11 +5,11 @@
 <node>
 <component-name>?</component-name>
     <interface-name>?</interface-name>
-    <node-name>GraphSwitch_1_1</node-name>
+    <node-name>GraphSwitchOutput</node-name>
     <kind>1</kind>
     <coupled-node>?</coupled-node>
     <service>
-<service-name>GraphSwitch_1_1</service-name>
+<service-name>GraphSwitchOutput</service-name>
      <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
@@ -42,9 +42,9 @@
     <DataStream-list/>
     <PyFunction-list/>
     <creation-date>1/10/2003 - 17:23:54</creation-date>
-    <lastmodification-date>13/1/2005 - 11:21:30</lastmodification-date>
+    <lastmodification-date>15/2/2005 - 9:59:57</lastmodification-date>
     <editor-release>1.05</editor-release>
-    <author>?</author>
+    <author>JR</author>
     <container>?</container>
     <comment>?</comment>
     <x-position>0</x-position>
      <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+       <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-list>    </service>
+       <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>IsOdd</FuncName>
-      <PyFunc><![CDATA[from time import *   ]]></PyFunc>
-      <PyFunc><![CDATA[def IsOdd(a) :       ]]></PyFunc>
-      <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 - 11:17:18</creation-date>
-    <lastmodification-date>13/1/2005 - 11:17:18</lastmodification-date>
+      <PyFunc><![CDATA[from time import *    ]]></PyFunc>
+      <PyFunc><![CDATA[def IsOdd(a,Branch) :        ]]></PyFunc>
+      <PyFunc><![CDATA[    print a,"IsOdd (GraphSwitch)"       ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep( 1 )    ]]></PyFunc>
+      <PyFunc><![CDATA[    return a,Branch ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>15/2/2005 - 9:59:57</creation-date>
+    <lastmodification-date>15/2/2005 - 9:59:57</lastmodification-date>
     <editor-release>1.05</editor-release>
     <author>?</author>
     <container>?</container>
     <comment>Python function</comment>
-    <x-position>388</x-position>
+    <x-position>438</x-position>
     <y-position>50</y-position>   </node>
    <node>
 <component-name>?</component-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 - 11:17:18</creation-date>
-    <lastmodification-date>13/1/2005 - 11:17:18</lastmodification-date>
+    <creation-date>15/2/2005 - 9:59:57</creation-date>
+    <lastmodification-date>15/2/2005 - 9:59:57</lastmodification-date>
     <editor-release>1.05</editor-release>
     <author>?</author>
     <container>?</container>
 <PyFunction>
 <FuncName>?</FuncName>
       <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>13/1/2005 - 11:17:18</creation-date>
-    <lastmodification-date>13/1/2005 - 11:17:18</lastmodification-date>
+    <creation-date>15/2/2005 - 9:59:57</creation-date>
+    <lastmodification-date>15/2/2005 - 9:59:57</lastmodification-date>
     <editor-release>1.05</editor-release>
     <author>?</author>
     <container>?</container>
     <comment>Compute Node</comment>
-    <x-position>1082</x-position>
-    <y-position>150</y-position>   </node>
+    <x-position>1067</x-position>
+    <y-position>209</y-position>   </node>
    <node>
 <component-name>?</component-name>
     <interface-name>?</interface-name>
      <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+       <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-list>    </service>
+       <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>IsEven</FuncName>
-      <PyFunc><![CDATA[from time import *    ]]></PyFunc>
-      <PyFunc><![CDATA[def IsEven(a) :        ]]></PyFunc>
-      <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 - 11:17:18</creation-date>
-    <lastmodification-date>13/1/2005 - 11:17:18</lastmodification-date>
+      <PyFunc><![CDATA[from time import *     ]]></PyFunc>
+      <PyFunc><![CDATA[def IsEven(a,Branch) :         ]]></PyFunc>
+      <PyFunc><![CDATA[    print a,"IsEven (GraphSwitch)"        ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep( 1 )     ]]></PyFunc>
+      <PyFunc><![CDATA[    return a,Branch ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>15/2/2005 - 9:59:57</creation-date>
+    <lastmodification-date>15/2/2005 - 9:59:57</lastmodification-date>
     <editor-release>2.0</editor-release>
     <author>?</author>
     <container>?</container>
     <comment>Compute Node</comment>
-    <x-position>395</x-position>
+    <x-position>437</x-position>
     <y-position>334</y-position>   </node>
    <node>
 <component-name>?</component-name>
       <PyFunc><![CDATA[        Branch = 'Odd'   ]]></PyFunc>
       <PyFunc><![CDATA[    sleep(1)   ]]></PyFunc>
       <PyFunc><![CDATA[    return a & 1,1-(a&1),a,Branch,0 ]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>13/1/2005 - 11:17:18</creation-date>
-    <lastmodification-date>13/1/2005 - 11:17:18</lastmodification-date>
+    <creation-date>15/2/2005 - 9:59:57</creation-date>
+    <lastmodification-date>15/2/2005 - 9:59:57</lastmodification-date>
     <editor-release>2.0</editor-release>
     <author>?</author>
     <container>?</container>
 <PyFunction>
 <FuncName>EndSwitch_1</FuncName>
       <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>13/1/2005 - 11:17:18</creation-date>
-    <lastmodification-date>13/1/2005 - 11:17:18</lastmodification-date>
+    <creation-date>15/2/2005 - 9:59:57</creation-date>
+    <lastmodification-date>15/2/2005 - 9:59:57</lastmodification-date>
     <editor-release>2.0</editor-release>
     <author>?</author>
     <container>?</container>
     <comment>Compute Node</comment>
-    <x-position>880</x-position>
-    <y-position>150</y-position>   </node>
+    <x-position>872</x-position>
+    <y-position>209</y-position>   </node>
    <node>
 <component-name>?</component-name>
     <interface-name>?</interface-name>
     <kind>3</kind>
     <coupled-node>?</coupled-node>
     <service>
-<service-name>Void</service-name>
+<service-name>Print</service-name>
      <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
       <PyFunc><![CDATA[def Print(a,Branch) :   ]]></PyFunc>
       <PyFunc><![CDATA[    print "Print ",Branch   ]]></PyFunc>
       <PyFunc><![CDATA[    return a,Branch   ]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>13/1/2005 - 11:17:18</creation-date>
-    <lastmodification-date>13/1/2005 - 11:17:18</lastmodification-date>
+    <creation-date>15/2/2005 - 9:59:57</creation-date>
+    <lastmodification-date>15/2/2005 - 9:59:57</lastmodification-date>
     <editor-release>2.0</editor-release>
     <author>?</author>
     <container>?</container>
     <comment>Compute Node</comment>
-    <x-position>639</x-position>
-    <y-position>63</y-position>   </node>
+    <x-position>640</x-position>
+    <y-position>50</y-position>   </node>
    <node>
 <component-name>?</component-name>
     <interface-name>?</interface-name>
       <PyFunc><![CDATA[def Print_1(a,Branch) :   ]]></PyFunc>
       <PyFunc><![CDATA[    print "Print ",Branch   ]]></PyFunc>
       <PyFunc><![CDATA[    return a,Branch   ]]></PyFunc>     </PyFunction>    </PyFunction-list>
-    <creation-date>13/1/2005 - 11:20:58</creation-date>
-    <lastmodification-date>13/1/2005 - 11:20:58</lastmodification-date>
+    <creation-date>15/2/2005 - 9:59:57</creation-date>
+    <lastmodification-date>15/2/2005 - 9:59:57</lastmodification-date>
     <editor-release>2.0</editor-release>
     <author>?</author>
     <container>?</container>
     <comment>Compute Node</comment>
-    <x-position>639</x-position>
-    <y-position>263</y-position>   </node>  </node-list>
+    <x-position>634</x-position>
+    <y-position>334</y-position>   </node>  </node-list>
   <link-list>
 <link>
 <fromnode-name>IsOdd</fromnode-name>
     <toserviceparameter-name>a</toserviceparameter-name>
     <coord-list/>   </link>
    <link>
+<fromnode-name>IsOdd</fromnode-name>
+    <fromserviceparameter-name>Branch</fromserviceparameter-name>
+    <tonode-name>Print</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>
     <toserviceparameter-name>a</toserviceparameter-name>
     <coord-list/>   </link>
    <link>
+<fromnode-name>IsEven</fromnode-name>
+    <fromserviceparameter-name>Branch</fromserviceparameter-name>
+    <tonode-name>Print_1</tonode-name>
+    <toserviceparameter-name>Branch</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>Switch</fromnode-name>
     <fromserviceparameter-name>Odd</fromserviceparameter-name>
     <tonode-name>IsOdd</tonode-name>
    <link>
 <fromnode-name>Switch</fromnode-name>
     <fromserviceparameter-name>Branch</fromserviceparameter-name>
-    <tonode-name>Print</tonode-name>
+    <tonode-name>IsOdd</tonode-name>
     <toserviceparameter-name>Branch</toserviceparameter-name>
     <coord-list/>   </link>
    <link>
 <fromnode-name>Switch</fromnode-name>
     <fromserviceparameter-name>Branch</fromserviceparameter-name>
-    <tonode-name>Print_1</tonode-name>
+    <tonode-name>IsEven</tonode-name>
     <toserviceparameter-name>Branch</toserviceparameter-name>
     <coord-list/>   </link>
    <link>
     <coord-list/>   </link>  </link-list>
   <data-list>
 <data>
-<fromnode-name>GraphSwitch_1_1</fromnode-name>
+<fromnode-name>GraphSwitchOutput</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>GraphSwitch_1_1</fromnode-name>
+<fromnode-name>GraphSwitchOutput</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>GraphSwitch_1_1</fromnode-name>
+<fromnode-name>GraphSwitchOutput</fromnode-name>
     <fromserviceparameter-name>InitLoopSwitch__Max</fromserviceparameter-name>
     <tonode-name>InitLoopSwitch</tonode-name>
     <toserviceparameter-name>Max</toserviceparameter-name>
index bf78c8168ea9564a377cb030cb7ecb9999e8b4df..78eb3ecdc6c7e31d5794a403b6c1772a706bdb94 100755 (executable)
 
-# Generated python file of Graph GraphSwitch
+# Generated python file of Graph GraphSwitchs
 
 from SuperV import *
-# Graph creation 
-GraphSwitchs = Graph( 'GraphSwitchs' )
-GraphSwitchs.SetName( 'GraphSwitchs' )
-GraphSwitchs.SetAuthor( '' )
-GraphSwitchs.SetComment( '' )
-GraphSwitchs.Coords( 0 , 0 )
 
-# Creation of Factory Nodes
+# Graph creation of GraphSwitchs
+def DefGraphSwitchs() :
+    GraphSwitchs = Graph( 'GraphSwitchs' )
+    GraphSwitchs.SetName( 'GraphSwitchs' )
+    GraphSwitchs.SetAuthor( 'JR' )
+    GraphSwitchs.SetComment( '' )
+    GraphSwitchs.Coords( 0 , 0 )
+    
+    # Creation of Factory Nodes
+    
+    # Creation of InLine Nodes
+    PyIsOdd = []
+    PyIsOdd.append( 'from time import *   ' )
+    PyIsOdd.append( 'def IsOdd(a) :       ' )
+    PyIsOdd.append( '    print a,"IsOdd (GraphSwitchs)"      ' )
+    PyIsOdd.append( '    sleep( 1 )   ' )
+    PyIsOdd.append( '    return a     ' )
+    IsOdd = GraphSwitchs.INode( 'IsOdd' , PyIsOdd )
+    IsOdd.SetName( 'IsOdd' )
+    IsOdd.SetAuthor( '' )
+    IsOdd.SetComment( 'Python function' )
+    IsOdd.Coords( 390 , 66 )
+    IIsOdda = IsOdd.InPort( 'a' , 'long' )
+    IIsOddGate = IsOdd.GetInPort( 'Gate' )
+    OIsOdda = IsOdd.OutPort( 'a' , 'long' )
+    OIsOddGate = IsOdd.GetOutPort( 'Gate' )
+    
+    PyIsOdd_1 = []
+    PyIsOdd_1.append( 'from time import *   ' )
+    PyIsOdd_1.append( 'def IsOdd(a) :       ' )
+    PyIsOdd_1.append( '    print a,"IsOdd_1 (GraphSwitchs)"      ' )
+    PyIsOdd_1.append( '    sleep( 1 )   ' )
+    PyIsOdd_1.append( '    return a     ' )
+    IsOdd_1 = GraphSwitchs.INode( 'IsOdd' , PyIsOdd_1 )
+    IsOdd_1.SetName( 'IsOdd_1' )
+    IsOdd_1.SetAuthor( '' )
+    IsOdd_1.SetComment( 'Python function' )
+    IsOdd_1.Coords( 415 , 324 )
+    IIsOdd_1a = IsOdd_1.InPort( 'a' , 'long' )
+    IIsOdd_1Gate = IsOdd_1.GetInPort( 'Gate' )
+    OIsOdd_1a = IsOdd_1.OutPort( 'a' , 'long' )
+    OIsOdd_1Gate = IsOdd_1.GetOutPort( 'Gate' )
+    
+    # Creation of Loop Nodes
+    PyInitLoopSwitch = []
+    PyInitLoopSwitch.append( 'def InitLoop(Index,Min,Max) :      ' )
+    PyInitLoopSwitch.append( ' return Index,Min,Max     ' )
+    PyMoreInitLoopSwitch = []
+    PyMoreInitLoopSwitch.append( 'def MoreLoop(Index,Min,Max) :     ' )
+    PyMoreInitLoopSwitch.append( '     if Index <= Max :   ' )
+    PyMoreInitLoopSwitch.append( '             DoLoop = 1     ' )
+    PyMoreInitLoopSwitch.append( '     else :     ' )
+    PyMoreInitLoopSwitch.append( '             DoLoop = 0     ' )
+    PyMoreInitLoopSwitch.append( '     return DoLoop,Index,Min,Max     ' )
+    PyNextInitLoopSwitch = []
+    PyNextInitLoopSwitch.append( 'def NextLoop(Index,Min,Max) :     ' )
+    PyNextInitLoopSwitch.append( '     Index = Index + 1     ' )
+    PyNextInitLoopSwitch.append( '     return Index,Min,Max     ' )
+    InitLoopSwitch,EndOfInitLoopSwitch = GraphSwitchs.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch )
+    EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' )
+    EndOfInitLoopSwitch.SetAuthor( '' )
+    EndOfInitLoopSwitch.SetComment( 'Compute Node' )
+    EndOfInitLoopSwitch.Coords( 780 , 170 )
+    PyEndOfInitLoopSwitch = []
+    EndOfInitLoopSwitch.SetPyFunction( '' , PyEndOfInitLoopSwitch )
+    IInitLoopSwitchDoLoop = InitLoopSwitch.GetInPort( 'DoLoop' )
+    IInitLoopSwitchIndex = InitLoopSwitch.InPort( 'Index' , 'long' )
+    IInitLoopSwitchMin = InitLoopSwitch.InPort( 'Min' , 'long' )
+    IInitLoopSwitchMax = InitLoopSwitch.InPort( 'Max' , 'long' )
+    IInitLoopSwitchGate = InitLoopSwitch.GetInPort( 'Gate' )
+    OInitLoopSwitchDoLoop = InitLoopSwitch.GetOutPort( 'DoLoop' )
+    OInitLoopSwitchIndex = InitLoopSwitch.GetOutPort( 'Index' )
+    OInitLoopSwitchMin = InitLoopSwitch.GetOutPort( 'Min' )
+    OInitLoopSwitchMax = InitLoopSwitch.GetOutPort( 'Max' )
+    IEndOfInitLoopSwitchDoLoop = EndOfInitLoopSwitch.GetInPort( 'DoLoop' )
+    IEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetInPort( 'Index' )
+    IEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetInPort( 'Min' )
+    IEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetInPort( 'Max' )
+    IEndOfInitLoopSwitchGate = EndOfInitLoopSwitch.GetInPort( 'Gate' )
+    OEndOfInitLoopSwitchDoLoop = EndOfInitLoopSwitch.GetOutPort( 'DoLoop' )
+    OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' )
+    OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' )
+    OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' )
+    OEndOfInitLoopSwitchGate = EndOfInitLoopSwitch.GetOutPort( 'Gate' )
+    InitLoopSwitch.SetName( 'InitLoopSwitch' )
+    InitLoopSwitch.SetAuthor( '' )
+    InitLoopSwitch.SetComment( 'Compute Node' )
+    InitLoopSwitch.Coords( 10 , 129 )
+    
+    PyInitLoop = []
+    PyInitLoop.append( 'def InitLoop(Index,Min,Max) :      ' )
+    PyInitLoop.append( '       return Index,Min,Max     ' )
+    PyMoreInitLoop = []
+    PyMoreInitLoop.append( 'def MoreLoop(Index,Min,Max) :     ' )
+    PyMoreInitLoop.append( '   if Index <= Max :   ' )
+    PyMoreInitLoop.append( '           DoLoop = 1     ' )
+    PyMoreInitLoop.append( '   else :     ' )
+    PyMoreInitLoop.append( '           DoLoop = 0     ' )
+    PyMoreInitLoop.append( '   return DoLoop,Index,Min,Max     ' )
+    PyNextInitLoop = []
+    PyNextInitLoop.append( 'def NextLoop(Index,Min,Max) :     ' )
+    PyNextInitLoop.append( '   Index = Index + 1     ' )
+    PyNextInitLoop.append( '   return Index,Min,Max     ' )
+    InitLoop,EndOfInitLoop = GraphSwitchs.LNode( 'InitLoop' , PyInitLoop , 'MoreLoop' , PyMoreInitLoop , 'NextLoop' , PyNextInitLoop )
+    EndOfInitLoop.SetName( 'EndOfInitLoop' )
+    EndOfInitLoop.SetAuthor( '' )
+    EndOfInitLoop.SetComment( 'Compute Node' )
+    EndOfInitLoop.Coords( 800 , 427 )
+    PyEndOfInitLoop = []
+    EndOfInitLoop.SetPyFunction( '' , PyEndOfInitLoop )
+    IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' )
+    IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' )
+    IInitLoopMin = InitLoop.InPort( 'Min' , 'long' )
+    IInitLoopMax = InitLoop.InPort( 'Max' , 'long' )
+    IInitLoopGate = InitLoop.GetInPort( 'Gate' )
+    OInitLoopDoLoop = InitLoop.GetOutPort( 'DoLoop' )
+    OInitLoopIndex = InitLoop.GetOutPort( 'Index' )
+    OInitLoopMin = InitLoop.GetOutPort( 'Min' )
+    OInitLoopMax = InitLoop.GetOutPort( 'Max' )
+    IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' )
+    IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' )
+    IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' )
+    IEndOfInitLoopMax = EndOfInitLoop.GetInPort( 'Max' )
+    IEndOfInitLoopGate = EndOfInitLoop.GetInPort( 'Gate' )
+    OEndOfInitLoopDoLoop = EndOfInitLoop.GetOutPort( 'DoLoop' )
+    OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' )
+    OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' )
+    OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' )
+    OEndOfInitLoopGate = EndOfInitLoop.GetOutPort( 'Gate' )
+    InitLoop.SetName( 'InitLoop' )
+    InitLoop.SetAuthor( '' )
+    InitLoop.SetComment( 'Compute Node' )
+    InitLoop.Coords( 10 , 388 )
+    
+    # Creation of Switch Nodes
+    PySwitch = []
+    PySwitch.append( 'from time import * ' )
+    PySwitch.append( 'def Switch(a) :   ' )
+    PySwitch.append( '    if ( a & 1 ) == 0 : ' )
+    PySwitch.append( '        sleep(1)    ' )
+    PySwitch.append( '    return a & 1,1-(a&1),a    ' )
+    Switch,EndOfSwitch = GraphSwitchs.SNode( 'Switch' , PySwitch )
+    EndOfSwitch.SetName( 'EndOfSwitch' )
+    EndOfSwitch.SetAuthor( '' )
+    EndOfSwitch.SetComment( 'Compute Node' )
+    EndOfSwitch.Coords( 587 , 170 )
+    PyEndOfSwitch = []
+    EndOfSwitch.SetPyFunction( '' , PyEndOfSwitch )
+    IEndOfSwitcha = EndOfSwitch.InPort( 'a' , 'long' )
+    IEndOfSwitchDefault = EndOfSwitch.GetInPort( 'Default' )
+    OEndOfSwitcha = EndOfSwitch.OutPort( 'a' , 'long' )
+    OEndOfSwitchGate = EndOfSwitch.GetOutPort( 'Gate' )
+    Switch.SetName( 'Switch' )
+    Switch.SetAuthor( '' )
+    Switch.SetComment( 'Compute Node' )
+    Switch.Coords( 186 , 130 )
+    ISwitcha = Switch.InPort( 'a' , 'long' )
+    ISwitchGate = Switch.GetInPort( 'Gate' )
+    OSwitchOdd = Switch.OutPort( 'Odd' , 'long' )
+    OSwitchEven = Switch.OutPort( 'Even' , 'int' )
+    OSwitcha = Switch.OutPort( 'a' , 'int' )
+    OSwitchDefault = Switch.GetOutPort( 'Default' )
+    
+    PySwitch_1 = []
+    PySwitch_1.append( 'from time import *  ' )
+    PySwitch_1.append( 'def Switch(a) :    ' )
+    PySwitch_1.append( '    if ( a & 1 ) == 0 :  ' )
+    PySwitch_1.append( '        sleep(1)  ' )
+    PySwitch_1.append( '    return a & 1,1-(a&1),a    ' )
+    Switch_1,EndSwitch = GraphSwitchs.SNode( 'Switch' , PySwitch_1 )
+    EndSwitch.SetName( 'EndSwitch' )
+    EndSwitch.SetAuthor( '' )
+    EndSwitch.SetComment( 'Compute Node' )
+    EndSwitch.Coords( 605 , 428 )
+    PyEndSwitch = []
+    EndSwitch.SetPyFunction( '' , PyEndSwitch )
+    IEndSwitcha = EndSwitch.InPort( 'a' , 'long' )
+    IEndSwitchDefault = EndSwitch.GetInPort( 'Default' )
+    OEndSwitcha = EndSwitch.OutPort( 'a' , 'long' )
+    OEndSwitchGate = EndSwitch.GetOutPort( 'Gate' )
+    Switch_1.SetName( 'Switch_1' )
+    Switch_1.SetAuthor( '' )
+    Switch_1.SetComment( 'Compute Node' )
+    Switch_1.Coords( 193 , 388 )
+    ISwitch_1a = Switch_1.InPort( 'a' , 'long' )
+    ISwitch_1Gate = Switch_1.GetInPort( 'Gate' )
+    OSwitch_1Odd = Switch_1.OutPort( 'Odd' , 'long' )
+    OSwitch_1Even = Switch_1.OutPort( 'Even' , 'int' )
+    OSwitch_1a = Switch_1.OutPort( 'a' , 'int' )
+    OSwitch_1Default = Switch_1.GetOutPort( 'Default' )
+    
+    # Creation of Links
+    LIsOddaEndOfSwitcha = GraphSwitchs.Link( OIsOdda , IEndOfSwitcha )
+    LIsOddaEndOfSwitcha.AddCoord( 1 , 569 , 199 )
+    LIsOddaEndOfSwitcha.AddCoord( 2 , 569 , 137 )
+    
+    LInitLoopSwitchIndexSwitcha = GraphSwitchs.Link( OInitLoopSwitchIndex , ISwitcha )
+    
+    LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphSwitchs.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin )
+    
+    LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphSwitchs.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax )
+    
+    LSwitchOddIsOddGate = GraphSwitchs.Link( OSwitchOdd , IIsOddGate )
+    
+    LSwitchaIsOdda = GraphSwitchs.Link( OSwitcha , IIsOdda )
+    LSwitchaIsOdda.AddCoord( 1 , 365 , 137 )
+    LSwitchaIsOdda.AddCoord( 2 , 365 , 201 )
+    
+    LSwitchDefaultEndOfSwitchDefault = GraphSwitchs.Link( OSwitchDefault , IEndOfSwitchDefault )
+    
+    LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphSwitchs.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex )
+    
+    LIsOdd_1aEndSwitcha = GraphSwitchs.Link( OIsOdd_1a , IEndSwitcha )
+    LIsOdd_1aEndSwitcha.AddCoord( 1 , 592 , 459 )
+    LIsOdd_1aEndSwitcha.AddCoord( 2 , 592 , 395 )
+    
+    LInitLoopIndexSwitch_1a = GraphSwitchs.Link( OInitLoopIndex , ISwitch_1a )
+    
+    LInitLoopMinEndOfInitLoopMin = GraphSwitchs.Link( OInitLoopMin , IEndOfInitLoopMin )
+    
+    LInitLoopMaxEndOfInitLoopMax = GraphSwitchs.Link( OInitLoopMax , IEndOfInitLoopMax )
+    
+    LSwitch_1OddIsOdd_1Gate = GraphSwitchs.Link( OSwitch_1Odd , IIsOdd_1Gate )
+    
+    LSwitch_1aIsOdd_1a = GraphSwitchs.Link( OSwitch_1a , IIsOdd_1a )
+    LSwitch_1aIsOdd_1a.AddCoord( 1 , 381 , 394 )
+    LSwitch_1aIsOdd_1a.AddCoord( 2 , 381 , 458 )
+    
+    LSwitch_1DefaultEndSwitchDefault = GraphSwitchs.Link( OSwitch_1Default , IEndSwitchDefault )
+    
+    LEndSwitchaEndOfInitLoopIndex = GraphSwitchs.Link( OEndSwitcha , IEndOfInitLoopIndex )
+    
+    # Input datas
+    IInitLoopSwitchIndex.Input( 0 )
+    IInitLoopSwitchMin.Input( 0 )
+    IInitLoopSwitchMax.Input( 20 )
+    IInitLoopIndex.Input( 0 )
+    IInitLoopMin.Input( 0 )
+    IInitLoopMax.Input( 20 )
+    
+    # Output Ports of the graph
+    #OEndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.GetOutPort( 'Index' )
+    #OEndOfInitLoopSwitchMin = EndOfInitLoopSwitch.GetOutPort( 'Min' )
+    #OEndOfInitLoopSwitchMax = EndOfInitLoopSwitch.GetOutPort( 'Max' )
+    #OSwitchEven = Switch.GetOutPort( 'Even' )
+    #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' )
+    #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' )
+    #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' )
+    #OSwitch_1Even = Switch_1.GetOutPort( 'Even' )
+    return GraphSwitchs
 
-# Creation of InLine Nodes
-PyIsOdd = []
-PyIsOdd.append( 'from time import *   ' )
-PyIsOdd.append( 'def IsOdd(a) :       ' )
-PyIsOdd.append( '    print a,"IsOdd (GraphSwitchs)"      ' )
-PyIsOdd.append( '    sleep( 1 )   ' )
-PyIsOdd.append( '    return a     ' )
-IsOdd = GraphSwitchs.INode( 'IsOdd' , PyIsOdd )
-IsOdd.SetName( 'IsOdd' )
-IsOdd.SetAuthor( '' )
-IsOdd.SetComment( 'Python function' )
-IsOdd.Coords( 388 , 50 )
-IsOdd.InPort( 'a' , 'long' )
-IsOdd.OutPort( 'a' , 'long' )
 
-PyIsOdd_1 = []
-PyIsOdd_1.append( 'from time import *   ' )
-PyIsOdd_1.append( 'def IsOdd(a) :       ' )
-PyIsOdd_1.append( '    print a,"IsOdd_1 (GraphSwitchs)"      ' )
-PyIsOdd_1.append( '    sleep( 1 )   ' )
-PyIsOdd_1.append( '    return a     ' )
-IsOdd_1 = GraphSwitchs.INode( 'IsOdd' , PyIsOdd_1 )
-IsOdd_1.SetName( 'IsOdd_1' )
-IsOdd_1.SetAuthor( '' )
-IsOdd_1.SetComment( 'Python function' )
-IsOdd_1.Coords( 419 , 308 )
-IsOdd_1.InPort( 'a' , 'long' )
-IsOdd_1.OutPort( 'a' , 'long' )
-
-# Creation of Loop Nodes
-PyInitLoopSwitch = []
-PyInitLoopSwitch.append( 'def InitLoop(Index,Min,Max) :      ' )
-PyInitLoopSwitch.append( '     return Index,Min,Max     ' )
-PyMoreInitLoopSwitch = []
-PyMoreInitLoopSwitch.append( 'def MoreLoop(Index,Min,Max) :     ' )
-PyMoreInitLoopSwitch.append( ' if Index <= Max :   ' )
-PyMoreInitLoopSwitch.append( '         DoLoop = 1     ' )
-PyMoreInitLoopSwitch.append( ' else :     ' )
-PyMoreInitLoopSwitch.append( '         DoLoop = 0     ' )
-PyMoreInitLoopSwitch.append( ' return DoLoop,Index,Min,Max     ' )
-PyNextInitLoopSwitch = []
-PyNextInitLoopSwitch.append( 'def NextLoop(Index,Min,Max) :     ' )
-PyNextInitLoopSwitch.append( ' Index = Index + 1     ' )
-PyNextInitLoopSwitch.append( ' return Index,Min,Max     ' )
-InitLoopSwitch,EndOfInitLoopSwitch = GraphSwitchs.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch )
-EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' )
-EndOfInitLoopSwitch.SetAuthor( '' )
-EndOfInitLoopSwitch.SetComment( '' )
-EndOfInitLoopSwitch.Coords( 766 , 127 )
-InitLoopSwitch.SetName( 'InitLoopSwitch' )
-InitLoopSwitch.SetAuthor( '' )
-InitLoopSwitch.SetComment( '' )
-InitLoopSwitch.Coords( 10 , 129 )
-InitLoopSwitch.InPort( 'Index' , 'long' )
-InitLoopSwitch.InPort( 'Min' , 'long' )
-InitLoopSwitch.InPort( 'Max' , 'long' )
-InitLoopSwitch.OutPort( 'Index' , 'long' )
-InitLoopSwitch.OutPort( 'Min' , 'long' )
-InitLoopSwitch.OutPort( 'Max' , 'long' )
-
-PyInitLoop = []
-PyInitLoop.append( 'def InitLoop(Index,Min,Max) :      ' )
-PyInitLoop.append( '   return Index,Min,Max     ' )
-PyMoreInitLoop = []
-PyMoreInitLoop.append( 'def MoreLoop(Index,Min,Max) :     ' )
-PyMoreInitLoop.append( '       if Index <= Max :   ' )
-PyMoreInitLoop.append( '               DoLoop = 1     ' )
-PyMoreInitLoop.append( '       else :     ' )
-PyMoreInitLoop.append( '               DoLoop = 0     ' )
-PyMoreInitLoop.append( '       return DoLoop,Index,Min,Max     ' )
-PyNextInitLoop = []
-PyNextInitLoop.append( 'def NextLoop(Index,Min,Max) :     ' )
-PyNextInitLoop.append( '       Index = Index + 1     ' )
-PyNextInitLoop.append( '       return Index,Min,Max     ' )
-InitLoop,EndOfInitLoop = GraphSwitchs.LNode( 'InitLoop' , PyInitLoop , 'MoreLoop' , PyMoreInitLoop , 'NextLoop' , PyNextInitLoop )
-EndOfInitLoop.SetName( 'EndOfInitLoop' )
-EndOfInitLoop.SetAuthor( '' )
-EndOfInitLoop.SetComment( '' )
-EndOfInitLoop.Coords( 783 , 381 )
-InitLoop.SetName( 'InitLoop' )
-InitLoop.SetAuthor( '' )
-InitLoop.SetComment( '' )
-InitLoop.Coords( 10 , 388 )
-InitLoop.InPort( 'Index' , 'long' )
-InitLoop.InPort( 'Min' , 'long' )
-InitLoop.InPort( 'Max' , 'long' )
-InitLoop.OutPort( 'Index' , 'long' )
-InitLoop.OutPort( 'Min' , 'long' )
-InitLoop.OutPort( 'Max' , 'long' )
-
-# Creation of Switch Nodes
-PySwitch = []
-PySwitch.append( 'from time import * ' )
-PySwitch.append( 'def Switch(a) :   ' )
-PySwitch.append( '    if ( a & 1 ) == 0 : ' )
-PySwitch.append( '        sleep(1)    ' )
-PySwitch.append( '    return a & 1,1-(a&1),a    ' )
-Switch,EndOfSwitch = GraphSwitchs.SNode( 'Switch' , PySwitch )
-EndOfSwitch.SetName( 'EndOfSwitch' )
-EndOfSwitch.SetAuthor( '' )
-EndOfSwitch.SetComment( '' )
-EndOfSwitch.Coords( 587 , 126 )
-PyEndOfSwitch = []
-EndOfSwitch.SetPyFunction( 'EndSwitch' , PyEndOfSwitch )
-EndOfSwitch.InPort( 'a' , 'long' )
-EndOfSwitch.OutPort( 'a' , 'long' )
-Switch.SetName( 'Switch' )
-Switch.SetAuthor( '' )
-Switch.SetComment( '' )
-Switch.Coords( 186 , 130 )
-Switch.InPort( 'a' , 'long' )
-Switch.OutPort( 'Odd' , 'long' )
-Switch.OutPort( 'Even' , 'int' )
-Switch.OutPort( 'a' , 'int' )
-
-PySwitch_1 = []
-PySwitch_1.append( 'from time import *  ' )
-PySwitch_1.append( 'def Switch(a) :    ' )
-PySwitch_1.append( '    if ( a & 1 ) == 0 :  ' )
-PySwitch_1.append( '        sleep(1)  ' )
-PySwitch_1.append( '    return a & 1,1-(a&1),a    ' )
-Switch_1,EndSwitch = GraphSwitchs.SNode( 'Switch' , PySwitch_1 )
-EndSwitch.SetName( 'EndSwitch' )
-EndSwitch.SetAuthor( '' )
-EndSwitch.SetComment( '' )
-EndSwitch.Coords( 605 , 382 )
-PyEndSwitch = []
-EndSwitch.SetPyFunction( 'EndSwitch' , PyEndSwitch )
-EndSwitch.InPort( 'a' , 'long' )
-EndSwitch.OutPort( 'a' , 'long' )
-Switch_1.SetName( 'Switch_1' )
-Switch_1.SetAuthor( '' )
-Switch_1.SetComment( '' )
-Switch_1.Coords( 193 , 388 )
-Switch_1.InPort( 'a' , 'long' )
-Switch_1.OutPort( 'Odd' , 'long' )
-Switch_1.OutPort( 'Even' , 'int' )
-Switch_1.OutPort( 'a' , 'int' )
-
-# Creation of Links
-IsOdda = IsOdd.Port( 'a' )
-EndOfSwitcha = GraphSwitchs.Link( IsOdda , EndOfSwitch.Port( 'a' ) )
-EndOfSwitcha.AddCoord( 1 , 573 , 160 )
-EndOfSwitcha.AddCoord( 2 , 572 , 130 )
-
-InitLoopSwitchIndex = InitLoopSwitch.Port( 'Index' )
-Switcha = GraphSwitchs.Link( InitLoopSwitchIndex , Switch.Port( 'a' ) )
-
-InitLoopSwitchMin = InitLoopSwitch.Port( 'Min' )
-EndOfInitLoopSwitchMin = GraphSwitchs.Link( InitLoopSwitchMin , EndOfInitLoopSwitch.Port( 'Min' ) )
-
-InitLoopSwitchMax = InitLoopSwitch.Port( 'Max' )
-EndOfInitLoopSwitchMax = GraphSwitchs.Link( InitLoopSwitchMax , EndOfInitLoopSwitch.Port( 'Max' ) )
-
-SwitchOdd = Switch.Port( 'Odd' )
-IsOddInGate = GraphSwitchs.Link( SwitchOdd , IsOdd.Port( 'InGate' ) )
-
-Switcha = Switch.Port( 'a' )
-IsOdda = GraphSwitchs.Link( Switcha , IsOdd.Port( 'a' ) )
-IsOdda.AddCoord( 1 , 365 , 129 )
-IsOdda.AddCoord( 2 , 365 , 222 )
-
-SwitchDefault = Switch.Port( 'Default' )
-EndOfSwitchDefault = GraphSwitchs.Link( SwitchDefault , EndOfSwitch.Port( 'Default' ) )
-EndOfSwitchDefault.AddCoord( 1 , 572 , 194 )
-EndOfSwitchDefault.AddCoord( 2 , 571 , 257 )
-
-EndOfSwitcha = EndOfSwitch.Port( 'a' )
-EndOfInitLoopSwitchIndex = GraphSwitchs.Link( EndOfSwitcha , EndOfInitLoopSwitch.Port( 'Index' ) )
-
-IsOdd_1a = IsOdd_1.Port( 'a' )
-EndSwitcha = GraphSwitchs.Link( IsOdd_1a , EndSwitch.Port( 'a' ) )
-EndSwitcha.AddCoord( 1 , 599 , 416 )
-EndSwitcha.AddCoord( 2 , 598 , 389 )
-
-InitLoopIndex = InitLoop.Port( 'Index' )
-Switch_1a = GraphSwitchs.Link( InitLoopIndex , Switch_1.Port( 'a' ) )
-
-InitLoopMin = InitLoop.Port( 'Min' )
-EndOfInitLoopMin = GraphSwitchs.Link( InitLoopMin , EndOfInitLoop.Port( 'Min' ) )
-
-InitLoopMax = InitLoop.Port( 'Max' )
-EndOfInitLoopMax = GraphSwitchs.Link( InitLoopMax , EndOfInitLoop.Port( 'Max' ) )
-
-Switch_1Odd = Switch_1.Port( 'Odd' )
-IsOdd_1InGate = GraphSwitchs.Link( Switch_1Odd , IsOdd_1.Port( 'InGate' ) )
-
-Switch_1Even = Switch_1.Port( 'Even' )
-EndSwitchDefault = GraphSwitchs.Link( Switch_1Even , EndSwitch.Port( 'Default' ) )
-
-Switch_1a = Switch_1.Port( 'a' )
-IsOdd_1a = GraphSwitchs.Link( Switch_1a , IsOdd_1.Port( 'a' ) )
-IsOdd_1a.AddCoord( 1 , 379 , 387 )
-IsOdd_1a.AddCoord( 2 , 378 , 481 )
-
-EndSwitcha = EndSwitch.Port( 'a' )
-EndOfInitLoopIndex = GraphSwitchs.Link( EndSwitcha , EndOfInitLoop.Port( 'Index' ) )
-
-# Creation of Input datas
-InitLoopSwitchIndex = InitLoopSwitch.Input( 'Index' , 0)
-InitLoopSwitchMin = InitLoopSwitch.Input( 'Min' , 0)
-InitLoopSwitchMax = InitLoopSwitch.Input( 'Max' , 100)
-InitLoopIndex = InitLoop.Input( 'Index' , 0)
-InitLoopMin = InitLoop.Input( 'Min' , 0)
-InitLoopMax = InitLoop.Input( 'Max' , 100)
-
-# Creation of Output variables
-EndOfInitLoopSwitchIndex = EndOfInitLoopSwitch.Port( 'Index' )
-EndOfInitLoopSwitchMin = EndOfInitLoopSwitch.Port( 'Min' )
-EndOfInitLoopSwitchMax = EndOfInitLoopSwitch.Port( 'Max' )
-SwitchEven = Switch.Port( 'Even' )
-EndOfInitLoopIndex = EndOfInitLoop.Port( 'Index' )
-EndOfInitLoopMin = EndOfInitLoop.Port( 'Min' )
-EndOfInitLoopMax = EndOfInitLoop.Port( 'Max' )
-
-GraphSwitchs.Run()
-GraphSwitchs.DoneW()
-print GraphSwitchs.State()
-GraphSwitchs.PrintPorts()
+GraphSwitchs = DefGraphSwitchs()
index 059040e09201f6785e799391938498bcfa952ed6..4ea913b818a708d8631aa177f1a19e82467c0995 100755 (executable)
-<!DOCTYPE Dataflow>
+<!DOCTYPE SuperGraph>
+<supergraph>
 <dataflow>
 <info-list>
 <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>GraphSwitchs</node-name>
-   <kind>1</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>GraphSwitchs</node-name>
+    <kind>1</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>GraphSwitchs</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>InitLoopSwitch\Index</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>InitLoopSwitch__Index</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>InitLoopSwitch\Min</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>InitLoopSwitch__Min</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>InitLoopSwitch\Max</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>InitLoopSwitch__Max</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>InitLoop\Index</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>InitLoop__Index</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>InitLoop\Min</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>InitLoop__Min</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>InitLoop\Max</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>InitLoop__Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>EndOfInitLoopSwitch\Index</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>EndOfInitLoopSwitch__Index</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>EndOfInitLoopSwitch\Min</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>EndOfInitLoopSwitch__Min</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>EndOfInitLoopSwitch\Max</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>EndOfInitLoopSwitch__Max</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>int</outParameter-type>
-      <outParameter-name>Switch\Even</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Switch__Even</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>EndOfInitLoop\Index</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>EndOfInitLoop__Index</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>EndOfInitLoop\Min</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>EndOfInitLoop__Min</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>EndOfInitLoop\Max</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list/>
-   <creation-date>14/10/2003 - 10:29:4</creation-date>
-   <lastmodification-date>16/10/2003 - 10:57:24</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>0</x-position>
-   <y-position>0</y-position>  </node> </info-list>
- <node-list>
+       <outParameter-name>EndOfInitLoop__Max</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>int</outParameter-type>
+       <outParameter-name>Switch_1__Even</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>14/10/2003 - 10:29:4</creation-date>
+    <lastmodification-date>15/2/2005 - 10:2:34</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>JR</author>
+    <container>?</container>
+    <comment>?</comment>
+    <x-position>0</x-position>
+    <y-position>0</y-position>   </node>  </info-list>
+  <node-list>
 <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>IsOdd</node-name>
-   <kind>3</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>IsOdd</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>IsOdd</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>a</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>a</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>IsOdd</FuncName>
-     <PyFunc><![CDATA[from time import *   ]]></PyFunc>
-     <PyFunc><![CDATA[def IsOdd(a) :       ]]></PyFunc>
-     <PyFunc><![CDATA[    print a,"IsOdd (GraphSwitchs)"      ]]></PyFunc>
-     <PyFunc><![CDATA[    sleep( 1 )   ]]></PyFunc>
-     <PyFunc><![CDATA[    return a     ]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>16/10/2003 - 10:57:24</creation-date>
-   <lastmodification-date>16/10/2003 - 10:57:24</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>Python function</comment>
-   <x-position>388</x-position>
-   <y-position>50</y-position>  </node>
-  <node>
+      <PyFunc><![CDATA[from time import *   ]]></PyFunc>
+      <PyFunc><![CDATA[def IsOdd(a) :       ]]></PyFunc>
+      <PyFunc><![CDATA[    print a,"IsOdd (GraphSwitchs)"      ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep( 1 )   ]]></PyFunc>
+      <PyFunc><![CDATA[    return a     ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>15/2/2005 - 10:2:34</creation-date>
+    <lastmodification-date>15/2/2005 - 10:2:34</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Python function</comment>
+    <x-position>390</x-position>
+    <y-position>66</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>InitLoopSwitch</node-name>
-   <kind>4</kind>
-   <coupled-node>EndOfInitLoopSwitch</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>InitLoopSwitch</node-name>
+    <kind>4</kind>
+    <coupled-node>EndOfInitLoopSwitch</coupled-node>
+    <service>
 <service-name>InitLoopSwitch</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>Index</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>Index</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>Min</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>Min</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>Max</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Index</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Index</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Min</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Min</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Max</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
+       <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>InitLoop</FuncName>
-     <PyFunc><![CDATA[def InitLoop(Index,Min,Max) :      ]]></PyFunc>
-     <PyFunc><![CDATA[ return Index,Min,Max     ]]></PyFunc>    </PyFunction>
-    <PyFunction>
+      <PyFunc><![CDATA[def InitLoop(Index,Min,Max) :      ]]></PyFunc>
+      <PyFunc><![CDATA[        return Index,Min,Max     ]]></PyFunc>     </PyFunction>
+     <PyFunction>
 <FuncName>MoreLoop</FuncName>
-     <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) :     ]]></PyFunc>
-     <PyFunc><![CDATA[ if Index <= Max :   ]]></PyFunc>
-     <PyFunc><![CDATA[         DoLoop = 1     ]]></PyFunc>
-     <PyFunc><![CDATA[ else :     ]]></PyFunc>
-     <PyFunc><![CDATA[         DoLoop = 0     ]]></PyFunc>
-     <PyFunc><![CDATA[ return DoLoop,Index,Min,Max     ]]></PyFunc>    </PyFunction>
-    <PyFunction>
+      <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) :     ]]></PyFunc>
+      <PyFunc><![CDATA[        if Index <= Max :   ]]></PyFunc>
+      <PyFunc><![CDATA[                DoLoop = 1     ]]></PyFunc>
+      <PyFunc><![CDATA[        else :     ]]></PyFunc>
+      <PyFunc><![CDATA[                DoLoop = 0     ]]></PyFunc>
+      <PyFunc><![CDATA[        return DoLoop,Index,Min,Max     ]]></PyFunc>     </PyFunction>
+     <PyFunction>
 <FuncName>NextLoop</FuncName>
-     <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>16/10/2003 - 10:57:24</creation-date>
-   <lastmodification-date>16/10/2003 - 10:57:24</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>10</x-position>
-   <y-position>129</y-position>  </node>
-  <node>
+      <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>15/2/2005 - 10:2:34</creation-date>
+    <lastmodification-date>15/2/2005 - 10:2:34</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>10</x-position>
+    <y-position>129</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>EndOfInitLoopSwitch</node-name>
-   <kind>5</kind>
-   <coupled-node>InitLoopSwitch</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>EndOfInitLoopSwitch</node-name>
+    <kind>5</kind>
+    <coupled-node>InitLoopSwitch</coupled-node>
+    <service>
 <service-name>EndOfInitLoopSwitch</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>Index</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>Index</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>Min</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>Min</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>Max</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Index</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Index</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Min</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Min</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Max</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
-<PyFunction/>   </PyFunction-list>
-   <creation-date>16/10/2003 - 10:57:24</creation-date>
-   <lastmodification-date>16/10/2003 - 10:57:24</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>766</x-position>
-   <y-position>127</y-position>  </node>
-  <node>
+       <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>?</FuncName>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>15/2/2005 - 10:2:34</creation-date>
+    <lastmodification-date>15/2/2005 - 10:2:34</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>780</x-position>
+    <y-position>170</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>Switch</node-name>
-   <kind>6</kind>
-   <coupled-node>EndOfSwitch</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>Switch</node-name>
+    <kind>6</kind>
+    <coupled-node>EndOfSwitch</coupled-node>
+    <service>
 <service-name>Switch</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>a</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Odd</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>int</outParameter-type>
-      <outParameter-name>Even</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Even</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>int</outParameter-type>
-      <outParameter-name>a</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>Switch</FuncName>
-     <PyFunc><![CDATA[from time import * ]]></PyFunc>
-     <PyFunc><![CDATA[def Switch(a) :   ]]></PyFunc>
-     <PyFunc><![CDATA[    if ( a & 1 ) == 0 : ]]></PyFunc>
-     <PyFunc><![CDATA[        sleep(1)    ]]></PyFunc>
-     <PyFunc><![CDATA[    return a & 1,1-(a&1),a    ]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>16/10/2003 - 10:57:24</creation-date>
-   <lastmodification-date>16/10/2003 - 10:57:24</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>186</x-position>
-   <y-position>130</y-position>  </node>
-  <node>
+      <PyFunc><![CDATA[from time import * ]]></PyFunc>
+      <PyFunc><![CDATA[def Switch(a) :   ]]></PyFunc>
+      <PyFunc><![CDATA[    if ( a & 1 ) == 0 : ]]></PyFunc>
+      <PyFunc><![CDATA[        sleep(1)    ]]></PyFunc>
+      <PyFunc><![CDATA[    return a & 1,1-(a&1),a    ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>15/2/2005 - 10:2:34</creation-date>
+    <lastmodification-date>15/2/2005 - 10:2:34</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>186</x-position>
+    <y-position>130</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>EndOfSwitch</node-name>
-   <kind>7</kind>
-   <coupled-node>Switch</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>EndOfSwitch</node-name>
+    <kind>7</kind>
+    <coupled-node>Switch</coupled-node>
+    <service>
 <service-name>EndOfSwitch</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>a</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>a</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
-<PyFunction/>   </PyFunction-list>
-   <creation-date>16/10/2003 - 10:57:24</creation-date>
-   <lastmodification-date>16/10/2003 - 10:57:24</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>587</x-position>
-   <y-position>126</y-position>  </node>
-  <node>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>?</FuncName>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>15/2/2005 - 10:2:34</creation-date>
+    <lastmodification-date>15/2/2005 - 10:2:34</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>587</x-position>
+    <y-position>170</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>IsOdd_1</node-name>
-   <kind>3</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>IsOdd_1</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>IsOdd_1</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>a</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>a</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>IsOdd</FuncName>
-     <PyFunc><![CDATA[from time import *   ]]></PyFunc>
-     <PyFunc><![CDATA[def IsOdd(a) :       ]]></PyFunc>
-     <PyFunc><![CDATA[    print a,"IsOdd_1 (GraphSwitchs)"      ]]></PyFunc>
-     <PyFunc><![CDATA[    sleep( 1 )   ]]></PyFunc>
-     <PyFunc><![CDATA[    return a     ]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>16/10/2003 - 10:57:24</creation-date>
-   <lastmodification-date>16/10/2003 - 10:57:24</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>Python function</comment>
-   <x-position>419</x-position>
-   <y-position>308</y-position>  </node>
-  <node>
+      <PyFunc><![CDATA[from time import *   ]]></PyFunc>
+      <PyFunc><![CDATA[def IsOdd(a) :       ]]></PyFunc>
+      <PyFunc><![CDATA[    print a,"IsOdd_1 (GraphSwitchs)"      ]]></PyFunc>
+      <PyFunc><![CDATA[    sleep( 1 )   ]]></PyFunc>
+      <PyFunc><![CDATA[    return a     ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>15/2/2005 - 10:2:34</creation-date>
+    <lastmodification-date>15/2/2005 - 10:2:34</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Python function</comment>
+    <x-position>415</x-position>
+    <y-position>324</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>InitLoop</node-name>
-   <kind>4</kind>
-   <coupled-node>EndOfInitLoop</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>InitLoop</node-name>
+    <kind>4</kind>
+    <coupled-node>EndOfInitLoop</coupled-node>
+    <service>
 <service-name>InitLoop</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>Index</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>Index</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>Min</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>Min</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>Max</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Index</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Index</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Min</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Min</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Max</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
+       <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>InitLoop</FuncName>
-     <PyFunc><![CDATA[def InitLoop(Index,Min,Max) :      ]]></PyFunc>
-     <PyFunc><![CDATA[ return Index,Min,Max     ]]></PyFunc>    </PyFunction>
-    <PyFunction>
+      <PyFunc><![CDATA[def InitLoop(Index,Min,Max) :      ]]></PyFunc>
+      <PyFunc><![CDATA[        return Index,Min,Max     ]]></PyFunc>     </PyFunction>
+     <PyFunction>
 <FuncName>MoreLoop</FuncName>
-     <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) :     ]]></PyFunc>
-     <PyFunc><![CDATA[ if Index <= Max :   ]]></PyFunc>
-     <PyFunc><![CDATA[         DoLoop = 1     ]]></PyFunc>
-     <PyFunc><![CDATA[ else :     ]]></PyFunc>
-     <PyFunc><![CDATA[         DoLoop = 0     ]]></PyFunc>
-     <PyFunc><![CDATA[ return DoLoop,Index,Min,Max     ]]></PyFunc>    </PyFunction>
-    <PyFunction>
+      <PyFunc><![CDATA[def MoreLoop(Index,Min,Max) :     ]]></PyFunc>
+      <PyFunc><![CDATA[        if Index <= Max :   ]]></PyFunc>
+      <PyFunc><![CDATA[                DoLoop = 1     ]]></PyFunc>
+      <PyFunc><![CDATA[        else :     ]]></PyFunc>
+      <PyFunc><![CDATA[                DoLoop = 0     ]]></PyFunc>
+      <PyFunc><![CDATA[        return DoLoop,Index,Min,Max     ]]></PyFunc>     </PyFunction>
+     <PyFunction>
 <FuncName>NextLoop</FuncName>
-     <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>16/10/2003 - 10:57:24</creation-date>
-   <lastmodification-date>16/10/2003 - 10:57:24</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>10</x-position>
-   <y-position>388</y-position>  </node>
-  <node>
+      <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>15/2/2005 - 10:2:34</creation-date>
+    <lastmodification-date>15/2/2005 - 10:2:34</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>10</x-position>
+    <y-position>388</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>EndOfInitLoop</node-name>
-   <kind>5</kind>
-   <coupled-node>InitLoop</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>EndOfInitLoop</node-name>
+    <kind>5</kind>
+    <coupled-node>InitLoop</coupled-node>
+    <service>
 <service-name>EndOfInitLoop</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>Index</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>Index</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>Min</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>Min</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>Max</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>Max</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Index</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Index</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Min</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Min</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Max</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
-<PyFunction/>   </PyFunction-list>
-   <creation-date>16/10/2003 - 10:57:24</creation-date>
-   <lastmodification-date>16/10/2003 - 10:57:24</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>783</x-position>
-   <y-position>381</y-position>  </node>
-  <node>
+       <outParameter-name>Max</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>?</FuncName>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>15/2/2005 - 10:2:34</creation-date>
+    <lastmodification-date>15/2/2005 - 10:2:34</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>800</x-position>
+    <y-position>427</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>Switch_1</node-name>
-   <kind>6</kind>
-   <coupled-node>EndSwitch</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>Switch_1</node-name>
+    <kind>6</kind>
+    <coupled-node>EndSwitch</coupled-node>
+    <service>
 <service-name>Switch_1</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>a</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Odd</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>int</outParameter-type>
-      <outParameter-name>Even</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Even</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>int</outParameter-type>
-      <outParameter-name>a</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>Switch</FuncName>
-     <PyFunc><![CDATA[from time import *  ]]></PyFunc>
-     <PyFunc><![CDATA[def Switch(a) :    ]]></PyFunc>
-     <PyFunc><![CDATA[    if ( a & 1 ) == 0 :  ]]></PyFunc>
-     <PyFunc><![CDATA[        sleep(1)  ]]></PyFunc>
-     <PyFunc><![CDATA[    return a & 1,1-(a&1),a    ]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>16/10/2003 - 10:57:24</creation-date>
-   <lastmodification-date>16/10/2003 - 10:57:24</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>193</x-position>
-   <y-position>388</y-position>  </node>
-  <node>
+      <PyFunc><![CDATA[from time import *  ]]></PyFunc>
+      <PyFunc><![CDATA[def Switch(a) :    ]]></PyFunc>
+      <PyFunc><![CDATA[    if ( a & 1 ) == 0 :  ]]></PyFunc>
+      <PyFunc><![CDATA[        sleep(1)  ]]></PyFunc>
+      <PyFunc><![CDATA[    return a & 1,1-(a&1),a    ]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>15/2/2005 - 10:2:34</creation-date>
+    <lastmodification-date>15/2/2005 - 10:2:34</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>193</x-position>
+    <y-position>388</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>EndSwitch</node-name>
-   <kind>7</kind>
-   <coupled-node>Switch_1</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>EndSwitch</node-name>
+    <kind>7</kind>
+    <coupled-node>Switch_1</coupled-node>
+    <service>
 <service-name>EndSwitch</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>a</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>a</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>a</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
-<PyFunction/>   </PyFunction-list>
-   <creation-date>16/10/2003 - 10:57:24</creation-date>
-   <lastmodification-date>16/10/2003 - 10:57:24</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>605</x-position>
-   <y-position>382</y-position>  </node> </node-list>
- <link-list>
+       <outParameter-name>a</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>?</FuncName>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>15/2/2005 - 10:2:34</creation-date>
+    <lastmodification-date>15/2/2005 - 10:2:34</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>605</x-position>
+    <y-position>428</y-position>   </node>  </node-list>
+  <link-list>
 <link>
 <fromnode-name>IsOdd</fromnode-name>
-   <fromserviceparameter-name>a</fromserviceparameter-name>
-   <tonode-name>EndOfSwitch</tonode-name>
-   <toserviceparameter-name>a</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfSwitch</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>573</x>
-     <y>160</y>    </coord>
-    <coord>
-<x>572</x>
-     <y>130</y>    </coord>   </coord-list>  </link>
-  <link>
+<x>569</x>
+      <y>199</y>     </coord>
+     <coord>
+<x>569</x>
+      <y>137</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>InitLoopSwitch</fromnode-name>
-   <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
-   <tonode-name>EndOfInitLoopSwitch</tonode-name>
-   <toserviceparameter-name>DoLoop</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+    <tonode-name>EndOfInitLoopSwitch</tonode-name>
+    <toserviceparameter-name>DoLoop</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>InitLoopSwitch</fromnode-name>
-   <fromserviceparameter-name>Index</fromserviceparameter-name>
-   <tonode-name>Switch</tonode-name>
-   <toserviceparameter-name>a</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>Index</fromserviceparameter-name>
+    <tonode-name>Switch</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>InitLoopSwitch</fromnode-name>
-   <fromserviceparameter-name>Min</fromserviceparameter-name>
-   <tonode-name>EndOfInitLoopSwitch</tonode-name>
-   <toserviceparameter-name>Min</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>Min</fromserviceparameter-name>
+    <tonode-name>EndOfInitLoopSwitch</tonode-name>
+    <toserviceparameter-name>Min</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>InitLoopSwitch</fromnode-name>
-   <fromserviceparameter-name>Max</fromserviceparameter-name>
-   <tonode-name>EndOfInitLoopSwitch</tonode-name>
-   <toserviceparameter-name>Max</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>Max</fromserviceparameter-name>
+    <tonode-name>EndOfInitLoopSwitch</tonode-name>
+    <toserviceparameter-name>Max</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>EndOfInitLoopSwitch</fromnode-name>
-   <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
-   <tonode-name>InitLoopSwitch</tonode-name>
-   <toserviceparameter-name>DoLoop</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+    <tonode-name>InitLoopSwitch</tonode-name>
+    <toserviceparameter-name>DoLoop</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>Switch</fromnode-name>
-   <fromserviceparameter-name>Odd</fromserviceparameter-name>
-   <tonode-name>IsOdd</tonode-name>
-   <toserviceparameter-name>InGate</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>IsOdd</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>Switch</fromnode-name>
-   <fromserviceparameter-name>a</fromserviceparameter-name>
-   <tonode-name>IsOdd</tonode-name>
-   <toserviceparameter-name>a</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>IsOdd</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list>
 <coord>
 <x>365</x>
-     <y>129</y>    </coord>
-    <coord>
+      <y>137</y>     </coord>
+     <coord>
 <x>365</x>
-     <y>222</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>201</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>Switch</fromnode-name>
-   <fromserviceparameter-name>Default</fromserviceparameter-name>
-   <tonode-name>EndOfSwitch</tonode-name>
-   <toserviceparameter-name>Default</toserviceparameter-name>
-   <coord-list>
-<coord>
-<x>572</x>
-     <y>194</y>    </coord>
-    <coord>
-<x>571</x>
-     <y>257</y>    </coord>   </coord-list>  </link>
-  <link>
+    <fromserviceparameter-name>Default</fromserviceparameter-name>
+    <tonode-name>EndOfSwitch</tonode-name>
+    <toserviceparameter-name>Default</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>EndOfSwitch</fromnode-name>
-   <fromserviceparameter-name>a</fromserviceparameter-name>
-   <tonode-name>EndOfInitLoopSwitch</tonode-name>
-   <toserviceparameter-name>Index</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfInitLoopSwitch</tonode-name>
+    <toserviceparameter-name>Index</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>IsOdd_1</fromnode-name>
-   <fromserviceparameter-name>a</fromserviceparameter-name>
-   <tonode-name>EndSwitch</tonode-name>
-   <toserviceparameter-name>a</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndSwitch</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>599</x>
-     <y>416</y>    </coord>
-    <coord>
-<x>598</x>
-     <y>389</y>    </coord>   </coord-list>  </link>
-  <link>
+<x>592</x>
+      <y>459</y>     </coord>
+     <coord>
+<x>592</x>
+      <y>395</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>InitLoop</fromnode-name>
-   <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
-   <tonode-name>EndOfInitLoop</tonode-name>
-   <toserviceparameter-name>DoLoop</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+    <tonode-name>EndOfInitLoop</tonode-name>
+    <toserviceparameter-name>DoLoop</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>InitLoop</fromnode-name>
-   <fromserviceparameter-name>Index</fromserviceparameter-name>
-   <tonode-name>Switch_1</tonode-name>
-   <toserviceparameter-name>a</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>Index</fromserviceparameter-name>
+    <tonode-name>Switch_1</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>InitLoop</fromnode-name>
-   <fromserviceparameter-name>Min</fromserviceparameter-name>
-   <tonode-name>EndOfInitLoop</tonode-name>
-   <toserviceparameter-name>Min</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>Min</fromserviceparameter-name>
+    <tonode-name>EndOfInitLoop</tonode-name>
+    <toserviceparameter-name>Min</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>InitLoop</fromnode-name>
-   <fromserviceparameter-name>Max</fromserviceparameter-name>
-   <tonode-name>EndOfInitLoop</tonode-name>
-   <toserviceparameter-name>Max</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>Max</fromserviceparameter-name>
+    <tonode-name>EndOfInitLoop</tonode-name>
+    <toserviceparameter-name>Max</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>EndOfInitLoop</fromnode-name>
-   <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
-   <tonode-name>InitLoop</tonode-name>
-   <toserviceparameter-name>DoLoop</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
+    <tonode-name>InitLoop</tonode-name>
+    <toserviceparameter-name>DoLoop</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>Switch_1</fromnode-name>
-   <fromserviceparameter-name>Odd</fromserviceparameter-name>
-   <tonode-name>IsOdd_1</tonode-name>
-   <toserviceparameter-name>InGate</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>IsOdd_1</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>Switch_1</fromnode-name>
-   <fromserviceparameter-name>Even</fromserviceparameter-name>
-   <tonode-name>EndSwitch</tonode-name>
-   <toserviceparameter-name>Default</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
-<fromnode-name>Switch_1</fromnode-name>
-   <fromserviceparameter-name>a</fromserviceparameter-name>
-   <tonode-name>IsOdd_1</tonode-name>
-   <toserviceparameter-name>a</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>IsOdd_1</tonode-name>
+    <toserviceparameter-name>a</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>379</x>
-     <y>387</y>    </coord>
-    <coord>
-<x>378</x>
-     <y>481</y>    </coord>   </coord-list>  </link>
-  <link>
+<x>381</x>
+      <y>394</y>     </coord>
+     <coord>
+<x>381</x>
+      <y>458</y>     </coord>    </coord-list>   </link>
+   <link>
+<fromnode-name>Switch_1</fromnode-name>
+    <fromserviceparameter-name>Default</fromserviceparameter-name>
+    <tonode-name>EndSwitch</tonode-name>
+    <toserviceparameter-name>Default</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>EndSwitch</fromnode-name>
-   <fromserviceparameter-name>a</fromserviceparameter-name>
-   <tonode-name>EndOfInitLoop</tonode-name>
-   <toserviceparameter-name>Index</toserviceparameter-name>
-   <coord-list/>  </link> </link-list>
- <data-list>
+    <fromserviceparameter-name>a</fromserviceparameter-name>
+    <tonode-name>EndOfInitLoop</tonode-name>
+    <toserviceparameter-name>Index</toserviceparameter-name>
+    <coord-list/>   </link>  </link-list>
 <data-list>
 <data>
 <fromnode-name>GraphSwitchs</fromnode-name>
-   <fromserviceparameter-name>InitLoopSwitch\Index</fromserviceparameter-name>
-   <tonode-name>InitLoopSwitch</tonode-name>
-   <toserviceparameter-name>Index</toserviceparameter-name>
-   <data-value>
+    <fromserviceparameter-name>InitLoopSwitch__Index</fromserviceparameter-name>
+    <tonode-name>InitLoopSwitch</tonode-name>
+    <toserviceparameter-name>Index</toserviceparameter-name>
+    <data-value>
 <value-type>3</value-type>
-    <value>0</value>   </data-value>
-   <coord-list/>  </data>
-  <data>
+     <value>0</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
 <fromnode-name>GraphSwitchs</fromnode-name>
-   <fromserviceparameter-name>InitLoopSwitch\Min</fromserviceparameter-name>
-   <tonode-name>InitLoopSwitch</tonode-name>
-   <toserviceparameter-name>Min</toserviceparameter-name>
-   <data-value>
+    <fromserviceparameter-name>InitLoopSwitch__Min</fromserviceparameter-name>
+    <tonode-name>InitLoopSwitch</tonode-name>
+    <toserviceparameter-name>Min</toserviceparameter-name>
+    <data-value>
 <value-type>3</value-type>
-    <value>0</value>   </data-value>
-   <coord-list/>  </data>
-  <data>
+     <value>0</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
 <fromnode-name>GraphSwitchs</fromnode-name>
-   <fromserviceparameter-name>InitLoopSwitch\Max</fromserviceparameter-name>
-   <tonode-name>InitLoopSwitch</tonode-name>
-   <toserviceparameter-name>Max</toserviceparameter-name>
-   <data-value>
+    <fromserviceparameter-name>InitLoopSwitch__Max</fromserviceparameter-name>
+    <tonode-name>InitLoopSwitch</tonode-name>
+    <toserviceparameter-name>Max</toserviceparameter-name>
+    <data-value>
 <value-type>3</value-type>
-    <value>100</value>   </data-value>
-   <coord-list/>  </data>
-  <data>
+     <value>20</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
 <fromnode-name>GraphSwitchs</fromnode-name>
-   <fromserviceparameter-name>InitLoop\Index</fromserviceparameter-name>
-   <tonode-name>InitLoop</tonode-name>
-   <toserviceparameter-name>Index</toserviceparameter-name>
-   <data-value>
+    <fromserviceparameter-name>InitLoop__Index</fromserviceparameter-name>
+    <tonode-name>InitLoop</tonode-name>
+    <toserviceparameter-name>Index</toserviceparameter-name>
+    <data-value>
 <value-type>3</value-type>
-    <value>0</value>   </data-value>
-   <coord-list/>  </data>
-  <data>
+     <value>0</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
 <fromnode-name>GraphSwitchs</fromnode-name>
-   <fromserviceparameter-name>InitLoop\Min</fromserviceparameter-name>
-   <tonode-name>InitLoop</tonode-name>
-   <toserviceparameter-name>Min</toserviceparameter-name>
-   <data-value>
+    <fromserviceparameter-name>InitLoop__Min</fromserviceparameter-name>
+    <tonode-name>InitLoop</tonode-name>
+    <toserviceparameter-name>Min</toserviceparameter-name>
+    <data-value>
 <value-type>3</value-type>
-    <value>0</value>   </data-value>
-   <coord-list/>  </data>
-  <data>
+     <value>0</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
 <fromnode-name>GraphSwitchs</fromnode-name>
-   <fromserviceparameter-name>InitLoop\Max</fromserviceparameter-name>
-   <tonode-name>InitLoop</tonode-name>
-   <toserviceparameter-name>Max</toserviceparameter-name>
-   <data-value>
+    <fromserviceparameter-name>InitLoop__Max</fromserviceparameter-name>
+    <tonode-name>InitLoop</tonode-name>
+    <toserviceparameter-name>Max</toserviceparameter-name>
+    <data-value>
 <value-type>3</value-type>
-    <value>100</value>   </data-value>
-   <coord-list/>  </data> </data-list></dataflow>
+     <value>20</value>    </data-value>
+    <coord-list/>   </data>  </data-list> </dataflow></supergraph>
index c1ea545cbd47c751a5a3f4929b94648e5783fbc6..61d71dc2bbaf2340c2d3d2d2c1a94ee1e320e564 100644 (file)
 # Generated python file of Graph GraphSyrControl
 
 from SuperV import *
-# Graph creation 
-GraphSyrControl = Graph( 'GraphSyrControl' )
-GraphSyrControl.SetName( 'GraphSyrControl' )
-GraphSyrControl.SetAuthor( 'JR' )
-GraphSyrControl.SetComment( 'Syracuse algorithm' )
-GraphSyrControl.Coords( 0 , 0 )
-
-# Creation of Factory Nodes
-
-test_ISEVEN = GraphSyrControl.FNode( 'SyrComponent' , 'SyrComponent' , 'C_ISEVEN' )
-test_ISEVEN.SetName( 'test_ISEVEN' )
-test_ISEVEN.SetAuthor( '' )
-test_ISEVEN.SetContainer( 'localhost/FactoryServer' )
-test_ISEVEN.SetComment( 'C_ISEVEN from SyrComponent' )
-test_ISEVEN.Coords( 190 , 338 )
-
-test_ISONE = GraphSyrControl.FNode( 'SyrComponent' , 'SyrComponent' , 'C_ISONE' )
-test_ISONE.SetName( 'test_ISONE' )
-test_ISONE.SetAuthor( '' )
-test_ISONE.SetContainer( 'localhost/FactoryServer' )
-test_ISONE.SetComment( 'C_ISONE from SyrComponent' )
-test_ISONE.Coords( 196 , 131 )
-
-m3p1 = GraphSyrControl.FNode( 'SyrComponent' , 'SyrComponent' , 'C_M3P1' )
-m3p1.SetName( 'm3p1' )
-m3p1.SetAuthor( '' )
-m3p1.SetContainer( 'localhost/FactoryServer' )
-m3p1.SetComment( 'C_M3P1 from SyrComponent' )
-m3p1.Coords( 788 , 22 )
-
-div2 = GraphSyrControl.FNode( 'SyrComponent' , 'SyrComponent' , 'C_DIV2' )
-div2.SetName( 'div2' )
-div2.SetAuthor( '' )
-div2.SetContainer( 'localhost/FactoryServer' )
-div2.SetComment( 'C_DIV2 from SyrComponent' )
-div2.Coords( 794 , 427 )
-
-incr = GraphSyrControl.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' )
-incr.SetName( 'incr' )
-incr.SetAuthor( '' )
-incr.SetContainer( 'localhost/FactoryServer' )
-incr.SetComment( 'C_INCR from SyrComponent' )
-incr.Coords( 790 , 158 )
-
-# Creation of InLine Nodes
-Pylabel_begin = []
-Pylabel_begin.append( 'def label_begin( NB , KB ):' )
-Pylabel_begin.append( '    print "label_begin",NB,KB' )
-Pylabel_begin.append( '    return NB,KB' )
-label_begin = GraphSyrControl.INode( 'label_begin' , Pylabel_begin )
-label_begin.InPort( 'NB' , 'long' )
-label_begin.InPort( 'KB' , 'long' )
-label_begin.OutPort( 'NT' , 'long' )
-label_begin.OutPort( 'KT' , 'long' )
-label_begin.SetName( 'label_begin' )
-label_begin.SetAuthor( '' )
-label_begin.SetComment( 'Python function' )
-label_begin.Coords( 7 , 216 )
-
-Pylabel_test = []
-Pylabel_test.append( 'def label_test( ValEven , ValOne , NB , KB ):' )
-Pylabel_test.append( '    print "label_begin",ValEven,ValOne,NB,KB' )
-Pylabel_test.append( '    return ValEven,ValOne,NB,KB' )
-label_test = GraphSyrControl.INode( 'label_test' , Pylabel_test )
-label_test.InPort( 'ValEven' , 'long' )
-label_test.InPort( 'ValOne' , 'long' )
-label_test.InPort( 'NT' , 'long' )
-label_test.InPort( 'KT' , 'long' )
-label_test.OutPort( 'ValEven' , 'long' )
-label_test.OutPort( 'ValOne' , 'long' )
-label_test.OutPort( 'NT' , 'long' )
-label_test.OutPort( 'KT' , 'long' )
-label_test.SetName( 'label_test' )
-label_test.SetAuthor( '' )
-label_test.SetComment( 'Python function' )
-label_test.Coords( 385 , 159 )
-
-# Creation of Switch Nodes
-Pytest = []
-Pytest.append( 'def Switch_OneEven( ValOne , ValEven , NT , KT ) :' )
-Pytest.append( '    Finished = ValOne' )
-Pytest.append( '    if Finished == 0 :' )
-Pytest.append( '        Incr = 1' )
-Pytest.append( '        Even = ValEven' )
-Pytest.append( '        if Even == 0 :' )
-Pytest.append( '            Odd = 1' )
-Pytest.append( '        else :' )
-Pytest.append( '            Odd = 0' )
-Pytest.append( '    else :' )
-Pytest.append( '        Incr = 0' )
-Pytest.append( '        Even = 0' )
-Pytest.append( '        Odd = 0' )
-Pytest.append( '    Even = ValEven' )
-Pytest.append( '    return Finished,Incr,Even,Odd,NT,KT' )
-test,EndSwitch_OneEven = GraphSyrControl.SNode( 'Switch_OneEven' , Pytest )
-EndSwitch_OneEven.SetName( 'EndSwitch_OneEven' )
-EndSwitch_OneEven.SetAuthor( '' )
-EndSwitch_OneEven.SetComment( '' )
-EndSwitch_OneEven.Coords( 1065 , 321 )
-PyEndSwitch_OneEven = []
-PyEndSwitch_OneEven.append( 'def EndSwitch_OneEven( Finished , K ):' )
-PyEndSwitch_OneEven.append( '    print "label_begin",Finished,K' )
-PyEndSwitch_OneEven.append( '    return Finished,K' )
-EndSwitch_OneEven.SetPyFunction( 'EndSwitch_OneEven' , PyEndSwitch_OneEven )
-EndSwitch_OneEven.InPort( 'Finished' , 'long' )
-EndSwitch_OneEven.InPort( 'K' , 'long' )
-EndSwitch_OneEven.OutPort( 'Finished' , 'long' )
-EndSwitch_OneEven.OutPort( 'K' , 'long' )
-test.InPort( 'ValOne' , 'long' )
-test.InPort( 'ValEven' , 'long' )
-test.InPort( 'NT' , 'long' )
-test.InPort( 'KT' , 'long' )
-test.OutPort( 'Finished' , 'long' )
-test.OutPort( 'Incr' , 'long' )
-test.OutPort( 'Even' , 'long' )
-test.OutPort( 'Odd' , 'long' )
-test.OutPort( 'N' , 'long' )
-test.OutPort( 'K' , 'long' )
-test.SetName( 'test' )
-test.SetAuthor( '' )
-test.SetComment( '' )
-test.Coords( 592 , 205 )
-
-# Creation of GOTO Nodes
-Pycontrol_m3p1 = []
-Pycontrol_m3p1.append( 'def control_m3p1( N , K ):' )
-Pycontrol_m3p1.append( '    return 0,1,N,K' )
-control_m3p1 = GraphSyrControl.GNode( 'control_m3p1' , Pycontrol_m3p1 , 'label_test' )
-control_m3p1.InPort( 'N' , 'long' )
-control_m3p1.InPort( 'K' , 'long' )
-control_m3p1.OutPort( 'ValOne' , 'long' )
-control_m3p1.OutPort( 'ValEven' , 'long' )
-control_m3p1.OutPort( 'NT' , 'long' )
-control_m3p1.OutPort( 'KT' , 'long' )
-control_m3p1.SetName( 'control_m3p1' )
-control_m3p1.SetAuthor( '' )
-control_m3p1.SetComment( '' )
-control_m3p1.Coords( 1012 , 68 )
-
-Pycontrol_div2 = []
-Pycontrol_div2.append( 'def control_div2( N , NB ) :' )
-Pycontrol_div2.append( '    return N,NB' )
-control_div2 = GraphSyrControl.GNode( 'control_div2' , Pycontrol_div2 , 'label_begin' )
-control_div2.InPort( 'N' , 'long' )
-control_div2.InPort( 'K' , 'long' )
-control_div2.OutPort( 'NB' , 'long' )
-control_div2.OutPort( 'KB' , 'long' )
-control_div2.SetName( 'control_div2' )
-control_div2.SetAuthor( '' )
-control_div2.SetComment( '' )
-control_div2.Coords( 1010 , 473 )
-
-# Creation of Links
-test_ISEVENBoolEven = test_ISEVEN.Port( 'BoolEven' )
-label_testValEven = GraphSyrControl.Link( test_ISEVENBoolEven , label_test.Port( 'ValEven' ) )
-label_testValEven.AddCoord( 1 , 380 , 236 )
-label_testValEven.AddCoord( 2 , 379 , 419 )
-
-test_ISONEBoolOne = test_ISONE.Port( 'BoolOne' )
-label_testValOne = GraphSyrControl.Link( test_ISONEBoolOne , label_test.Port( 'ValOne' ) )
-label_testValOne.AddCoord( 1 , 367 , 269 )
-label_testValOne.AddCoord( 2 , 367 , 213 )
-
-m3p1anEvenInteger = m3p1.Port( 'anEvenInteger' )
-control_m3p1N = GraphSyrControl.Link( m3p1anEvenInteger , control_m3p1.Port( 'N' ) )
-
-div2anInteger = div2.Port( 'anInteger' )
-control_div2N = GraphSyrControl.Link( div2anInteger , control_div2.Port( 'N' ) )
-
-incraNewCount = incr.Port( 'aNewCount' )
-control_m3p1K = GraphSyrControl.Link( incraNewCount , control_m3p1.Port( 'K' ) )
-control_m3p1K.AddCoord( 1 , 978 , 132 )
-control_m3p1K.AddCoord( 2 , 978 , 239 )
-
-control_div2K = GraphSyrControl.Link( incraNewCount , control_div2.Port( 'K' ) )
-control_div2K.AddCoord( 1 , 979 , 536 )
-control_div2K.AddCoord( 2 , 978 , 240 )
-
-label_beginNT = label_begin.Port( 'NT' )
-label_testNT = GraphSyrControl.Link( label_beginNT , label_test.Port( 'NT' ) )
-
-test_ISEVENanInteger = GraphSyrControl.Link( label_beginNT , test_ISEVEN.Port( 'anInteger' ) )
-test_ISEVENanInteger.AddCoord( 1 , 184 , 416 )
-test_ISEVENanInteger.AddCoord( 2 , 185 , 298 )
-
-test_ISONEanInteger = GraphSyrControl.Link( label_beginNT , test_ISONE.Port( 'anInteger' ) )
-test_ISONEanInteger.AddCoord( 1 , 186 , 211 )
-test_ISONEanInteger.AddCoord( 2 , 185 , 297 )
-
-label_beginKT = label_begin.Port( 'KT' )
-label_testKT = GraphSyrControl.Link( label_beginKT , label_test.Port( 'KT' ) )
-
-label_testValEven = label_test.Port( 'ValEven' )
-testValEven = GraphSyrControl.Link( label_testValEven , test.Port( 'ValEven' ) )
-
-label_testValOne = label_test.Port( 'ValOne' )
-testValOne = GraphSyrControl.Link( label_testValOne , test.Port( 'ValOne' ) )
-
-label_testNT = label_test.Port( 'NT' )
-testNT = GraphSyrControl.Link( label_testNT , test.Port( 'NT' ) )
-
-label_testKT = label_test.Port( 'KT' )
-testKT = GraphSyrControl.Link( label_testKT , test.Port( 'KT' ) )
-
-testFinished = test.Port( 'Finished' )
-EndSwitch_OneEvenFinished = GraphSyrControl.Link( testFinished , EndSwitch_OneEven.Port( 'Finished' ) )
-
-testIncr = test.Port( 'Incr' )
-incrInGate = GraphSyrControl.Link( testIncr , incr.Port( 'InGate' ) )
-
-testEven = test.Port( 'Even' )
-div2InGate = GraphSyrControl.Link( testEven , div2.Port( 'InGate' ) )
-div2InGate.AddCoord( 1 , 764 , 536 )
-div2InGate.AddCoord( 2 , 763 , 297 )
-
-testOdd = test.Port( 'Odd' )
-m3p1InGate = GraphSyrControl.Link( testOdd , m3p1.Port( 'InGate' ) )
-m3p1InGate.AddCoord( 1 , 773 , 133 )
-m3p1InGate.AddCoord( 2 , 773 , 326 )
-
-testN = test.Port( 'N' )
-m3p1anOddInteger = GraphSyrControl.Link( testN , m3p1.Port( 'anOddInteger' ) )
-m3p1anOddInteger.AddCoord( 1 , 753 , 102 )
-m3p1anOddInteger.AddCoord( 2 , 752 , 355 )
-
-div2anEvenInteger = GraphSyrControl.Link( testN , div2.Port( 'anEvenInteger' ) )
-div2anEvenInteger.AddCoord( 1 , 753 , 508 )
-div2anEvenInteger.AddCoord( 2 , 752 , 356 )
-
-testK = test.Port( 'K' )
-EndSwitch_OneEvenK = GraphSyrControl.Link( testK , EndSwitch_OneEven.Port( 'K' ) )
-
-incraCount = GraphSyrControl.Link( testK , incr.Port( 'aCount' ) )
-incraCount.AddCoord( 1 , 779 , 239 )
-incraCount.AddCoord( 2 , 780 , 385 )
-
-testDefault = test.Port( 'Default' )
-EndSwitch_OneEvenDefault = GraphSyrControl.Link( testDefault , EndSwitch_OneEven.Port( 'Default' ) )
-
-control_m3p1OutGate = control_m3p1.Port( 'OutGate' )
-label_testInGate = GraphSyrControl.Link( control_m3p1OutGate , label_test.Port( 'InGate' ) )
-label_testInGate.AddCoord( 1 , 373 , 354 )
-label_testInGate.AddCoord( 2 , 372 , 10 )
-label_testInGate.AddCoord( 3 , 1180 , 9 )
-label_testInGate.AddCoord( 4 , 1181 , 217 )
-
-control_div2OutGate = control_div2.Port( 'OutGate' )
-label_beginInGate = GraphSyrControl.Link( control_div2OutGate , label_begin.Port( 'InGate' ) )
-label_beginInGate.AddCoord( 1 , 5 , 355 )
-label_beginInGate.AddCoord( 2 , 4 , 608 )
-label_beginInGate.AddCoord( 3 , 1177 , 608 )
-label_beginInGate.AddCoord( 4 , 1177 , 563 )
-
-# Creation of Input datas
-label_beginNB = label_begin.Input( 'NB' , 7)
-label_beginKB = label_begin.Input( 'KB' , 0)
-
-# Creation of Output variables
-EndSwitch_OneEvenFinished = EndSwitch_OneEven.Port( 'Finished' )
-EndSwitch_OneEvenK = EndSwitch_OneEven.Port( 'K' )
-
-GraphSyrControl.Run( 7 )
-
-GraphSyrControl.DoneW()
-
-print GraphSyrControl.State()
-
-GraphSyrControl.PrintPorts()
-
-label_begin.EPyFunc()
 
+# Graph creation of GraphSyrControl
+def DefGraphSyrControl() :
+    GraphSyrControl = Graph( 'GraphSyrControl' )
+    GraphSyrControl.SetName( 'GraphSyrControl' )
+    GraphSyrControl.SetAuthor( 'JR' )
+    GraphSyrControl.SetComment( 'Syracuse algorithm' )
+    GraphSyrControl.Coords( 0 , 0 )
+    
+    # Creation of Factory Nodes
+    
+    test_ISEVEN = GraphSyrControl.FNode( 'SyrComponent' , 'SyrComponent' , 'C_ISEVEN' )
+    test_ISEVEN.SetName( 'test_ISEVEN' )
+    test_ISEVEN.SetAuthor( '' )
+    test_ISEVEN.SetContainer( 'localhost/FactoryServer' )
+    test_ISEVEN.SetComment( 'C_ISEVEN from SyrComponent' )
+    test_ISEVEN.Coords( 190 , 338 )
+    Itest_ISEVENanInteger = test_ISEVEN.GetInPort( 'anInteger' )
+    Itest_ISEVENGate = test_ISEVEN.GetInPort( 'Gate' )
+    Otest_ISEVENBoolEven = test_ISEVEN.GetOutPort( 'BoolEven' )
+    Otest_ISEVENGate = test_ISEVEN.GetOutPort( 'Gate' )
+    
+    test_ISONE = GraphSyrControl.FNode( 'SyrComponent' , 'SyrComponent' , 'C_ISONE' )
+    test_ISONE.SetName( 'test_ISONE' )
+    test_ISONE.SetAuthor( '' )
+    test_ISONE.SetContainer( 'localhost/FactoryServer' )
+    test_ISONE.SetComment( 'C_ISONE from SyrComponent' )
+    test_ISONE.Coords( 196 , 131 )
+    Itest_ISONEanInteger = test_ISONE.GetInPort( 'anInteger' )
+    Itest_ISONEGate = test_ISONE.GetInPort( 'Gate' )
+    Otest_ISONEBoolOne = test_ISONE.GetOutPort( 'BoolOne' )
+    Otest_ISONEGate = test_ISONE.GetOutPort( 'Gate' )
+    
+    m3p1 = GraphSyrControl.FNode( 'SyrComponent' , 'SyrComponent' , 'C_M3P1' )
+    m3p1.SetName( 'm3p1' )
+    m3p1.SetAuthor( '' )
+    m3p1.SetContainer( 'localhost/FactoryServer' )
+    m3p1.SetComment( 'C_M3P1 from SyrComponent' )
+    m3p1.Coords( 788 , 22 )
+    Im3p1anOddInteger = m3p1.GetInPort( 'anOddInteger' )
+    Im3p1Gate = m3p1.GetInPort( 'Gate' )
+    Om3p1anEvenInteger = m3p1.GetOutPort( 'anEvenInteger' )
+    Om3p1Gate = m3p1.GetOutPort( 'Gate' )
+    
+    div2 = GraphSyrControl.FNode( 'SyrComponent' , 'SyrComponent' , 'C_DIV2' )
+    div2.SetName( 'div2' )
+    div2.SetAuthor( '' )
+    div2.SetContainer( 'localhost/FactoryServer' )
+    div2.SetComment( 'C_DIV2 from SyrComponent' )
+    div2.Coords( 794 , 427 )
+    Idiv2anEvenInteger = div2.GetInPort( 'anEvenInteger' )
+    Idiv2Gate = div2.GetInPort( 'Gate' )
+    Odiv2anInteger = div2.GetOutPort( 'anInteger' )
+    Odiv2Gate = div2.GetOutPort( 'Gate' )
+    
+    incr = GraphSyrControl.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' )
+    incr.SetName( 'incr' )
+    incr.SetAuthor( '' )
+    incr.SetContainer( 'localhost/FactoryServer' )
+    incr.SetComment( 'C_INCR from SyrComponent' )
+    incr.Coords( 790 , 158 )
+    IincraCount = incr.GetInPort( 'aCount' )
+    IincrGate = incr.GetInPort( 'Gate' )
+    OincraNewCount = incr.GetOutPort( 'aNewCount' )
+    OincrGate = incr.GetOutPort( 'Gate' )
+    
+    # Creation of InLine Nodes
+    Pylabel_begin = []
+    Pylabel_begin.append( 'def label_begin( NB , KB ):' )
+    Pylabel_begin.append( '    print "label_begin",NB,KB' )
+    Pylabel_begin.append( '    return NB,KB' )
+    label_begin = GraphSyrControl.INode( 'label_begin' , Pylabel_begin )
+    label_begin.SetName( 'label_begin' )
+    label_begin.SetAuthor( '' )
+    label_begin.SetComment( 'Python function' )
+    label_begin.Coords( 8 , 205 )
+    Ilabel_beginNB = label_begin.InPort( 'NB' , 'long' )
+    Ilabel_beginKB = label_begin.InPort( 'KB' , 'long' )
+    Ilabel_beginGate = label_begin.GetInPort( 'Gate' )
+    Olabel_beginNT = label_begin.OutPort( 'NT' , 'long' )
+    Olabel_beginKT = label_begin.OutPort( 'KT' , 'long' )
+    Olabel_beginGate = label_begin.GetOutPort( 'Gate' )
+    
+    Pylabel_test = []
+    Pylabel_test.append( 'def label_test( ValEven , ValOne , NB , KB ):' )
+    Pylabel_test.append( '    print "label_begin",ValEven,ValOne,NB,KB' )
+    Pylabel_test.append( '    return ValEven,ValOne,NB,KB' )
+    label_test = GraphSyrControl.INode( 'label_test' , Pylabel_test )
+    label_test.SetName( 'label_test' )
+    label_test.SetAuthor( '' )
+    label_test.SetComment( 'Python function' )
+    label_test.Coords( 397 , 165 )
+    Ilabel_testValEven = label_test.InPort( 'ValEven' , 'long' )
+    Ilabel_testValOne = label_test.InPort( 'ValOne' , 'long' )
+    Ilabel_testNT = label_test.InPort( 'NT' , 'long' )
+    Ilabel_testKT = label_test.InPort( 'KT' , 'long' )
+    Ilabel_testGate = label_test.GetInPort( 'Gate' )
+    Olabel_testValEven = label_test.OutPort( 'ValEven' , 'long' )
+    Olabel_testValOne = label_test.OutPort( 'ValOne' , 'long' )
+    Olabel_testNT = label_test.OutPort( 'NT' , 'long' )
+    Olabel_testKT = label_test.OutPort( 'KT' , 'long' )
+    Olabel_testGate = label_test.GetOutPort( 'Gate' )
+    
+    # Creation of Switch Nodes
+    Pytest = []
+    Pytest.append( 'def Switch_OneEven( ValOne , ValEven , NT , KT ) :' )
+    Pytest.append( '    Finished = ValOne' )
+    Pytest.append( '    if Finished == 0 :' )
+    Pytest.append( '        Incr = 1' )
+    Pytest.append( '        Even = ValEven' )
+    Pytest.append( '        if Even == 0 :' )
+    Pytest.append( '            Odd = 1' )
+    Pytest.append( '        else :' )
+    Pytest.append( '            Odd = 0' )
+    Pytest.append( '    else :' )
+    Pytest.append( '        Incr = 0' )
+    Pytest.append( '        Even = 0' )
+    Pytest.append( '        Odd = 0' )
+    Pytest.append( '    Even = ValEven' )
+    Pytest.append( '    return Finished,Incr,Even,Odd,NT,KT' )
+    test,EndSwitch_OneEven = GraphSyrControl.SNode( 'Switch_OneEven' , Pytest )
+    EndSwitch_OneEven.SetName( 'EndSwitch_OneEven' )
+    EndSwitch_OneEven.SetAuthor( '' )
+    EndSwitch_OneEven.SetComment( 'Compute Node' )
+    EndSwitch_OneEven.Coords( 1065 , 356 )
+    PyEndSwitch_OneEven = []
+    PyEndSwitch_OneEven.append( 'def EndSwitch_OneEven( Finished , K ):' )
+    PyEndSwitch_OneEven.append( '    print "label_begin",Finished,K' )
+    PyEndSwitch_OneEven.append( '    return Finished,K' )
+    EndSwitch_OneEven.SetPyFunction( 'EndSwitch_OneEven' , PyEndSwitch_OneEven )
+    IEndSwitch_OneEvenFinished = EndSwitch_OneEven.InPort( 'Finished' , 'long' )
+    IEndSwitch_OneEvenK = EndSwitch_OneEven.InPort( 'K' , 'long' )
+    IEndSwitch_OneEvenDefault = EndSwitch_OneEven.GetInPort( 'Default' )
+    OEndSwitch_OneEvenFinished = EndSwitch_OneEven.OutPort( 'Finished' , 'long' )
+    OEndSwitch_OneEvenK = EndSwitch_OneEven.OutPort( 'K' , 'long' )
+    OEndSwitch_OneEvenGate = EndSwitch_OneEven.GetOutPort( 'Gate' )
+    test.SetName( 'test' )
+    test.SetAuthor( '' )
+    test.SetComment( 'Compute Node' )
+    test.Coords( 575 , 205 )
+    ItestValOne = test.InPort( 'ValOne' , 'long' )
+    ItestValEven = test.InPort( 'ValEven' , 'long' )
+    ItestNT = test.InPort( 'NT' , 'long' )
+    ItestKT = test.InPort( 'KT' , 'long' )
+    ItestGate = test.GetInPort( 'Gate' )
+    OtestFinished = test.OutPort( 'Finished' , 'long' )
+    OtestIncr = test.OutPort( 'Incr' , 'long' )
+    OtestEven = test.OutPort( 'Even' , 'long' )
+    OtestOdd = test.OutPort( 'Odd' , 'long' )
+    OtestN = test.OutPort( 'N' , 'long' )
+    OtestK = test.OutPort( 'K' , 'long' )
+    OtestDefault = test.GetOutPort( 'Default' )
+    
+    # Creation of GOTO Nodes
+    Pycontrol_m3p1 = []
+    Pycontrol_m3p1.append( 'def control_m3p1( N , K ):' )
+    Pycontrol_m3p1.append( '    return 0,1,N,K' )
+    control_m3p1 = GraphSyrControl.GNode( 'control_m3p1' , Pycontrol_m3p1 , 'label_test' )
+    control_m3p1.SetName( 'control_m3p1' )
+    control_m3p1.SetAuthor( '' )
+    control_m3p1.SetComment( 'Compute Node' )
+    control_m3p1.Coords( 1013 , 63 )
+    Icontrol_m3p1N = control_m3p1.InPort( 'N' , 'long' )
+    Icontrol_m3p1K = control_m3p1.InPort( 'K' , 'long' )
+    Icontrol_m3p1Gate = control_m3p1.GetInPort( 'Gate' )
+    Ocontrol_m3p1ValOne = control_m3p1.OutPort( 'ValOne' , 'long' )
+    Ocontrol_m3p1ValEven = control_m3p1.OutPort( 'ValEven' , 'long' )
+    Ocontrol_m3p1NT = control_m3p1.OutPort( 'NT' , 'long' )
+    Ocontrol_m3p1KT = control_m3p1.OutPort( 'KT' , 'long' )
+    Ocontrol_m3p1Gate = control_m3p1.GetOutPort( 'Gate' )
+    
+    Pycontrol_div2 = []
+    Pycontrol_div2.append( 'def control_div2( N , NB ) :' )
+    Pycontrol_div2.append( '    return N,NB' )
+    control_div2 = GraphSyrControl.GNode( 'control_div2' , Pycontrol_div2 , 'label_begin' )
+    control_div2.SetName( 'control_div2' )
+    control_div2.SetAuthor( '' )
+    control_div2.SetComment( 'Compute Node' )
+    control_div2.Coords( 1010 , 473 )
+    Icontrol_div2N = control_div2.InPort( 'N' , 'long' )
+    Icontrol_div2K = control_div2.InPort( 'K' , 'long' )
+    Icontrol_div2Gate = control_div2.GetInPort( 'Gate' )
+    Ocontrol_div2NB = control_div2.OutPort( 'NB' , 'long' )
+    Ocontrol_div2KB = control_div2.OutPort( 'KB' , 'long' )
+    Ocontrol_div2Gate = control_div2.GetOutPort( 'Gate' )
+    
+    # Creation of Links
+    Ltest_ISEVENBoolEvenlabel_testValEven = GraphSyrControl.Link( Otest_ISEVENBoolEven , Ilabel_testValEven )
+    Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 1 , 381 , 234 )
+    Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 2 , 381 , 410 )
+    
+    Ltest_ISONEBoolOnelabel_testValOne = GraphSyrControl.Link( Otest_ISONEBoolOne , Ilabel_testValOne )
+    Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 1 , 367 , 256 )
+    Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 2 , 367 , 201 )
+    
+    Lm3p1anEvenIntegercontrol_m3p1N = GraphSyrControl.Link( Om3p1anEvenInteger , Icontrol_m3p1N )
+    
+    Ldiv2anIntegercontrol_div2N = GraphSyrControl.Link( Odiv2anInteger , Icontrol_div2N )
+    
+    LincraNewCountcontrol_m3p1K = GraphSyrControl.Link( OincraNewCount , Icontrol_m3p1K )
+    LincraNewCountcontrol_m3p1K.AddCoord( 1 , 978 , 114 )
+    LincraNewCountcontrol_m3p1K.AddCoord( 2 , 978 , 230 )
+    
+    LincraNewCountcontrol_div2K = GraphSyrControl.Link( OincraNewCount , Icontrol_div2K )
+    LincraNewCountcontrol_div2K.AddCoord( 1 , 981 , 524 )
+    LincraNewCountcontrol_div2K.AddCoord( 2 , 978 , 229 )
+    
+    Llabel_beginNTlabel_testNT = GraphSyrControl.Link( Olabel_beginNT , Ilabel_testNT )
+    
+    Llabel_beginNTtest_ISEVENanInteger = GraphSyrControl.Link( Olabel_beginNT , Itest_ISEVENanInteger )
+    Llabel_beginNTtest_ISEVENanInteger.AddCoord( 1 , 179 , 408 )
+    Llabel_beginNTtest_ISEVENanInteger.AddCoord( 2 , 179 , 276 )
+    
+    Llabel_beginNTtest_ISONEanInteger = GraphSyrControl.Link( Olabel_beginNT , Itest_ISONEanInteger )
+    Llabel_beginNTtest_ISONEanInteger.AddCoord( 1 , 179 , 203 )
+    Llabel_beginNTtest_ISONEanInteger.AddCoord( 2 , 180 , 275 )
+    
+    Llabel_beginKTlabel_testKT = GraphSyrControl.Link( Olabel_beginKT , Ilabel_testKT )
+    
+    Llabel_testValEventestValEven = GraphSyrControl.Link( Olabel_testValEven , ItestValEven )
+    
+    Llabel_testValOnetestValOne = GraphSyrControl.Link( Olabel_testValOne , ItestValOne )
+    
+    Llabel_testNTtestNT = GraphSyrControl.Link( Olabel_testNT , ItestNT )
+    
+    Llabel_testKTtestKT = GraphSyrControl.Link( Olabel_testKT , ItestKT )
+    
+    LtestFinishedEndSwitch_OneEvenFinished = GraphSyrControl.Link( OtestFinished , IEndSwitch_OneEvenFinished )
+    
+    LtestEvendiv2Gate = GraphSyrControl.Link( OtestEven , Idiv2Gate )
+    LtestEvendiv2Gate.AddCoord( 1 , 763 , 522 )
+    LtestEvendiv2Gate.AddCoord( 2 , 763 , 278 )
+    
+    LtestOddm3p1Gate = GraphSyrControl.Link( OtestOdd , Im3p1Gate )
+    LtestOddm3p1Gate.AddCoord( 1 , 772 , 117 )
+    LtestOddm3p1Gate.AddCoord( 2 , 772 , 297 )
+    
+    LtestNm3p1anOddInteger = GraphSyrControl.Link( OtestN , Im3p1anOddInteger )
+    LtestNm3p1anOddInteger.AddCoord( 1 , 751 , 93 )
+    LtestNm3p1anOddInteger.AddCoord( 2 , 752 , 317 )
+    
+    LtestNdiv2anEvenInteger = GraphSyrControl.Link( OtestN , Idiv2anEvenInteger )
+    LtestNdiv2anEvenInteger.AddCoord( 1 , 751 , 498 )
+    LtestNdiv2anEvenInteger.AddCoord( 2 , 752 , 318 )
+    
+    LtestKEndSwitch_OneEvenK = GraphSyrControl.Link( OtestK , IEndSwitch_OneEvenK )
+    
+    LtestKincraCount = GraphSyrControl.Link( OtestK , IincraCount )
+    LtestKincraCount.AddCoord( 1 , 779 , 229 )
+    LtestKincraCount.AddCoord( 2 , 779 , 336 )
+    
+    LtestDefaultEndSwitch_OneEvenDefault = GraphSyrControl.Link( OtestDefault , IEndSwitch_OneEvenDefault )
+    
+    Lcontrol_m3p1Gatelabel_testGate = GraphSyrControl.Link( Ocontrol_m3p1Gate , Ilabel_testGate )
+    Lcontrol_m3p1Gatelabel_testGate.AddCoord( 1 , 374 , 321 )
+    Lcontrol_m3p1Gatelabel_testGate.AddCoord( 2 , 374 , 15 )
+    Lcontrol_m3p1Gatelabel_testGate.AddCoord( 3 , 1180 , 9 )
+    Lcontrol_m3p1Gatelabel_testGate.AddCoord( 4 , 1181 , 217 )
+    
+    Lcontrol_div2Gatelabel_beginGate = GraphSyrControl.Link( Ocontrol_div2Gate , Ilabel_beginGate )
+    Lcontrol_div2Gatelabel_beginGate.AddCoord( 1 , 4 , 608 )
+    Lcontrol_div2Gatelabel_beginGate.AddCoord( 2 , 1184 , 604 )
+    Lcontrol_div2Gatelabel_beginGate.AddCoord( 3 , 1184 , 548 )
+    
+    # Input datas
+    Ilabel_beginNB.Input( 7 )
+    Ilabel_beginKB.Input( 0 )
+    
+    # Output Ports of the graph
+    #OtestIncr = test.GetOutPort( 'Incr' )
+    #OEndSwitch_OneEvenFinished = EndSwitch_OneEven.GetOutPort( 'Finished' )
+    #OEndSwitch_OneEvenK = EndSwitch_OneEven.GetOutPort( 'K' )
+    return GraphSyrControl
+
+
+GraphSyrControl = DefGraphSyrControl()
index 1d1c489b8f3955ec522aa6435b9bb99a30a85189..92fca16e9eaae4ddb30f55dc76a570ee5f7620cc 100644 (file)
-<!DOCTYPE Dataflow>
+<!DOCTYPE SuperGraph>
+<supergraph>
 <dataflow>
 <info-list>
 <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>GraphSyrControl</node-name>
-   <kind>1</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>GraphSyrControl</node-name>
+    <kind>1</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>GraphSyrControl</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>label_begin\NB</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>label_begin__NB</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>label_begin\KB</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>label_begin__KB</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>EndSwitch_OneEven\Finished</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>test__Incr</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>EndSwitch_OneEven\K</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list/>
-   <creation-date>11/3/2003 - 18:34:21</creation-date>
-   <lastmodification-date>19/9/2003 - 15:2:2</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>JR</author>
-   <container>?</container>
-   <comment>Syracuse algorithm</comment>
-   <x-position>0</x-position>
-   <y-position>0</y-position>  </node> </info-list>
- <node-list>
+       <outParameter-name>EndSwitch_OneEven__Finished</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>EndSwitch_OneEven__K</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>11/3/2003 - 18:34:21</creation-date>
+    <lastmodification-date>15/2/2005 - 10:5:34</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>JR</author>
+    <container>?</container>
+    <comment>Syracuse algorithm</comment>
+    <x-position>0</x-position>
+    <y-position>0</y-position>   </node>  </info-list>
+  <node-list>
 <node>
 <component-name>SyrComponent</component-name>
-   <interface-name>SyrComponent</interface-name>
-   <node-name>test_ISEVEN</node-name>
-   <kind>0</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>SyrComponent</interface-name>
+    <node-name>test_ISEVEN</node-name>
+    <kind>0</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>C_ISEVEN</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>anInteger</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>anInteger</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>BoolEven</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list/>
-   <creation-date>19/9/2003 - 15:2:2</creation-date>
-   <lastmodification-date>19/9/2003 - 15:2:2</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>localhost/FactoryServer</container>
-   <comment>C_ISEVEN from SyrComponent</comment>
-   <x-position>190</x-position>
-   <y-position>338</y-position>  </node>
-  <node>
+       <outParameter-name>BoolEven</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>15/2/2005 - 10:5:34</creation-date>
+    <lastmodification-date>15/2/2005 - 10:5:34</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>localhost/FactoryServer</container>
+    <comment>C_ISEVEN from SyrComponent</comment>
+    <x-position>190</x-position>
+    <y-position>338</y-position>   </node>
+   <node>
 <component-name>SyrComponent</component-name>
-   <interface-name>SyrComponent</interface-name>
-   <node-name>test_ISONE</node-name>
-   <kind>0</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>SyrComponent</interface-name>
+    <node-name>test_ISONE</node-name>
+    <kind>0</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>C_ISONE</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>anInteger</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>anInteger</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>BoolOne</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list/>
-   <creation-date>19/9/2003 - 15:2:2</creation-date>
-   <lastmodification-date>19/9/2003 - 15:2:2</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>localhost/FactoryServer</container>
-   <comment>C_ISONE from SyrComponent</comment>
-   <x-position>196</x-position>
-   <y-position>131</y-position>  </node>
-  <node>
+       <outParameter-name>BoolOne</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>15/2/2005 - 10:5:34</creation-date>
+    <lastmodification-date>15/2/2005 - 10:5:34</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>localhost/FactoryServer</container>
+    <comment>C_ISONE from SyrComponent</comment>
+    <x-position>196</x-position>
+    <y-position>131</y-position>   </node>
+   <node>
 <component-name>SyrComponent</component-name>
-   <interface-name>SyrComponent</interface-name>
-   <node-name>m3p1</node-name>
-   <kind>0</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>SyrComponent</interface-name>
+    <node-name>m3p1</node-name>
+    <kind>0</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>C_M3P1</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>anOddInteger</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>anOddInteger</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>anEvenInteger</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list/>
-   <creation-date>19/9/2003 - 15:2:2</creation-date>
-   <lastmodification-date>19/9/2003 - 15:2:2</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>localhost/FactoryServer</container>
-   <comment>C_M3P1 from SyrComponent</comment>
-   <x-position>788</x-position>
-   <y-position>22</y-position>  </node>
-  <node>
+       <outParameter-name>anEvenInteger</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>15/2/2005 - 10:5:34</creation-date>
+    <lastmodification-date>15/2/2005 - 10:5:34</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>localhost/FactoryServer</container>
+    <comment>C_M3P1 from SyrComponent</comment>
+    <x-position>788</x-position>
+    <y-position>22</y-position>   </node>
+   <node>
 <component-name>SyrComponent</component-name>
-   <interface-name>SyrComponent</interface-name>
-   <node-name>div2</node-name>
-   <kind>0</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>SyrComponent</interface-name>
+    <node-name>div2</node-name>
+    <kind>0</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>C_DIV2</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>anEvenInteger</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>anEvenInteger</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>anInteger</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list/>
-   <creation-date>19/9/2003 - 15:2:2</creation-date>
-   <lastmodification-date>19/9/2003 - 15:2:2</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>localhost/FactoryServer</container>
-   <comment>C_DIV2 from SyrComponent</comment>
-   <x-position>794</x-position>
-   <y-position>427</y-position>  </node>
-  <node>
+       <outParameter-name>anInteger</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>15/2/2005 - 10:5:34</creation-date>
+    <lastmodification-date>15/2/2005 - 10:5:34</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>localhost/FactoryServer</container>
+    <comment>C_DIV2 from SyrComponent</comment>
+    <x-position>794</x-position>
+    <y-position>427</y-position>   </node>
+   <node>
 <component-name>SyrComponent</component-name>
-   <interface-name>SyrComponent</interface-name>
-   <node-name>incr</node-name>
-   <kind>0</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>SyrComponent</interface-name>
+    <node-name>incr</node-name>
+    <kind>0</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>C_INCR</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>aCount</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>aCount</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>aNewCount</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list/>
-   <creation-date>19/9/2003 - 15:2:2</creation-date>
-   <lastmodification-date>19/9/2003 - 15:2:2</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>localhost/FactoryServer</container>
-   <comment>C_INCR from SyrComponent</comment>
-   <x-position>790</x-position>
-   <y-position>158</y-position>  </node>
-  <node>
+       <outParameter-name>aNewCount</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>15/2/2005 - 10:5:34</creation-date>
+    <lastmodification-date>15/2/2005 - 10:5:34</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>localhost/FactoryServer</container>
+    <comment>C_INCR from SyrComponent</comment>
+    <x-position>790</x-position>
+    <y-position>158</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>label_begin</node-name>
-   <kind>3</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>label_begin</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>label_begin</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>NB</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>NB</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>KB</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>KB</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>NT</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>NT</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>KT</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
+       <outParameter-name>KT</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>label_begin</FuncName>
-     <PyFunc><![CDATA[def label_begin( NB , KB ):]]></PyFunc>
-     <PyFunc><![CDATA[    print "label_begin",NB,KB]]></PyFunc>
-     <PyFunc><![CDATA[    return NB,KB]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>19/9/2003 - 15:2:2</creation-date>
-   <lastmodification-date>19/9/2003 - 15:2:2</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>Python function</comment>
-   <x-position>7</x-position>
-   <y-position>216</y-position>  </node>
-  <node>
+      <PyFunc><![CDATA[def label_begin( NB , KB ):]]></PyFunc>
+      <PyFunc><![CDATA[    print "label_begin",NB,KB]]></PyFunc>
+      <PyFunc><![CDATA[    return NB,KB]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>15/2/2005 - 10:5:34</creation-date>
+    <lastmodification-date>15/2/2005 - 10:5:34</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Python function</comment>
+    <x-position>8</x-position>
+    <y-position>205</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>label_test</node-name>
-   <kind>3</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>label_test</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>label_test</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>ValEven</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>ValEven</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>ValOne</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>ValOne</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>NT</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>NT</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>KT</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>KT</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>ValEven</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>ValEven</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>ValOne</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>ValOne</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>NT</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>NT</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>KT</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
+       <outParameter-name>KT</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>label_test</FuncName>
-     <PyFunc><![CDATA[def label_test( ValEven , ValOne , NB , KB ):]]></PyFunc>
-     <PyFunc><![CDATA[    print "label_begin",ValEven,ValOne,NB,KB]]></PyFunc>
-     <PyFunc><![CDATA[    return ValEven,ValOne,NB,KB]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>19/9/2003 - 15:2:2</creation-date>
-   <lastmodification-date>19/9/2003 - 15:2:2</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>Python function</comment>
-   <x-position>385</x-position>
-   <y-position>159</y-position>  </node>
-  <node>
+      <PyFunc><![CDATA[def label_test( ValEven , ValOne , NB , KB ):]]></PyFunc>
+      <PyFunc><![CDATA[    print "label_begin",ValEven,ValOne,NB,KB]]></PyFunc>
+      <PyFunc><![CDATA[    return ValEven,ValOne,NB,KB]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>15/2/2005 - 10:5:34</creation-date>
+    <lastmodification-date>15/2/2005 - 10:5:34</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Python function</comment>
+    <x-position>397</x-position>
+    <y-position>165</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>test</node-name>
-   <kind>6</kind>
-   <coupled-node>EndSwitch_OneEven</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>test</node-name>
+    <kind>6</kind>
+    <coupled-node>EndSwitch_OneEven</coupled-node>
+    <service>
 <service-name>test</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>ValOne</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>ValOne</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>ValEven</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>ValEven</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>NT</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>NT</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>KT</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>KT</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Finished</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Finished</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Incr</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Incr</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Even</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Even</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Odd</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>N</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>N</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>K</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
+       <outParameter-name>K</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>Switch_OneEven</FuncName>
-     <PyFunc><![CDATA[def Switch_OneEven( ValOne , ValEven , NT , KT ) :]]></PyFunc>
-     <PyFunc><![CDATA[    Finished = ValOne]]></PyFunc>
-     <PyFunc><![CDATA[    if Finished == 0 :]]></PyFunc>
-     <PyFunc><![CDATA[        Incr = 1]]></PyFunc>
-     <PyFunc><![CDATA[        Even = ValEven]]></PyFunc>
-     <PyFunc><![CDATA[        if Even == 0 :]]></PyFunc>
-     <PyFunc><![CDATA[            Odd = 1]]></PyFunc>
-     <PyFunc><![CDATA[        else :]]></PyFunc>
-     <PyFunc><![CDATA[            Odd = 0]]></PyFunc>
-     <PyFunc><![CDATA[    else :]]></PyFunc>
-     <PyFunc><![CDATA[        Incr = 0]]></PyFunc>
-     <PyFunc><![CDATA[        Even = 0]]></PyFunc>
-     <PyFunc><![CDATA[        Odd = 0]]></PyFunc>
-     <PyFunc><![CDATA[    Even = ValEven]]></PyFunc>
-     <PyFunc><![CDATA[    return Finished,Incr,Even,Odd,NT,KT]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>19/9/2003 - 15:2:2</creation-date>
-   <lastmodification-date>19/9/2003 - 15:2:2</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>592</x-position>
-   <y-position>205</y-position>  </node>
-  <node>
+      <PyFunc><![CDATA[def Switch_OneEven( ValOne , ValEven , NT , KT ) :]]></PyFunc>
+      <PyFunc><![CDATA[    Finished = ValOne]]></PyFunc>
+      <PyFunc><![CDATA[    if Finished == 0 :]]></PyFunc>
+      <PyFunc><![CDATA[        Incr = 1]]></PyFunc>
+      <PyFunc><![CDATA[        Even = ValEven]]></PyFunc>
+      <PyFunc><![CDATA[        if Even == 0 :]]></PyFunc>
+      <PyFunc><![CDATA[            Odd = 1]]></PyFunc>
+      <PyFunc><![CDATA[        else :]]></PyFunc>
+      <PyFunc><![CDATA[            Odd = 0]]></PyFunc>
+      <PyFunc><![CDATA[    else :]]></PyFunc>
+      <PyFunc><![CDATA[        Incr = 0]]></PyFunc>
+      <PyFunc><![CDATA[        Even = 0]]></PyFunc>
+      <PyFunc><![CDATA[        Odd = 0]]></PyFunc>
+      <PyFunc><![CDATA[    Even = ValEven]]></PyFunc>
+      <PyFunc><![CDATA[    return Finished,Incr,Even,Odd,NT,KT]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>15/2/2005 - 10:5:34</creation-date>
+    <lastmodification-date>15/2/2005 - 10:5:34</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>575</x-position>
+    <y-position>205</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>EndSwitch_OneEven</node-name>
-   <kind>7</kind>
-   <coupled-node>test</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>EndSwitch_OneEven</node-name>
+    <kind>7</kind>
+    <coupled-node>test</coupled-node>
+    <service>
 <service-name>EndSwitch_OneEven</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>Finished</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>Finished</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>K</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>K</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Finished</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Finished</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>K</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
+       <outParameter-name>K</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>EndSwitch_OneEven</FuncName>
-     <PyFunc><![CDATA[def EndSwitch_OneEven( Finished , K ):]]></PyFunc>
-     <PyFunc><![CDATA[    print "label_begin",Finished,K]]></PyFunc>
-     <PyFunc><![CDATA[    return Finished,K]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>19/9/2003 - 15:2:2</creation-date>
-   <lastmodification-date>19/9/2003 - 15:2:2</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>1065</x-position>
-   <y-position>321</y-position>  </node>
-  <node>
+      <PyFunc><![CDATA[def EndSwitch_OneEven( Finished , K ):]]></PyFunc>
+      <PyFunc><![CDATA[    print "label_begin",Finished,K]]></PyFunc>
+      <PyFunc><![CDATA[    return Finished,K]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>15/2/2005 - 10:5:34</creation-date>
+    <lastmodification-date>15/2/2005 - 10:5:34</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>1065</x-position>
+    <y-position>356</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>control_m3p1</node-name>
-   <kind>8</kind>
-   <coupled-node>label_test</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>control_m3p1</node-name>
+    <kind>8</kind>
+    <coupled-node>label_test</coupled-node>
+    <service>
 <service-name>control_m3p1</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>N</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>N</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>K</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>K</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>ValOne</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>ValOne</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>ValEven</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>ValEven</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>NT</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>NT</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>KT</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
+       <outParameter-name>KT</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>control_m3p1</FuncName>
-     <PyFunc><![CDATA[def control_m3p1( N , K ):]]></PyFunc>
-     <PyFunc><![CDATA[    return 0,1,N,K]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>19/9/2003 - 15:2:2</creation-date>
-   <lastmodification-date>19/9/2003 - 15:2:2</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>1012</x-position>
-   <y-position>68</y-position>  </node>
-  <node>
+      <PyFunc><![CDATA[def control_m3p1( N , K ):]]></PyFunc>
+      <PyFunc><![CDATA[    return 0,1,N,K]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>15/2/2005 - 10:5:34</creation-date>
+    <lastmodification-date>15/2/2005 - 10:5:34</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>1013</x-position>
+    <y-position>63</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>control_div2</node-name>
-   <kind>8</kind>
-   <coupled-node>label_begin</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>control_div2</node-name>
+    <kind>8</kind>
+    <coupled-node>label_begin</coupled-node>
+    <service>
 <service-name>control_div2</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>N</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>N</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>K</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>K</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>NB</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>NB</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>KB</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
+       <outParameter-name>KB</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>control_div2</FuncName>
-     <PyFunc><![CDATA[def control_div2( N , NB ) :]]></PyFunc>
-     <PyFunc><![CDATA[    return N,NB]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>19/9/2003 - 15:2:2</creation-date>
-   <lastmodification-date>19/9/2003 - 15:2:2</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>1010</x-position>
-   <y-position>473</y-position>  </node> </node-list>
- <link-list>
+      <PyFunc><![CDATA[def control_div2( N , NB ) :]]></PyFunc>
+      <PyFunc><![CDATA[    return N,NB]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>15/2/2005 - 10:5:34</creation-date>
+    <lastmodification-date>15/2/2005 - 10:5:34</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>1010</x-position>
+    <y-position>473</y-position>   </node>  </node-list>
 <link-list>
 <link>
 <fromnode-name>test_ISEVEN</fromnode-name>
-   <fromserviceparameter-name>BoolEven</fromserviceparameter-name>
-   <tonode-name>label_test</tonode-name>
-   <toserviceparameter-name>ValEven</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>BoolEven</fromserviceparameter-name>
+    <tonode-name>label_test</tonode-name>
+    <toserviceparameter-name>ValEven</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>380</x>
-     <y>236</y>    </coord>
-    <coord>
-<x>379</x>
-     <y>419</y>    </coord>   </coord-list>  </link>
-  <link>
+<x>381</x>
+      <y>234</y>     </coord>
+     <coord>
+<x>381</x>
+      <y>410</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>test_ISONE</fromnode-name>
-   <fromserviceparameter-name>BoolOne</fromserviceparameter-name>
-   <tonode-name>label_test</tonode-name>
-   <toserviceparameter-name>ValOne</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>BoolOne</fromserviceparameter-name>
+    <tonode-name>label_test</tonode-name>
+    <toserviceparameter-name>ValOne</toserviceparameter-name>
+    <coord-list>
 <coord>
 <x>367</x>
-     <y>269</y>    </coord>
-    <coord>
+      <y>256</y>     </coord>
+     <coord>
 <x>367</x>
-     <y>213</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>201</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>m3p1</fromnode-name>
-   <fromserviceparameter-name>anEvenInteger</fromserviceparameter-name>
-   <tonode-name>control_m3p1</tonode-name>
-   <toserviceparameter-name>N</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>anEvenInteger</fromserviceparameter-name>
+    <tonode-name>control_m3p1</tonode-name>
+    <toserviceparameter-name>N</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>div2</fromnode-name>
-   <fromserviceparameter-name>anInteger</fromserviceparameter-name>
-   <tonode-name>control_div2</tonode-name>
-   <toserviceparameter-name>N</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>anInteger</fromserviceparameter-name>
+    <tonode-name>control_div2</tonode-name>
+    <toserviceparameter-name>N</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>incr</fromnode-name>
-   <fromserviceparameter-name>aNewCount</fromserviceparameter-name>
-   <tonode-name>control_m3p1</tonode-name>
-   <toserviceparameter-name>K</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>aNewCount</fromserviceparameter-name>
+    <tonode-name>control_m3p1</tonode-name>
+    <toserviceparameter-name>K</toserviceparameter-name>
+    <coord-list>
 <coord>
 <x>978</x>
-     <y>132</y>    </coord>
-    <coord>
+      <y>114</y>     </coord>
+     <coord>
 <x>978</x>
-     <y>239</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>230</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>incr</fromnode-name>
-   <fromserviceparameter-name>aNewCount</fromserviceparameter-name>
-   <tonode-name>control_div2</tonode-name>
-   <toserviceparameter-name>K</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>aNewCount</fromserviceparameter-name>
+    <tonode-name>control_div2</tonode-name>
+    <toserviceparameter-name>K</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>979</x>
-     <y>536</y>    </coord>
-    <coord>
+<x>981</x>
+      <y>524</y>     </coord>
+     <coord>
 <x>978</x>
-     <y>240</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>229</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>label_begin</fromnode-name>
-   <fromserviceparameter-name>NT</fromserviceparameter-name>
-   <tonode-name>label_test</tonode-name>
-   <toserviceparameter-name>NT</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>NT</fromserviceparameter-name>
+    <tonode-name>label_test</tonode-name>
+    <toserviceparameter-name>NT</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>label_begin</fromnode-name>
-   <fromserviceparameter-name>NT</fromserviceparameter-name>
-   <tonode-name>test_ISEVEN</tonode-name>
-   <toserviceparameter-name>anInteger</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>NT</fromserviceparameter-name>
+    <tonode-name>test_ISEVEN</tonode-name>
+    <toserviceparameter-name>anInteger</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>184</x>
-     <y>416</y>    </coord>
-    <coord>
-<x>185</x>
-     <y>298</y>    </coord>   </coord-list>  </link>
-  <link>
+<x>179</x>
+      <y>408</y>     </coord>
+     <coord>
+<x>179</x>
+      <y>276</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>label_begin</fromnode-name>
-   <fromserviceparameter-name>NT</fromserviceparameter-name>
-   <tonode-name>test_ISONE</tonode-name>
-   <toserviceparameter-name>anInteger</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>NT</fromserviceparameter-name>
+    <tonode-name>test_ISONE</tonode-name>
+    <toserviceparameter-name>anInteger</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>186</x>
-     <y>211</y>    </coord>
-    <coord>
-<x>185</x>
-     <y>297</y>    </coord>   </coord-list>  </link>
-  <link>
+<x>179</x>
+      <y>203</y>     </coord>
+     <coord>
+<x>180</x>
+      <y>275</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>label_begin</fromnode-name>
-   <fromserviceparameter-name>KT</fromserviceparameter-name>
-   <tonode-name>label_test</tonode-name>
-   <toserviceparameter-name>KT</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>KT</fromserviceparameter-name>
+    <tonode-name>label_test</tonode-name>
+    <toserviceparameter-name>KT</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>ValEven</fromserviceparameter-name>
-   <tonode-name>test</tonode-name>
-   <toserviceparameter-name>ValEven</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>ValEven</fromserviceparameter-name>
+    <tonode-name>test</tonode-name>
+    <toserviceparameter-name>ValEven</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>ValOne</fromserviceparameter-name>
-   <tonode-name>test</tonode-name>
-   <toserviceparameter-name>ValOne</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>ValOne</fromserviceparameter-name>
+    <tonode-name>test</tonode-name>
+    <toserviceparameter-name>ValOne</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>NT</fromserviceparameter-name>
-   <tonode-name>test</tonode-name>
-   <toserviceparameter-name>NT</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>NT</fromserviceparameter-name>
+    <tonode-name>test</tonode-name>
+    <toserviceparameter-name>NT</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>KT</fromserviceparameter-name>
-   <tonode-name>test</tonode-name>
-   <toserviceparameter-name>KT</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
-<fromnode-name>test</fromnode-name>
-   <fromserviceparameter-name>Finished</fromserviceparameter-name>
-   <tonode-name>EndSwitch_OneEven</tonode-name>
-   <toserviceparameter-name>Finished</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>KT</fromserviceparameter-name>
+    <tonode-name>test</tonode-name>
+    <toserviceparameter-name>KT</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>test</fromnode-name>
-   <fromserviceparameter-name>Incr</fromserviceparameter-name>
-   <tonode-name>incr</tonode-name>
-   <toserviceparameter-name>InGate</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>Finished</fromserviceparameter-name>
+    <tonode-name>EndSwitch_OneEven</tonode-name>
+    <toserviceparameter-name>Finished</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>test</fromnode-name>
-   <fromserviceparameter-name>Even</fromserviceparameter-name>
-   <tonode-name>div2</tonode-name>
-   <toserviceparameter-name>InGate</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>div2</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>764</x>
-     <y>536</y>    </coord>
-    <coord>
 <x>763</x>
-     <y>297</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>522</y>     </coord>
+     <coord>
+<x>763</x>
+      <y>278</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>test</fromnode-name>
-   <fromserviceparameter-name>Odd</fromserviceparameter-name>
-   <tonode-name>m3p1</tonode-name>
-   <toserviceparameter-name>InGate</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>m3p1</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>773</x>
-     <y>133</y>    </coord>
-    <coord>
-<x>773</x>
-     <y>326</y>    </coord>   </coord-list>  </link>
-  <link>
+<x>772</x>
+      <y>117</y>     </coord>
+     <coord>
+<x>772</x>
+      <y>297</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>test</fromnode-name>
-   <fromserviceparameter-name>N</fromserviceparameter-name>
-   <tonode-name>m3p1</tonode-name>
-   <toserviceparameter-name>anOddInteger</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>N</fromserviceparameter-name>
+    <tonode-name>m3p1</tonode-name>
+    <toserviceparameter-name>anOddInteger</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>753</x>
-     <y>102</y>    </coord>
-    <coord>
+<x>751</x>
+      <y>93</y>     </coord>
+     <coord>
 <x>752</x>
-     <y>355</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>317</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>test</fromnode-name>
-   <fromserviceparameter-name>N</fromserviceparameter-name>
-   <tonode-name>div2</tonode-name>
-   <toserviceparameter-name>anEvenInteger</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>N</fromserviceparameter-name>
+    <tonode-name>div2</tonode-name>
+    <toserviceparameter-name>anEvenInteger</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>753</x>
-     <y>508</y>    </coord>
-    <coord>
+<x>751</x>
+      <y>498</y>     </coord>
+     <coord>
 <x>752</x>
-     <y>356</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>318</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>test</fromnode-name>
-   <fromserviceparameter-name>K</fromserviceparameter-name>
-   <tonode-name>EndSwitch_OneEven</tonode-name>
-   <toserviceparameter-name>K</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>K</fromserviceparameter-name>
+    <tonode-name>EndSwitch_OneEven</tonode-name>
+    <toserviceparameter-name>K</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>test</fromnode-name>
-   <fromserviceparameter-name>K</fromserviceparameter-name>
-   <tonode-name>incr</tonode-name>
-   <toserviceparameter-name>aCount</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>K</fromserviceparameter-name>
+    <tonode-name>incr</tonode-name>
+    <toserviceparameter-name>aCount</toserviceparameter-name>
+    <coord-list>
 <coord>
 <x>779</x>
-     <y>239</y>    </coord>
-    <coord>
-<x>780</x>
-     <y>385</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>229</y>     </coord>
+     <coord>
+<x>779</x>
+      <y>336</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>test</fromnode-name>
-   <fromserviceparameter-name>Default</fromserviceparameter-name>
-   <tonode-name>EndSwitch_OneEven</tonode-name>
-   <toserviceparameter-name>Default</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>Default</fromserviceparameter-name>
+    <tonode-name>EndSwitch_OneEven</tonode-name>
+    <toserviceparameter-name>Default</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>control_m3p1</fromnode-name>
-   <fromserviceparameter-name>OutGate</fromserviceparameter-name>
-   <tonode-name>label_test</tonode-name>
-   <toserviceparameter-name>InGate</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>Gate</fromserviceparameter-name>
+    <tonode-name>label_test</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>373</x>
-     <y>354</y>    </coord>
-    <coord>
-<x>372</x>
-     <y>10</y>    </coord>
-    <coord>
+<x>374</x>
+      <y>321</y>     </coord>
+     <coord>
+<x>374</x>
+      <y>15</y>     </coord>
+     <coord>
 <x>1180</x>
-     <y>9</y>    </coord>
-    <coord>
+      <y>9</y>     </coord>
+     <coord>
 <x>1181</x>
-     <y>217</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>217</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>control_div2</fromnode-name>
-   <fromserviceparameter-name>OutGate</fromserviceparameter-name>
-   <tonode-name>label_begin</tonode-name>
-   <toserviceparameter-name>InGate</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>Gate</fromserviceparameter-name>
+    <tonode-name>label_begin</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>5</x>
-     <y>355</y>    </coord>
-    <coord>
 <x>4</x>
-     <y>608</y>    </coord>
-    <coord>
-<x>1177</x>
-     <y>608</y>    </coord>
-    <coord>
-<x>1177</x>
-     <y>563</y>    </coord>   </coord-list>  </link> </link-list>
- <data-list>
+      <y>608</y>     </coord>
+     <coord>
+<x>1184</x>
+      <y>604</y>     </coord>
+     <coord>
+<x>1184</x>
+      <y>548</y>     </coord>    </coord-list>   </link>  </link-list>
 <data-list>
 <data>
 <fromnode-name>GraphSyrControl</fromnode-name>
-   <fromserviceparameter-name>label_begin\NB</fromserviceparameter-name>
-   <tonode-name>label_begin</tonode-name>
-   <toserviceparameter-name>NB</toserviceparameter-name>
-   <data-value>
+    <fromserviceparameter-name>label_begin__NB</fromserviceparameter-name>
+    <tonode-name>label_begin</tonode-name>
+    <toserviceparameter-name>NB</toserviceparameter-name>
+    <data-value>
 <value-type>3</value-type>
-    <value>7</value>   </data-value>
-   <coord-list/>  </data>
-  <data>
+     <value>7</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
 <fromnode-name>GraphSyrControl</fromnode-name>
-   <fromserviceparameter-name>label_begin\KB</fromserviceparameter-name>
-   <tonode-name>label_begin</tonode-name>
-   <toserviceparameter-name>KB</toserviceparameter-name>
-   <data-value>
+    <fromserviceparameter-name>label_begin__KB</fromserviceparameter-name>
+    <tonode-name>label_begin</tonode-name>
+    <toserviceparameter-name>KB</toserviceparameter-name>
+    <data-value>
 <value-type>3</value-type>
-    <value>0</value>   </data-value>
-   <coord-list/>  </data> </data-list></dataflow>
+     <value>0</value>    </data-value>
+    <coord-list/>   </data>  </data-list> </dataflow></supergraph>
index 254113c4664bc02679dad3dbdc4126dae7dc3617..4788256285578502cd1b67a46675b27f9725a519 100755 (executable)
 # Generated python file of Graph GraphSyrControlGUI
 
 from SuperV import *
-# Graph creation 
-GraphSyrControl1 = Graph( 'GraphSyrControl1' )
-GraphSyrControl1.SetName( 'GraphSyrControl1' )
-GraphSyrControl1.SetAuthor( 'JR' )
-GraphSyrControl1.SetComment( 'Syracuse algorithm' )
-GraphSyrControl1.Coords( 0 , 0 )
-
-# Creation of Factory Nodes
-
-test_ISEVEN = GraphSyrControl1.FNode( 'SyrComponent' , 'SyrComponent' , 'C_ISEVEN' )
-test_ISEVEN.SetName( 'test_ISEVEN' )
-test_ISEVEN.SetAuthor( '' )
-test_ISEVEN.SetContainer( 'localhost/FactoryServer' )
-test_ISEVEN.SetComment( 'C_ISEVEN from SyrComponent' )
-test_ISEVEN.Coords( 190 , 338 )
-
-test_ISONE = GraphSyrControl1.FNode( 'SyrComponent' , 'SyrComponent' , 'C_ISONE' )
-test_ISONE.SetName( 'test_ISONE' )
-test_ISONE.SetAuthor( '' )
-test_ISONE.SetContainer( 'localhost/FactoryServer' )
-test_ISONE.SetComment( 'C_ISONE from SyrComponent' )
-test_ISONE.Coords( 196 , 131 )
-
-m3p1 = GraphSyrControl1.FNode( 'SyrComponent' , 'SyrComponent' , 'C_M3P1' )
-m3p1.SetName( 'm3p1' )
-m3p1.SetAuthor( '' )
-m3p1.SetContainer( 'localhost/FactoryServer' )
-m3p1.SetComment( 'C_M3P1 from SyrComponent' )
-m3p1.Coords( 615 , 30 )
-
-div2 = GraphSyrControl1.FNode( 'SyrComponent' , 'SyrComponent' , 'C_DIV2' )
-div2.SetName( 'div2' )
-div2.SetAuthor( '' )
-div2.SetContainer( 'localhost/FactoryServer' )
-div2.SetComment( 'C_DIV2 from SyrComponent' )
-div2.Coords( 624 , 391 )
-
-incr = GraphSyrControl1.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' )
-incr.SetName( 'incr' )
-incr.SetAuthor( '' )
-incr.SetContainer( 'localhost/FactoryServer' )
-incr.SetComment( 'C_INCR from SyrComponent' )
-incr.Coords( 623 , 206 )
-
-# Creation of InLine Nodes
-Pylabel_begin = []
-Pylabel_begin.append( 'def label_begin( NB , KB ) :' )
-Pylabel_begin.append( '    return NB,KB' )
-label_begin = GraphSyrControl1.INode( 'label_begin' , Pylabel_begin )
-label_begin.InPort( 'NB' , 'long' )
-label_begin.InPort( 'KB' , 'long' )
-label_begin.OutPort( 'NT' , 'long' )
-label_begin.OutPort( 'KT' , 'long' )
-label_begin.SetName( 'label_begin' )
-label_begin.SetAuthor( '' )
-label_begin.SetComment( 'Python function' )
-label_begin.Coords( 5 , 190 )
-
-# Creation of Switch Nodes
-Pylabel_test = []
-Pylabel_test.append( 'def L_OneEven( ValOne , ValEven , NT , KT ):' )
-Pylabel_test.append( '    Finished = ValOne' )
-Pylabel_test.append( '    if Finished == 0 :' )
-Pylabel_test.append( '        Incr = 1' )
-Pylabel_test.append( '        Even = ValEven' )
-Pylabel_test.append( '        if Even == 0 :' )
-Pylabel_test.append( '            Odd = 1' )
-Pylabel_test.append( '        else :' )
-Pylabel_test.append( '            Odd = 0' )
-Pylabel_test.append( '    else :' )
-Pylabel_test.append( '        Incr = 0' )
-Pylabel_test.append( '        Even = 0' )
-Pylabel_test.append( '        Odd = 0' )
-Pylabel_test.append( '    Even = ValEven' )
-Pylabel_test.append( '    return Finished,Incr,Even,Odd,NT,KT' )
-label_test,EndL_OneEven = GraphSyrControl1.SNode( 'L_OneEven' , Pylabel_test )
-EndL_OneEven.SetName( 'EndL_OneEven' )
-EndL_OneEven.SetAuthor( '' )
-EndL_OneEven.SetComment( '' )
-EndL_OneEven.Coords( 1017 , 247 )
-PyEndL_OneEven = []
-EndL_OneEven.SetPyFunction( 'EndL_OneEven' , PyEndL_OneEven )
-label_test.InPort( 'ValOne' , 'long' )
-label_test.InPort( 'ValEven' , 'long' )
-label_test.InPort( 'NT' , 'long' )
-label_test.InPort( 'KT' , 'long' )
-label_test.OutPort( 'Finished' , 'long' )
-label_test.OutPort( 'Incr' , 'long' )
-label_test.OutPort( 'Even' , 'long' )
-label_test.OutPort( 'Odd' , 'long' )
-label_test.OutPort( 'N' , 'long' )
-label_test.OutPort( 'K' , 'long' )
-label_test.SetName( 'label_test' )
-label_test.SetAuthor( '' )
-label_test.SetComment( '' )
-label_test.Coords( 399 , 177 )
-
-# Creation of GOTO Nodes
-Pycontrol_m3p1 = []
-Pycontrol_m3p1.append( 'def C_NotOneIsEven( N , K ):' )
-Pycontrol_m3p1.append( '    return 0,1,N,K' )
-control_m3p1 = GraphSyrControl1.GNode( 'C_NotOneIsEven' , Pycontrol_m3p1 , 'label_test' )
-control_m3p1.InPort( 'N' , 'long' )
-control_m3p1.InPort( 'K' , 'long' )
-control_m3p1.OutPort( 'ValOne' , 'long' )
-control_m3p1.OutPort( 'ValEven' , 'long' )
-control_m3p1.OutPort( 'NT' , 'long' )
-control_m3p1.OutPort( 'KT' , 'long' )
-control_m3p1.SetName( 'control_m3p1' )
-control_m3p1.SetAuthor( '' )
-control_m3p1.SetComment( '' )
-control_m3p1.Coords( 821 , 28 )
-
-Pycontrol_div2 = []
-Pycontrol_div2.append( 'def control_div2( N , K ) :' )
-Pycontrol_div2.append( '    return N,K' )
-control_div2 = GraphSyrControl1.GNode( 'control_div2' , Pycontrol_div2 , 'label_begin' )
-control_div2.InPort( 'N' , 'long' )
-control_div2.InPort( 'K' , 'long' )
-control_div2.OutPort( 'NB' , 'long' )
-control_div2.OutPort( 'KB' , 'long' )
-control_div2.SetName( 'control_div2' )
-control_div2.SetAuthor( '' )
-control_div2.SetComment( '' )
-control_div2.Coords( 818 , 358 )
-
-# Creation of Links
-test_ISEVENBoolEven = test_ISEVEN.Port( 'BoolEven' )
-label_testValEven = GraphSyrControl1.Link( test_ISEVENBoolEven , label_test.Port( 'ValEven' ) )
-label_testValEven.AddCoord( 1 , 383 , 239 )
-label_testValEven.AddCoord( 2 , 382 , 417 )
-
-test_ISONEBoolOne = test_ISONE.Port( 'BoolOne' )
-label_testValOne = GraphSyrControl1.Link( test_ISONEBoolOne , label_test.Port( 'ValOne' ) )
-
-m3p1anEvenInteger = m3p1.Port( 'anEvenInteger' )
-control_m3p1N = GraphSyrControl1.Link( m3p1anEvenInteger , control_m3p1.Port( 'N' ) )
-control_m3p1N.AddCoord( 1 , 793 , 62 )
-control_m3p1N.AddCoord( 2 , 792 , 111 )
-
-div2anInteger = div2.Port( 'anInteger' )
-control_div2N = GraphSyrControl1.Link( div2anInteger , control_div2.Port( 'N' ) )
-control_div2N.AddCoord( 1 , 797 , 392 )
-control_div2N.AddCoord( 2 , 798 , 471 )
-
-incraNewCount = incr.Port( 'aNewCount' )
-control_div2K = GraphSyrControl1.Link( incraNewCount , control_div2.Port( 'K' ) )
-control_div2K.AddCoord( 1 , 809 , 420 )
-control_div2K.AddCoord( 2 , 808 , 288 )
-
-control_m3p1K = GraphSyrControl1.Link( incraNewCount , control_m3p1.Port( 'K' ) )
-control_m3p1K.AddCoord( 1 , 807 , 91 )
-control_m3p1K.AddCoord( 2 , 808 , 286 )
-
-label_beginNT = label_begin.Port( 'NT' )
-test_ISONEanInteger = GraphSyrControl1.Link( label_beginNT , test_ISONE.Port( 'anInteger' ) )
-test_ISONEanInteger.AddCoord( 1 , 180 , 211 )
-test_ISONEanInteger.AddCoord( 2 , 179 , 269 )
-
-label_testNT = GraphSyrControl1.Link( label_beginNT , label_test.Port( 'NT' ) )
-
-test_ISEVENanInteger = GraphSyrControl1.Link( label_beginNT , test_ISEVEN.Port( 'anInteger' ) )
-test_ISEVENanInteger.AddCoord( 1 , 179 , 417 )
-test_ISEVENanInteger.AddCoord( 2 , 179 , 271 )
-
-label_beginKT = label_begin.Port( 'KT' )
-label_testKT = GraphSyrControl1.Link( label_beginKT , label_test.Port( 'KT' ) )
-
-label_testIncr = label_test.Port( 'Incr' )
-incrInGate = GraphSyrControl1.Link( label_testIncr , incr.Port( 'InGate' ) )
-incrInGate.AddCoord( 1 , 565 , 315 )
-incrInGate.AddCoord( 2 , 564 , 240 )
-
-label_testEven = label_test.Port( 'Even' )
-div2InGate = GraphSyrControl1.Link( label_testEven , div2.Port( 'InGate' ) )
-div2InGate.AddCoord( 1 , 583 , 500 )
-div2InGate.AddCoord( 2 , 582 , 269 )
-
-label_testOdd = label_test.Port( 'Odd' )
-m3p1InGate = GraphSyrControl1.Link( label_testOdd , m3p1.Port( 'InGate' ) )
-m3p1InGate.AddCoord( 1 , 571 , 138 )
-m3p1InGate.AddCoord( 2 , 573 , 298 )
-
-label_testN = label_test.Port( 'N' )
-m3p1anOddInteger = GraphSyrControl1.Link( label_testN , m3p1.Port( 'anOddInteger' ) )
-m3p1anOddInteger.AddCoord( 1 , 604 , 110 )
-m3p1anOddInteger.AddCoord( 2 , 605 , 328 )
-
-div2anEvenInteger = GraphSyrControl1.Link( label_testN , div2.Port( 'anEvenInteger' ) )
-div2anEvenInteger.AddCoord( 1 , 606 , 471 )
-div2anEvenInteger.AddCoord( 2 , 605 , 328 )
-
-label_testK = label_test.Port( 'K' )
-incraCount = GraphSyrControl1.Link( label_testK , incr.Port( 'aCount' ) )
-incraCount.AddCoord( 1 , 594 , 287 )
-incraCount.AddCoord( 2 , 595 , 356 )
-
-label_testDefault = label_test.Port( 'Default' )
-EndL_OneEvenDefault = GraphSyrControl1.Link( label_testDefault , EndL_OneEven.Port( 'Default' ) )
-EndL_OneEvenDefault.AddCoord( 1 , 1008 , 281 )
-EndL_OneEvenDefault.AddCoord( 2 , 1008 , 560 )
-EndL_OneEvenDefault.AddCoord( 3 , 565 , 559 )
-EndL_OneEvenDefault.AddCoord( 4 , 564 , 385 )
-
-control_m3p1OutGate = control_m3p1.Port( 'OutGate' )
-label_testInGate = GraphSyrControl1.Link( control_m3p1OutGate , label_test.Port( 'InGate' ) )
-label_testInGate.AddCoord( 1 , 368 , 327 )
-label_testInGate.AddCoord( 2 , 369 , 7 )
-label_testInGate.AddCoord( 3 , 1009 , 8 )
-label_testInGate.AddCoord( 4 , 1009 , 179 )
-
-control_div2OutGate = control_div2.Port( 'OutGate' )
-label_beginInGate = GraphSyrControl1.Link( control_div2OutGate , label_begin.Port( 'InGate' ) )
-label_beginInGate.AddCoord( 1 , 3 , 327 )
-label_beginInGate.AddCoord( 2 , 2 , 582 )
-label_beginInGate.AddCoord( 3 , 991 , 583 )
-label_beginInGate.AddCoord( 4 , 991 , 451 )
-
-# Creation of Input datas
-label_beginNB = label_begin.Input( 'NB' , 7)
-label_beginKB = label_begin.Input( 'KB' , 0)
-
-# Creation of Output variables
-label_testFinished = label_test.Port( 'Finished' )
-
-GraphSyrControl1.Run( 7 )
-
-GraphSyrControl1.DoneW()
-
-print GraphSyrControl1.State()
-
-GraphSyrControl1.PrintPorts()
 
+# Graph creation of GraphSyrControlGUI
+def DefGraphSyrControlGUI() :
+    GraphSyrControlGUI = Graph( 'GraphSyrControlGUI' )
+    GraphSyrControlGUI.SetName( 'GraphSyrControlGUI' )
+    GraphSyrControlGUI.SetAuthor( 'JR' )
+    GraphSyrControlGUI.SetComment( 'Syracuse algorithm' )
+    GraphSyrControlGUI.Coords( 0 , 0 )
+    
+    # Creation of Factory Nodes
+    
+    test_ISEVEN = GraphSyrControlGUI.FNode( 'SyrComponent' , 'SyrComponent' , 'C_ISEVEN' )
+    test_ISEVEN.SetName( 'test_ISEVEN' )
+    test_ISEVEN.SetAuthor( '' )
+    test_ISEVEN.SetContainer( 'localhost/FactoryServer' )
+    test_ISEVEN.SetComment( 'C_ISEVEN from SyrComponent' )
+    test_ISEVEN.Coords( 192 , 345 )
+    Itest_ISEVENanInteger = test_ISEVEN.GetInPort( 'anInteger' )
+    Itest_ISEVENGate = test_ISEVEN.GetInPort( 'Gate' )
+    Otest_ISEVENBoolEven = test_ISEVEN.GetOutPort( 'BoolEven' )
+    Otest_ISEVENGate = test_ISEVEN.GetOutPort( 'Gate' )
+    
+    test_ISONE = GraphSyrControlGUI.FNode( 'SyrComponent' , 'SyrComponent' , 'C_ISONE' )
+    test_ISONE.SetName( 'test_ISONE' )
+    test_ISONE.SetAuthor( '' )
+    test_ISONE.SetContainer( 'localhost/FactoryServer' )
+    test_ISONE.SetComment( 'C_ISONE from SyrComponent' )
+    test_ISONE.Coords( 197 , 147 )
+    Itest_ISONEanInteger = test_ISONE.GetInPort( 'anInteger' )
+    Itest_ISONEGate = test_ISONE.GetInPort( 'Gate' )
+    Otest_ISONEBoolOne = test_ISONE.GetOutPort( 'BoolOne' )
+    Otest_ISONEGate = test_ISONE.GetOutPort( 'Gate' )
+    
+    m3p1 = GraphSyrControlGUI.FNode( 'SyrComponent' , 'SyrComponent' , 'C_M3P1' )
+    m3p1.SetName( 'm3p1' )
+    m3p1.SetAuthor( '' )
+    m3p1.SetContainer( 'localhost/FactoryServer' )
+    m3p1.SetComment( 'C_M3P1 from SyrComponent' )
+    m3p1.Coords( 615 , 30 )
+    Im3p1anOddInteger = m3p1.GetInPort( 'anOddInteger' )
+    Im3p1Gate = m3p1.GetInPort( 'Gate' )
+    Om3p1anEvenInteger = m3p1.GetOutPort( 'anEvenInteger' )
+    Om3p1Gate = m3p1.GetOutPort( 'Gate' )
+    
+    div2 = GraphSyrControlGUI.FNode( 'SyrComponent' , 'SyrComponent' , 'C_DIV2' )
+    div2.SetName( 'div2' )
+    div2.SetAuthor( '' )
+    div2.SetContainer( 'localhost/FactoryServer' )
+    div2.SetComment( 'C_DIV2 from SyrComponent' )
+    div2.Coords( 624 , 391 )
+    Idiv2anEvenInteger = div2.GetInPort( 'anEvenInteger' )
+    Idiv2Gate = div2.GetInPort( 'Gate' )
+    Odiv2anInteger = div2.GetOutPort( 'anInteger' )
+    Odiv2Gate = div2.GetOutPort( 'Gate' )
+    
+    incr = GraphSyrControlGUI.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' )
+    incr.SetName( 'incr' )
+    incr.SetAuthor( '' )
+    incr.SetContainer( 'localhost/FactoryServer' )
+    incr.SetComment( 'C_INCR from SyrComponent' )
+    incr.Coords( 624 , 216 )
+    IincraCount = incr.GetInPort( 'aCount' )
+    IincrGate = incr.GetInPort( 'Gate' )
+    OincraNewCount = incr.GetOutPort( 'aNewCount' )
+    OincrGate = incr.GetOutPort( 'Gate' )
+    
+    # Creation of InLine Nodes
+    Pylabel_begin = []
+    Pylabel_begin.append( 'def label_begin( NB , KB ) :' )
+    Pylabel_begin.append( '    return NB,KB' )
+    label_begin = GraphSyrControlGUI.INode( 'label_begin' , Pylabel_begin )
+    label_begin.SetName( 'label_begin' )
+    label_begin.SetAuthor( '' )
+    label_begin.SetComment( 'Python function' )
+    label_begin.Coords( 5 , 190 )
+    Ilabel_beginNB = label_begin.InPort( 'NB' , 'long' )
+    Ilabel_beginKB = label_begin.InPort( 'KB' , 'long' )
+    Ilabel_beginGate = label_begin.GetInPort( 'Gate' )
+    Olabel_beginNT = label_begin.OutPort( 'NT' , 'long' )
+    Olabel_beginKT = label_begin.OutPort( 'KT' , 'long' )
+    Olabel_beginGate = label_begin.GetOutPort( 'Gate' )
+    
+    # Creation of Switch Nodes
+    Pylabel_test = []
+    Pylabel_test.append( 'def L_OneEven( ValOne , ValEven , NT , KT ):' )
+    Pylabel_test.append( '    Finished = ValOne' )
+    Pylabel_test.append( '    if Finished == 0 :' )
+    Pylabel_test.append( '        Incr = 1' )
+    Pylabel_test.append( '        Even = ValEven' )
+    Pylabel_test.append( '        if Even == 0 :' )
+    Pylabel_test.append( '            Odd = 1' )
+    Pylabel_test.append( '        else :' )
+    Pylabel_test.append( '            Odd = 0' )
+    Pylabel_test.append( '    else :' )
+    Pylabel_test.append( '        Incr = 0' )
+    Pylabel_test.append( '        Even = 0' )
+    Pylabel_test.append( '        Odd = 0' )
+    Pylabel_test.append( '    Even = ValEven' )
+    Pylabel_test.append( '    return Finished,Incr,Even,Odd,NT,KT' )
+    label_test,EndL_OneEven = GraphSyrControlGUI.SNode( 'L_OneEven' , Pylabel_test )
+    EndL_OneEven.SetName( 'EndL_OneEven' )
+    EndL_OneEven.SetAuthor( '' )
+    EndL_OneEven.SetComment( 'Compute Node' )
+    EndL_OneEven.Coords( 1033 , 307 )
+    PyEndL_OneEven = []
+    EndL_OneEven.SetPyFunction( '' , PyEndL_OneEven )
+    IEndL_OneEvenDefault = EndL_OneEven.GetInPort( 'Default' )
+    OEndL_OneEvenGate = EndL_OneEven.GetOutPort( 'Gate' )
+    label_test.SetName( 'label_test' )
+    label_test.SetAuthor( '' )
+    label_test.SetComment( 'Compute Node' )
+    label_test.Coords( 398 , 188 )
+    Ilabel_testValOne = label_test.InPort( 'ValOne' , 'long' )
+    Ilabel_testValEven = label_test.InPort( 'ValEven' , 'long' )
+    Ilabel_testNT = label_test.InPort( 'NT' , 'long' )
+    Ilabel_testKT = label_test.InPort( 'KT' , 'long' )
+    Ilabel_testGate = label_test.GetInPort( 'Gate' )
+    Olabel_testFinished = label_test.OutPort( 'Finished' , 'long' )
+    Olabel_testIncr = label_test.OutPort( 'Incr' , 'long' )
+    Olabel_testEven = label_test.OutPort( 'Even' , 'long' )
+    Olabel_testOdd = label_test.OutPort( 'Odd' , 'long' )
+    Olabel_testN = label_test.OutPort( 'N' , 'long' )
+    Olabel_testK = label_test.OutPort( 'K' , 'long' )
+    Olabel_testDefault = label_test.GetOutPort( 'Default' )
+    
+    # Creation of GOTO Nodes
+    Pycontrol_m3p1 = []
+    Pycontrol_m3p1.append( 'def C_NotOneIsEven( N , K ):' )
+    Pycontrol_m3p1.append( '    return 0,1,N,K' )
+    control_m3p1 = GraphSyrControlGUI.GNode( 'C_NotOneIsEven' , Pycontrol_m3p1 , 'label_test' )
+    control_m3p1.SetName( 'control_m3p1' )
+    control_m3p1.SetAuthor( '' )
+    control_m3p1.SetComment( 'Compute Node' )
+    control_m3p1.Coords( 823 , 70 )
+    Icontrol_m3p1N = control_m3p1.InPort( 'N' , 'long' )
+    Icontrol_m3p1K = control_m3p1.InPort( 'K' , 'long' )
+    Icontrol_m3p1Gate = control_m3p1.GetInPort( 'Gate' )
+    Ocontrol_m3p1ValOne = control_m3p1.OutPort( 'ValOne' , 'long' )
+    Ocontrol_m3p1ValEven = control_m3p1.OutPort( 'ValEven' , 'long' )
+    Ocontrol_m3p1NT = control_m3p1.OutPort( 'NT' , 'long' )
+    Ocontrol_m3p1KT = control_m3p1.OutPort( 'KT' , 'long' )
+    Ocontrol_m3p1Gate = control_m3p1.GetOutPort( 'Gate' )
+    
+    Pycontrol_div2 = []
+    Pycontrol_div2.append( 'def control_div2( N , K ) :' )
+    Pycontrol_div2.append( '    return N,K' )
+    control_div2 = GraphSyrControlGUI.GNode( 'control_div2' , Pycontrol_div2 , 'label_begin' )
+    control_div2.SetName( 'control_div2' )
+    control_div2.SetAuthor( '' )
+    control_div2.SetComment( 'Compute Node' )
+    control_div2.Coords( 829 , 431 )
+    Icontrol_div2N = control_div2.InPort( 'N' , 'long' )
+    Icontrol_div2K = control_div2.InPort( 'K' , 'long' )
+    Icontrol_div2Gate = control_div2.GetInPort( 'Gate' )
+    Ocontrol_div2NB = control_div2.OutPort( 'NB' , 'long' )
+    Ocontrol_div2KB = control_div2.OutPort( 'KB' , 'long' )
+    Ocontrol_div2Gate = control_div2.GetOutPort( 'Gate' )
+    
+    # Creation of Links
+    Ltest_ISEVENBoolEvenlabel_testValEven = GraphSyrControlGUI.Link( Otest_ISEVENBoolEven , Ilabel_testValEven )
+    Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 1 , 383 , 239 )
+    Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 2 , 382 , 417 )
+    
+    Ltest_ISONEBoolOnelabel_testValOne = GraphSyrControlGUI.Link( Otest_ISONEBoolOne , Ilabel_testValOne )
+    
+    Lm3p1anEvenIntegercontrol_m3p1N = GraphSyrControlGUI.Link( Om3p1anEvenInteger , Icontrol_m3p1N )
+    
+    Ldiv2anIntegercontrol_div2N = GraphSyrControlGUI.Link( Odiv2anInteger , Icontrol_div2N )
+    
+    LincraNewCountcontrol_div2K = GraphSyrControlGUI.Link( OincraNewCount , Icontrol_div2K )
+    LincraNewCountcontrol_div2K.AddCoord( 1 , 810 , 482 )
+    LincraNewCountcontrol_div2K.AddCoord( 2 , 808 , 288 )
+    
+    LincraNewCountcontrol_m3p1K = GraphSyrControlGUI.Link( OincraNewCount , Icontrol_m3p1K )
+    LincraNewCountcontrol_m3p1K.AddCoord( 1 , 803 , 120 )
+    LincraNewCountcontrol_m3p1K.AddCoord( 2 , 809 , 288 )
+    
+    Llabel_beginNTtest_ISONEanInteger = GraphSyrControlGUI.Link( Olabel_beginNT , Itest_ISONEanInteger )
+    Llabel_beginNTtest_ISONEanInteger.AddCoord( 1 , 180 , 217 )
+    Llabel_beginNTtest_ISONEanInteger.AddCoord( 2 , 180 , 258 )
+    
+    Llabel_beginNTlabel_testNT = GraphSyrControlGUI.Link( Olabel_beginNT , Ilabel_testNT )
+    
+    Llabel_beginNTtest_ISEVENanInteger = GraphSyrControlGUI.Link( Olabel_beginNT , Itest_ISEVENanInteger )
+    Llabel_beginNTtest_ISEVENanInteger.AddCoord( 1 , 179 , 417 )
+    Llabel_beginNTtest_ISEVENanInteger.AddCoord( 2 , 180 , 262 )
+    
+    Llabel_beginKTlabel_testKT = GraphSyrControlGUI.Link( Olabel_beginKT , Ilabel_testKT )
+    
+    Llabel_testEvendiv2Gate = GraphSyrControlGUI.Link( Olabel_testEven , Idiv2Gate )
+    Llabel_testEvendiv2Gate.AddCoord( 1 , 584 , 486 )
+    Llabel_testEvendiv2Gate.AddCoord( 2 , 583 , 261 )
+    
+    Llabel_testOddm3p1Gate = GraphSyrControlGUI.Link( Olabel_testOdd , Im3p1Gate )
+    Llabel_testOddm3p1Gate.AddCoord( 1 , 572 , 123 )
+    Llabel_testOddm3p1Gate.AddCoord( 2 , 572 , 279 )
+    
+    Llabel_testNm3p1anOddInteger = GraphSyrControlGUI.Link( Olabel_testN , Im3p1anOddInteger )
+    Llabel_testNm3p1anOddInteger.AddCoord( 1 , 602 , 98 )
+    Llabel_testNm3p1anOddInteger.AddCoord( 2 , 604 , 301 )
+    
+    Llabel_testNdiv2anEvenInteger = GraphSyrControlGUI.Link( Olabel_testN , Idiv2anEvenInteger )
+    Llabel_testNdiv2anEvenInteger.AddCoord( 1 , 605 , 461 )
+    Llabel_testNdiv2anEvenInteger.AddCoord( 2 , 604 , 300 )
+    
+    Llabel_testKincraCount = GraphSyrControlGUI.Link( Olabel_testK , IincraCount )
+    Llabel_testKincraCount.AddCoord( 1 , 597 , 286 )
+    Llabel_testKincraCount.AddCoord( 2 , 596 , 320 )
+    
+    Llabel_testDefaultEndL_OneEvenDefault = GraphSyrControlGUI.Link( Olabel_testDefault , IEndL_OneEvenDefault )
+    
+    Lcontrol_m3p1Gatelabel_testGate = GraphSyrControlGUI.Link( Ocontrol_m3p1Gate , Ilabel_testGate )
+    Lcontrol_m3p1Gatelabel_testGate.AddCoord( 1 , 369 , 343 )
+    Lcontrol_m3p1Gatelabel_testGate.AddCoord( 2 , 368 , 22 )
+    Lcontrol_m3p1Gatelabel_testGate.AddCoord( 3 , 1003 , 24 )
+    Lcontrol_m3p1Gatelabel_testGate.AddCoord( 4 , 1005 , 189 )
+    
+    Lcontrol_div2Gatelabel_beginGate = GraphSyrControlGUI.Link( Ocontrol_div2Gate , Ilabel_beginGate )
+    Lcontrol_div2Gatelabel_beginGate.AddCoord( 1 , 2 , 582 )
+    Lcontrol_div2Gatelabel_beginGate.AddCoord( 2 , 1012 , 583 )
+    Lcontrol_div2Gatelabel_beginGate.AddCoord( 3 , 1012 , 507 )
+    
+    # Input datas
+    Ilabel_beginNB.Input( 7 )
+    Ilabel_beginKB.Input( 0 )
+    
+    # Output Ports of the graph
+    #Olabel_testFinished = label_test.GetOutPort( 'Finished' )
+    #Olabel_testIncr = label_test.GetOutPort( 'Incr' )
+    return GraphSyrControlGUI
+
+
+GraphSyrControlGUI = DefGraphSyrControlGUI()
index aa184bff0b272479713324b7d84cc4da04a15b92..0eb99d0f95b9959c874139f04c43004def452d6c 100755 (executable)
-<!DOCTYPE Dataflow>
+<!DOCTYPE SuperGraph>
+<supergraph>
 <dataflow>
 <info-list>
 <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>GraphSyrControlGUI</node-name>
-   <kind>1</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>GraphSyrControlGUI</node-name>
+    <kind>1</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>GraphSyrControlGUI</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>label_begin\NB</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>label_begin__NB</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>label_begin\KB</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>label_begin__KB</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>label_test\Finished</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list/>
-   <creation-date>11/3/2003 - 18:28:48</creation-date>
-   <lastmodification-date>19/9/2003 - 15:3:50</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>JR</author>
-   <container>?</container>
-   <comment>Syracuse algorithm</comment>
-   <x-position>0</x-position>
-   <y-position>0</y-position>  </node> </info-list>
- <node-list>
+       <outParameter-name>label_test__Finished</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>label_test__Incr</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>11/3/2003 - 18:28:48</creation-date>
+    <lastmodification-date>14/2/2005 - 14:39:32</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>JR</author>
+    <container>?</container>
+    <comment>Syracuse algorithm</comment>
+    <x-position>0</x-position>
+    <y-position>0</y-position>   </node>  </info-list>
+  <node-list>
 <node>
 <component-name>SyrComponent</component-name>
-   <interface-name>SyrComponent</interface-name>
-   <node-name>test_ISEVEN</node-name>
-   <kind>0</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>SyrComponent</interface-name>
+    <node-name>test_ISEVEN</node-name>
+    <kind>0</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>C_ISEVEN</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>anInteger</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>anInteger</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>BoolEven</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list/>
-   <creation-date>19/9/2003 - 15:3:49</creation-date>
-   <lastmodification-date>19/9/2003 - 15:3:49</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>localhost/FactoryServer</container>
-   <comment>C_ISEVEN from SyrComponent</comment>
-   <x-position>190</x-position>
-   <y-position>338</y-position>  </node>
-  <node>
+       <outParameter-name>BoolEven</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>14/2/2005 - 14:39:32</creation-date>
+    <lastmodification-date>14/2/2005 - 14:39:32</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>localhost/FactoryServer</container>
+    <comment>C_ISEVEN from SyrComponent</comment>
+    <x-position>192</x-position>
+    <y-position>345</y-position>   </node>
+   <node>
 <component-name>SyrComponent</component-name>
-   <interface-name>SyrComponent</interface-name>
-   <node-name>test_ISONE</node-name>
-   <kind>0</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>SyrComponent</interface-name>
+    <node-name>test_ISONE</node-name>
+    <kind>0</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>C_ISONE</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>anInteger</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>anInteger</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>BoolOne</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list/>
-   <creation-date>19/9/2003 - 15:3:49</creation-date>
-   <lastmodification-date>19/9/2003 - 15:3:49</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>localhost/FactoryServer</container>
-   <comment>C_ISONE from SyrComponent</comment>
-   <x-position>196</x-position>
-   <y-position>131</y-position>  </node>
-  <node>
+       <outParameter-name>BoolOne</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>14/2/2005 - 14:39:32</creation-date>
+    <lastmodification-date>14/2/2005 - 14:39:32</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>localhost/FactoryServer</container>
+    <comment>C_ISONE from SyrComponent</comment>
+    <x-position>197</x-position>
+    <y-position>147</y-position>   </node>
+   <node>
 <component-name>SyrComponent</component-name>
-   <interface-name>SyrComponent</interface-name>
-   <node-name>m3p1</node-name>
-   <kind>0</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>SyrComponent</interface-name>
+    <node-name>m3p1</node-name>
+    <kind>0</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>C_M3P1</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>anOddInteger</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>anOddInteger</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>anEvenInteger</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list/>
-   <creation-date>19/9/2003 - 15:3:49</creation-date>
-   <lastmodification-date>19/9/2003 - 15:3:49</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>localhost/FactoryServer</container>
-   <comment>C_M3P1 from SyrComponent</comment>
-   <x-position>615</x-position>
-   <y-position>30</y-position>  </node>
-  <node>
+       <outParameter-name>anEvenInteger</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>14/2/2005 - 14:39:32</creation-date>
+    <lastmodification-date>14/2/2005 - 14:39:32</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>localhost/FactoryServer</container>
+    <comment>C_M3P1 from SyrComponent</comment>
+    <x-position>615</x-position>
+    <y-position>30</y-position>   </node>
+   <node>
 <component-name>SyrComponent</component-name>
-   <interface-name>SyrComponent</interface-name>
-   <node-name>div2</node-name>
-   <kind>0</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>SyrComponent</interface-name>
+    <node-name>div2</node-name>
+    <kind>0</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>C_DIV2</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>anEvenInteger</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>anEvenInteger</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>anInteger</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list/>
-   <creation-date>19/9/2003 - 15:3:49</creation-date>
-   <lastmodification-date>19/9/2003 - 15:3:49</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>localhost/FactoryServer</container>
-   <comment>C_DIV2 from SyrComponent</comment>
-   <x-position>624</x-position>
-   <y-position>391</y-position>  </node>
-  <node>
+       <outParameter-name>anInteger</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>14/2/2005 - 14:39:32</creation-date>
+    <lastmodification-date>14/2/2005 - 14:39:32</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>localhost/FactoryServer</container>
+    <comment>C_DIV2 from SyrComponent</comment>
+    <x-position>624</x-position>
+    <y-position>391</y-position>   </node>
+   <node>
 <component-name>SyrComponent</component-name>
-   <interface-name>SyrComponent</interface-name>
-   <node-name>incr</node-name>
-   <kind>0</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>SyrComponent</interface-name>
+    <node-name>incr</node-name>
+    <kind>0</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>C_INCR</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>aCount</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>aCount</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>aNewCount</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list/>
-   <creation-date>19/9/2003 - 15:3:49</creation-date>
-   <lastmodification-date>19/9/2003 - 15:3:49</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>localhost/FactoryServer</container>
-   <comment>C_INCR from SyrComponent</comment>
-   <x-position>623</x-position>
-   <y-position>206</y-position>  </node>
-  <node>
+       <outParameter-name>aNewCount</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>14/2/2005 - 14:39:32</creation-date>
+    <lastmodification-date>14/2/2005 - 14:39:32</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>localhost/FactoryServer</container>
+    <comment>C_INCR from SyrComponent</comment>
+    <x-position>624</x-position>
+    <y-position>216</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>label_begin</node-name>
-   <kind>3</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>label_begin</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>label_begin</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>NB</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>NB</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>KB</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>KB</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>NT</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>NT</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>KT</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
+       <outParameter-name>KT</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>label_begin</FuncName>
-     <PyFunc><![CDATA[def label_begin( NB , KB ) :]]></PyFunc>
-     <PyFunc><![CDATA[    return NB,KB]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>19/9/2003 - 15:3:49</creation-date>
-   <lastmodification-date>19/9/2003 - 15:3:49</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>Python function</comment>
-   <x-position>5</x-position>
-   <y-position>190</y-position>  </node>
-  <node>
+      <PyFunc><![CDATA[def label_begin( NB , KB ) :]]></PyFunc>
+      <PyFunc><![CDATA[    return NB,KB]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 14:39:32</creation-date>
+    <lastmodification-date>14/2/2005 - 14:39:32</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Python function</comment>
+    <x-position>5</x-position>
+    <y-position>190</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>label_test</node-name>
-   <kind>6</kind>
-   <coupled-node>EndL_OneEven</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>label_test</node-name>
+    <kind>6</kind>
+    <coupled-node>EndL_OneEven</coupled-node>
+    <service>
 <service-name>label_test</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>ValOne</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>ValOne</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>ValEven</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>ValEven</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>NT</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>NT</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>KT</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>KT</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Finished</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Finished</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Incr</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Incr</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Even</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Even</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Odd</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>N</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>N</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>K</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
+       <outParameter-name>K</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>L_OneEven</FuncName>
-     <PyFunc><![CDATA[def L_OneEven( ValOne , ValEven , NT , KT ):]]></PyFunc>
-     <PyFunc><![CDATA[    Finished = ValOne]]></PyFunc>
-     <PyFunc><![CDATA[    if Finished == 0 :]]></PyFunc>
-     <PyFunc><![CDATA[        Incr = 1]]></PyFunc>
-     <PyFunc><![CDATA[        Even = ValEven]]></PyFunc>
-     <PyFunc><![CDATA[        if Even == 0 :]]></PyFunc>
-     <PyFunc><![CDATA[            Odd = 1]]></PyFunc>
-     <PyFunc><![CDATA[        else :]]></PyFunc>
-     <PyFunc><![CDATA[            Odd = 0]]></PyFunc>
-     <PyFunc><![CDATA[    else :]]></PyFunc>
-     <PyFunc><![CDATA[        Incr = 0]]></PyFunc>
-     <PyFunc><![CDATA[        Even = 0]]></PyFunc>
-     <PyFunc><![CDATA[        Odd = 0]]></PyFunc>
-     <PyFunc><![CDATA[    Even = ValEven]]></PyFunc>
-     <PyFunc><![CDATA[    return Finished,Incr,Even,Odd,NT,KT]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>19/9/2003 - 15:3:49</creation-date>
-   <lastmodification-date>19/9/2003 - 15:3:49</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>399</x-position>
-   <y-position>177</y-position>  </node>
-  <node>
+      <PyFunc><![CDATA[def L_OneEven( ValOne , ValEven , NT , KT ):]]></PyFunc>
+      <PyFunc><![CDATA[    Finished = ValOne]]></PyFunc>
+      <PyFunc><![CDATA[    if Finished == 0 :]]></PyFunc>
+      <PyFunc><![CDATA[        Incr = 1]]></PyFunc>
+      <PyFunc><![CDATA[        Even = ValEven]]></PyFunc>
+      <PyFunc><![CDATA[        if Even == 0 :]]></PyFunc>
+      <PyFunc><![CDATA[            Odd = 1]]></PyFunc>
+      <PyFunc><![CDATA[        else :]]></PyFunc>
+      <PyFunc><![CDATA[            Odd = 0]]></PyFunc>
+      <PyFunc><![CDATA[    else :]]></PyFunc>
+      <PyFunc><![CDATA[        Incr = 0]]></PyFunc>
+      <PyFunc><![CDATA[        Even = 0]]></PyFunc>
+      <PyFunc><![CDATA[        Odd = 0]]></PyFunc>
+      <PyFunc><![CDATA[    Even = ValEven]]></PyFunc>
+      <PyFunc><![CDATA[    return Finished,Incr,Even,Odd,NT,KT]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 14:39:32</creation-date>
+    <lastmodification-date>14/2/2005 - 14:39:32</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>398</x-position>
+    <y-position>188</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>EndL_OneEven</node-name>
-   <kind>7</kind>
-   <coupled-node>label_test</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>EndL_OneEven</node-name>
+    <kind>7</kind>
+    <coupled-node>label_test</coupled-node>
+    <service>
 <service-name>EndL_OneEven</service-name>
-    <inParameter-list/>
-    <outParameter-list/>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
-<PyFunction/>   </PyFunction-list>
-   <creation-date>19/9/2003 - 15:3:49</creation-date>
-   <lastmodification-date>19/9/2003 - 15:3:49</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>1017</x-position>
-   <y-position>247</y-position>  </node>
-  <node>
+     <inParameter-list/>
+     <outParameter-list/>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>?</FuncName>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 14:39:32</creation-date>
+    <lastmodification-date>14/2/2005 - 14:39:32</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>1033</x-position>
+    <y-position>307</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>control_m3p1</node-name>
-   <kind>8</kind>
-   <coupled-node>label_test</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>control_m3p1</node-name>
+    <kind>8</kind>
+    <coupled-node>label_test</coupled-node>
+    <service>
 <service-name>control_m3p1</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>N</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>N</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>K</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>K</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>ValOne</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>ValOne</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>ValEven</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>ValEven</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>NT</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>NT</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>KT</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
+       <outParameter-name>KT</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>C_NotOneIsEven</FuncName>
-     <PyFunc><![CDATA[def C_NotOneIsEven( N , K ):]]></PyFunc>
-     <PyFunc><![CDATA[    return 0,1,N,K]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>19/9/2003 - 15:3:49</creation-date>
-   <lastmodification-date>19/9/2003 - 15:3:49</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>821</x-position>
-   <y-position>28</y-position>  </node>
-  <node>
+      <PyFunc><![CDATA[def C_NotOneIsEven( N , K ):]]></PyFunc>
+      <PyFunc><![CDATA[    return 0,1,N,K]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 14:39:32</creation-date>
+    <lastmodification-date>14/2/2005 - 14:39:32</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>823</x-position>
+    <y-position>70</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>control_div2</node-name>
-   <kind>8</kind>
-   <coupled-node>label_begin</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>control_div2</node-name>
+    <kind>8</kind>
+    <coupled-node>label_begin</coupled-node>
+    <service>
 <service-name>control_div2</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>N</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>N</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>K</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>K</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>NB</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>NB</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>KB</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
+       <outParameter-name>KB</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>control_div2</FuncName>
-     <PyFunc><![CDATA[def control_div2( N , K ) :]]></PyFunc>
-     <PyFunc><![CDATA[    return N,K]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>19/9/2003 - 15:3:49</creation-date>
-   <lastmodification-date>19/9/2003 - 15:3:49</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>818</x-position>
-   <y-position>358</y-position>  </node> </node-list>
- <link-list>
+      <PyFunc><![CDATA[def control_div2( N , K ) :]]></PyFunc>
+      <PyFunc><![CDATA[    return N,K]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 14:39:32</creation-date>
+    <lastmodification-date>14/2/2005 - 14:39:32</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>829</x-position>
+    <y-position>431</y-position>   </node>  </node-list>
 <link-list>
 <link>
 <fromnode-name>test_ISEVEN</fromnode-name>
-   <fromserviceparameter-name>BoolEven</fromserviceparameter-name>
-   <tonode-name>label_test</tonode-name>
-   <toserviceparameter-name>ValEven</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>BoolEven</fromserviceparameter-name>
+    <tonode-name>label_test</tonode-name>
+    <toserviceparameter-name>ValEven</toserviceparameter-name>
+    <coord-list>
 <coord>
 <x>383</x>
-     <y>239</y>    </coord>
-    <coord>
+      <y>239</y>     </coord>
+     <coord>
 <x>382</x>
-     <y>417</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>417</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>test_ISONE</fromnode-name>
-   <fromserviceparameter-name>BoolOne</fromserviceparameter-name>
-   <tonode-name>label_test</tonode-name>
-   <toserviceparameter-name>ValOne</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>BoolOne</fromserviceparameter-name>
+    <tonode-name>label_test</tonode-name>
+    <toserviceparameter-name>ValOne</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>m3p1</fromnode-name>
-   <fromserviceparameter-name>anEvenInteger</fromserviceparameter-name>
-   <tonode-name>control_m3p1</tonode-name>
-   <toserviceparameter-name>N</toserviceparameter-name>
-   <coord-list>
-<coord>
-<x>793</x>
-     <y>62</y>    </coord>
-    <coord>
-<x>792</x>
-     <y>111</y>    </coord>   </coord-list>  </link>
-  <link>
+    <fromserviceparameter-name>anEvenInteger</fromserviceparameter-name>
+    <tonode-name>control_m3p1</tonode-name>
+    <toserviceparameter-name>N</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>div2</fromnode-name>
-   <fromserviceparameter-name>anInteger</fromserviceparameter-name>
-   <tonode-name>control_div2</tonode-name>
-   <toserviceparameter-name>N</toserviceparameter-name>
-   <coord-list>
-<coord>
-<x>797</x>
-     <y>392</y>    </coord>
-    <coord>
-<x>798</x>
-     <y>471</y>    </coord>   </coord-list>  </link>
-  <link>
+    <fromserviceparameter-name>anInteger</fromserviceparameter-name>
+    <tonode-name>control_div2</tonode-name>
+    <toserviceparameter-name>N</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>incr</fromnode-name>
-   <fromserviceparameter-name>aNewCount</fromserviceparameter-name>
-   <tonode-name>control_div2</tonode-name>
-   <toserviceparameter-name>K</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>aNewCount</fromserviceparameter-name>
+    <tonode-name>control_div2</tonode-name>
+    <toserviceparameter-name>K</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>809</x>
-     <y>420</y>    </coord>
-    <coord>
+<x>810</x>
+      <y>482</y>     </coord>
+     <coord>
 <x>808</x>
-     <y>288</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>288</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>incr</fromnode-name>
-   <fromserviceparameter-name>aNewCount</fromserviceparameter-name>
-   <tonode-name>control_m3p1</tonode-name>
-   <toserviceparameter-name>K</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>aNewCount</fromserviceparameter-name>
+    <tonode-name>control_m3p1</tonode-name>
+    <toserviceparameter-name>K</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>807</x>
-     <y>91</y>    </coord>
-    <coord>
-<x>808</x>
-     <y>286</y>    </coord>   </coord-list>  </link>
-  <link>
+<x>803</x>
+      <y>120</y>     </coord>
+     <coord>
+<x>809</x>
+      <y>288</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>label_begin</fromnode-name>
-   <fromserviceparameter-name>NT</fromserviceparameter-name>
-   <tonode-name>test_ISONE</tonode-name>
-   <toserviceparameter-name>anInteger</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>NT</fromserviceparameter-name>
+    <tonode-name>test_ISONE</tonode-name>
+    <toserviceparameter-name>anInteger</toserviceparameter-name>
+    <coord-list>
 <coord>
 <x>180</x>
-     <y>211</y>    </coord>
-    <coord>
-<x>179</x>
-     <y>269</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>217</y>     </coord>
+     <coord>
+<x>180</x>
+      <y>258</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>label_begin</fromnode-name>
-   <fromserviceparameter-name>NT</fromserviceparameter-name>
-   <tonode-name>label_test</tonode-name>
-   <toserviceparameter-name>NT</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>NT</fromserviceparameter-name>
+    <tonode-name>label_test</tonode-name>
+    <toserviceparameter-name>NT</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>label_begin</fromnode-name>
-   <fromserviceparameter-name>NT</fromserviceparameter-name>
-   <tonode-name>test_ISEVEN</tonode-name>
-   <toserviceparameter-name>anInteger</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>NT</fromserviceparameter-name>
+    <tonode-name>test_ISEVEN</tonode-name>
+    <toserviceparameter-name>anInteger</toserviceparameter-name>
+    <coord-list>
 <coord>
 <x>179</x>
-     <y>417</y>    </coord>
-    <coord>
-<x>179</x>
-     <y>271</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>417</y>     </coord>
+     <coord>
+<x>180</x>
+      <y>262</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>label_begin</fromnode-name>
-   <fromserviceparameter-name>KT</fromserviceparameter-name>
-   <tonode-name>label_test</tonode-name>
-   <toserviceparameter-name>KT</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>KT</fromserviceparameter-name>
+    <tonode-name>label_test</tonode-name>
+    <toserviceparameter-name>KT</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>Incr</fromserviceparameter-name>
-   <tonode-name>incr</tonode-name>
-   <toserviceparameter-name>InGate</toserviceparameter-name>
-   <coord-list>
-<coord>
-<x>565</x>
-     <y>315</y>    </coord>
-    <coord>
-<x>564</x>
-     <y>240</y>    </coord>   </coord-list>  </link>
-  <link>
-<fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>Even</fromserviceparameter-name>
-   <tonode-name>div2</tonode-name>
-   <toserviceparameter-name>InGate</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>div2</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list>
 <coord>
+<x>584</x>
+      <y>486</y>     </coord>
+     <coord>
 <x>583</x>
-     <y>500</y>    </coord>
-    <coord>
-<x>582</x>
-     <y>269</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>261</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>Odd</fromserviceparameter-name>
-   <tonode-name>m3p1</tonode-name>
-   <toserviceparameter-name>InGate</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>m3p1</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>571</x>
-     <y>138</y>    </coord>
-    <coord>
-<x>573</x>
-     <y>298</y>    </coord>   </coord-list>  </link>
-  <link>
+<x>572</x>
+      <y>123</y>     </coord>
+     <coord>
+<x>572</x>
+      <y>279</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>N</fromserviceparameter-name>
-   <tonode-name>m3p1</tonode-name>
-   <toserviceparameter-name>anOddInteger</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>N</fromserviceparameter-name>
+    <tonode-name>m3p1</tonode-name>
+    <toserviceparameter-name>anOddInteger</toserviceparameter-name>
+    <coord-list>
 <coord>
+<x>602</x>
+      <y>98</y>     </coord>
+     <coord>
 <x>604</x>
-     <y>110</y>    </coord>
-    <coord>
-<x>605</x>
-     <y>328</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>301</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>N</fromserviceparameter-name>
-   <tonode-name>div2</tonode-name>
-   <toserviceparameter-name>anEvenInteger</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>N</fromserviceparameter-name>
+    <tonode-name>div2</tonode-name>
+    <toserviceparameter-name>anEvenInteger</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>606</x>
-     <y>471</y>    </coord>
-    <coord>
 <x>605</x>
-     <y>328</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>461</y>     </coord>
+     <coord>
+<x>604</x>
+      <y>300</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>K</fromserviceparameter-name>
-   <tonode-name>incr</tonode-name>
-   <toserviceparameter-name>aCount</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>K</fromserviceparameter-name>
+    <tonode-name>incr</tonode-name>
+    <toserviceparameter-name>aCount</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>594</x>
-     <y>287</y>    </coord>
-    <coord>
-<x>595</x>
-     <y>356</y>    </coord>   </coord-list>  </link>
-  <link>
+<x>597</x>
+      <y>286</y>     </coord>
+     <coord>
+<x>596</x>
+      <y>320</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>Default</fromserviceparameter-name>
-   <tonode-name>EndL_OneEven</tonode-name>
-   <toserviceparameter-name>Default</toserviceparameter-name>
-   <coord-list>
-<coord>
-<x>1008</x>
-     <y>281</y>    </coord>
-    <coord>
-<x>1008</x>
-     <y>560</y>    </coord>
-    <coord>
-<x>565</x>
-     <y>559</y>    </coord>
-    <coord>
-<x>564</x>
-     <y>385</y>    </coord>   </coord-list>  </link>
-  <link>
+    <fromserviceparameter-name>Default</fromserviceparameter-name>
+    <tonode-name>EndL_OneEven</tonode-name>
+    <toserviceparameter-name>Default</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>control_m3p1</fromnode-name>
-   <fromserviceparameter-name>OutGate</fromserviceparameter-name>
-   <tonode-name>label_test</tonode-name>
-   <toserviceparameter-name>InGate</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>Gate</fromserviceparameter-name>
+    <tonode-name>label_test</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>368</x>
-     <y>327</y>    </coord>
-    <coord>
 <x>369</x>
-     <y>7</y>    </coord>
-    <coord>
-<x>1009</x>
-     <y>8</y>    </coord>
-    <coord>
-<x>1009</x>
-     <y>179</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>343</y>     </coord>
+     <coord>
+<x>368</x>
+      <y>22</y>     </coord>
+     <coord>
+<x>1003</x>
+      <y>24</y>     </coord>
+     <coord>
+<x>1005</x>
+      <y>189</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>control_div2</fromnode-name>
-   <fromserviceparameter-name>OutGate</fromserviceparameter-name>
-   <tonode-name>label_begin</tonode-name>
-   <toserviceparameter-name>InGate</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>Gate</fromserviceparameter-name>
+    <tonode-name>label_begin</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>3</x>
-     <y>327</y>    </coord>
-    <coord>
 <x>2</x>
-     <y>582</y>    </coord>
-    <coord>
-<x>991</x>
-     <y>583</y>    </coord>
-    <coord>
-<x>991</x>
-     <y>451</y>    </coord>   </coord-list>  </link> </link-list>
- <data-list>
+      <y>582</y>     </coord>
+     <coord>
+<x>1012</x>
+      <y>583</y>     </coord>
+     <coord>
+<x>1012</x>
+      <y>507</y>     </coord>    </coord-list>   </link>  </link-list>
 <data-list>
 <data>
 <fromnode-name>GraphSyrControlGUI</fromnode-name>
-   <fromserviceparameter-name>label_begin\NB</fromserviceparameter-name>
-   <tonode-name>label_begin</tonode-name>
-   <toserviceparameter-name>NB</toserviceparameter-name>
-   <data-value>
+    <fromserviceparameter-name>label_begin__NB</fromserviceparameter-name>
+    <tonode-name>label_begin</tonode-name>
+    <toserviceparameter-name>NB</toserviceparameter-name>
+    <data-value>
 <value-type>3</value-type>
-    <value>7</value>   </data-value>
-   <coord-list/>  </data>
-  <data>
+     <value>7</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
 <fromnode-name>GraphSyrControlGUI</fromnode-name>
-   <fromserviceparameter-name>label_begin\KB</fromserviceparameter-name>
-   <tonode-name>label_begin</tonode-name>
-   <toserviceparameter-name>KB</toserviceparameter-name>
-   <data-value>
+    <fromserviceparameter-name>label_begin__KB</fromserviceparameter-name>
+    <tonode-name>label_begin</tonode-name>
+    <toserviceparameter-name>KB</toserviceparameter-name>
+    <data-value>
 <value-type>3</value-type>
-    <value>0</value>   </data-value>
-   <coord-list/>  </data> </data-list></dataflow>
+     <value>0</value>    </data-value>
+    <coord-list/>   </data>  </data-list> </dataflow></supergraph>
index b039fbf4d953b14bc61a1f86cdf1bae498e66ede..2a4c5eee8396562bba122e2a580dd81b873a055f 100644 (file)
 # Generated python file of Graph GraphSyrControlAve
 
 from SuperV import *
-# Graph creation 
-GraphSyrControlAve = Graph( 'GraphSyrControlAve' )
-GraphSyrControlAve.SetName( 'GraphSyrControlAve' )
-GraphSyrControlAve.SetAuthor( 'JR' )
-GraphSyrControlAve.SetComment( 'Syracuse algorithm' )
-GraphSyrControlAve.Coords( 0 , 0 )
 
-# Creation of Factory Nodes
-
-test_ISEVEN = GraphSyrControlAve.FNode( 'SyrComponent' , 'SyrComponent' , 'C_ISEVEN' )
-test_ISEVEN.SetName( 'test_ISEVEN' )
-test_ISEVEN.SetAuthor( '' )
-test_ISEVEN.SetContainer( 'localhost/FactoryServer' )
-test_ISEVEN.SetComment( 'C_ISEVEN from SyrComponent' )
-test_ISEVEN.Coords( 370 , 455 )
-
-test_ISONE = GraphSyrControlAve.FNode( 'SyrComponent' , 'SyrComponent' , 'C_ISONE' )
-test_ISONE.SetName( 'test_ISONE' )
-test_ISONE.SetAuthor( '' )
-test_ISONE.SetContainer( 'localhost/FactoryServer' )
-test_ISONE.SetComment( 'C_ISONE from SyrComponent' )
-test_ISONE.Coords( 370 , 127 )
-
-m3p1 = GraphSyrControlAve.FNode( 'SyrComponent' , 'SyrComponent' , 'C_M3P1' )
-m3p1.SetName( 'm3p1' )
-m3p1.SetAuthor( '' )
-m3p1.SetContainer( 'localhost/FactoryServer' )
-m3p1.SetComment( 'C_M3P1 from SyrComponent' )
-m3p1.Coords( 789 , 0 )
-
-div2 = GraphSyrControlAve.FNode( 'SyrComponent' , 'SyrComponent' , 'C_DIV2' )
-div2.SetName( 'div2' )
-div2.SetAuthor( '' )
-div2.SetContainer( 'localhost/FactoryServer' )
-div2.SetComment( 'C_DIV2 from SyrComponent' )
-div2.Coords( 789 , 276 )
-
-incr = GraphSyrControlAve.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' )
-incr.SetName( 'incr' )
-incr.SetAuthor( '' )
-incr.SetContainer( 'localhost/FactoryServer' )
-incr.SetComment( 'C_INCR from SyrComponent' )
-incr.Coords( 790 , 136 )
-
-C_MIN = GraphSyrControlAve.FNode( 'SyrComponent' , 'SyrComponent' , 'C_MIN' )
-C_MIN.SetName( 'C_MIN' )
-C_MIN.SetAuthor( '' )
-C_MIN.SetContainer( 'localhost/FactoryServer' )
-C_MIN.SetComment( 'C_MIN from SyrComponent' )
-C_MIN.Coords( 798 , 833 )
-
-C_MAX = GraphSyrControlAve.FNode( 'SyrComponent' , 'SyrComponent' , 'C_MAX' )
-C_MAX.SetName( 'C_MAX' )
-C_MAX.SetAuthor( '' )
-C_MAX.SetContainer( 'localhost/FactoryServer' )
-C_MAX.SetComment( 'C_MAX from SyrComponent' )
-C_MAX.Coords( 798 , 668 )
-
-C_AVERAGE = GraphSyrControlAve.FNode( 'SyrComponent' , 'SyrComponent' , 'C_AVERAGE' )
-C_AVERAGE.SetName( 'C_AVERAGE' )
-C_AVERAGE.SetAuthor( '' )
-C_AVERAGE.SetContainer( 'localhost/FactoryServer' )
-C_AVERAGE.SetComment( 'C_AVERAGE from SyrComponent' )
-C_AVERAGE.Coords( 784 , 476 )
-
-C_LISTOFSYR = GraphSyrControlAve.FNode( 'SyrComponent' , 'SyrComponent' , 'C_LISTOFSYR' )
-C_LISTOFSYR.SetName( 'C_LISTOFSYR' )
-C_LISTOFSYR.SetAuthor( '' )
-C_LISTOFSYR.SetContainer( 'localhost/FactoryServer' )
-C_LISTOFSYR.SetComment( 'C_LISTOFSYR from SyrComponent' )
-C_LISTOFSYR.Coords( 4 , 363 )
-
-# Creation of InLine Nodes
-Pylabel_begin = []
-Pylabel_begin.append( 'def label_begin( NB , KB , MINB , MAXB , AVERAGEB , SYRLISTB ) :' )
-Pylabel_begin.append( '    return NB,KB,MINB,MAXB,AVERAGEB,SYRLISTB' )
-label_begin = GraphSyrControlAve.INode( 'label_begin' , Pylabel_begin )
-label_begin.SetName( 'label_begin' )
-label_begin.SetAuthor( '' )
-label_begin.SetComment( 'Python function' )
-label_begin.Coords( 183 , 219 )
-label_begin.InPort( 'NB' , 'long' )
-label_begin.InPort( 'KB' , 'long' )
-label_begin.InPort( 'MINB' , 'long' )
-label_begin.InPort( 'MAXB' , 'long' )
-label_begin.InPort( 'AVERAGEB' , 'double' )
-label_begin.InPort( 'SYRLISTB' , 'ListOfSyr' )
-label_begin.OutPort( 'NT' , 'long' )
-label_begin.OutPort( 'KT' , 'long' )
-label_begin.OutPort( 'MIN' , 'long' )
-label_begin.OutPort( 'MAX' , 'long' )
-label_begin.OutPort( 'AVERAGE' , 'double' )
-label_begin.OutPort( 'SYRLIST' , 'ListOfSyr' )
-
-# Creation of Switch Nodes
-Pylabel_test = []
-Pylabel_test.append( 'def L_OneEven( ValOne , ValEven , NT , KT , MIN , MAX , AVERAGE , SYRLIST ):' )
-Pylabel_test.append( '    Finished = ValOne' )
-Pylabel_test.append( '    if Finished == 0 :' )
-Pylabel_test.append( '        Incr = 1' )
-Pylabel_test.append( '        Even = ValEven' )
-Pylabel_test.append( '        if Even == 0 :' )
-Pylabel_test.append( '            Odd = 1' )
-Pylabel_test.append( '        else :' )
-Pylabel_test.append( '            Odd = 0' )
-Pylabel_test.append( '    else :' )
-Pylabel_test.append( '        Incr = 0' )
-Pylabel_test.append( '        Even = 0' )
-Pylabel_test.append( '        Odd = 0' )
-Pylabel_test.append( '    Even = ValEven' )
-Pylabel_test.append( '    return Finished,Incr,Even,Odd,NT,KT,MIN,MAX,AVERAGE,SYRLIST' )
-label_test,EndL_OneEven = GraphSyrControlAve.SNode( 'L_OneEven' , Pylabel_test )
-EndL_OneEven.SetName( 'EndL_OneEven' )
-EndL_OneEven.SetAuthor( '' )
-EndL_OneEven.SetComment( '' )
-EndL_OneEven.Coords( 1064 , 379 )
-PyEndL_OneEven = []
-EndL_OneEven.SetPyFunction( 'EndL_OneEven' , PyEndL_OneEven )
-EndL_OneEven.InPort( 'MIN' , 'long' )
-EndL_OneEven.InPort( 'MAX' , 'long' )
-EndL_OneEven.InPort( 'AVERAGE' , 'double' )
-EndL_OneEven.OutPort( 'MIN' , 'long' )
-EndL_OneEven.OutPort( 'MAX' , 'long' )
-EndL_OneEven.OutPort( 'AVERAGE' , 'double' )
-label_test.SetName( 'label_test' )
-label_test.SetAuthor( '' )
-label_test.SetComment( '' )
-label_test.Coords( 563 , 206 )
-label_test.InPort( 'ValOne' , 'long' )
-label_test.InPort( 'ValEven' , 'long' )
-label_test.InPort( 'NT' , 'long' )
-label_test.InPort( 'KT' , 'long' )
-label_test.InPort( 'MIN' , 'long' )
-label_test.InPort( 'MAX' , 'long' )
-label_test.InPort( 'AVERAGE' , 'double' )
-label_test.InPort( 'SYRLIST' , 'ListOfSyr' )
-label_test.OutPort( 'Finished' , 'long' )
-label_test.OutPort( 'Incr' , 'long' )
-label_test.OutPort( 'Even' , 'long' )
-label_test.OutPort( 'Odd' , 'long' )
-label_test.OutPort( 'N' , 'long' )
-label_test.OutPort( 'K' , 'long' )
-label_test.OutPort( 'MINT' , 'long' )
-label_test.OutPort( 'MAXT' , 'long' )
-label_test.OutPort( 'AVERAGET' , 'double' )
-label_test.OutPort( 'SYRLISTT' , 'ListOfSyr' )
-
-# Creation of GOTO Nodes
-Pycontrol_m3p1 = []
-Pycontrol_m3p1.append( 'def C_NotOneIsEven( N , K , MINT , MAXT , AVERAGET , SYRLISTT ):' )
-Pycontrol_m3p1.append( '    return 0,1,N,K,MINT,MAXT,AVERAGET,SYRLISTT' )
-control_m3p1 = GraphSyrControlAve.GNode( 'C_NotOneIsEven' , Pycontrol_m3p1 , 'label_test' )
-control_m3p1.SetName( 'control_m3p1' )
-control_m3p1.SetAuthor( '' )
-control_m3p1.SetComment( '' )
-control_m3p1.Coords( 1058 , 8 )
-control_m3p1.InPort( 'N' , 'long' )
-control_m3p1.InPort( 'K' , 'long' )
-control_m3p1.InPort( 'MINT' , 'long' )
-control_m3p1.InPort( 'MAXT' , 'long' )
-control_m3p1.InPort( 'AVERAGET' , 'double' )
-control_m3p1.InPort( 'SYRLISTT' , 'ListOfSyr' )
-control_m3p1.OutPort( 'ValOne' , 'long' )
-control_m3p1.OutPort( 'ValEven' , 'long' )
-control_m3p1.OutPort( 'NT' , 'long' )
-control_m3p1.OutPort( 'KT' , 'long' )
-control_m3p1.OutPort( 'MIN' , 'long' )
-control_m3p1.OutPort( 'MAX' , 'long' )
-control_m3p1.OutPort( 'AVERAGE' , 'double' )
-control_m3p1.OutPort( 'SYRLIST' , 'ListOfSyr' )
-
-Pycontrol_div2 = []
-Pycontrol_div2.append( 'def control_div2( N , K , MINT , MAXT , AVERAGET , SYRLISTT ) :' )
-Pycontrol_div2.append( '    return N,K,MINT,MAXT,AVERAGET,SYRLISTT' )
-control_div2 = GraphSyrControlAve.GNode( 'control_div2' , Pycontrol_div2 , 'label_begin' )
-control_div2.SetName( 'control_div2' )
-control_div2.SetAuthor( '' )
-control_div2.SetComment( '' )
-control_div2.Coords( 1048 , 555 )
-control_div2.InPort( 'N' , 'long' )
-control_div2.InPort( 'K' , 'long' )
-control_div2.InPort( 'MINT' , 'long' )
-control_div2.InPort( 'MAXT' , 'long' )
-control_div2.InPort( 'AVERAGET' , 'double' )
-control_div2.InPort( 'SYRLISTT' , 'ListOfSyr' )
-control_div2.OutPort( 'NB' , 'long' )
-control_div2.OutPort( 'KB' , 'long' )
-control_div2.OutPort( 'MINB' , 'long' )
-control_div2.OutPort( 'MAXB' , 'long' )
-control_div2.OutPort( 'AVERAGEB' , 'double' )
-control_div2.OutPort( 'SYRLISTB' , 'ListOfSyr' )
-
-# Creation of Links
-test_ISEVENBoolEven = test_ISEVEN.Port( 'BoolEven' )
-label_testValEven = GraphSyrControlAve.Link( test_ISEVENBoolEven , label_test.Port( 'ValEven' ) )
-label_testValEven.AddCoord( 1 , 545 , 269 )
-label_testValEven.AddCoord( 2 , 545 , 535 )
-
-test_ISONEBoolOne = test_ISONE.Port( 'BoolOne' )
-label_testValOne = GraphSyrControlAve.Link( test_ISONEBoolOne , label_test.Port( 'ValOne' ) )
-label_testValOne.AddCoord( 1 , 546 , 241 )
-label_testValOne.AddCoord( 2 , 545 , 208 )
-
-m3p1anEvenInteger = m3p1.Port( 'anEvenInteger' )
-control_m3p1N = GraphSyrControlAve.Link( m3p1anEvenInteger , control_m3p1.Port( 'N' ) )
-control_m3p1N.AddCoord( 1 , 977 , 43 )
-control_m3p1N.AddCoord( 2 , 976 , 81 )
-
-div2anInteger = div2.Port( 'anInteger' )
-control_div2N = GraphSyrControlAve.Link( div2anInteger , control_div2.Port( 'N' ) )
-control_div2N.AddCoord( 1 , 1011 , 590 )
-control_div2N.AddCoord( 2 , 1010 , 357 )
-
-incraNewCount = incr.Port( 'aNewCount' )
-control_div2K = GraphSyrControlAve.Link( incraNewCount , control_div2.Port( 'K' ) )
-control_div2K.AddCoord( 1 , 964 , 618 )
-control_div2K.AddCoord( 2 , 966 , 217 )
-
-control_m3p1K = GraphSyrControlAve.Link( incraNewCount , control_m3p1.Port( 'K' ) )
-control_m3p1K.AddCoord( 1 , 966 , 70 )
-control_m3p1K.AddCoord( 2 , 966 , 216 )
-
-C_AVERAGEaCount = GraphSyrControlAve.Link( incraNewCount , C_AVERAGE.Port( 'aCount' ) )
-C_AVERAGEaCount.AddCoord( 1 , 778 , 615 )
-C_AVERAGEaCount.AddCoord( 2 , 779 , 462 )
-C_AVERAGEaCount.AddCoord( 3 , 965 , 462 )
-C_AVERAGEaCount.AddCoord( 4 , 966 , 216 )
-
-C_MINaNewMinVal = C_MIN.Port( 'aNewMinVal' )
-control_m3p1MINT = GraphSyrControlAve.Link( C_MINaNewMinVal , control_m3p1.Port( 'MINT' ) )
-control_m3p1MINT.AddCoord( 1 , 991 , 100 )
-control_m3p1MINT.AddCoord( 2 , 991 , 913 )
-
-control_div2MINT = GraphSyrControlAve.Link( C_MINaNewMinVal , control_div2.Port( 'MINT' ) )
-control_div2MINT.AddCoord( 1 , 990 , 646 )
-control_div2MINT.AddCoord( 2 , 991 , 912 )
-
-C_MAXaNewMaxVal = C_MAX.Port( 'aNewMaxVal' )
-control_m3p1MAXT = GraphSyrControlAve.Link( C_MAXaNewMaxVal , control_m3p1.Port( 'MAXT' ) )
-control_m3p1MAXT.AddCoord( 1 , 974 , 130 )
-control_m3p1MAXT.AddCoord( 2 , 974 , 747 )
-
-control_div2MAXT = GraphSyrControlAve.Link( C_MAXaNewMaxVal , control_div2.Port( 'MAXT' ) )
-control_div2MAXT.AddCoord( 1 , 973 , 676 )
-control_div2MAXT.AddCoord( 2 , 974 , 747 )
-
-C_AVERAGEaNewListOfSyr = C_AVERAGE.Port( 'aNewListOfSyr' )
-control_m3p1SYRLISTT = GraphSyrControlAve.Link( C_AVERAGEaNewListOfSyr , control_m3p1.Port( 'SYRLISTT' ) )
-control_m3p1SYRLISTT.AddCoord( 1 , 1037 , 188 )
-control_m3p1SYRLISTT.AddCoord( 2 , 1038 , 556 )
-
-control_div2SYRLISTT = GraphSyrControlAve.Link( C_AVERAGEaNewListOfSyr , control_div2.Port( 'SYRLISTT' ) )
-control_div2SYRLISTT.AddCoord( 1 , 1038 , 735 )
-control_div2SYRLISTT.AddCoord( 2 , 1038 , 555 )
-
-C_AVERAGEanAverage = C_AVERAGE.Port( 'anAverage' )
-control_m3p1AVERAGET = GraphSyrControlAve.Link( C_AVERAGEanAverage , control_m3p1.Port( 'AVERAGET' ) )
-control_m3p1AVERAGET.AddCoord( 1 , 1027 , 158 )
-control_m3p1AVERAGET.AddCoord( 2 , 1026 , 584 )
-
-control_div2AVERAGET = GraphSyrControlAve.Link( C_AVERAGEanAverage , control_div2.Port( 'AVERAGET' ) )
-control_div2AVERAGET.AddCoord( 1 , 1027 , 706 )
-control_div2AVERAGET.AddCoord( 2 , 1027 , 584 )
-
-C_LISTOFSYRaListOfSyr = C_LISTOFSYR.Port( 'aListOfSyr' )
-label_beginSYRLISTB = GraphSyrControlAve.Link( C_LISTOFSYRaListOfSyr , label_begin.Port( 'SYRLISTB' ) )
-
-label_beginNT = label_begin.Port( 'NT' )
-test_ISONEanInteger = GraphSyrControlAve.Link( label_beginNT , test_ISONE.Port( 'anInteger' ) )
-test_ISONEanInteger.AddCoord( 1 , 362 , 207 )
-test_ISONEanInteger.AddCoord( 2 , 362 , 299 )
-
-label_testNT = GraphSyrControlAve.Link( label_beginNT , label_test.Port( 'NT' ) )
-
-test_ISEVENanInteger = GraphSyrControlAve.Link( label_beginNT , test_ISEVEN.Port( 'anInteger' ) )
-test_ISEVENanInteger.AddCoord( 1 , 361 , 534 )
-test_ISEVENanInteger.AddCoord( 2 , 362 , 299 )
-
-label_beginKT = label_begin.Port( 'KT' )
-label_testKT = GraphSyrControlAve.Link( label_beginKT , label_test.Port( 'KT' ) )
-
-label_beginMIN = label_begin.Port( 'MIN' )
-label_testMIN = GraphSyrControlAve.Link( label_beginMIN , label_test.Port( 'MIN' ) )
-
-label_beginMAX = label_begin.Port( 'MAX' )
-label_testMAX = GraphSyrControlAve.Link( label_beginMAX , label_test.Port( 'MAX' ) )
-
-label_beginAVERAGE = label_begin.Port( 'AVERAGE' )
-label_testAVERAGE = GraphSyrControlAve.Link( label_beginAVERAGE , label_test.Port( 'AVERAGE' ) )
-
-label_beginSYRLIST = label_begin.Port( 'SYRLIST' )
-label_testSYRLIST = GraphSyrControlAve.Link( label_beginSYRLIST , label_test.Port( 'SYRLIST' ) )
-
-label_testFinished = label_test.Port( 'Finished' )
-EndL_OneEvenDefault = GraphSyrControlAve.Link( label_testFinished , EndL_OneEven.Port( 'Default' ) )
-
-label_testIncr = label_test.Port( 'Incr' )
-incrInGate = GraphSyrControlAve.Link( label_testIncr , incr.Port( 'InGate' ) )
-incrInGate.AddCoord( 1 , 779 , 250 )
-incrInGate.AddCoord( 2 , 780 , 269 )
-
-label_testEven = label_test.Port( 'Even' )
-div2InGate = GraphSyrControlAve.Link( label_testEven , div2.Port( 'InGate' ) )
-div2InGate.AddCoord( 1 , 780 , 387 )
-div2InGate.AddCoord( 2 , 779 , 299 )
-
-label_testOdd = label_test.Port( 'Odd' )
-m3p1InGate = GraphSyrControlAve.Link( label_testOdd , m3p1.Port( 'InGate' ) )
-m3p1InGate.AddCoord( 1 , 756 , 115 )
-m3p1InGate.AddCoord( 2 , 756 , 328 )
-
-label_testN = label_test.Port( 'N' )
-m3p1anOddInteger = GraphSyrControlAve.Link( label_testN , m3p1.Port( 'anOddInteger' ) )
-m3p1anOddInteger.AddCoord( 1 , 740 , 80 )
-m3p1anOddInteger.AddCoord( 2 , 741 , 356 )
-
-div2anEvenInteger = GraphSyrControlAve.Link( label_testN , div2.Port( 'anEvenInteger' ) )
-
-C_MINanInteger = GraphSyrControlAve.Link( label_testN , C_MIN.Port( 'anInteger' ) )
-C_MINanInteger.AddCoord( 1 , 741 , 943 )
-C_MINanInteger.AddCoord( 2 , 740 , 357 )
-
-C_MAXanInteger = GraphSyrControlAve.Link( label_testN , C_MAX.Port( 'anInteger' ) )
-C_MAXanInteger.AddCoord( 1 , 742 , 778 )
-C_MAXanInteger.AddCoord( 2 , 741 , 359 )
-
-C_AVERAGEanInteger = GraphSyrControlAve.Link( label_testN , C_AVERAGE.Port( 'anInteger' ) )
-C_AVERAGEanInteger.AddCoord( 1 , 742 , 584 )
-C_AVERAGEanInteger.AddCoord( 2 , 741 , 357 )
-
-label_testK = label_test.Port( 'K' )
-incraCount = GraphSyrControlAve.Link( label_testK , incr.Port( 'aCount' ) )
-incraCount.AddCoord( 1 , 765 , 217 )
-incraCount.AddCoord( 2 , 764 , 385 )
-
-label_testMINT = label_test.Port( 'MINT' )
-C_MINaMinVal = GraphSyrControlAve.Link( label_testMINT , C_MIN.Port( 'aMinVal' ) )
-C_MINaMinVal.AddCoord( 1 , 759 , 914 )
-C_MINaMinVal.AddCoord( 2 , 758 , 414 )
-
-EndL_OneEvenMIN = GraphSyrControlAve.Link( label_testMINT , EndL_OneEven.Port( 'MIN' ) )
-
-label_testMAXT = label_test.Port( 'MAXT' )
-C_MAXaMaxVal = GraphSyrControlAve.Link( label_testMAXT , C_MAX.Port( 'aMaxVal' ) )
-C_MAXaMaxVal.AddCoord( 1 , 729 , 749 )
-C_MAXaMaxVal.AddCoord( 2 , 728 , 444 )
-
-EndL_OneEvenMAX = GraphSyrControlAve.Link( label_testMAXT , EndL_OneEven.Port( 'MAX' ) )
-
-label_testAVERAGET = label_test.Port( 'AVERAGET' )
-EndL_OneEvenAVERAGE = GraphSyrControlAve.Link( label_testAVERAGET , EndL_OneEven.Port( 'AVERAGE' ) )
-
-label_testSYRLISTT = label_test.Port( 'SYRLISTT' )
-C_AVERAGEaListOfSyr = GraphSyrControlAve.Link( label_testSYRLISTT , C_AVERAGE.Port( 'aListOfSyr' ) )
-C_AVERAGEaListOfSyr.AddCoord( 1 , 771 , 557 )
-C_AVERAGEaListOfSyr.AddCoord( 2 , 770 , 502 )
-
-control_m3p1OutGate = control_m3p1.Port( 'OutGate' )
-label_testInGate = GraphSyrControlAve.Link( control_m3p1OutGate , label_test.Port( 'InGate' ) )
-label_testInGate.AddCoord( 1 , 553 , 536 )
-label_testInGate.AddCoord( 2 , 554 , 1025 )
-label_testInGate.AddCoord( 3 , 1242 , 1026 )
-label_testInGate.AddCoord( 4 , 1243 , 279 )
-
-control_div2OutGate = control_div2.Port( 'OutGate' )
-label_beginInGate = GraphSyrControlAve.Link( control_div2OutGate , label_begin.Port( 'InGate' ) )
-label_beginInGate.AddCoord( 1 , 176 , 476 )
-label_beginInGate.AddCoord( 2 , 176 , 997 )
-label_beginInGate.AddCoord( 3 , 1217 , 996 )
-label_beginInGate.AddCoord( 4 , 1218 , 768 )
-
-# Creation of Input datas
-label_beginNB = label_begin.Input( 'NB' , 31)
-label_beginKB = label_begin.Input( 'KB' , 0)
-label_beginMINB = label_begin.Input( 'MINB' , 0)
-label_beginMAXB = label_begin.Input( 'MAXB' , 0)
-label_beginAVERAGEB = label_begin.Input( 'AVERAGEB' , 0)
-
-# Creation of Output variables
-EndL_OneEvenMIN = EndL_OneEven.Port( 'MIN' )
-EndL_OneEvenMAX = EndL_OneEven.Port( 'MAX' )
-EndL_OneEvenAVERAGE = EndL_OneEven.Port( 'AVERAGE' )
-
-GraphSyrControlAve.Run()
-GraphSyrControlAve.DoneW()
-print GraphSyrControlAve.State()
-GraphSyrControlAve.PrintPorts()
+# Graph creation of GraphSyrControlAve
+def DefGraphSyrControlAve() :
+    GraphSyrControlAve = Graph( 'GraphSyrControlAve' )
+    GraphSyrControlAve.SetName( 'GraphSyrControlAve' )
+    GraphSyrControlAve.SetAuthor( 'JR' )
+    GraphSyrControlAve.SetComment( 'Syracuse algorithm' )
+    GraphSyrControlAve.Coords( 0 , 0 )
+    
+    # Creation of Factory Nodes
+    
+    test_ISEVEN = GraphSyrControlAve.FNode( 'SyrComponent' , 'SyrComponent' , 'C_ISEVEN' )
+    test_ISEVEN.SetName( 'test_ISEVEN' )
+    test_ISEVEN.SetAuthor( '' )
+    test_ISEVEN.SetContainer( 'localhost/FactoryServer' )
+    test_ISEVEN.SetComment( 'C_ISEVEN from SyrComponent' )
+    test_ISEVEN.Coords( 370 , 455 )
+    Itest_ISEVENanInteger = test_ISEVEN.GetInPort( 'anInteger' )
+    Itest_ISEVENGate = test_ISEVEN.GetInPort( 'Gate' )
+    Otest_ISEVENBoolEven = test_ISEVEN.GetOutPort( 'BoolEven' )
+    Otest_ISEVENGate = test_ISEVEN.GetOutPort( 'Gate' )
+    
+    test_ISONE = GraphSyrControlAve.FNode( 'SyrComponent' , 'SyrComponent' , 'C_ISONE' )
+    test_ISONE.SetName( 'test_ISONE' )
+    test_ISONE.SetAuthor( '' )
+    test_ISONE.SetContainer( 'localhost/FactoryServer' )
+    test_ISONE.SetComment( 'C_ISONE from SyrComponent' )
+    test_ISONE.Coords( 370 , 127 )
+    Itest_ISONEanInteger = test_ISONE.GetInPort( 'anInteger' )
+    Itest_ISONEGate = test_ISONE.GetInPort( 'Gate' )
+    Otest_ISONEBoolOne = test_ISONE.GetOutPort( 'BoolOne' )
+    Otest_ISONEGate = test_ISONE.GetOutPort( 'Gate' )
+    
+    m3p1 = GraphSyrControlAve.FNode( 'SyrComponent' , 'SyrComponent' , 'C_M3P1' )
+    m3p1.SetName( 'm3p1' )
+    m3p1.SetAuthor( '' )
+    m3p1.SetContainer( 'localhost/FactoryServer' )
+    m3p1.SetComment( 'C_M3P1 from SyrComponent' )
+    m3p1.Coords( 789 , 0 )
+    Im3p1anOddInteger = m3p1.GetInPort( 'anOddInteger' )
+    Im3p1Gate = m3p1.GetInPort( 'Gate' )
+    Om3p1anEvenInteger = m3p1.GetOutPort( 'anEvenInteger' )
+    Om3p1Gate = m3p1.GetOutPort( 'Gate' )
+    
+    div2 = GraphSyrControlAve.FNode( 'SyrComponent' , 'SyrComponent' , 'C_DIV2' )
+    div2.SetName( 'div2' )
+    div2.SetAuthor( '' )
+    div2.SetContainer( 'localhost/FactoryServer' )
+    div2.SetComment( 'C_DIV2 from SyrComponent' )
+    div2.Coords( 789 , 255 )
+    Idiv2anEvenInteger = div2.GetInPort( 'anEvenInteger' )
+    Idiv2Gate = div2.GetInPort( 'Gate' )
+    Odiv2anInteger = div2.GetOutPort( 'anInteger' )
+    Odiv2Gate = div2.GetOutPort( 'Gate' )
+    
+    incr = GraphSyrControlAve.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' )
+    incr.SetName( 'incr' )
+    incr.SetAuthor( '' )
+    incr.SetContainer( 'localhost/FactoryServer' )
+    incr.SetComment( 'C_INCR from SyrComponent' )
+    incr.Coords( 790 , 136 )
+    IincraCount = incr.GetInPort( 'aCount' )
+    IincrGate = incr.GetInPort( 'Gate' )
+    OincraNewCount = incr.GetOutPort( 'aNewCount' )
+    OincrGate = incr.GetOutPort( 'Gate' )
+    
+    C_MIN = GraphSyrControlAve.FNode( 'SyrComponent' , 'SyrComponent' , 'C_MIN' )
+    C_MIN.SetName( 'C_MIN' )
+    C_MIN.SetAuthor( '' )
+    C_MIN.SetContainer( 'localhost/FactoryServer' )
+    C_MIN.SetComment( 'C_MIN from SyrComponent' )
+    C_MIN.Coords( 798 , 833 )
+    IC_MINaMinVal = C_MIN.GetInPort( 'aMinVal' )
+    IC_MINanInteger = C_MIN.GetInPort( 'anInteger' )
+    IC_MINGate = C_MIN.GetInPort( 'Gate' )
+    OC_MINaNewMinVal = C_MIN.GetOutPort( 'aNewMinVal' )
+    OC_MINGate = C_MIN.GetOutPort( 'Gate' )
+    
+    C_MAX = GraphSyrControlAve.FNode( 'SyrComponent' , 'SyrComponent' , 'C_MAX' )
+    C_MAX.SetName( 'C_MAX' )
+    C_MAX.SetAuthor( '' )
+    C_MAX.SetContainer( 'localhost/FactoryServer' )
+    C_MAX.SetComment( 'C_MAX from SyrComponent' )
+    C_MAX.Coords( 798 , 668 )
+    IC_MAXaMaxVal = C_MAX.GetInPort( 'aMaxVal' )
+    IC_MAXanInteger = C_MAX.GetInPort( 'anInteger' )
+    IC_MAXGate = C_MAX.GetInPort( 'Gate' )
+    OC_MAXaNewMaxVal = C_MAX.GetOutPort( 'aNewMaxVal' )
+    OC_MAXGate = C_MAX.GetOutPort( 'Gate' )
+    
+    C_AVERAGE = GraphSyrControlAve.FNode( 'SyrComponent' , 'SyrComponent' , 'C_AVERAGE' )
+    C_AVERAGE.SetName( 'C_AVERAGE' )
+    C_AVERAGE.SetAuthor( '' )
+    C_AVERAGE.SetContainer( 'localhost/FactoryServer' )
+    C_AVERAGE.SetComment( 'C_AVERAGE from SyrComponent' )
+    C_AVERAGE.Coords( 784 , 476 )
+    IC_AVERAGEaListOfSyr = C_AVERAGE.GetInPort( 'aListOfSyr' )
+    IC_AVERAGEanInteger = C_AVERAGE.GetInPort( 'anInteger' )
+    IC_AVERAGEaCount = C_AVERAGE.GetInPort( 'aCount' )
+    IC_AVERAGEGate = C_AVERAGE.GetInPort( 'Gate' )
+    OC_AVERAGEaNewListOfSyr = C_AVERAGE.GetOutPort( 'aNewListOfSyr' )
+    OC_AVERAGEanAverage = C_AVERAGE.GetOutPort( 'anAverage' )
+    OC_AVERAGEGate = C_AVERAGE.GetOutPort( 'Gate' )
+    
+    C_LISTOFSYR = GraphSyrControlAve.FNode( 'SyrComponent' , 'SyrComponent' , 'C_LISTOFSYR' )
+    C_LISTOFSYR.SetName( 'C_LISTOFSYR' )
+    C_LISTOFSYR.SetAuthor( '' )
+    C_LISTOFSYR.SetContainer( 'localhost/FactoryServer' )
+    C_LISTOFSYR.SetComment( 'C_LISTOFSYR from SyrComponent' )
+    C_LISTOFSYR.Coords( 5 , 321 )
+    IC_LISTOFSYRGate = C_LISTOFSYR.GetInPort( 'Gate' )
+    OC_LISTOFSYRaListOfSyr = C_LISTOFSYR.GetOutPort( 'aListOfSyr' )
+    OC_LISTOFSYRGate = C_LISTOFSYR.GetOutPort( 'Gate' )
+    
+    # Creation of InLine Nodes
+    Pylabel_begin = []
+    Pylabel_begin.append( 'def label_begin( NB , KB , MINB , MAXB , AVERAGEB , SYRLISTB ) :' )
+    Pylabel_begin.append( '    return NB,KB,MINB,MAXB,AVERAGEB,SYRLISTB' )
+    label_begin = GraphSyrControlAve.INode( 'label_begin' , Pylabel_begin )
+    label_begin.SetName( 'label_begin' )
+    label_begin.SetAuthor( '' )
+    label_begin.SetComment( 'Python function' )
+    label_begin.Coords( 183 , 220 )
+    Ilabel_beginNB = label_begin.InPort( 'NB' , 'long' )
+    Ilabel_beginKB = label_begin.InPort( 'KB' , 'long' )
+    Ilabel_beginMINB = label_begin.InPort( 'MINB' , 'long' )
+    Ilabel_beginMAXB = label_begin.InPort( 'MAXB' , 'long' )
+    Ilabel_beginAVERAGEB = label_begin.InPort( 'AVERAGEB' , 'double' )
+    Ilabel_beginSYRLISTB = label_begin.InPort( 'SYRLISTB' , 'ListOfSyr' )
+    Ilabel_beginGate = label_begin.GetInPort( 'Gate' )
+    Olabel_beginNT = label_begin.OutPort( 'NT' , 'long' )
+    Olabel_beginKT = label_begin.OutPort( 'KT' , 'long' )
+    Olabel_beginMIN = label_begin.OutPort( 'MIN' , 'long' )
+    Olabel_beginMAX = label_begin.OutPort( 'MAX' , 'long' )
+    Olabel_beginAVERAGE = label_begin.OutPort( 'AVERAGE' , 'double' )
+    Olabel_beginSYRLIST = label_begin.OutPort( 'SYRLIST' , 'ListOfSyr' )
+    Olabel_beginGate = label_begin.GetOutPort( 'Gate' )
+    
+    # Creation of Switch Nodes
+    Pylabel_test = []
+    Pylabel_test.append( 'def L_OneEven( ValOne , ValEven , NT , KT , MIN , MAX , AVERAGE , SYRLIST ):' )
+    Pylabel_test.append( '    Finished = ValOne' )
+    Pylabel_test.append( '    if Finished == 0 :' )
+    Pylabel_test.append( '        Incr = 1' )
+    Pylabel_test.append( '        Even = ValEven' )
+    Pylabel_test.append( '        if Even == 0 :' )
+    Pylabel_test.append( '            Odd = 1' )
+    Pylabel_test.append( '        else :' )
+    Pylabel_test.append( '            Odd = 0' )
+    Pylabel_test.append( '    else :' )
+    Pylabel_test.append( '        Incr = 0' )
+    Pylabel_test.append( '        Even = 0' )
+    Pylabel_test.append( '        Odd = 0' )
+    Pylabel_test.append( '    Even = ValEven' )
+    Pylabel_test.append( '    return Finished,Incr,Even,Odd,NT,KT,MIN,MAX,AVERAGE,SYRLIST' )
+    label_test,EndL_OneEven = GraphSyrControlAve.SNode( 'L_OneEven' , Pylabel_test )
+    EndL_OneEven.SetName( 'EndL_OneEven' )
+    EndL_OneEven.SetAuthor( '' )
+    EndL_OneEven.SetComment( 'Compute Node' )
+    EndL_OneEven.Coords( 1064 , 339 )
+    PyEndL_OneEven = []
+    EndL_OneEven.SetPyFunction( '' , PyEndL_OneEven )
+    IEndL_OneEvenMINT = EndL_OneEven.InPort( 'MINT' , 'long' )
+    IEndL_OneEvenMAXT = EndL_OneEven.InPort( 'MAXT' , 'long' )
+    IEndL_OneEvenAVERAGET = EndL_OneEven.InPort( 'AVERAGET' , 'double' )
+    IEndL_OneEvenDefault = EndL_OneEven.GetInPort( 'Default' )
+    OEndL_OneEvenMIN = EndL_OneEven.OutPort( 'MIN' , 'long' )
+    OEndL_OneEvenMAX = EndL_OneEven.OutPort( 'MAX' , 'long' )
+    OEndL_OneEvenAVERAGE = EndL_OneEven.OutPort( 'AVERAGE' , 'double' )
+    OEndL_OneEvenGate = EndL_OneEven.GetOutPort( 'Gate' )
+    label_test.SetName( 'label_test' )
+    label_test.SetAuthor( '' )
+    label_test.SetComment( 'Compute Node' )
+    label_test.Coords( 564 , 219 )
+    Ilabel_testValOne = label_test.InPort( 'ValOne' , 'long' )
+    Ilabel_testValEven = label_test.InPort( 'ValEven' , 'long' )
+    Ilabel_testNT = label_test.InPort( 'NT' , 'long' )
+    Ilabel_testKT = label_test.InPort( 'KT' , 'long' )
+    Ilabel_testMIN = label_test.InPort( 'MIN' , 'long' )
+    Ilabel_testMAX = label_test.InPort( 'MAX' , 'long' )
+    Ilabel_testAVERAGE = label_test.InPort( 'AVERAGE' , 'double' )
+    Ilabel_testSYRLIST = label_test.InPort( 'SYRLIST' , 'ListOfSyr' )
+    Ilabel_testGate = label_test.GetInPort( 'Gate' )
+    Olabel_testFinished = label_test.OutPort( 'Finished' , 'long' )
+    Olabel_testIncr = label_test.OutPort( 'Incr' , 'long' )
+    Olabel_testEven = label_test.OutPort( 'Even' , 'long' )
+    Olabel_testOdd = label_test.OutPort( 'Odd' , 'long' )
+    Olabel_testN = label_test.OutPort( 'N' , 'long' )
+    Olabel_testK = label_test.OutPort( 'K' , 'long' )
+    Olabel_testMINT = label_test.OutPort( 'MINT' , 'long' )
+    Olabel_testMAXT = label_test.OutPort( 'MAXT' , 'long' )
+    Olabel_testAVERAGET = label_test.OutPort( 'AVERAGET' , 'double' )
+    Olabel_testSYRLISTT = label_test.OutPort( 'SYRLISTT' , 'ListOfSyr' )
+    Olabel_testDefault = label_test.GetOutPort( 'Default' )
+    
+    # Creation of GOTO Nodes
+    Pycontrol_m3p1 = []
+    Pycontrol_m3p1.append( 'def C_NotOneIsEven( N , K , MINT , MAXT , AVERAGET , SYRLISTT ):' )
+    Pycontrol_m3p1.append( '    return 0,1,N,K,MINT,MAXT,AVERAGET,SYRLISTT' )
+    control_m3p1 = GraphSyrControlAve.GNode( 'C_NotOneIsEven' , Pycontrol_m3p1 , 'label_test' )
+    control_m3p1.SetName( 'control_m3p1' )
+    control_m3p1.SetAuthor( '' )
+    control_m3p1.SetComment( 'Compute Node' )
+    control_m3p1.Coords( 1058 , 8 )
+    Icontrol_m3p1N = control_m3p1.InPort( 'N' , 'long' )
+    Icontrol_m3p1K = control_m3p1.InPort( 'K' , 'long' )
+    Icontrol_m3p1MINT = control_m3p1.InPort( 'MINT' , 'long' )
+    Icontrol_m3p1MAXT = control_m3p1.InPort( 'MAXT' , 'long' )
+    Icontrol_m3p1AVERAGET = control_m3p1.InPort( 'AVERAGET' , 'double' )
+    Icontrol_m3p1SYRLISTT = control_m3p1.InPort( 'SYRLISTT' , 'ListOfSyr' )
+    Icontrol_m3p1Gate = control_m3p1.GetInPort( 'Gate' )
+    Ocontrol_m3p1ValOne = control_m3p1.OutPort( 'ValOne' , 'long' )
+    Ocontrol_m3p1ValEven = control_m3p1.OutPort( 'ValEven' , 'long' )
+    Ocontrol_m3p1NT = control_m3p1.OutPort( 'NT' , 'long' )
+    Ocontrol_m3p1KT = control_m3p1.OutPort( 'KT' , 'long' )
+    Ocontrol_m3p1MIN = control_m3p1.OutPort( 'MIN' , 'long' )
+    Ocontrol_m3p1MAX = control_m3p1.OutPort( 'MAX' , 'long' )
+    Ocontrol_m3p1AVERAGE = control_m3p1.OutPort( 'AVERAGE' , 'double' )
+    Ocontrol_m3p1SYRLIST = control_m3p1.OutPort( 'SYRLIST' , 'ListOfSyr' )
+    Ocontrol_m3p1Gate = control_m3p1.GetOutPort( 'Gate' )
+    
+    Pycontrol_div2 = []
+    Pycontrol_div2.append( 'def control_div2( N , K , MINT , MAXT , AVERAGET , SYRLISTT ) :' )
+    Pycontrol_div2.append( '    return N,K,MINT,MAXT,AVERAGET,SYRLISTT' )
+    control_div2 = GraphSyrControlAve.GNode( 'control_div2' , Pycontrol_div2 , 'label_begin' )
+    control_div2.SetName( 'control_div2' )
+    control_div2.SetAuthor( '' )
+    control_div2.SetComment( 'Compute Node' )
+    control_div2.Coords( 1048 , 555 )
+    Icontrol_div2N = control_div2.InPort( 'N' , 'long' )
+    Icontrol_div2K = control_div2.InPort( 'K' , 'long' )
+    Icontrol_div2MINT = control_div2.InPort( 'MINT' , 'long' )
+    Icontrol_div2MAXT = control_div2.InPort( 'MAXT' , 'long' )
+    Icontrol_div2AVERAGET = control_div2.InPort( 'AVERAGET' , 'double' )
+    Icontrol_div2SYRLISTT = control_div2.InPort( 'SYRLISTT' , 'ListOfSyr' )
+    Icontrol_div2Gate = control_div2.GetInPort( 'Gate' )
+    Ocontrol_div2NB = control_div2.OutPort( 'NB' , 'long' )
+    Ocontrol_div2KB = control_div2.OutPort( 'KB' , 'long' )
+    Ocontrol_div2MINB = control_div2.OutPort( 'MINB' , 'long' )
+    Ocontrol_div2MAXB = control_div2.OutPort( 'MAXB' , 'long' )
+    Ocontrol_div2AVERAGEB = control_div2.OutPort( 'AVERAGEB' , 'double' )
+    Ocontrol_div2SYRLISTB = control_div2.OutPort( 'SYRLISTB' , 'ListOfSyr' )
+    Ocontrol_div2Gate = control_div2.GetOutPort( 'Gate' )
+    
+    # Creation of Links
+    Ltest_ISEVENBoolEvenlabel_testValEven = GraphSyrControlAve.Link( Otest_ISEVENBoolEven , Ilabel_testValEven )
+    Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 1 , 544 , 256 )
+    Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 2 , 544 , 524 )
+    
+    Ltest_ISONEBoolOnelabel_testValOne = GraphSyrControlAve.Link( Otest_ISONEBoolOne , Ilabel_testValOne )
+    Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 1 , 546 , 237 )
+    Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 2 , 546 , 198 )
+    
+    Lm3p1anEvenIntegercontrol_m3p1N = GraphSyrControlAve.Link( Om3p1anEvenInteger , Icontrol_m3p1N )
+    Lm3p1anEvenIntegercontrol_m3p1N.AddCoord( 1 , 975 , 38 )
+    Lm3p1anEvenIntegercontrol_m3p1N.AddCoord( 2 , 976 , 81 )
+    
+    Ldiv2anIntegercontrol_div2N = GraphSyrControlAve.Link( Odiv2anInteger , Icontrol_div2N )
+    Ldiv2anIntegercontrol_div2N.AddCoord( 1 , 1012 , 585 )
+    Ldiv2anIntegercontrol_div2N.AddCoord( 2 , 1011 , 346 )
+    
+    LincraNewCountcontrol_div2K = GraphSyrControlAve.Link( OincraNewCount , Icontrol_div2K )
+    LincraNewCountcontrol_div2K.AddCoord( 1 , 966 , 606 )
+    LincraNewCountcontrol_div2K.AddCoord( 2 , 968 , 207 )
+    
+    LincraNewCountcontrol_m3p1K = GraphSyrControlAve.Link( OincraNewCount , Icontrol_m3p1K )
+    LincraNewCountcontrol_m3p1K.AddCoord( 1 , 965 , 59 )
+    LincraNewCountcontrol_m3p1K.AddCoord( 2 , 966 , 208 )
+    
+    LincraNewCountC_AVERAGEaCount = GraphSyrControlAve.Link( OincraNewCount , IC_AVERAGEaCount )
+    LincraNewCountC_AVERAGEaCount.AddCoord( 1 , 751 , 588 )
+    LincraNewCountC_AVERAGEaCount.AddCoord( 2 , 751 , 460 )
+    LincraNewCountC_AVERAGEaCount.AddCoord( 3 , 965 , 462 )
+    LincraNewCountC_AVERAGEaCount.AddCoord( 4 , 968 , 205 )
+    
+    LC_MINaNewMinValcontrol_m3p1MINT = GraphSyrControlAve.Link( OC_MINaNewMinVal , Icontrol_m3p1MINT )
+    LC_MINaNewMinValcontrol_m3p1MINT.AddCoord( 1 , 991 , 78 )
+    LC_MINaNewMinValcontrol_m3p1MINT.AddCoord( 2 , 991 , 905 )
+    
+    LC_MINaNewMinValcontrol_div2MINT = GraphSyrControlAve.Link( OC_MINaNewMinVal , Icontrol_div2MINT )
+    LC_MINaNewMinValcontrol_div2MINT.AddCoord( 1 , 991 , 626 )
+    LC_MINaNewMinValcontrol_div2MINT.AddCoord( 2 , 991 , 905 )
+    
+    LC_MAXaNewMaxValcontrol_m3p1MAXT = GraphSyrControlAve.Link( OC_MAXaNewMaxVal , Icontrol_m3p1MAXT )
+    LC_MAXaNewMaxValcontrol_m3p1MAXT.AddCoord( 1 , 976 , 98 )
+    LC_MAXaNewMaxValcontrol_m3p1MAXT.AddCoord( 2 , 974 , 738 )
+    
+    LC_MAXaNewMaxValcontrol_div2MAXT = GraphSyrControlAve.Link( OC_MAXaNewMaxVal , Icontrol_div2MAXT )
+    LC_MAXaNewMaxValcontrol_div2MAXT.AddCoord( 1 , 972 , 648 )
+    LC_MAXaNewMaxValcontrol_div2MAXT.AddCoord( 2 , 974 , 738 )
+    
+    LC_AVERAGEaNewListOfSyrcontrol_m3p1SYRLISTT = GraphSyrControlAve.Link( OC_AVERAGEaNewListOfSyr , Icontrol_m3p1SYRLISTT )
+    LC_AVERAGEaNewListOfSyrcontrol_m3p1SYRLISTT.AddCoord( 1 , 1037 , 137 )
+    LC_AVERAGEaNewListOfSyrcontrol_m3p1SYRLISTT.AddCoord( 2 , 1038 , 556 )
+    
+    LC_AVERAGEaNewListOfSyrcontrol_div2SYRLISTT = GraphSyrControlAve.Link( OC_AVERAGEaNewListOfSyr , Icontrol_div2SYRLISTT )
+    LC_AVERAGEaNewListOfSyrcontrol_div2SYRLISTT.AddCoord( 1 , 1038 , 686 )
+    LC_AVERAGEaNewListOfSyrcontrol_div2SYRLISTT.AddCoord( 2 , 1038 , 555 )
+    
+    LC_AVERAGEanAveragecontrol_m3p1AVERAGET = GraphSyrControlAve.Link( OC_AVERAGEanAverage , Icontrol_m3p1AVERAGET )
+    LC_AVERAGEanAveragecontrol_m3p1AVERAGET.AddCoord( 1 , 1026 , 118 )
+    LC_AVERAGEanAveragecontrol_m3p1AVERAGET.AddCoord( 2 , 1027 , 567 )
+    
+    LC_AVERAGEanAveragecontrol_div2AVERAGET = GraphSyrControlAve.Link( OC_AVERAGEanAverage , Icontrol_div2AVERAGET )
+    LC_AVERAGEanAveragecontrol_div2AVERAGET.AddCoord( 1 , 1027 , 668 )
+    LC_AVERAGEanAveragecontrol_div2AVERAGET.AddCoord( 2 , 1026 , 568 )
+    
+    LC_LISTOFSYRaListOfSyrlabel_beginSYRLISTB = GraphSyrControlAve.Link( OC_LISTOFSYRaListOfSyr , Ilabel_beginSYRLISTB )
+    
+    Llabel_beginNTtest_ISONEanInteger = GraphSyrControlAve.Link( Olabel_beginNT , Itest_ISONEanInteger )
+    Llabel_beginNTtest_ISONEanInteger.AddCoord( 1 , 361 , 197 )
+    Llabel_beginNTtest_ISONEanInteger.AddCoord( 2 , 360 , 290 )
+    
+    Llabel_beginNTlabel_testNT = GraphSyrControlAve.Link( Olabel_beginNT , Ilabel_testNT )
+    
+    Llabel_beginNTtest_ISEVENanInteger = GraphSyrControlAve.Link( Olabel_beginNT , Itest_ISEVENanInteger )
+    Llabel_beginNTtest_ISEVENanInteger.AddCoord( 1 , 359 , 525 )
+    Llabel_beginNTtest_ISEVENanInteger.AddCoord( 2 , 361 , 291 )
+    
+    Llabel_beginKTlabel_testKT = GraphSyrControlAve.Link( Olabel_beginKT , Ilabel_testKT )
+    
+    Llabel_beginMINlabel_testMIN = GraphSyrControlAve.Link( Olabel_beginMIN , Ilabel_testMIN )
+    
+    Llabel_beginMAXlabel_testMAX = GraphSyrControlAve.Link( Olabel_beginMAX , Ilabel_testMAX )
+    
+    Llabel_beginAVERAGElabel_testAVERAGE = GraphSyrControlAve.Link( Olabel_beginAVERAGE , Ilabel_testAVERAGE )
+    
+    Llabel_beginSYRLISTlabel_testSYRLIST = GraphSyrControlAve.Link( Olabel_beginSYRLIST , Ilabel_testSYRLIST )
+    
+    Llabel_testEvendiv2Gate = GraphSyrControlAve.Link( Olabel_testEven , Idiv2Gate )
+    Llabel_testEvendiv2Gate.AddCoord( 1 , 777 , 351 )
+    Llabel_testEvendiv2Gate.AddCoord( 2 , 777 , 286 )
+    
+    Llabel_testOddm3p1Gate = GraphSyrControlAve.Link( Olabel_testOdd , Im3p1Gate )
+    Llabel_testOddm3p1Gate.AddCoord( 1 , 757 , 95 )
+    Llabel_testOddm3p1Gate.AddCoord( 2 , 757 , 310 )
+    
+    Llabel_testNm3p1anOddInteger = GraphSyrControlAve.Link( Olabel_testN , Im3p1anOddInteger )
+    Llabel_testNm3p1anOddInteger.AddCoord( 1 , 741 , 72 )
+    Llabel_testNm3p1anOddInteger.AddCoord( 2 , 741 , 331 )
+    
+    Llabel_testNdiv2anEvenInteger = GraphSyrControlAve.Link( Olabel_testN , Idiv2anEvenInteger )
+    
+    Llabel_testNC_MINanInteger = GraphSyrControlAve.Link( Olabel_testN , IC_MINanInteger )
+    Llabel_testNC_MINanInteger.AddCoord( 1 , 744 , 923 )
+    Llabel_testNC_MINanInteger.AddCoord( 2 , 742 , 331 )
+    
+    Llabel_testNC_MAXanInteger = GraphSyrControlAve.Link( Olabel_testN , IC_MAXanInteger )
+    Llabel_testNC_MAXanInteger.AddCoord( 1 , 742 , 759 )
+    Llabel_testNC_MAXanInteger.AddCoord( 2 , 743 , 332 )
+    
+    Llabel_testNC_AVERAGEanInteger = GraphSyrControlAve.Link( Olabel_testN , IC_AVERAGEanInteger )
+    Llabel_testNC_AVERAGEanInteger.AddCoord( 1 , 741 , 568 )
+    Llabel_testNC_AVERAGEanInteger.AddCoord( 2 , 742 , 330 )
+    
+    Llabel_testKincraCount = GraphSyrControlAve.Link( Olabel_testK , IincraCount )
+    Llabel_testKincraCount.AddCoord( 1 , 766 , 207 )
+    Llabel_testKincraCount.AddCoord( 2 , 766 , 343 )
+    
+    Llabel_testMINTC_MINaMinVal = GraphSyrControlAve.Link( Olabel_testMINT , IC_MINaMinVal )
+    Llabel_testMINTC_MINaMinVal.AddCoord( 1 , 760 , 904 )
+    Llabel_testMINTC_MINaMinVal.AddCoord( 2 , 756 , 372 )
+    
+    Llabel_testMINTEndL_OneEvenMINT = GraphSyrControlAve.Link( Olabel_testMINT , IEndL_OneEvenMINT )
+    
+    Llabel_testMAXTC_MAXaMaxVal = GraphSyrControlAve.Link( Olabel_testMAXT , IC_MAXaMaxVal )
+    Llabel_testMAXTC_MAXaMaxVal.AddCoord( 1 , 765 , 742 )
+    Llabel_testMAXTC_MAXaMaxVal.AddCoord( 2 , 766 , 384 )
+    
+    Llabel_testMAXTEndL_OneEvenMAXT = GraphSyrControlAve.Link( Olabel_testMAXT , IEndL_OneEvenMAXT )
+    
+    Llabel_testAVERAGETEndL_OneEvenAVERAGET = GraphSyrControlAve.Link( Olabel_testAVERAGET , IEndL_OneEvenAVERAGET )
+    
+    Llabel_testSYRLISTTC_AVERAGEaListOfSyr = GraphSyrControlAve.Link( Olabel_testSYRLISTT , IC_AVERAGEaListOfSyr )
+    Llabel_testSYRLISTTC_AVERAGEaListOfSyr.AddCoord( 1 , 773 , 546 )
+    Llabel_testSYRLISTTC_AVERAGEaListOfSyr.AddCoord( 2 , 772 , 424 )
+    
+    Llabel_testDefaultEndL_OneEvenDefault = GraphSyrControlAve.Link( Olabel_testDefault , IEndL_OneEvenDefault )
+    
+    Lcontrol_m3p1Gatelabel_testGate = GraphSyrControlAve.Link( Ocontrol_m3p1Gate , Ilabel_testGate )
+    Lcontrol_m3p1Gatelabel_testGate.AddCoord( 1 , 553 , 453 )
+    Lcontrol_m3p1Gatelabel_testGate.AddCoord( 2 , 554 , 1025 )
+    Lcontrol_m3p1Gatelabel_testGate.AddCoord( 3 , 1242 , 1026 )
+    Lcontrol_m3p1Gatelabel_testGate.AddCoord( 4 , 1234 , 204 )
+    
+    Lcontrol_div2Gatelabel_beginGate = GraphSyrControlAve.Link( Ocontrol_div2Gate , Ilabel_beginGate )
+    Lcontrol_div2Gatelabel_beginGate.AddCoord( 1 , 176 , 419 )
+    Lcontrol_div2Gatelabel_beginGate.AddCoord( 2 , 176 , 997 )
+    Lcontrol_div2Gatelabel_beginGate.AddCoord( 3 , 1217 , 996 )
+    Lcontrol_div2Gatelabel_beginGate.AddCoord( 4 , 1223 , 711 )
+    
+    # Input datas
+    Ilabel_beginNB.Input( 31 )
+    Ilabel_beginKB.Input( 0 )
+    Ilabel_beginMINB.Input( 0 )
+    Ilabel_beginMAXB.Input( 0 )
+    Ilabel_beginAVERAGEB.Input( 0 )
+    
+    # Output Ports of the graph
+    #Olabel_testFinished = label_test.GetOutPort( 'Finished' )
+    #Olabel_testIncr = label_test.GetOutPort( 'Incr' )
+    #OEndL_OneEvenMIN = EndL_OneEven.GetOutPort( 'MIN' )
+    #OEndL_OneEvenMAX = EndL_OneEven.GetOutPort( 'MAX' )
+    #OEndL_OneEvenAVERAGE = EndL_OneEven.GetOutPort( 'AVERAGE' )
+    return GraphSyrControlAve
+
+
+GraphSyrControlAve = DefGraphSyrControlAve()
index e94ce9307c31466245a66f814f91845b0157416e..c03ddc2b2f84bbd1d9b077bb2c909fb58e276d8a 100644 (file)
-<!DOCTYPE Dataflow>
+<!DOCTYPE SuperGraph>
+<supergraph>
 <dataflow>
 <info-list>
 <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>GraphSyrControlAve</node-name>
-   <kind>1</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>GraphSyrControlAve</node-name>
+    <kind>1</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>GraphSyrControlAve</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>label_begin\NB</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>label_begin__NB</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>label_begin\KB</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>label_begin__KB</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>label_begin\MINB</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>label_begin__MINB</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>label_begin\MAXB</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>label_begin__MAXB</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>double</inParameter-type>
-      <inParameter-name>label_begin\AVERAGEB</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>label_begin__AVERAGEB</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>EndL_OneEven\MIN</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>label_test__Finished</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>EndL_OneEven\MAX</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>label_test__Incr</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>EndL_OneEven__MIN</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>EndL_OneEven__MAX</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>double</outParameter-type>
-      <outParameter-name>EndL_OneEven\AVERAGE</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list/>
-   <creation-date>2/10/2003 - 11:17:14</creation-date>
-   <lastmodification-date>2/10/2003 - 11:36:18</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>JR</author>
-   <container>?</container>
-   <comment>Syracuse algorithm</comment>
-   <x-position>0</x-position>
-   <y-position>0</y-position>  </node> </info-list>
- <node-list>
+       <outParameter-name>EndL_OneEven__AVERAGE</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>2/10/2003 - 11:17:14</creation-date>
+    <lastmodification-date>15/2/2005 - 11:9:34</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>JR</author>
+    <container>?</container>
+    <comment>Syracuse algorithm</comment>
+    <x-position>0</x-position>
+    <y-position>0</y-position>   </node>  </info-list>
 <node-list>
 <node>
 <component-name>SyrComponent</component-name>
-   <interface-name>SyrComponent</interface-name>
-   <node-name>test_ISEVEN</node-name>
-   <kind>0</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>SyrComponent</interface-name>
+    <node-name>test_ISEVEN</node-name>
+    <kind>0</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>C_ISEVEN</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>anInteger</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>anInteger</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>BoolEven</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list/>
-   <creation-date>2/10/2003 - 11:36:18</creation-date>
-   <lastmodification-date>2/10/2003 - 11:36:18</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>localhost/FactoryServer</container>
-   <comment>C_ISEVEN from SyrComponent</comment>
-   <x-position>370</x-position>
-   <y-position>455</y-position>  </node>
-  <node>
+       <outParameter-name>BoolEven</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>15/2/2005 - 11:9:13</creation-date>
+    <lastmodification-date>15/2/2005 - 11:9:13</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>localhost/FactoryServer</container>
+    <comment>C_ISEVEN from SyrComponent</comment>
+    <x-position>370</x-position>
+    <y-position>455</y-position>   </node>
+   <node>
 <component-name>SyrComponent</component-name>
-   <interface-name>SyrComponent</interface-name>
-   <node-name>test_ISONE</node-name>
-   <kind>0</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>SyrComponent</interface-name>
+    <node-name>test_ISONE</node-name>
+    <kind>0</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>C_ISONE</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>anInteger</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>anInteger</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>BoolOne</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list/>
-   <creation-date>2/10/2003 - 11:36:18</creation-date>
-   <lastmodification-date>2/10/2003 - 11:36:18</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>localhost/FactoryServer</container>
-   <comment>C_ISONE from SyrComponent</comment>
-   <x-position>370</x-position>
-   <y-position>127</y-position>  </node>
-  <node>
+       <outParameter-name>BoolOne</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>15/2/2005 - 11:9:13</creation-date>
+    <lastmodification-date>15/2/2005 - 11:9:13</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>localhost/FactoryServer</container>
+    <comment>C_ISONE from SyrComponent</comment>
+    <x-position>370</x-position>
+    <y-position>127</y-position>   </node>
+   <node>
 <component-name>SyrComponent</component-name>
-   <interface-name>SyrComponent</interface-name>
-   <node-name>m3p1</node-name>
-   <kind>0</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>SyrComponent</interface-name>
+    <node-name>m3p1</node-name>
+    <kind>0</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>C_M3P1</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>anOddInteger</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>anOddInteger</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>anEvenInteger</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list/>
-   <creation-date>2/10/2003 - 11:36:18</creation-date>
-   <lastmodification-date>2/10/2003 - 11:36:18</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>localhost/FactoryServer</container>
-   <comment>C_M3P1 from SyrComponent</comment>
-   <x-position>789</x-position>
-   <y-position>0</y-position>  </node>
-  <node>
+       <outParameter-name>anEvenInteger</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>15/2/2005 - 11:9:13</creation-date>
+    <lastmodification-date>15/2/2005 - 11:9:13</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>localhost/FactoryServer</container>
+    <comment>C_M3P1 from SyrComponent</comment>
+    <x-position>789</x-position>
+    <y-position>0</y-position>   </node>
+   <node>
 <component-name>SyrComponent</component-name>
-   <interface-name>SyrComponent</interface-name>
-   <node-name>div2</node-name>
-   <kind>0</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>SyrComponent</interface-name>
+    <node-name>div2</node-name>
+    <kind>0</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>C_DIV2</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>anEvenInteger</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>anEvenInteger</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>anInteger</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list/>
-   <creation-date>2/10/2003 - 11:36:18</creation-date>
-   <lastmodification-date>2/10/2003 - 11:36:18</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>localhost/FactoryServer</container>
-   <comment>C_DIV2 from SyrComponent</comment>
-   <x-position>789</x-position>
-   <y-position>276</y-position>  </node>
-  <node>
+       <outParameter-name>anInteger</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>15/2/2005 - 11:9:13</creation-date>
+    <lastmodification-date>15/2/2005 - 11:9:13</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>localhost/FactoryServer</container>
+    <comment>C_DIV2 from SyrComponent</comment>
+    <x-position>789</x-position>
+    <y-position>255</y-position>   </node>
+   <node>
 <component-name>SyrComponent</component-name>
-   <interface-name>SyrComponent</interface-name>
-   <node-name>incr</node-name>
-   <kind>0</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>SyrComponent</interface-name>
+    <node-name>incr</node-name>
+    <kind>0</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>C_INCR</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>aCount</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>aCount</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>aNewCount</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list/>
-   <creation-date>2/10/2003 - 11:36:18</creation-date>
-   <lastmodification-date>2/10/2003 - 11:36:18</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>localhost/FactoryServer</container>
-   <comment>C_INCR from SyrComponent</comment>
-   <x-position>790</x-position>
-   <y-position>136</y-position>  </node>
-  <node>
+       <outParameter-name>aNewCount</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>15/2/2005 - 11:9:13</creation-date>
+    <lastmodification-date>15/2/2005 - 11:9:13</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>localhost/FactoryServer</container>
+    <comment>C_INCR from SyrComponent</comment>
+    <x-position>790</x-position>
+    <y-position>136</y-position>   </node>
+   <node>
 <component-name>SyrComponent</component-name>
-   <interface-name>SyrComponent</interface-name>
-   <node-name>C_MIN</node-name>
-   <kind>0</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>SyrComponent</interface-name>
+    <node-name>C_MIN</node-name>
+    <kind>0</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>C_MIN</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>aMinVal</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>aMinVal</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>anInteger</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>anInteger</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>aNewMinVal</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list/>
-   <creation-date>2/10/2003 - 11:36:18</creation-date>
-   <lastmodification-date>2/10/2003 - 11:36:18</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>localhost/FactoryServer</container>
-   <comment>C_MIN from SyrComponent</comment>
-   <x-position>798</x-position>
-   <y-position>833</y-position>  </node>
-  <node>
+       <outParameter-name>aNewMinVal</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>15/2/2005 - 11:9:13</creation-date>
+    <lastmodification-date>15/2/2005 - 11:9:13</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>localhost/FactoryServer</container>
+    <comment>C_MIN from SyrComponent</comment>
+    <x-position>798</x-position>
+    <y-position>833</y-position>   </node>
+   <node>
 <component-name>SyrComponent</component-name>
-   <interface-name>SyrComponent</interface-name>
-   <node-name>C_MAX</node-name>
-   <kind>0</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>SyrComponent</interface-name>
+    <node-name>C_MAX</node-name>
+    <kind>0</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>C_MAX</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>aMaxVal</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>aMaxVal</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>anInteger</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>anInteger</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>aNewMaxVal</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list/>
-   <creation-date>2/10/2003 - 11:36:18</creation-date>
-   <lastmodification-date>2/10/2003 - 11:36:18</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>localhost/FactoryServer</container>
-   <comment>C_MAX from SyrComponent</comment>
-   <x-position>798</x-position>
-   <y-position>668</y-position>  </node>
-  <node>
+       <outParameter-name>aNewMaxVal</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>15/2/2005 - 11:9:13</creation-date>
+    <lastmodification-date>15/2/2005 - 11:9:13</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>localhost/FactoryServer</container>
+    <comment>C_MAX from SyrComponent</comment>
+    <x-position>798</x-position>
+    <y-position>668</y-position>   </node>
+   <node>
 <component-name>SyrComponent</component-name>
-   <interface-name>SyrComponent</interface-name>
-   <node-name>C_AVERAGE</node-name>
-   <kind>0</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>SyrComponent</interface-name>
+    <node-name>C_AVERAGE</node-name>
+    <kind>0</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>C_AVERAGE</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>ListOfSyr</inParameter-type>
-      <inParameter-name>aListOfSyr</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>aListOfSyr</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>anInteger</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>anInteger</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>aCount</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>aCount</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>ListOfSyr</outParameter-type>
-      <outParameter-name>aNewListOfSyr</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>aNewListOfSyr</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>double</outParameter-type>
-      <outParameter-name>anAverage</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list/>
-   <creation-date>2/10/2003 - 11:36:18</creation-date>
-   <lastmodification-date>2/10/2003 - 11:36:18</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>localhost/FactoryServer</container>
-   <comment>C_AVERAGE from SyrComponent</comment>
-   <x-position>784</x-position>
-   <y-position>476</y-position>  </node>
-  <node>
+       <outParameter-name>anAverage</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>15/2/2005 - 11:9:13</creation-date>
+    <lastmodification-date>15/2/2005 - 11:9:13</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>localhost/FactoryServer</container>
+    <comment>C_AVERAGE from SyrComponent</comment>
+    <x-position>784</x-position>
+    <y-position>476</y-position>   </node>
+   <node>
 <component-name>SyrComponent</component-name>
-   <interface-name>SyrComponent</interface-name>
-   <node-name>C_LISTOFSYR</node-name>
-   <kind>0</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>SyrComponent</interface-name>
+    <node-name>C_LISTOFSYR</node-name>
+    <kind>0</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>C_LISTOFSYR</service-name>
-    <inParameter-list/>
-    <outParameter-list>
+     <inParameter-list/>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>ListOfSyr</outParameter-type>
-      <outParameter-name>aListOfSyr</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list/>
-   <creation-date>2/10/2003 - 11:36:18</creation-date>
-   <lastmodification-date>2/10/2003 - 11:36:18</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>localhost/FactoryServer</container>
-   <comment>C_LISTOFSYR from SyrComponent</comment>
-   <x-position>4</x-position>
-   <y-position>363</y-position>  </node>
-  <node>
+       <outParameter-name>aListOfSyr</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>15/2/2005 - 11:9:13</creation-date>
+    <lastmodification-date>15/2/2005 - 11:9:13</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>localhost/FactoryServer</container>
+    <comment>C_LISTOFSYR from SyrComponent</comment>
+    <x-position>5</x-position>
+    <y-position>321</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>label_begin</node-name>
-   <kind>3</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>label_begin</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>label_begin</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>NB</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>NB</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>KB</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>KB</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>MINB</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>MINB</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>MAXB</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>MAXB</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>double</inParameter-type>
-      <inParameter-name>AVERAGEB</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>AVERAGEB</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>ListOfSyr</inParameter-type>
-      <inParameter-name>SYRLISTB</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>SYRLISTB</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>NT</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>NT</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>KT</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>KT</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>MIN</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>MIN</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>MAX</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>MAX</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>double</outParameter-type>
-      <outParameter-name>AVERAGE</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>AVERAGE</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>ListOfSyr</outParameter-type>
-      <outParameter-name>SYRLIST</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
+       <outParameter-name>SYRLIST</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>label_begin</FuncName>
-     <PyFunc><![CDATA[def label_begin( NB , KB , MINB , MAXB , AVERAGEB , SYRLISTB ) :]]></PyFunc>
-     <PyFunc><![CDATA[    return NB,KB,MINB,MAXB,AVERAGEB,SYRLISTB]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>2/10/2003 - 11:36:18</creation-date>
-   <lastmodification-date>2/10/2003 - 11:36:18</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>Python function</comment>
-   <x-position>183</x-position>
-   <y-position>219</y-position>  </node>
-  <node>
+      <PyFunc><![CDATA[def label_begin( NB , KB , MINB , MAXB , AVERAGEB , SYRLISTB ) :]]></PyFunc>
+      <PyFunc><![CDATA[    return NB,KB,MINB,MAXB,AVERAGEB,SYRLISTB]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>15/2/2005 - 11:9:13</creation-date>
+    <lastmodification-date>15/2/2005 - 11:9:13</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Python function</comment>
+    <x-position>183</x-position>
+    <y-position>220</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>label_test</node-name>
-   <kind>6</kind>
-   <coupled-node>EndL_OneEven</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>label_test</node-name>
+    <kind>6</kind>
+    <coupled-node>EndL_OneEven</coupled-node>
+    <service>
 <service-name>label_test</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>ValOne</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>ValOne</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>ValEven</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>ValEven</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>NT</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>NT</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>KT</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>KT</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>MIN</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>MIN</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>MAX</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>MAX</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>double</inParameter-type>
-      <inParameter-name>AVERAGE</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>AVERAGE</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>ListOfSyr</inParameter-type>
-      <inParameter-name>SYRLIST</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>SYRLIST</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Finished</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Finished</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Incr</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Incr</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Even</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Even</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Odd</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>N</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>N</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>K</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>K</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>MINT</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>MINT</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>MAXT</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>MAXT</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>double</outParameter-type>
-      <outParameter-name>AVERAGET</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>AVERAGET</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>ListOfSyr</outParameter-type>
-      <outParameter-name>SYRLISTT</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
+       <outParameter-name>SYRLISTT</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>L_OneEven</FuncName>
-     <PyFunc><![CDATA[def L_OneEven( ValOne , ValEven , NT , KT , MIN , MAX , AVERAGE , SYRLIST ):]]></PyFunc>
-     <PyFunc><![CDATA[    Finished = ValOne]]></PyFunc>
-     <PyFunc><![CDATA[    if Finished == 0 :]]></PyFunc>
-     <PyFunc><![CDATA[        Incr = 1]]></PyFunc>
-     <PyFunc><![CDATA[        Even = ValEven]]></PyFunc>
-     <PyFunc><![CDATA[        if Even == 0 :]]></PyFunc>
-     <PyFunc><![CDATA[            Odd = 1]]></PyFunc>
-     <PyFunc><![CDATA[        else :]]></PyFunc>
-     <PyFunc><![CDATA[            Odd = 0]]></PyFunc>
-     <PyFunc><![CDATA[    else :]]></PyFunc>
-     <PyFunc><![CDATA[        Incr = 0]]></PyFunc>
-     <PyFunc><![CDATA[        Even = 0]]></PyFunc>
-     <PyFunc><![CDATA[        Odd = 0]]></PyFunc>
-     <PyFunc><![CDATA[    Even = ValEven]]></PyFunc>
-     <PyFunc><![CDATA[    return Finished,Incr,Even,Odd,NT,KT,MIN,MAX,AVERAGE,SYRLIST]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>2/10/2003 - 11:36:18</creation-date>
-   <lastmodification-date>2/10/2003 - 11:36:18</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>563</x-position>
-   <y-position>206</y-position>  </node>
-  <node>
+      <PyFunc><![CDATA[def L_OneEven( ValOne , ValEven , NT , KT , MIN , MAX , AVERAGE , SYRLIST ):]]></PyFunc>
+      <PyFunc><![CDATA[    Finished = ValOne]]></PyFunc>
+      <PyFunc><![CDATA[    if Finished == 0 :]]></PyFunc>
+      <PyFunc><![CDATA[        Incr = 1]]></PyFunc>
+      <PyFunc><![CDATA[        Even = ValEven]]></PyFunc>
+      <PyFunc><![CDATA[        if Even == 0 :]]></PyFunc>
+      <PyFunc><![CDATA[            Odd = 1]]></PyFunc>
+      <PyFunc><![CDATA[        else :]]></PyFunc>
+      <PyFunc><![CDATA[            Odd = 0]]></PyFunc>
+      <PyFunc><![CDATA[    else :]]></PyFunc>
+      <PyFunc><![CDATA[        Incr = 0]]></PyFunc>
+      <PyFunc><![CDATA[        Even = 0]]></PyFunc>
+      <PyFunc><![CDATA[        Odd = 0]]></PyFunc>
+      <PyFunc><![CDATA[    Even = ValEven]]></PyFunc>
+      <PyFunc><![CDATA[    return Finished,Incr,Even,Odd,NT,KT,MIN,MAX,AVERAGE,SYRLIST]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>15/2/2005 - 11:9:13</creation-date>
+    <lastmodification-date>15/2/2005 - 11:9:13</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>564</x-position>
+    <y-position>219</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>EndL_OneEven</node-name>
-   <kind>7</kind>
-   <coupled-node>label_test</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>EndL_OneEven</node-name>
+    <kind>7</kind>
+    <coupled-node>label_test</coupled-node>
+    <service>
 <service-name>EndL_OneEven</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>MIN</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>MINT</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>MAX</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>MAXT</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>double</inParameter-type>
-      <inParameter-name>AVERAGE</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>AVERAGET</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>MIN</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>MIN</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>MAX</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>MAX</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>double</outParameter-type>
-      <outParameter-name>AVERAGE</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
-<PyFunction/>   </PyFunction-list>
-   <creation-date>2/10/2003 - 11:36:18</creation-date>
-   <lastmodification-date>2/10/2003 - 11:36:18</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>1064</x-position>
-   <y-position>379</y-position>  </node>
-  <node>
+       <outParameter-name>AVERAGE</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
+<PyFunction>
+<FuncName>?</FuncName>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>15/2/2005 - 11:9:13</creation-date>
+    <lastmodification-date>15/2/2005 - 11:9:13</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>1064</x-position>
+    <y-position>339</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>control_m3p1</node-name>
-   <kind>8</kind>
-   <coupled-node>label_test</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>control_m3p1</node-name>
+    <kind>8</kind>
+    <coupled-node>label_test</coupled-node>
+    <service>
 <service-name>control_m3p1</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>N</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>N</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>K</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>K</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>MINT</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>MINT</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>MAXT</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>MAXT</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>double</inParameter-type>
-      <inParameter-name>AVERAGET</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>AVERAGET</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>ListOfSyr</inParameter-type>
-      <inParameter-name>SYRLISTT</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>SYRLISTT</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>ValOne</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>ValOne</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>ValEven</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>ValEven</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>NT</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>NT</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>KT</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>KT</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>MIN</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>MIN</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>MAX</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>MAX</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>double</outParameter-type>
-      <outParameter-name>AVERAGE</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>AVERAGE</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>ListOfSyr</outParameter-type>
-      <outParameter-name>SYRLIST</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
+       <outParameter-name>SYRLIST</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>C_NotOneIsEven</FuncName>
-     <PyFunc><![CDATA[def C_NotOneIsEven( N , K , MINT , MAXT , AVERAGET , SYRLISTT ):]]></PyFunc>
-     <PyFunc><![CDATA[    return 0,1,N,K,MINT,MAXT,AVERAGET,SYRLISTT]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>2/10/2003 - 11:36:18</creation-date>
-   <lastmodification-date>2/10/2003 - 11:36:18</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>1058</x-position>
-   <y-position>8</y-position>  </node>
-  <node>
+      <PyFunc><![CDATA[def C_NotOneIsEven( N , K , MINT , MAXT , AVERAGET , SYRLISTT ):]]></PyFunc>
+      <PyFunc><![CDATA[    return 0,1,N,K,MINT,MAXT,AVERAGET,SYRLISTT]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>15/2/2005 - 11:9:13</creation-date>
+    <lastmodification-date>15/2/2005 - 11:9:13</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>1058</x-position>
+    <y-position>8</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>control_div2</node-name>
-   <kind>8</kind>
-   <coupled-node>label_begin</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>control_div2</node-name>
+    <kind>8</kind>
+    <coupled-node>label_begin</coupled-node>
+    <service>
 <service-name>control_div2</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>N</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>N</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>K</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>K</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>MINT</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>MINT</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>MAXT</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>MAXT</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>double</inParameter-type>
-      <inParameter-name>AVERAGET</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>AVERAGET</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>ListOfSyr</inParameter-type>
-      <inParameter-name>SYRLISTT</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>SYRLISTT</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>NB</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>NB</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>KB</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>KB</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>MINB</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>MINB</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>MAXB</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>MAXB</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>double</outParameter-type>
-      <outParameter-name>AVERAGEB</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>AVERAGEB</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>ListOfSyr</outParameter-type>
-      <outParameter-name>SYRLISTB</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <Parameter-list/>
-   <PyFunction-list>
+       <outParameter-name>SYRLISTB</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>control_div2</FuncName>
-     <PyFunc><![CDATA[def control_div2( N , K , MINT , MAXT , AVERAGET , SYRLISTT ) :]]></PyFunc>
-     <PyFunc><![CDATA[    return N,K,MINT,MAXT,AVERAGET,SYRLISTT]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>2/10/2003 - 11:36:18</creation-date>
-   <lastmodification-date>2/10/2003 - 11:36:18</lastmodification-date>
-   <editor-release>1.05</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>1048</x-position>
-   <y-position>555</y-position>  </node> </node-list>
- <link-list>
+      <PyFunc><![CDATA[def control_div2( N , K , MINT , MAXT , AVERAGET , SYRLISTT ) :]]></PyFunc>
+      <PyFunc><![CDATA[    return N,K,MINT,MAXT,AVERAGET,SYRLISTT]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>15/2/2005 - 11:9:13</creation-date>
+    <lastmodification-date>15/2/2005 - 11:9:13</lastmodification-date>
+    <editor-release>1.05</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>1048</x-position>
+    <y-position>555</y-position>   </node>  </node-list>
 <link-list>
 <link>
 <fromnode-name>test_ISEVEN</fromnode-name>
-   <fromserviceparameter-name>BoolEven</fromserviceparameter-name>
-   <tonode-name>label_test</tonode-name>
-   <toserviceparameter-name>ValEven</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>BoolEven</fromserviceparameter-name>
+    <tonode-name>label_test</tonode-name>
+    <toserviceparameter-name>ValEven</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>545</x>
-     <y>269</y>    </coord>
-    <coord>
-<x>545</x>
-     <y>535</y>    </coord>   </coord-list>  </link>
-  <link>
+<x>544</x>
+      <y>256</y>     </coord>
+     <coord>
+<x>544</x>
+      <y>524</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>test_ISONE</fromnode-name>
-   <fromserviceparameter-name>BoolOne</fromserviceparameter-name>
-   <tonode-name>label_test</tonode-name>
-   <toserviceparameter-name>ValOne</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>BoolOne</fromserviceparameter-name>
+    <tonode-name>label_test</tonode-name>
+    <toserviceparameter-name>ValOne</toserviceparameter-name>
+    <coord-list>
 <coord>
 <x>546</x>
-     <y>241</y>    </coord>
-    <coord>
-<x>545</x>
-     <y>208</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>237</y>     </coord>
+     <coord>
+<x>546</x>
+      <y>198</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>m3p1</fromnode-name>
-   <fromserviceparameter-name>anEvenInteger</fromserviceparameter-name>
-   <tonode-name>control_m3p1</tonode-name>
-   <toserviceparameter-name>N</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>anEvenInteger</fromserviceparameter-name>
+    <tonode-name>control_m3p1</tonode-name>
+    <toserviceparameter-name>N</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>977</x>
-     <y>43</y>    </coord>
-    <coord>
+<x>975</x>
+      <y>38</y>     </coord>
+     <coord>
 <x>976</x>
-     <y>81</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>81</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>div2</fromnode-name>
-   <fromserviceparameter-name>anInteger</fromserviceparameter-name>
-   <tonode-name>control_div2</tonode-name>
-   <toserviceparameter-name>N</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>anInteger</fromserviceparameter-name>
+    <tonode-name>control_div2</tonode-name>
+    <toserviceparameter-name>N</toserviceparameter-name>
+    <coord-list>
 <coord>
+<x>1012</x>
+      <y>585</y>     </coord>
+     <coord>
 <x>1011</x>
-     <y>590</y>    </coord>
-    <coord>
-<x>1010</x>
-     <y>357</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>346</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>incr</fromnode-name>
-   <fromserviceparameter-name>aNewCount</fromserviceparameter-name>
-   <tonode-name>control_div2</tonode-name>
-   <toserviceparameter-name>K</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>aNewCount</fromserviceparameter-name>
+    <tonode-name>control_div2</tonode-name>
+    <toserviceparameter-name>K</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>964</x>
-     <y>618</y>    </coord>
-    <coord>
 <x>966</x>
-     <y>217</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>606</y>     </coord>
+     <coord>
+<x>968</x>
+      <y>207</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>incr</fromnode-name>
-   <fromserviceparameter-name>aNewCount</fromserviceparameter-name>
-   <tonode-name>control_m3p1</tonode-name>
-   <toserviceparameter-name>K</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>aNewCount</fromserviceparameter-name>
+    <tonode-name>control_m3p1</tonode-name>
+    <toserviceparameter-name>K</toserviceparameter-name>
+    <coord-list>
 <coord>
+<x>965</x>
+      <y>59</y>     </coord>
+     <coord>
 <x>966</x>
-     <y>70</y>    </coord>
-    <coord>
-<x>966</x>
-     <y>216</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>208</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>incr</fromnode-name>
-   <fromserviceparameter-name>aNewCount</fromserviceparameter-name>
-   <tonode-name>C_AVERAGE</tonode-name>
-   <toserviceparameter-name>aCount</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>aNewCount</fromserviceparameter-name>
+    <tonode-name>C_AVERAGE</tonode-name>
+    <toserviceparameter-name>aCount</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>778</x>
-     <y>615</y>    </coord>
-    <coord>
-<x>779</x>
-     <y>462</y>    </coord>
-    <coord>
+<x>751</x>
+      <y>588</y>     </coord>
+     <coord>
+<x>751</x>
+      <y>460</y>     </coord>
+     <coord>
 <x>965</x>
-     <y>462</y>    </coord>
-    <coord>
-<x>966</x>
-     <y>216</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>462</y>     </coord>
+     <coord>
+<x>968</x>
+      <y>205</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>C_MIN</fromnode-name>
-   <fromserviceparameter-name>aNewMinVal</fromserviceparameter-name>
-   <tonode-name>control_m3p1</tonode-name>
-   <toserviceparameter-name>MINT</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>aNewMinVal</fromserviceparameter-name>
+    <tonode-name>control_m3p1</tonode-name>
+    <toserviceparameter-name>MINT</toserviceparameter-name>
+    <coord-list>
 <coord>
 <x>991</x>
-     <y>100</y>    </coord>
-    <coord>
+      <y>78</y>     </coord>
+     <coord>
 <x>991</x>
-     <y>913</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>905</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>C_MIN</fromnode-name>
-   <fromserviceparameter-name>aNewMinVal</fromserviceparameter-name>
-   <tonode-name>control_div2</tonode-name>
-   <toserviceparameter-name>MINT</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>aNewMinVal</fromserviceparameter-name>
+    <tonode-name>control_div2</tonode-name>
+    <toserviceparameter-name>MINT</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>990</x>
-     <y>646</y>    </coord>
-    <coord>
 <x>991</x>
-     <y>912</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>626</y>     </coord>
+     <coord>
+<x>991</x>
+      <y>905</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>C_MAX</fromnode-name>
-   <fromserviceparameter-name>aNewMaxVal</fromserviceparameter-name>
-   <tonode-name>control_m3p1</tonode-name>
-   <toserviceparameter-name>MAXT</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>aNewMaxVal</fromserviceparameter-name>
+    <tonode-name>control_m3p1</tonode-name>
+    <toserviceparameter-name>MAXT</toserviceparameter-name>
+    <coord-list>
 <coord>
+<x>976</x>
+      <y>98</y>     </coord>
+     <coord>
 <x>974</x>
-     <y>130</y>    </coord>
-    <coord>
-<x>974</x>
-     <y>747</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>738</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>C_MAX</fromnode-name>
-   <fromserviceparameter-name>aNewMaxVal</fromserviceparameter-name>
-   <tonode-name>control_div2</tonode-name>
-   <toserviceparameter-name>MAXT</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>aNewMaxVal</fromserviceparameter-name>
+    <tonode-name>control_div2</tonode-name>
+    <toserviceparameter-name>MAXT</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>973</x>
-     <y>676</y>    </coord>
-    <coord>
+<x>972</x>
+      <y>648</y>     </coord>
+     <coord>
 <x>974</x>
-     <y>747</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>738</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>C_AVERAGE</fromnode-name>
-   <fromserviceparameter-name>aNewListOfSyr</fromserviceparameter-name>
-   <tonode-name>control_m3p1</tonode-name>
-   <toserviceparameter-name>SYRLISTT</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>aNewListOfSyr</fromserviceparameter-name>
+    <tonode-name>control_m3p1</tonode-name>
+    <toserviceparameter-name>SYRLISTT</toserviceparameter-name>
+    <coord-list>
 <coord>
 <x>1037</x>
-     <y>188</y>    </coord>
-    <coord>
+      <y>137</y>     </coord>
+     <coord>
 <x>1038</x>
-     <y>556</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>556</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>C_AVERAGE</fromnode-name>
-   <fromserviceparameter-name>aNewListOfSyr</fromserviceparameter-name>
-   <tonode-name>control_div2</tonode-name>
-   <toserviceparameter-name>SYRLISTT</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>aNewListOfSyr</fromserviceparameter-name>
+    <tonode-name>control_div2</tonode-name>
+    <toserviceparameter-name>SYRLISTT</toserviceparameter-name>
+    <coord-list>
 <coord>
 <x>1038</x>
-     <y>735</y>    </coord>
-    <coord>
+      <y>686</y>     </coord>
+     <coord>
 <x>1038</x>
-     <y>555</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>555</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>C_AVERAGE</fromnode-name>
-   <fromserviceparameter-name>anAverage</fromserviceparameter-name>
-   <tonode-name>control_m3p1</tonode-name>
-   <toserviceparameter-name>AVERAGET</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>anAverage</fromserviceparameter-name>
+    <tonode-name>control_m3p1</tonode-name>
+    <toserviceparameter-name>AVERAGET</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>1027</x>
-     <y>158</y>    </coord>
-    <coord>
 <x>1026</x>
-     <y>584</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>118</y>     </coord>
+     <coord>
+<x>1027</x>
+      <y>567</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>C_AVERAGE</fromnode-name>
-   <fromserviceparameter-name>anAverage</fromserviceparameter-name>
-   <tonode-name>control_div2</tonode-name>
-   <toserviceparameter-name>AVERAGET</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>anAverage</fromserviceparameter-name>
+    <tonode-name>control_div2</tonode-name>
+    <toserviceparameter-name>AVERAGET</toserviceparameter-name>
+    <coord-list>
 <coord>
 <x>1027</x>
-     <y>706</y>    </coord>
-    <coord>
-<x>1027</x>
-     <y>584</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>668</y>     </coord>
+     <coord>
+<x>1026</x>
+      <y>568</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>C_LISTOFSYR</fromnode-name>
-   <fromserviceparameter-name>aListOfSyr</fromserviceparameter-name>
-   <tonode-name>label_begin</tonode-name>
-   <toserviceparameter-name>SYRLISTB</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>aListOfSyr</fromserviceparameter-name>
+    <tonode-name>label_begin</tonode-name>
+    <toserviceparameter-name>SYRLISTB</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>label_begin</fromnode-name>
-   <fromserviceparameter-name>NT</fromserviceparameter-name>
-   <tonode-name>test_ISONE</tonode-name>
-   <toserviceparameter-name>anInteger</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>NT</fromserviceparameter-name>
+    <tonode-name>test_ISONE</tonode-name>
+    <toserviceparameter-name>anInteger</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>362</x>
-     <y>207</y>    </coord>
-    <coord>
-<x>362</x>
-     <y>299</y>    </coord>   </coord-list>  </link>
-  <link>
+<x>361</x>
+      <y>197</y>     </coord>
+     <coord>
+<x>360</x>
+      <y>290</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>label_begin</fromnode-name>
-   <fromserviceparameter-name>NT</fromserviceparameter-name>
-   <tonode-name>label_test</tonode-name>
-   <toserviceparameter-name>NT</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>NT</fromserviceparameter-name>
+    <tonode-name>label_test</tonode-name>
+    <toserviceparameter-name>NT</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>label_begin</fromnode-name>
-   <fromserviceparameter-name>NT</fromserviceparameter-name>
-   <tonode-name>test_ISEVEN</tonode-name>
-   <toserviceparameter-name>anInteger</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>NT</fromserviceparameter-name>
+    <tonode-name>test_ISEVEN</tonode-name>
+    <toserviceparameter-name>anInteger</toserviceparameter-name>
+    <coord-list>
 <coord>
+<x>359</x>
+      <y>525</y>     </coord>
+     <coord>
 <x>361</x>
-     <y>534</y>    </coord>
-    <coord>
-<x>362</x>
-     <y>299</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>291</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>label_begin</fromnode-name>
-   <fromserviceparameter-name>KT</fromserviceparameter-name>
-   <tonode-name>label_test</tonode-name>
-   <toserviceparameter-name>KT</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>KT</fromserviceparameter-name>
+    <tonode-name>label_test</tonode-name>
+    <toserviceparameter-name>KT</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>label_begin</fromnode-name>
-   <fromserviceparameter-name>MIN</fromserviceparameter-name>
-   <tonode-name>label_test</tonode-name>
-   <toserviceparameter-name>MIN</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>MIN</fromserviceparameter-name>
+    <tonode-name>label_test</tonode-name>
+    <toserviceparameter-name>MIN</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>label_begin</fromnode-name>
-   <fromserviceparameter-name>MAX</fromserviceparameter-name>
-   <tonode-name>label_test</tonode-name>
-   <toserviceparameter-name>MAX</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>MAX</fromserviceparameter-name>
+    <tonode-name>label_test</tonode-name>
+    <toserviceparameter-name>MAX</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>label_begin</fromnode-name>
-   <fromserviceparameter-name>AVERAGE</fromserviceparameter-name>
-   <tonode-name>label_test</tonode-name>
-   <toserviceparameter-name>AVERAGE</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>AVERAGE</fromserviceparameter-name>
+    <tonode-name>label_test</tonode-name>
+    <toserviceparameter-name>AVERAGE</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>label_begin</fromnode-name>
-   <fromserviceparameter-name>SYRLIST</fromserviceparameter-name>
-   <tonode-name>label_test</tonode-name>
-   <toserviceparameter-name>SYRLIST</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>SYRLIST</fromserviceparameter-name>
+    <tonode-name>label_test</tonode-name>
+    <toserviceparameter-name>SYRLIST</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>Finished</fromserviceparameter-name>
-   <tonode-name>EndL_OneEven</tonode-name>
-   <toserviceparameter-name>Default</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
-<fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>Incr</fromserviceparameter-name>
-   <tonode-name>incr</tonode-name>
-   <toserviceparameter-name>InGate</toserviceparameter-name>
-   <coord-list>
-<coord>
-<x>779</x>
-     <y>250</y>    </coord>
-    <coord>
-<x>780</x>
-     <y>269</y>    </coord>   </coord-list>  </link>
-  <link>
-<fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>Even</fromserviceparameter-name>
-   <tonode-name>div2</tonode-name>
-   <toserviceparameter-name>InGate</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>div2</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>780</x>
-     <y>387</y>    </coord>
-    <coord>
-<x>779</x>
-     <y>299</y>    </coord>   </coord-list>  </link>
-  <link>
+<x>777</x>
+      <y>351</y>     </coord>
+     <coord>
+<x>777</x>
+      <y>286</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>Odd</fromserviceparameter-name>
-   <tonode-name>m3p1</tonode-name>
-   <toserviceparameter-name>InGate</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>m3p1</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>756</x>
-     <y>115</y>    </coord>
-    <coord>
-<x>756</x>
-     <y>328</y>    </coord>   </coord-list>  </link>
-  <link>
+<x>757</x>
+      <y>95</y>     </coord>
+     <coord>
+<x>757</x>
+      <y>310</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>N</fromserviceparameter-name>
-   <tonode-name>m3p1</tonode-name>
-   <toserviceparameter-name>anOddInteger</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>N</fromserviceparameter-name>
+    <tonode-name>m3p1</tonode-name>
+    <toserviceparameter-name>anOddInteger</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>740</x>
-     <y>80</y>    </coord>
-    <coord>
 <x>741</x>
-     <y>356</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>72</y>     </coord>
+     <coord>
+<x>741</x>
+      <y>331</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>N</fromserviceparameter-name>
-   <tonode-name>div2</tonode-name>
-   <toserviceparameter-name>anEvenInteger</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>N</fromserviceparameter-name>
+    <tonode-name>div2</tonode-name>
+    <toserviceparameter-name>anEvenInteger</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>N</fromserviceparameter-name>
-   <tonode-name>C_MIN</tonode-name>
-   <toserviceparameter-name>anInteger</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>N</fromserviceparameter-name>
+    <tonode-name>C_MIN</tonode-name>
+    <toserviceparameter-name>anInteger</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>741</x>
-     <y>943</y>    </coord>
-    <coord>
-<x>740</x>
-     <y>357</y>    </coord>   </coord-list>  </link>
-  <link>
+<x>744</x>
+      <y>923</y>     </coord>
+     <coord>
+<x>742</x>
+      <y>331</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>N</fromserviceparameter-name>
-   <tonode-name>C_MAX</tonode-name>
-   <toserviceparameter-name>anInteger</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>N</fromserviceparameter-name>
+    <tonode-name>C_MAX</tonode-name>
+    <toserviceparameter-name>anInteger</toserviceparameter-name>
+    <coord-list>
 <coord>
 <x>742</x>
-     <y>778</y>    </coord>
-    <coord>
-<x>741</x>
-     <y>359</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>759</y>     </coord>
+     <coord>
+<x>743</x>
+      <y>332</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>N</fromserviceparameter-name>
-   <tonode-name>C_AVERAGE</tonode-name>
-   <toserviceparameter-name>anInteger</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>N</fromserviceparameter-name>
+    <tonode-name>C_AVERAGE</tonode-name>
+    <toserviceparameter-name>anInteger</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>742</x>
-     <y>584</y>    </coord>
-    <coord>
 <x>741</x>
-     <y>357</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>568</y>     </coord>
+     <coord>
+<x>742</x>
+      <y>330</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>K</fromserviceparameter-name>
-   <tonode-name>incr</tonode-name>
-   <toserviceparameter-name>aCount</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>K</fromserviceparameter-name>
+    <tonode-name>incr</tonode-name>
+    <toserviceparameter-name>aCount</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>765</x>
-     <y>217</y>    </coord>
-    <coord>
-<x>764</x>
-     <y>385</y>    </coord>   </coord-list>  </link>
-  <link>
+<x>766</x>
+      <y>207</y>     </coord>
+     <coord>
+<x>766</x>
+      <y>343</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>MINT</fromserviceparameter-name>
-   <tonode-name>C_MIN</tonode-name>
-   <toserviceparameter-name>aMinVal</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>MINT</fromserviceparameter-name>
+    <tonode-name>C_MIN</tonode-name>
+    <toserviceparameter-name>aMinVal</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>759</x>
-     <y>914</y>    </coord>
-    <coord>
-<x>758</x>
-     <y>414</y>    </coord>   </coord-list>  </link>
-  <link>
+<x>760</x>
+      <y>904</y>     </coord>
+     <coord>
+<x>756</x>
+      <y>372</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>MINT</fromserviceparameter-name>
-   <tonode-name>EndL_OneEven</tonode-name>
-   <toserviceparameter-name>MIN</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>MINT</fromserviceparameter-name>
+    <tonode-name>EndL_OneEven</tonode-name>
+    <toserviceparameter-name>MINT</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>MAXT</fromserviceparameter-name>
-   <tonode-name>C_MAX</tonode-name>
-   <toserviceparameter-name>aMaxVal</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>MAXT</fromserviceparameter-name>
+    <tonode-name>C_MAX</tonode-name>
+    <toserviceparameter-name>aMaxVal</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>729</x>
-     <y>749</y>    </coord>
-    <coord>
-<x>728</x>
-     <y>444</y>    </coord>   </coord-list>  </link>
-  <link>
+<x>765</x>
+      <y>742</y>     </coord>
+     <coord>
+<x>766</x>
+      <y>384</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>MAXT</fromserviceparameter-name>
-   <tonode-name>EndL_OneEven</tonode-name>
-   <toserviceparameter-name>MAX</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>MAXT</fromserviceparameter-name>
+    <tonode-name>EndL_OneEven</tonode-name>
+    <toserviceparameter-name>MAXT</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>AVERAGET</fromserviceparameter-name>
-   <tonode-name>EndL_OneEven</tonode-name>
-   <toserviceparameter-name>AVERAGE</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>AVERAGET</fromserviceparameter-name>
+    <tonode-name>EndL_OneEven</tonode-name>
+    <toserviceparameter-name>AVERAGET</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>SYRLISTT</fromserviceparameter-name>
-   <tonode-name>C_AVERAGE</tonode-name>
-   <toserviceparameter-name>aListOfSyr</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>SYRLISTT</fromserviceparameter-name>
+    <tonode-name>C_AVERAGE</tonode-name>
+    <toserviceparameter-name>aListOfSyr</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>771</x>
-     <y>557</y>    </coord>
-    <coord>
-<x>770</x>
-     <y>502</y>    </coord>   </coord-list>  </link>
-  <link>
+<x>773</x>
+      <y>546</y>     </coord>
+     <coord>
+<x>772</x>
+      <y>424</y>     </coord>    </coord-list>   </link>
+   <link>
+<fromnode-name>label_test</fromnode-name>
+    <fromserviceparameter-name>Default</fromserviceparameter-name>
+    <tonode-name>EndL_OneEven</tonode-name>
+    <toserviceparameter-name>Default</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>control_m3p1</fromnode-name>
-   <fromserviceparameter-name>OutGate</fromserviceparameter-name>
-   <tonode-name>label_test</tonode-name>
-   <toserviceparameter-name>InGate</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>Gate</fromserviceparameter-name>
+    <tonode-name>label_test</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list>
 <coord>
 <x>553</x>
-     <y>536</y>    </coord>
-    <coord>
+      <y>453</y>     </coord>
+     <coord>
 <x>554</x>
-     <y>1025</y>    </coord>
-    <coord>
+      <y>1025</y>     </coord>
+     <coord>
 <x>1242</x>
-     <y>1026</y>    </coord>
-    <coord>
-<x>1243</x>
-     <y>279</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>1026</y>     </coord>
+     <coord>
+<x>1234</x>
+      <y>204</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>control_div2</fromnode-name>
-   <fromserviceparameter-name>OutGate</fromserviceparameter-name>
-   <tonode-name>label_begin</tonode-name>
-   <toserviceparameter-name>InGate</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>Gate</fromserviceparameter-name>
+    <tonode-name>label_begin</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list>
 <coord>
 <x>176</x>
-     <y>476</y>    </coord>
-    <coord>
+      <y>419</y>     </coord>
+     <coord>
 <x>176</x>
-     <y>997</y>    </coord>
-    <coord>
+      <y>997</y>     </coord>
+     <coord>
 <x>1217</x>
-     <y>996</y>    </coord>
-    <coord>
-<x>1218</x>
-     <y>768</y>    </coord>   </coord-list>  </link> </link-list>
- <data-list>
+      <y>996</y>     </coord>
+     <coord>
+<x>1223</x>
+      <y>711</y>     </coord>    </coord-list>   </link>  </link-list>
 <data-list>
 <data>
 <fromnode-name>GraphSyrControlAve</fromnode-name>
-   <fromserviceparameter-name>label_begin\NB</fromserviceparameter-name>
-   <tonode-name>label_begin</tonode-name>
-   <toserviceparameter-name>NB</toserviceparameter-name>
-   <data-value>
+    <fromserviceparameter-name>label_begin__NB</fromserviceparameter-name>
+    <tonode-name>label_begin</tonode-name>
+    <toserviceparameter-name>NB</toserviceparameter-name>
+    <data-value>
 <value-type>3</value-type>
-    <value>31</value>   </data-value>
-   <coord-list/>  </data>
-  <data>
+     <value>31</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
 <fromnode-name>GraphSyrControlAve</fromnode-name>
-   <fromserviceparameter-name>label_begin\KB</fromserviceparameter-name>
-   <tonode-name>label_begin</tonode-name>
-   <toserviceparameter-name>KB</toserviceparameter-name>
-   <data-value>
+    <fromserviceparameter-name>label_begin__KB</fromserviceparameter-name>
+    <tonode-name>label_begin</tonode-name>
+    <toserviceparameter-name>KB</toserviceparameter-name>
+    <data-value>
 <value-type>3</value-type>
-    <value>0</value>   </data-value>
-   <coord-list/>  </data>
-  <data>
+     <value>0</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
 <fromnode-name>GraphSyrControlAve</fromnode-name>
-   <fromserviceparameter-name>label_begin\MINB</fromserviceparameter-name>
-   <tonode-name>label_begin</tonode-name>
-   <toserviceparameter-name>MINB</toserviceparameter-name>
-   <data-value>
+    <fromserviceparameter-name>label_begin__MINB</fromserviceparameter-name>
+    <tonode-name>label_begin</tonode-name>
+    <toserviceparameter-name>MINB</toserviceparameter-name>
+    <data-value>
 <value-type>3</value-type>
-    <value>0</value>   </data-value>
-   <coord-list/>  </data>
-  <data>
+     <value>0</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
 <fromnode-name>GraphSyrControlAve</fromnode-name>
-   <fromserviceparameter-name>label_begin\MAXB</fromserviceparameter-name>
-   <tonode-name>label_begin</tonode-name>
-   <toserviceparameter-name>MAXB</toserviceparameter-name>
-   <data-value>
+    <fromserviceparameter-name>label_begin__MAXB</fromserviceparameter-name>
+    <tonode-name>label_begin</tonode-name>
+    <toserviceparameter-name>MAXB</toserviceparameter-name>
+    <data-value>
 <value-type>3</value-type>
-    <value>0</value>   </data-value>
-   <coord-list/>  </data>
-  <data>
+     <value>0</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
 <fromnode-name>GraphSyrControlAve</fromnode-name>
-   <fromserviceparameter-name>label_begin\AVERAGEB</fromserviceparameter-name>
-   <tonode-name>label_begin</tonode-name>
-   <toserviceparameter-name>AVERAGEB</toserviceparameter-name>
-   <data-value>
+    <fromserviceparameter-name>label_begin__AVERAGEB</fromserviceparameter-name>
+    <tonode-name>label_begin</tonode-name>
+    <toserviceparameter-name>AVERAGEB</toserviceparameter-name>
+    <data-value>
 <value-type>7</value-type>
-    <value>0</value>   </data-value>
-   <coord-list/>  </data> </data-list></dataflow>
+     <value>0</value>    </data-value>
+    <coord-list/>   </data>  </data-list> </dataflow></supergraph>
index dfafc54f68ef06319957e0e456c5591cb111103d..c99ba99b73bf1833bf3c8e24fb2bfcf07865c705 100644 (file)
 # Generated python file of Graph GraphSyrControlDefault
 
 from SuperV import *
-# Graph creation 
-GraphSyrControlDefault = Graph( 'GraphSyrControlDefault' )
-GraphSyrControlDefault.SetName( 'GraphSyrControlDefault' )
-GraphSyrControlDefault.SetAuthor( 'JR' )
-GraphSyrControlDefault.SetComment( 'Syracuse algorithm' )
-GraphSyrControlDefault.Coords( 0 , 0 )
 
-# Creation of Factory Nodes
-
-test_ISEVEN = GraphSyrControlDefault.FNode( 'SyrComponent' , 'SyrComponent' , 'C_ISEVEN' )
-test_ISEVEN.SetName( 'test_ISEVEN' )
-test_ISEVEN.SetAuthor( '' )
-test_ISEVEN.SetContainer( 'localhost/FactoryServer' )
-test_ISEVEN.SetComment( 'C_ISEVEN from SyrComponent' )
-test_ISEVEN.Coords( 204 , 444 )
-
-test_ISONE = GraphSyrControlDefault.FNode( 'SyrComponent' , 'SyrComponent' , 'C_ISONE' )
-test_ISONE.SetName( 'test_ISONE' )
-test_ISONE.SetAuthor( '' )
-test_ISONE.SetContainer( 'localhost/FactoryServer' )
-test_ISONE.SetComment( 'C_ISONE from SyrComponent' )
-test_ISONE.Coords( 201 , 52 )
-
-m3p1 = GraphSyrControlDefault.FNode( 'SyrComponent' , 'SyrComponent' , 'C_M3P1' )
-m3p1.SetName( 'm3p1' )
-m3p1.SetAuthor( '' )
-m3p1.SetContainer( 'localhost/FactoryServer' )
-m3p1.SetComment( 'C_M3P1 from SyrComponent' )
-m3p1.Coords( 806 , 19 )
-
-div2 = GraphSyrControlDefault.FNode( 'SyrComponent' , 'SyrComponent' , 'C_DIV2' )
-div2.SetName( 'div2' )
-div2.SetAuthor( '' )
-div2.SetContainer( 'localhost/FactoryServer' )
-div2.SetComment( 'C_DIV2 from SyrComponent' )
-div2.Coords( 803 , 451 )
-
-incr = GraphSyrControlDefault.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' )
-incr.SetName( 'incr' )
-incr.SetAuthor( '' )
-incr.SetContainer( 'localhost/FactoryServer' )
-incr.SetComment( 'C_INCR from SyrComponent' )
-incr.Coords( 802 , 170 )
-
-# Creation of InLine Nodes
-Pylabel_begin = []
-Pylabel_begin.append( 'def label_begin( NB , KB ):' )
-Pylabel_begin.append( '    print "label_begin",NB,KB' )
-Pylabel_begin.append( '    return NB,KB' )
-label_begin = GraphSyrControlDefault.INode( 'label_begin' , Pylabel_begin )
-label_begin.SetName( 'label_begin' )
-label_begin.SetAuthor( '' )
-label_begin.SetComment( 'Python function' )
-label_begin.Coords( 12 , 264 )
-label_begin.InPort( 'NB' , 'long' )
-label_begin.InPort( 'KB' , 'long' )
-
-Pylabel_test = []
-Pylabel_test.append( 'def label_test( ValEven , ValOne , NB , KB ):' )
-Pylabel_test.append( '    print "label_begin",ValEven,ValOne,NB,KB' )
-Pylabel_test.append( '    return ValEven,ValOne,NB,KB' )
-label_test = GraphSyrControlDefault.INode( 'label_test' , Pylabel_test )
-label_test.SetName( 'label_test' )
-label_test.SetAuthor( '' )
-label_test.SetComment( 'Python function' )
-label_test.Coords( 415 , 206 )
-label_test.InPort( 'ValEven' , 'long' )
-label_test.InPort( 'ValOne' , 'long' )
-label_test.InPort( 'NT' , 'long' )
-label_test.InPort( 'KT' , 'long' )
-
-# Creation of Switch Nodes
-Pytest = []
-Pytest.append( 'def Switch_OneEven( ValOne , ValEven , NT , KT ) :' )
-Pytest.append( '    Finished = ValOne' )
-Pytest.append( '    if Finished == 0 :' )
-Pytest.append( '        Incr = 1' )
-Pytest.append( '        Even = ValEven' )
-Pytest.append( '        if Even == 0 :' )
-Pytest.append( '            Odd = 1' )
-Pytest.append( '        else :' )
-Pytest.append( '            Odd = 0' )
-Pytest.append( '    else :' )
-Pytest.append( '        Incr = 0' )
-Pytest.append( '        Even = 0' )
-Pytest.append( '        Odd = 0' )
-Pytest.append( '    Even = ValEven' )
-Pytest.append( '    return Incr,Even,Odd,NT,KT' )
-test,EndSwitch_OneEven = GraphSyrControlDefault.SNode( 'Switch_OneEven' , Pytest )
-EndSwitch_OneEven.SetName( 'EndSwitch_OneEven' )
-EndSwitch_OneEven.SetAuthor( '' )
-EndSwitch_OneEven.SetComment( '' )
-EndSwitch_OneEven.Coords( 1074 , 367 )
-PyEndSwitch_OneEven = []
-EndSwitch_OneEven.SetPyFunction( 'EndSwitch_OneEven' , PyEndSwitch_OneEven )
-EndSwitch_OneEven.InPort( 'K' , 'long' )
-EndSwitch_OneEven.OutPort( 'K' , 'long' )
-test.SetName( 'test' )
-test.SetAuthor( '' )
-test.SetComment( '' )
-test.Coords( 597 , 251 )
-test.InPort( 'ValOne' , 'long' )
-test.InPort( 'ValEven' , 'long' )
-test.InPort( 'NT' , 'long' )
-test.InPort( 'KT' , 'long' )
-
-# Creation of GOTO Nodes
-Pycontrol_m3p1 = []
-Pycontrol_m3p1.append( 'def control_m3p1( N , K ):' )
-Pycontrol_m3p1.append( '    return 0,1,N,K' )
-control_m3p1 = GraphSyrControlDefault.GNode( 'control_m3p1' , Pycontrol_m3p1 , 'label_test' )
-control_m3p1.SetName( 'control_m3p1' )
-control_m3p1.SetAuthor( '' )
-control_m3p1.SetComment( '' )
-control_m3p1.Coords( 1002 , 64 )
-control_m3p1.InPort( 'N' , 'long' )
-control_m3p1.InPort( 'K' , 'long' )
-
-Pycontrol_div2 = []
-Pycontrol_div2.append( 'def control_div2( N , NB ) :' )
-Pycontrol_div2.append( '    return N,NB' )
-control_div2 = GraphSyrControlDefault.GNode( 'control_div2' , Pycontrol_div2 , 'label_begin' )
-control_div2.SetName( 'control_div2' )
-control_div2.SetAuthor( '' )
-control_div2.SetComment( '' )
-control_div2.Coords( 1013 , 496 )
-control_div2.InPort( 'N' , 'long' )
-control_div2.InPort( 'K' , 'long' )
-
-# Creation of Links
-test_ISEVENBoolEven = test_ISEVEN.Port( 'BoolEven' )
-label_testValEven = GraphSyrControlDefault.Link( test_ISEVENBoolEven , label_test.Port( 'ValEven' ) )
-label_testValEven.AddCoord( 1 , 381 , 286 )
-label_testValEven.AddCoord( 2 , 382 , 524 )
-
-test_ISONEBoolOne = test_ISONE.Port( 'BoolOne' )
-label_testValOne = GraphSyrControlDefault.Link( test_ISONEBoolOne , label_test.Port( 'ValOne' ) )
-label_testValOne.AddCoord( 1 , 393 , 314 )
-label_testValOne.AddCoord( 2 , 393 , 133 )
-
-m3p1anEvenInteger = m3p1.Port( 'anEvenInteger' )
-control_m3p1N = GraphSyrControlDefault.Link( m3p1anEvenInteger , control_m3p1.Port( 'N' ) )
-
-div2anInteger = div2.Port( 'anInteger' )
-control_div2N = GraphSyrControlDefault.Link( div2anInteger , control_div2.Port( 'N' ) )
-
-incraNewCount = incr.Port( 'aNewCount' )
-control_m3p1K = GraphSyrControlDefault.Link( incraNewCount , control_m3p1.Port( 'K' ) )
-control_m3p1K.AddCoord( 1 , 985 , 128 )
-control_m3p1K.AddCoord( 2 , 985 , 250 )
-
-control_div2K = GraphSyrControlDefault.Link( incraNewCount , control_div2.Port( 'K' ) )
-control_div2K.AddCoord( 1 , 987 , 559 )
-control_div2K.AddCoord( 2 , 985 , 250 )
-
-label_beginNT = label_begin.Port( 'NT' )
-label_testNT = GraphSyrControlDefault.Link( label_beginNT , label_test.Port( 'NT' ) )
-
-test_ISEVENanInteger = GraphSyrControlDefault.Link( label_beginNT , test_ISEVEN.Port( 'anInteger' ) )
-test_ISEVENanInteger.AddCoord( 1 , 191 , 524 )
-test_ISEVENanInteger.AddCoord( 2 , 192 , 345 )
-
-test_ISONEanInteger = GraphSyrControlDefault.Link( label_beginNT , test_ISONE.Port( 'anInteger' ) )
-test_ISONEanInteger.AddCoord( 1 , 192 , 131 )
-test_ISONEanInteger.AddCoord( 2 , 193 , 345 )
-
-label_beginKT = label_begin.Port( 'KT' )
-label_testKT = GraphSyrControlDefault.Link( label_beginKT , label_test.Port( 'KT' ) )
-
-label_testValEven = label_test.Port( 'ValEven' )
-testValEven = GraphSyrControlDefault.Link( label_testValEven , test.Port( 'ValEven' ) )
-
-label_testValOne = label_test.Port( 'ValOne' )
-testValOne = GraphSyrControlDefault.Link( label_testValOne , test.Port( 'ValOne' ) )
-
-label_testNT = label_test.Port( 'NT' )
-testNT = GraphSyrControlDefault.Link( label_testNT , test.Port( 'NT' ) )
-
-label_testKT = label_test.Port( 'KT' )
-testKT = GraphSyrControlDefault.Link( label_testKT , test.Port( 'KT' ) )
-
-testIncr = test.Port( 'Incr' )
-incrInGate = GraphSyrControlDefault.Link( testIncr , incr.Port( 'InGate' ) )
-
-testEven = test.Port( 'Even' )
-div2InGate = GraphSyrControlDefault.Link( testEven , div2.Port( 'InGate' ) )
-div2InGate.AddCoord( 1 , 793 , 567 )
-div2InGate.AddCoord( 2 , 792 , 314 )
-
-testOdd = test.Port( 'Odd' )
-m3p1InGate = GraphSyrControlDefault.Link( testOdd , m3p1.Port( 'InGate' ) )
-m3p1InGate.AddCoord( 1 , 786 , 132 )
-m3p1InGate.AddCoord( 2 , 785 , 343 )
-
-testN = test.Port( 'N' )
-m3p1anOddInteger = GraphSyrControlDefault.Link( testN , m3p1.Port( 'anOddInteger' ) )
-m3p1anOddInteger.AddCoord( 1 , 767 , 100 )
-m3p1anOddInteger.AddCoord( 2 , 767 , 371 )
-
-div2anEvenInteger = GraphSyrControlDefault.Link( testN , div2.Port( 'anEvenInteger' ) )
-div2anEvenInteger.AddCoord( 1 , 768 , 531 )
-div2anEvenInteger.AddCoord( 2 , 767 , 371 )
-
-testK = test.Port( 'K' )
-EndSwitch_OneEvenK = GraphSyrControlDefault.Link( testK , EndSwitch_OneEven.Port( 'K' ) )
-
-incraCount = GraphSyrControlDefault.Link( testK , incr.Port( 'aCount' ) )
-incraCount.AddCoord( 1 , 773 , 251 )
-incraCount.AddCoord( 2 , 774 , 400 )
-
-testDefault = test.Port( 'Default' )
-EndSwitch_OneEvenDefault = GraphSyrControlDefault.Link( testDefault , EndSwitch_OneEven.Port( 'Default' ) )
-
-control_m3p1OutGate = control_m3p1.Port( 'OutGate' )
-label_testInGate = GraphSyrControlDefault.Link( control_m3p1OutGate , label_test.Port( 'InGate' ) )
-label_testInGate.AddCoord( 1 , 402 , 406 )
-label_testInGate.AddCoord( 2 , 403 , 4 )
-label_testInGate.AddCoord( 3 , 1174 , 5 )
-label_testInGate.AddCoord( 4 , 1175 , 219 )
-
-control_div2OutGate = control_div2.Port( 'OutGate' )
-label_beginInGate = GraphSyrControlDefault.Link( control_div2OutGate , label_begin.Port( 'InGate' ) )
-label_beginInGate.AddCoord( 1 , 3 , 409 )
-label_beginInGate.AddCoord( 2 , 2 , 671 )
-label_beginInGate.AddCoord( 3 , 1199 , 670 )
-label_beginInGate.AddCoord( 4 , 1198 , 592 )
-
-# Creation of Input datas
-label_beginNB = label_begin.Input( 'NB' , 7)
-label_beginKB = label_begin.Input( 'KB' , 0)
-
-# Creation of Output variables
-EndSwitch_OneEvenK = EndSwitch_OneEven.Port( 'K' )
-
-GraphSyrControlDefault.Run()
-GraphSyrControlDefault.DoneW()
-print GraphSyrControlDefault.State()
-GraphSyrControlDefault.PrintPorts()
+# Graph creation of GraphSyrControlDefault
+def DefGraphSyrControlDefault() :
+    GraphSyrControlDefault = Graph( 'GraphSyrControlDefault' )
+    GraphSyrControlDefault.SetName( 'GraphSyrControlDefault' )
+    GraphSyrControlDefault.SetAuthor( 'JR' )
+    GraphSyrControlDefault.SetComment( 'Syracuse algorithm' )
+    GraphSyrControlDefault.Coords( 0 , 0 )
+    
+    # Creation of Factory Nodes
+    
+    test_ISEVEN = GraphSyrControlDefault.FNode( 'SyrComponent' , 'SyrComponent' , 'C_ISEVEN' )
+    test_ISEVEN.SetName( 'test_ISEVEN' )
+    test_ISEVEN.SetAuthor( '' )
+    test_ISEVEN.SetContainer( 'localhost/FactoryServer' )
+    test_ISEVEN.SetComment( 'C_ISEVEN from SyrComponent' )
+    test_ISEVEN.Coords( 205 , 455 )
+    Itest_ISEVENanInteger = test_ISEVEN.GetInPort( 'anInteger' )
+    Itest_ISEVENGate = test_ISEVEN.GetInPort( 'Gate' )
+    Otest_ISEVENBoolEven = test_ISEVEN.GetOutPort( 'BoolEven' )
+    Otest_ISEVENGate = test_ISEVEN.GetOutPort( 'Gate' )
+    
+    test_ISONE = GraphSyrControlDefault.FNode( 'SyrComponent' , 'SyrComponent' , 'C_ISONE' )
+    test_ISONE.SetName( 'test_ISONE' )
+    test_ISONE.SetAuthor( '' )
+    test_ISONE.SetContainer( 'localhost/FactoryServer' )
+    test_ISONE.SetComment( 'C_ISONE from SyrComponent' )
+    test_ISONE.Coords( 211 , 61 )
+    Itest_ISONEanInteger = test_ISONE.GetInPort( 'anInteger' )
+    Itest_ISONEGate = test_ISONE.GetInPort( 'Gate' )
+    Otest_ISONEBoolOne = test_ISONE.GetOutPort( 'BoolOne' )
+    Otest_ISONEGate = test_ISONE.GetOutPort( 'Gate' )
+    
+    m3p1 = GraphSyrControlDefault.FNode( 'SyrComponent' , 'SyrComponent' , 'C_M3P1' )
+    m3p1.SetName( 'm3p1' )
+    m3p1.SetAuthor( '' )
+    m3p1.SetContainer( 'localhost/FactoryServer' )
+    m3p1.SetComment( 'C_M3P1 from SyrComponent' )
+    m3p1.Coords( 806 , 19 )
+    Im3p1anOddInteger = m3p1.GetInPort( 'anOddInteger' )
+    Im3p1Gate = m3p1.GetInPort( 'Gate' )
+    Om3p1anEvenInteger = m3p1.GetOutPort( 'anEvenInteger' )
+    Om3p1Gate = m3p1.GetOutPort( 'Gate' )
+    
+    div2 = GraphSyrControlDefault.FNode( 'SyrComponent' , 'SyrComponent' , 'C_DIV2' )
+    div2.SetName( 'div2' )
+    div2.SetAuthor( '' )
+    div2.SetContainer( 'localhost/FactoryServer' )
+    div2.SetComment( 'C_DIV2 from SyrComponent' )
+    div2.Coords( 807 , 456 )
+    Idiv2anEvenInteger = div2.GetInPort( 'anEvenInteger' )
+    Idiv2Gate = div2.GetInPort( 'Gate' )
+    Odiv2anInteger = div2.GetOutPort( 'anInteger' )
+    Odiv2Gate = div2.GetOutPort( 'Gate' )
+    
+    incr = GraphSyrControlDefault.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' )
+    incr.SetName( 'incr' )
+    incr.SetAuthor( '' )
+    incr.SetContainer( 'localhost/FactoryServer' )
+    incr.SetComment( 'C_INCR from SyrComponent' )
+    incr.Coords( 802 , 170 )
+    IincraCount = incr.GetInPort( 'aCount' )
+    IincrGate = incr.GetInPort( 'Gate' )
+    OincraNewCount = incr.GetOutPort( 'aNewCount' )
+    OincrGate = incr.GetOutPort( 'Gate' )
+    
+    # Creation of InLine Nodes
+    Pylabel_begin = []
+    Pylabel_begin.append( 'def label_begin( NB , KB ):' )
+    Pylabel_begin.append( '    print "label_begin",NB,KB' )
+    Pylabel_begin.append( '    return NB,KB' )
+    label_begin = GraphSyrControlDefault.INode( 'label_begin' , Pylabel_begin )
+    label_begin.SetName( 'label_begin' )
+    label_begin.SetAuthor( '' )
+    label_begin.SetComment( 'Python function' )
+    label_begin.Coords( 15 , 246 )
+    Ilabel_beginNB = label_begin.InPort( 'NB' , 'long' )
+    Ilabel_beginKB = label_begin.InPort( 'KB' , 'long' )
+    Ilabel_beginGate = label_begin.GetInPort( 'Gate' )
+    Olabel_beginNT = label_begin.OutPort( 'NT' , 'long' )
+    Olabel_beginKT = label_begin.OutPort( 'KT' , 'long' )
+    Olabel_beginGate = label_begin.GetOutPort( 'Gate' )
+    
+    Pylabel_test = []
+    Pylabel_test.append( 'def label_test( ValEven , ValOne , NB , KB ):' )
+    Pylabel_test.append( '    print "label_begin",ValEven,ValOne,NB,KB' )
+    Pylabel_test.append( '    return ValEven,ValOne,NB,KB' )
+    label_test = GraphSyrControlDefault.INode( 'label_test' , Pylabel_test )
+    label_test.SetName( 'label_test' )
+    label_test.SetAuthor( '' )
+    label_test.SetComment( 'Python function' )
+    label_test.Coords( 419 , 206 )
+    Ilabel_testValEven = label_test.InPort( 'ValEven' , 'long' )
+    Ilabel_testValOne = label_test.InPort( 'ValOne' , 'long' )
+    Ilabel_testNT = label_test.InPort( 'NT' , 'long' )
+    Ilabel_testKT = label_test.InPort( 'KT' , 'long' )
+    Ilabel_testGate = label_test.GetInPort( 'Gate' )
+    Olabel_testValEven = label_test.OutPort( 'ValEven' , 'long' )
+    Olabel_testValOne = label_test.OutPort( 'ValOne' , 'long' )
+    Olabel_testNT = label_test.OutPort( 'NT' , 'long' )
+    Olabel_testKT = label_test.OutPort( 'KT' , 'long' )
+    Olabel_testGate = label_test.GetOutPort( 'Gate' )
+    
+    # Creation of Switch Nodes
+    Pytest = []
+    Pytest.append( 'def Switch_OneEven( ValOne , ValEven , NT , KT ) :' )
+    Pytest.append( '    Finished = ValOne' )
+    Pytest.append( '    if Finished == 0 :' )
+    Pytest.append( '        Incr = 1' )
+    Pytest.append( '        Even = ValEven' )
+    Pytest.append( '        if Even == 0 :' )
+    Pytest.append( '            Odd = 1' )
+    Pytest.append( '        else :' )
+    Pytest.append( '            Odd = 0' )
+    Pytest.append( '    else :' )
+    Pytest.append( '        Incr = 0' )
+    Pytest.append( '        Even = 0' )
+    Pytest.append( '        Odd = 0' )
+    Pytest.append( '    Even = ValEven' )
+    Pytest.append( '    return Incr,Even,Odd,NT,KT' )
+    test,EndSwitch_OneEven = GraphSyrControlDefault.SNode( 'Switch_OneEven' , Pytest )
+    EndSwitch_OneEven.SetName( 'EndSwitch_OneEven' )
+    EndSwitch_OneEven.SetAuthor( '' )
+    EndSwitch_OneEven.SetComment( 'Compute Node' )
+    EndSwitch_OneEven.Coords( 1073 , 328 )
+    PyEndSwitch_OneEven = []
+    EndSwitch_OneEven.SetPyFunction( '' , PyEndSwitch_OneEven )
+    IEndSwitch_OneEvenK = EndSwitch_OneEven.InPort( 'K' , 'long' )
+    IEndSwitch_OneEvenDefault = EndSwitch_OneEven.GetInPort( 'Default' )
+    OEndSwitch_OneEvenK = EndSwitch_OneEven.OutPort( 'K' , 'long' )
+    OEndSwitch_OneEvenGate = EndSwitch_OneEven.GetOutPort( 'Gate' )
+    test.SetName( 'test' )
+    test.SetAuthor( '' )
+    test.SetComment( 'Compute Node' )
+    test.Coords( 600 , 247 )
+    ItestValOne = test.InPort( 'ValOne' , 'long' )
+    ItestValEven = test.InPort( 'ValEven' , 'long' )
+    ItestNT = test.InPort( 'NT' , 'long' )
+    ItestKT = test.InPort( 'KT' , 'long' )
+    ItestGate = test.GetInPort( 'Gate' )
+    OtestIncr = test.OutPort( 'Incr' , 'long' )
+    OtestEven = test.OutPort( 'Even' , 'long' )
+    OtestOdd = test.OutPort( 'Odd' , 'long' )
+    OtestN = test.OutPort( 'N' , 'long' )
+    OtestK = test.OutPort( 'K' , 'long' )
+    OtestDefault = test.GetOutPort( 'Default' )
+    
+    # Creation of GOTO Nodes
+    Pycontrol_m3p1 = []
+    Pycontrol_m3p1.append( 'def control_m3p1( N , K ):' )
+    Pycontrol_m3p1.append( '    return 0,1,N,K' )
+    control_m3p1 = GraphSyrControlDefault.GNode( 'control_m3p1' , Pycontrol_m3p1 , 'label_test' )
+    control_m3p1.SetName( 'control_m3p1' )
+    control_m3p1.SetAuthor( '' )
+    control_m3p1.SetComment( 'Compute Node' )
+    control_m3p1.Coords( 1002 , 59 )
+    Icontrol_m3p1N = control_m3p1.InPort( 'N' , 'long' )
+    Icontrol_m3p1K = control_m3p1.InPort( 'K' , 'long' )
+    Icontrol_m3p1Gate = control_m3p1.GetInPort( 'Gate' )
+    Ocontrol_m3p1ValOne = control_m3p1.OutPort( 'ValOne' , 'long' )
+    Ocontrol_m3p1ValEven = control_m3p1.OutPort( 'ValEven' , 'long' )
+    Ocontrol_m3p1NT = control_m3p1.OutPort( 'NT' , 'long' )
+    Ocontrol_m3p1KT = control_m3p1.OutPort( 'KT' , 'long' )
+    Ocontrol_m3p1Gate = control_m3p1.GetOutPort( 'Gate' )
+    
+    Pycontrol_div2 = []
+    Pycontrol_div2.append( 'def control_div2( N , NB ) :' )
+    Pycontrol_div2.append( '    return N,NB' )
+    control_div2 = GraphSyrControlDefault.GNode( 'control_div2' , Pycontrol_div2 , 'label_begin' )
+    control_div2.SetName( 'control_div2' )
+    control_div2.SetAuthor( '' )
+    control_div2.SetComment( 'Compute Node' )
+    control_div2.Coords( 1013 , 496 )
+    Icontrol_div2N = control_div2.InPort( 'N' , 'long' )
+    Icontrol_div2K = control_div2.InPort( 'K' , 'long' )
+    Icontrol_div2Gate = control_div2.GetInPort( 'Gate' )
+    Ocontrol_div2NB = control_div2.OutPort( 'NB' , 'long' )
+    Ocontrol_div2KB = control_div2.OutPort( 'KB' , 'long' )
+    Ocontrol_div2Gate = control_div2.GetOutPort( 'Gate' )
+    
+    # Creation of Links
+    Ltest_ISEVENBoolEvenlabel_testValEven = GraphSyrControlDefault.Link( Otest_ISEVENBoolEven , Ilabel_testValEven )
+    Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 1 , 382 , 277 )
+    Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 2 , 382 , 524 )
+    
+    Ltest_ISONEBoolOnelabel_testValOne = GraphSyrControlDefault.Link( Otest_ISONEBoolOne , Ilabel_testValOne )
+    Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 1 , 394 , 299 )
+    Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 2 , 393 , 133 )
+    
+    Lm3p1anEvenIntegercontrol_m3p1N = GraphSyrControlDefault.Link( Om3p1anEvenInteger , Icontrol_m3p1N )
+    
+    Ldiv2anIntegercontrol_div2N = GraphSyrControlDefault.Link( Odiv2anInteger , Icontrol_div2N )
+    
+    LincraNewCountcontrol_m3p1K = GraphSyrControlDefault.Link( OincraNewCount , Icontrol_m3p1K )
+    LincraNewCountcontrol_m3p1K.AddCoord( 1 , 984 , 111 )
+    LincraNewCountcontrol_m3p1K.AddCoord( 2 , 986 , 241 )
+    
+    LincraNewCountcontrol_div2K = GraphSyrControlDefault.Link( OincraNewCount , Icontrol_div2K )
+    LincraNewCountcontrol_div2K.AddCoord( 1 , 987 , 547 )
+    LincraNewCountcontrol_div2K.AddCoord( 2 , 985 , 242 )
+    
+    Llabel_beginNTlabel_testNT = GraphSyrControlDefault.Link( Olabel_beginNT , Ilabel_testNT )
+    
+    Llabel_beginNTtest_ISEVENanInteger = GraphSyrControlDefault.Link( Olabel_beginNT , Itest_ISEVENanInteger )
+    Llabel_beginNTtest_ISEVENanInteger.AddCoord( 1 , 191 , 524 )
+    Llabel_beginNTtest_ISEVENanInteger.AddCoord( 2 , 193 , 317 )
+    
+    Llabel_beginNTtest_ISONEanInteger = GraphSyrControlDefault.Link( Olabel_beginNT , Itest_ISONEanInteger )
+    Llabel_beginNTtest_ISONEanInteger.AddCoord( 1 , 192 , 131 )
+    Llabel_beginNTtest_ISONEanInteger.AddCoord( 2 , 194 , 317 )
+    
+    Llabel_beginKTlabel_testKT = GraphSyrControlDefault.Link( Olabel_beginKT , Ilabel_testKT )
+    
+    Llabel_testValEventestValEven = GraphSyrControlDefault.Link( Olabel_testValEven , ItestValEven )
+    
+    Llabel_testValOnetestValOne = GraphSyrControlDefault.Link( Olabel_testValOne , ItestValOne )
+    
+    Llabel_testNTtestNT = GraphSyrControlDefault.Link( Olabel_testNT , ItestNT )
+    
+    Llabel_testKTtestKT = GraphSyrControlDefault.Link( Olabel_testKT , ItestKT )
+    
+    LtestEvendiv2Gate = GraphSyrControlDefault.Link( OtestEven , Idiv2Gate )
+    LtestEvendiv2Gate.AddCoord( 1 , 798 , 551 )
+    LtestEvendiv2Gate.AddCoord( 2 , 797 , 299 )
+    
+    LtestOddm3p1Gate = GraphSyrControlDefault.Link( OtestOdd , Im3p1Gate )
+    LtestOddm3p1Gate.AddCoord( 1 , 788 , 115 )
+    LtestOddm3p1Gate.AddCoord( 2 , 789 , 318 )
+    
+    LtestNm3p1anOddInteger = GraphSyrControlDefault.Link( OtestN , Im3p1anOddInteger )
+    LtestNm3p1anOddInteger.AddCoord( 1 , 780 , 90 )
+    LtestNm3p1anOddInteger.AddCoord( 2 , 781 , 339 )
+    
+    LtestNdiv2anEvenInteger = GraphSyrControlDefault.Link( OtestN , Idiv2anEvenInteger )
+    LtestNdiv2anEvenInteger.AddCoord( 1 , 783 , 528 )
+    LtestNdiv2anEvenInteger.AddCoord( 2 , 781 , 339 )
+    
+    LtestKEndSwitch_OneEvenK = GraphSyrControlDefault.Link( OtestK , IEndSwitch_OneEvenK )
+    
+    LtestKincraCount = GraphSyrControlDefault.Link( OtestK , IincraCount )
+    LtestKincraCount.AddCoord( 1 , 771 , 239 )
+    LtestKincraCount.AddCoord( 2 , 771 , 358 )
+    
+    LtestDefaultEndSwitch_OneEvenDefault = GraphSyrControlDefault.Link( OtestDefault , IEndSwitch_OneEvenDefault )
+    
+    Lcontrol_m3p1Gatelabel_testGate = GraphSyrControlDefault.Link( Ocontrol_m3p1Gate , Ilabel_testGate )
+    Lcontrol_m3p1Gatelabel_testGate.AddCoord( 1 , 402 , 361 )
+    Lcontrol_m3p1Gatelabel_testGate.AddCoord( 2 , 403 , 4 )
+    Lcontrol_m3p1Gatelabel_testGate.AddCoord( 3 , 1174 , 5 )
+    Lcontrol_m3p1Gatelabel_testGate.AddCoord( 4 , 1179 , 172 )
+    
+    Lcontrol_div2Gatelabel_beginGate = GraphSyrControlDefault.Link( Ocontrol_div2Gate , Ilabel_beginGate )
+    Lcontrol_div2Gatelabel_beginGate.AddCoord( 1 , 2 , 361 )
+    Lcontrol_div2Gatelabel_beginGate.AddCoord( 2 , 2 , 671 )
+    Lcontrol_div2Gatelabel_beginGate.AddCoord( 3 , 1199 , 670 )
+    Lcontrol_div2Gatelabel_beginGate.AddCoord( 4 , 1198 , 571 )
+    
+    # Input datas
+    Ilabel_beginNB.Input( 7 )
+    Ilabel_beginKB.Input( 0 )
+    
+    # Output Ports of the graph
+    #OtestIncr = test.GetOutPort( 'Incr' )
+    #OEndSwitch_OneEvenK = EndSwitch_OneEven.GetOutPort( 'K' )
+    return GraphSyrControlDefault
+
+
+GraphSyrControlDefault = DefGraphSyrControlDefault()
index 8cf9d4d96e6e5d4a10895aec9eb53b71e8d534a2..678abcb66cb41c2227f21336c89986061bdfb570 100644 (file)
-<!DOCTYPE Dataflow>
+<!DOCTYPE SuperGraph>
+<supergraph>
 <dataflow>
 <info-list>
 <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>GraphSyrControlDefault</node-name>
-   <kind>1</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>GraphSyrControlDefault</node-name>
+    <kind>1</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>GraphSyrControlDefault</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>label_begin\NB</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>label_begin__NB</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>label_begin\KB</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>label_begin__KB</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>EndSwitch_OneEven\K</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <DataStream-list/>
-   <PyFunction-list/>
-   <creation-date>19/3/2003 - 16:49:51</creation-date>
-   <lastmodification-date>18/3/2004 - 13:59:54</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>JR</author>
-   <container>?</container>
-   <comment>Syracuse algorithm</comment>
-   <x-position>0</x-position>
-   <y-position>0</y-position>  </node> </info-list>
- <node-list>
+       <outParameter-name>test__Incr</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>EndSwitch_OneEven__K</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>19/3/2003 - 16:49:51</creation-date>
+    <lastmodification-date>14/2/2005 - 14:45:10</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>JR</author>
+    <container>?</container>
+    <comment>Syracuse algorithm</comment>
+    <x-position>0</x-position>
+    <y-position>0</y-position>   </node>  </info-list>
+  <node-list>
 <node>
 <component-name>SyrComponent</component-name>
-   <interface-name>SyrComponent</interface-name>
-   <node-name>test_ISEVEN</node-name>
-   <kind>0</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>SyrComponent</interface-name>
+    <node-name>test_ISEVEN</node-name>
+    <kind>0</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>C_ISEVEN</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>anInteger</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>anInteger</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>BoolEven</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <DataStream-list/>
-   <PyFunction-list/>
-   <creation-date>18/3/2004 - 13:59:54</creation-date>
-   <lastmodification-date>18/3/2004 - 13:59:54</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>localhost/FactoryServer</container>
-   <comment>C_ISEVEN from SyrComponent</comment>
-   <x-position>204</x-position>
-   <y-position>444</y-position>  </node>
-  <node>
+       <outParameter-name>BoolEven</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>14/2/2005 - 14:45:10</creation-date>
+    <lastmodification-date>14/2/2005 - 14:45:10</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>localhost/FactoryServer</container>
+    <comment>C_ISEVEN from SyrComponent</comment>
+    <x-position>205</x-position>
+    <y-position>455</y-position>   </node>
+   <node>
 <component-name>SyrComponent</component-name>
-   <interface-name>SyrComponent</interface-name>
-   <node-name>test_ISONE</node-name>
-   <kind>0</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>SyrComponent</interface-name>
+    <node-name>test_ISONE</node-name>
+    <kind>0</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>C_ISONE</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>anInteger</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>anInteger</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>BoolOne</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <DataStream-list/>
-   <PyFunction-list/>
-   <creation-date>18/3/2004 - 13:59:54</creation-date>
-   <lastmodification-date>18/3/2004 - 13:59:54</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>localhost/FactoryServer</container>
-   <comment>C_ISONE from SyrComponent</comment>
-   <x-position>201</x-position>
-   <y-position>52</y-position>  </node>
-  <node>
+       <outParameter-name>BoolOne</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>14/2/2005 - 14:45:10</creation-date>
+    <lastmodification-date>14/2/2005 - 14:45:10</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>localhost/FactoryServer</container>
+    <comment>C_ISONE from SyrComponent</comment>
+    <x-position>211</x-position>
+    <y-position>61</y-position>   </node>
+   <node>
 <component-name>SyrComponent</component-name>
-   <interface-name>SyrComponent</interface-name>
-   <node-name>m3p1</node-name>
-   <kind>0</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>SyrComponent</interface-name>
+    <node-name>m3p1</node-name>
+    <kind>0</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>C_M3P1</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>anOddInteger</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>anOddInteger</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>anEvenInteger</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <DataStream-list/>
-   <PyFunction-list/>
-   <creation-date>18/3/2004 - 13:59:54</creation-date>
-   <lastmodification-date>18/3/2004 - 13:59:54</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>localhost/FactoryServer</container>
-   <comment>C_M3P1 from SyrComponent</comment>
-   <x-position>806</x-position>
-   <y-position>19</y-position>  </node>
-  <node>
+       <outParameter-name>anEvenInteger</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>14/2/2005 - 14:45:10</creation-date>
+    <lastmodification-date>14/2/2005 - 14:45:10</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>localhost/FactoryServer</container>
+    <comment>C_M3P1 from SyrComponent</comment>
+    <x-position>806</x-position>
+    <y-position>19</y-position>   </node>
+   <node>
 <component-name>SyrComponent</component-name>
-   <interface-name>SyrComponent</interface-name>
-   <node-name>div2</node-name>
-   <kind>0</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>SyrComponent</interface-name>
+    <node-name>div2</node-name>
+    <kind>0</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>C_DIV2</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>anEvenInteger</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>anEvenInteger</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>anInteger</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <DataStream-list/>
-   <PyFunction-list/>
-   <creation-date>18/3/2004 - 13:59:54</creation-date>
-   <lastmodification-date>18/3/2004 - 13:59:54</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>localhost/FactoryServer</container>
-   <comment>C_DIV2 from SyrComponent</comment>
-   <x-position>803</x-position>
-   <y-position>451</y-position>  </node>
-  <node>
+       <outParameter-name>anInteger</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>14/2/2005 - 14:45:10</creation-date>
+    <lastmodification-date>14/2/2005 - 14:45:10</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>localhost/FactoryServer</container>
+    <comment>C_DIV2 from SyrComponent</comment>
+    <x-position>807</x-position>
+    <y-position>456</y-position>   </node>
+   <node>
 <component-name>SyrComponent</component-name>
-   <interface-name>SyrComponent</interface-name>
-   <node-name>incr</node-name>
-   <kind>0</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>SyrComponent</interface-name>
+    <node-name>incr</node-name>
+    <kind>0</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>C_INCR</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>aCount</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>aCount</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>aNewCount</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <DataStream-list/>
-   <PyFunction-list/>
-   <creation-date>18/3/2004 - 13:59:54</creation-date>
-   <lastmodification-date>18/3/2004 - 13:59:54</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>localhost/FactoryServer</container>
-   <comment>C_INCR from SyrComponent</comment>
-   <x-position>802</x-position>
-   <y-position>170</y-position>  </node>
-  <node>
+       <outParameter-name>aNewCount</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>14/2/2005 - 14:45:10</creation-date>
+    <lastmodification-date>14/2/2005 - 14:45:10</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>localhost/FactoryServer</container>
+    <comment>C_INCR from SyrComponent</comment>
+    <x-position>802</x-position>
+    <y-position>170</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>label_begin</node-name>
-   <kind>3</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>label_begin</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>label_begin</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>NB</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>NB</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>KB</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>KB</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>NT</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>NT</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>KT</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <DataStream-list/>
-   <PyFunction-list>
+       <outParameter-name>KT</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>label_begin</FuncName>
-     <PyFunc><![CDATA[def label_begin( NB , KB ):]]></PyFunc>
-     <PyFunc><![CDATA[    print "label_begin",NB,KB]]></PyFunc>
-     <PyFunc><![CDATA[    return NB,KB]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>18/3/2004 - 13:59:54</creation-date>
-   <lastmodification-date>18/3/2004 - 13:59:54</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>Python function</comment>
-   <x-position>12</x-position>
-   <y-position>264</y-position>  </node>
-  <node>
+      <PyFunc><![CDATA[def label_begin( NB , KB ):]]></PyFunc>
+      <PyFunc><![CDATA[    print "label_begin",NB,KB]]></PyFunc>
+      <PyFunc><![CDATA[    return NB,KB]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 14:45:10</creation-date>
+    <lastmodification-date>14/2/2005 - 14:45:10</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Python function</comment>
+    <x-position>15</x-position>
+    <y-position>246</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>label_test</node-name>
-   <kind>3</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>label_test</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>label_test</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>ValEven</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>ValEven</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>ValOne</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>ValOne</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>NT</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>NT</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>KT</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>KT</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>ValEven</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>ValEven</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>ValOne</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>ValOne</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>NT</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>NT</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>KT</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <DataStream-list/>
-   <PyFunction-list>
+       <outParameter-name>KT</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>label_test</FuncName>
-     <PyFunc><![CDATA[def label_test( ValEven , ValOne , NB , KB ):]]></PyFunc>
-     <PyFunc><![CDATA[    print "label_begin",ValEven,ValOne,NB,KB]]></PyFunc>
-     <PyFunc><![CDATA[    return ValEven,ValOne,NB,KB]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>18/3/2004 - 13:59:54</creation-date>
-   <lastmodification-date>18/3/2004 - 13:59:54</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>Python function</comment>
-   <x-position>415</x-position>
-   <y-position>206</y-position>  </node>
-  <node>
+      <PyFunc><![CDATA[def label_test( ValEven , ValOne , NB , KB ):]]></PyFunc>
+      <PyFunc><![CDATA[    print "label_begin",ValEven,ValOne,NB,KB]]></PyFunc>
+      <PyFunc><![CDATA[    return ValEven,ValOne,NB,KB]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 14:45:10</creation-date>
+    <lastmodification-date>14/2/2005 - 14:45:10</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Python function</comment>
+    <x-position>419</x-position>
+    <y-position>206</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>test</node-name>
-   <kind>6</kind>
-   <coupled-node>EndSwitch_OneEven</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>test</node-name>
+    <kind>6</kind>
+    <coupled-node>EndSwitch_OneEven</coupled-node>
+    <service>
 <service-name>test</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>ValOne</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>ValOne</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>ValEven</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>ValEven</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>NT</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>NT</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>KT</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>KT</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Incr</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Incr</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Even</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Even</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Odd</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>N</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>N</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>K</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <DataStream-list/>
-   <PyFunction-list>
+       <outParameter-name>K</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>Switch_OneEven</FuncName>
-     <PyFunc><![CDATA[def Switch_OneEven( ValOne , ValEven , NT , KT ) :]]></PyFunc>
-     <PyFunc><![CDATA[    Finished = ValOne]]></PyFunc>
-     <PyFunc><![CDATA[    if Finished == 0 :]]></PyFunc>
-     <PyFunc><![CDATA[        Incr = 1]]></PyFunc>
-     <PyFunc><![CDATA[        Even = ValEven]]></PyFunc>
-     <PyFunc><![CDATA[        if Even == 0 :]]></PyFunc>
-     <PyFunc><![CDATA[            Odd = 1]]></PyFunc>
-     <PyFunc><![CDATA[        else :]]></PyFunc>
-     <PyFunc><![CDATA[            Odd = 0]]></PyFunc>
-     <PyFunc><![CDATA[    else :]]></PyFunc>
-     <PyFunc><![CDATA[        Incr = 0]]></PyFunc>
-     <PyFunc><![CDATA[        Even = 0]]></PyFunc>
-     <PyFunc><![CDATA[        Odd = 0]]></PyFunc>
-     <PyFunc><![CDATA[    Even = ValEven]]></PyFunc>
-     <PyFunc><![CDATA[    return Incr,Even,Odd,NT,KT]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>18/3/2004 - 13:59:54</creation-date>
-   <lastmodification-date>18/3/2004 - 13:59:54</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>597</x-position>
-   <y-position>251</y-position>  </node>
-  <node>
+      <PyFunc><![CDATA[def Switch_OneEven( ValOne , ValEven , NT , KT ) :]]></PyFunc>
+      <PyFunc><![CDATA[    Finished = ValOne]]></PyFunc>
+      <PyFunc><![CDATA[    if Finished == 0 :]]></PyFunc>
+      <PyFunc><![CDATA[        Incr = 1]]></PyFunc>
+      <PyFunc><![CDATA[        Even = ValEven]]></PyFunc>
+      <PyFunc><![CDATA[        if Even == 0 :]]></PyFunc>
+      <PyFunc><![CDATA[            Odd = 1]]></PyFunc>
+      <PyFunc><![CDATA[        else :]]></PyFunc>
+      <PyFunc><![CDATA[            Odd = 0]]></PyFunc>
+      <PyFunc><![CDATA[    else :]]></PyFunc>
+      <PyFunc><![CDATA[        Incr = 0]]></PyFunc>
+      <PyFunc><![CDATA[        Even = 0]]></PyFunc>
+      <PyFunc><![CDATA[        Odd = 0]]></PyFunc>
+      <PyFunc><![CDATA[    Even = ValEven]]></PyFunc>
+      <PyFunc><![CDATA[    return Incr,Even,Odd,NT,KT]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 14:45:10</creation-date>
+    <lastmodification-date>14/2/2005 - 14:45:10</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>600</x-position>
+    <y-position>247</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>EndSwitch_OneEven</node-name>
-   <kind>7</kind>
-   <coupled-node>test</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>EndSwitch_OneEven</node-name>
+    <kind>7</kind>
+    <coupled-node>test</coupled-node>
+    <service>
 <service-name>EndSwitch_OneEven</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>K</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>K</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>K</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <DataStream-list/>
-   <PyFunction-list>
+       <outParameter-name>K</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>?</FuncName>
-     <PyFunc><![CDATA[?]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>18/3/2004 - 13:59:54</creation-date>
-   <lastmodification-date>18/3/2004 - 13:59:54</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>1074</x-position>
-   <y-position>367</y-position>  </node>
-  <node>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 14:45:10</creation-date>
+    <lastmodification-date>14/2/2005 - 14:45:10</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>1073</x-position>
+    <y-position>328</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>control_m3p1</node-name>
-   <kind>8</kind>
-   <coupled-node>label_test</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>control_m3p1</node-name>
+    <kind>8</kind>
+    <coupled-node>label_test</coupled-node>
+    <service>
 <service-name>control_m3p1</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>N</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>N</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>K</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>K</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>ValOne</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>ValOne</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>ValEven</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>ValEven</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>NT</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>NT</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>KT</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <DataStream-list/>
-   <PyFunction-list>
+       <outParameter-name>KT</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>control_m3p1</FuncName>
-     <PyFunc><![CDATA[def control_m3p1( N , K ):]]></PyFunc>
-     <PyFunc><![CDATA[    return 0,1,N,K]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>18/3/2004 - 13:59:54</creation-date>
-   <lastmodification-date>18/3/2004 - 13:59:54</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>1002</x-position>
-   <y-position>64</y-position>  </node>
-  <node>
+      <PyFunc><![CDATA[def control_m3p1( N , K ):]]></PyFunc>
+      <PyFunc><![CDATA[    return 0,1,N,K]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 14:45:10</creation-date>
+    <lastmodification-date>14/2/2005 - 14:45:10</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>1002</x-position>
+    <y-position>59</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>control_div2</node-name>
-   <kind>8</kind>
-   <coupled-node>label_begin</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>control_div2</node-name>
+    <kind>8</kind>
+    <coupled-node>label_begin</coupled-node>
+    <service>
 <service-name>control_div2</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>N</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>N</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>K</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>K</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>NB</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>NB</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>KB</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <DataStream-list/>
-   <PyFunction-list>
+       <outParameter-name>KB</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>control_div2</FuncName>
-     <PyFunc><![CDATA[def control_div2( N , NB ) :]]></PyFunc>
-     <PyFunc><![CDATA[    return N,NB]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>18/3/2004 - 13:59:54</creation-date>
-   <lastmodification-date>18/3/2004 - 13:59:54</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>1013</x-position>
-   <y-position>496</y-position>  </node> </node-list>
- <link-list>
+      <PyFunc><![CDATA[def control_div2( N , NB ) :]]></PyFunc>
+      <PyFunc><![CDATA[    return N,NB]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>14/2/2005 - 14:45:10</creation-date>
+    <lastmodification-date>14/2/2005 - 14:45:10</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>1013</x-position>
+    <y-position>496</y-position>   </node>  </node-list>
 <link-list>
 <link>
 <fromnode-name>test_ISEVEN</fromnode-name>
-   <fromserviceparameter-name>BoolEven</fromserviceparameter-name>
-   <tonode-name>label_test</tonode-name>
-   <toserviceparameter-name>ValEven</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>BoolEven</fromserviceparameter-name>
+    <tonode-name>label_test</tonode-name>
+    <toserviceparameter-name>ValEven</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>381</x>
-     <y>286</y>    </coord>
-    <coord>
 <x>382</x>
-     <y>524</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>277</y>     </coord>
+     <coord>
+<x>382</x>
+      <y>524</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>test_ISONE</fromnode-name>
-   <fromserviceparameter-name>BoolOne</fromserviceparameter-name>
-   <tonode-name>label_test</tonode-name>
-   <toserviceparameter-name>ValOne</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>BoolOne</fromserviceparameter-name>
+    <tonode-name>label_test</tonode-name>
+    <toserviceparameter-name>ValOne</toserviceparameter-name>
+    <coord-list>
 <coord>
+<x>394</x>
+      <y>299</y>     </coord>
+     <coord>
 <x>393</x>
-     <y>314</y>    </coord>
-    <coord>
-<x>393</x>
-     <y>133</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>133</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>m3p1</fromnode-name>
-   <fromserviceparameter-name>anEvenInteger</fromserviceparameter-name>
-   <tonode-name>control_m3p1</tonode-name>
-   <toserviceparameter-name>N</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>anEvenInteger</fromserviceparameter-name>
+    <tonode-name>control_m3p1</tonode-name>
+    <toserviceparameter-name>N</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>div2</fromnode-name>
-   <fromserviceparameter-name>anInteger</fromserviceparameter-name>
-   <tonode-name>control_div2</tonode-name>
-   <toserviceparameter-name>N</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>anInteger</fromserviceparameter-name>
+    <tonode-name>control_div2</tonode-name>
+    <toserviceparameter-name>N</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>incr</fromnode-name>
-   <fromserviceparameter-name>aNewCount</fromserviceparameter-name>
-   <tonode-name>control_m3p1</tonode-name>
-   <toserviceparameter-name>K</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>aNewCount</fromserviceparameter-name>
+    <tonode-name>control_m3p1</tonode-name>
+    <toserviceparameter-name>K</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>985</x>
-     <y>128</y>    </coord>
-    <coord>
-<x>985</x>
-     <y>250</y>    </coord>   </coord-list>  </link>
-  <link>
+<x>984</x>
+      <y>111</y>     </coord>
+     <coord>
+<x>986</x>
+      <y>241</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>incr</fromnode-name>
-   <fromserviceparameter-name>aNewCount</fromserviceparameter-name>
-   <tonode-name>control_div2</tonode-name>
-   <toserviceparameter-name>K</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>aNewCount</fromserviceparameter-name>
+    <tonode-name>control_div2</tonode-name>
+    <toserviceparameter-name>K</toserviceparameter-name>
+    <coord-list>
 <coord>
 <x>987</x>
-     <y>559</y>    </coord>
-    <coord>
+      <y>547</y>     </coord>
+     <coord>
 <x>985</x>
-     <y>250</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>242</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>label_begin</fromnode-name>
-   <fromserviceparameter-name>NT</fromserviceparameter-name>
-   <tonode-name>label_test</tonode-name>
-   <toserviceparameter-name>NT</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>NT</fromserviceparameter-name>
+    <tonode-name>label_test</tonode-name>
+    <toserviceparameter-name>NT</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>label_begin</fromnode-name>
-   <fromserviceparameter-name>NT</fromserviceparameter-name>
-   <tonode-name>test_ISEVEN</tonode-name>
-   <toserviceparameter-name>anInteger</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>NT</fromserviceparameter-name>
+    <tonode-name>test_ISEVEN</tonode-name>
+    <toserviceparameter-name>anInteger</toserviceparameter-name>
+    <coord-list>
 <coord>
 <x>191</x>
-     <y>524</y>    </coord>
-    <coord>
-<x>192</x>
-     <y>345</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>524</y>     </coord>
+     <coord>
+<x>193</x>
+      <y>317</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>label_begin</fromnode-name>
-   <fromserviceparameter-name>NT</fromserviceparameter-name>
-   <tonode-name>test_ISONE</tonode-name>
-   <toserviceparameter-name>anInteger</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>NT</fromserviceparameter-name>
+    <tonode-name>test_ISONE</tonode-name>
+    <toserviceparameter-name>anInteger</toserviceparameter-name>
+    <coord-list>
 <coord>
 <x>192</x>
-     <y>131</y>    </coord>
-    <coord>
-<x>193</x>
-     <y>345</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>131</y>     </coord>
+     <coord>
+<x>194</x>
+      <y>317</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>label_begin</fromnode-name>
-   <fromserviceparameter-name>KT</fromserviceparameter-name>
-   <tonode-name>label_test</tonode-name>
-   <toserviceparameter-name>KT</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>KT</fromserviceparameter-name>
+    <tonode-name>label_test</tonode-name>
+    <toserviceparameter-name>KT</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>ValEven</fromserviceparameter-name>
-   <tonode-name>test</tonode-name>
-   <toserviceparameter-name>ValEven</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>ValEven</fromserviceparameter-name>
+    <tonode-name>test</tonode-name>
+    <toserviceparameter-name>ValEven</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>ValOne</fromserviceparameter-name>
-   <tonode-name>test</tonode-name>
-   <toserviceparameter-name>ValOne</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>ValOne</fromserviceparameter-name>
+    <tonode-name>test</tonode-name>
+    <toserviceparameter-name>ValOne</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>NT</fromserviceparameter-name>
-   <tonode-name>test</tonode-name>
-   <toserviceparameter-name>NT</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>NT</fromserviceparameter-name>
+    <tonode-name>test</tonode-name>
+    <toserviceparameter-name>NT</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>KT</fromserviceparameter-name>
-   <tonode-name>test</tonode-name>
-   <toserviceparameter-name>KT</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>KT</fromserviceparameter-name>
+    <tonode-name>test</tonode-name>
+    <toserviceparameter-name>KT</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>test</fromnode-name>
-   <fromserviceparameter-name>Incr</fromserviceparameter-name>
-   <tonode-name>incr</tonode-name>
-   <toserviceparameter-name>InGate</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
-<fromnode-name>test</fromnode-name>
-   <fromserviceparameter-name>Even</fromserviceparameter-name>
-   <tonode-name>div2</tonode-name>
-   <toserviceparameter-name>InGate</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>div2</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>793</x>
-     <y>567</y>    </coord>
-    <coord>
-<x>792</x>
-     <y>314</y>    </coord>   </coord-list>  </link>
-  <link>
+<x>798</x>
+      <y>551</y>     </coord>
+     <coord>
+<x>797</x>
+      <y>299</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>test</fromnode-name>
-   <fromserviceparameter-name>Odd</fromserviceparameter-name>
-   <tonode-name>m3p1</tonode-name>
-   <toserviceparameter-name>InGate</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>m3p1</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>786</x>
-     <y>132</y>    </coord>
-    <coord>
-<x>785</x>
-     <y>343</y>    </coord>   </coord-list>  </link>
-  <link>
+<x>788</x>
+      <y>115</y>     </coord>
+     <coord>
+<x>789</x>
+      <y>318</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>test</fromnode-name>
-   <fromserviceparameter-name>N</fromserviceparameter-name>
-   <tonode-name>m3p1</tonode-name>
-   <toserviceparameter-name>anOddInteger</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>N</fromserviceparameter-name>
+    <tonode-name>m3p1</tonode-name>
+    <toserviceparameter-name>anOddInteger</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>767</x>
-     <y>100</y>    </coord>
-    <coord>
-<x>767</x>
-     <y>371</y>    </coord>   </coord-list>  </link>
-  <link>
+<x>780</x>
+      <y>90</y>     </coord>
+     <coord>
+<x>781</x>
+      <y>339</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>test</fromnode-name>
-   <fromserviceparameter-name>N</fromserviceparameter-name>
-   <tonode-name>div2</tonode-name>
-   <toserviceparameter-name>anEvenInteger</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>N</fromserviceparameter-name>
+    <tonode-name>div2</tonode-name>
+    <toserviceparameter-name>anEvenInteger</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>768</x>
-     <y>531</y>    </coord>
-    <coord>
-<x>767</x>
-     <y>371</y>    </coord>   </coord-list>  </link>
-  <link>
+<x>783</x>
+      <y>528</y>     </coord>
+     <coord>
+<x>781</x>
+      <y>339</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>test</fromnode-name>
-   <fromserviceparameter-name>K</fromserviceparameter-name>
-   <tonode-name>EndSwitch_OneEven</tonode-name>
-   <toserviceparameter-name>K</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>K</fromserviceparameter-name>
+    <tonode-name>EndSwitch_OneEven</tonode-name>
+    <toserviceparameter-name>K</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>test</fromnode-name>
-   <fromserviceparameter-name>K</fromserviceparameter-name>
-   <tonode-name>incr</tonode-name>
-   <toserviceparameter-name>aCount</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>K</fromserviceparameter-name>
+    <tonode-name>incr</tonode-name>
+    <toserviceparameter-name>aCount</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>773</x>
-     <y>251</y>    </coord>
-    <coord>
-<x>774</x>
-     <y>400</y>    </coord>   </coord-list>  </link>
-  <link>
+<x>771</x>
+      <y>239</y>     </coord>
+     <coord>
+<x>771</x>
+      <y>358</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>test</fromnode-name>
-   <fromserviceparameter-name>Default</fromserviceparameter-name>
-   <tonode-name>EndSwitch_OneEven</tonode-name>
-   <toserviceparameter-name>Default</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>Default</fromserviceparameter-name>
+    <tonode-name>EndSwitch_OneEven</tonode-name>
+    <toserviceparameter-name>Default</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>control_m3p1</fromnode-name>
-   <fromserviceparameter-name>OutGate</fromserviceparameter-name>
-   <tonode-name>label_test</tonode-name>
-   <toserviceparameter-name>InGate</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>Gate</fromserviceparameter-name>
+    <tonode-name>label_test</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list>
 <coord>
 <x>402</x>
-     <y>406</y>    </coord>
-    <coord>
+      <y>361</y>     </coord>
+     <coord>
 <x>403</x>
-     <y>4</y>    </coord>
-    <coord>
+      <y>4</y>     </coord>
+     <coord>
 <x>1174</x>
-     <y>5</y>    </coord>
-    <coord>
-<x>1175</x>
-     <y>219</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>5</y>     </coord>
+     <coord>
+<x>1179</x>
+      <y>172</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>control_div2</fromnode-name>
-   <fromserviceparameter-name>OutGate</fromserviceparameter-name>
-   <tonode-name>label_begin</tonode-name>
-   <toserviceparameter-name>InGate</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>Gate</fromserviceparameter-name>
+    <tonode-name>label_begin</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list>
 <coord>
-<x>3</x>
-     <y>409</y>    </coord>
-    <coord>
 <x>2</x>
-     <y>671</y>    </coord>
-    <coord>
+      <y>361</y>     </coord>
+     <coord>
+<x>2</x>
+      <y>671</y>     </coord>
+     <coord>
 <x>1199</x>
-     <y>670</y>    </coord>
-    <coord>
+      <y>670</y>     </coord>
+     <coord>
 <x>1198</x>
-     <y>592</y>    </coord>   </coord-list>  </link> </link-list>
- <data-list>
+      <y>571</y>     </coord>    </coord-list>   </link>  </link-list>
 <data-list>
 <data>
 <fromnode-name>GraphSyrControlDefault</fromnode-name>
-   <fromserviceparameter-name>label_begin\NB</fromserviceparameter-name>
-   <tonode-name>label_begin</tonode-name>
-   <toserviceparameter-name>NB</toserviceparameter-name>
-   <data-value>
+    <fromserviceparameter-name>label_begin__NB</fromserviceparameter-name>
+    <tonode-name>label_begin</tonode-name>
+    <toserviceparameter-name>NB</toserviceparameter-name>
+    <data-value>
 <value-type>3</value-type>
-    <value>7</value>   </data-value>
-   <coord-list/>  </data>
-  <data>
+     <value>7</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
 <fromnode-name>GraphSyrControlDefault</fromnode-name>
-   <fromserviceparameter-name>label_begin\KB</fromserviceparameter-name>
-   <tonode-name>label_begin</tonode-name>
-   <toserviceparameter-name>KB</toserviceparameter-name>
-   <data-value>
+    <fromserviceparameter-name>label_begin__KB</fromserviceparameter-name>
+    <tonode-name>label_begin</tonode-name>
+    <toserviceparameter-name>KB</toserviceparameter-name>
+    <data-value>
 <value-type>3</value-type>
-    <value>0</value>   </data-value>
-   <coord-list/>  </data> </data-list></dataflow>
+     <value>0</value>    </data-value>
+    <coord-list/>   </data>  </data-list> </dataflow></supergraph>
index c8ce801b27b704d033313da2ee182437256ac29b..fd493c0a37efcca47d1ecc3a6c72806deb28924e 100644 (file)
 
-# Generated python file of Graph GraphSyrControlGUI
+# Generated python file of Graph GraphSyrControlGUI_2
 
 from SuperV import *
-# Graph creation 
-GraphSyrControlGUI = Graph( 'GraphSyrControlGUI' )
-GraphSyrControlGUI.SetName( 'GraphSyrControlGUI' )
-GraphSyrControlGUI.SetAuthor( 'JR' )
-GraphSyrControlGUI.SetComment( 'Syracuse algorithm' )
-GraphSyrControlGUI.Coords( 0 , 0 )
 
-# Creation of Factory Nodes
-
-test_ISEVEN = GraphSyrControlGUI.FNode( 'SyrComponent' , 'SyrComponent' , 'C_ISEVEN' )
-test_ISEVEN.SetName( 'test_ISEVEN' )
-test_ISEVEN.SetAuthor( '' )
-test_ISEVEN.SetContainer( 'localhost/FactoryServer' )
-test_ISEVEN.SetComment( 'C_ISEVEN from SyrComponent' )
-test_ISEVEN.Coords( 288 , 337 )
-
-test_ISONE = GraphSyrControlGUI.FNode( 'SyrComponent' , 'SyrComponent' , 'C_ISONE' )
-test_ISONE.SetName( 'test_ISONE' )
-test_ISONE.SetAuthor( '' )
-test_ISONE.SetContainer( 'localhost/FactoryServer' )
-test_ISONE.SetComment( 'C_ISONE from SyrComponent' )
-test_ISONE.Coords( 293 , 130 )
-
-m3p1 = GraphSyrControlGUI.FNode( 'SyrComponent' , 'SyrComponent' , 'C_M3P1' )
-m3p1.SetName( 'm3p1' )
-m3p1.SetAuthor( '' )
-m3p1.SetContainer( 'localhost/FactoryServer' )
-m3p1.SetComment( 'C_M3P1 from SyrComponent' )
-m3p1.Coords( 761 , 19 )
-
-div2 = GraphSyrControlGUI.FNode( 'SyrComponent' , 'SyrComponent' , 'C_DIV2' )
-div2.SetName( 'div2' )
-div2.SetAuthor( '' )
-div2.SetContainer( 'localhost/FactoryServer' )
-div2.SetComment( 'C_DIV2 from SyrComponent' )
-div2.Coords( 770 , 384 )
-
-incr = GraphSyrControlGUI.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' )
-incr.SetName( 'incr' )
-incr.SetAuthor( '' )
-incr.SetContainer( 'localhost/FactoryServer' )
-incr.SetComment( 'C_INCR from SyrComponent' )
-incr.Coords( 764 , 179 )
-
-# Creation of InLine Nodes
-Pylabel_begin = []
-Pylabel_begin.append( 'def label_begin( NB , KB ) :' )
-Pylabel_begin.append( '    return NB,KB' )
-label_begin = GraphSyrControlGUI.INode( 'label_begin' , Pylabel_begin )
-label_begin.SetName( 'label_begin' )
-label_begin.SetAuthor( '' )
-label_begin.SetComment( 'Python function' )
-label_begin.Coords( 58 , 189 )
-label_begin.InPort( 'NB' , 'long' )
-label_begin.InPort( 'KB' , 'long' )
-
-# Creation of Switch Nodes
-Pylabel_test = []
-Pylabel_test.append( 'def L_OneEven( ValOne , ValEven , NT , KT ):' )
-Pylabel_test.append( '    Finished = ValOne' )
-Pylabel_test.append( '    if Finished == 0 :' )
-Pylabel_test.append( '        Incr = 1' )
-Pylabel_test.append( '        Even = ValEven' )
-Pylabel_test.append( '        if Even == 0 :' )
-Pylabel_test.append( '            Odd = 1' )
-Pylabel_test.append( '        else :' )
-Pylabel_test.append( '            Odd = 0' )
-Pylabel_test.append( '    else :' )
-Pylabel_test.append( '        Incr = 0' )
-Pylabel_test.append( '        Even = 0' )
-Pylabel_test.append( '        Odd = 0' )
-Pylabel_test.append( '    Even = ValEven' )
-Pylabel_test.append( '    return Finished,Incr,Even,Odd,NT,KT' )
-label_test,EndL_OneEven = GraphSyrControlGUI.SNode( 'L_OneEven' , Pylabel_test )
-EndL_OneEven.SetName( 'EndL_OneEven' )
-EndL_OneEven.SetAuthor( '' )
-EndL_OneEven.SetComment( '' )
-EndL_OneEven.Coords( 1068 , 258 )
-PyEndL_OneEven = []
-EndL_OneEven.SetPyFunction( 'EndL_OneEven' , PyEndL_OneEven )
-label_test.SetName( 'label_test' )
-label_test.SetAuthor( '' )
-label_test.SetComment( '' )
-label_test.Coords( 516 , 175 )
-label_test.InPort( 'ValOne' , 'long' )
-label_test.InPort( 'ValEven' , 'long' )
-label_test.InPort( 'NT' , 'long' )
-label_test.InPort( 'KT' , 'long' )
-
-# Creation of GOTO Nodes
-Pycontrol_m3p1 = []
-Pycontrol_m3p1.append( 'def C_NotOneIsEven( N , K ):' )
-Pycontrol_m3p1.append( '    return 0,1,N,K' )
-control_m3p1 = GraphSyrControlGUI.GNode( 'C_NotOneIsEven' , Pycontrol_m3p1 , 'label_test' )
-control_m3p1.SetName( 'control_m3p1' )
-control_m3p1.SetAuthor( '' )
-control_m3p1.SetComment( '' )
-control_m3p1.Coords( 972 , 64 )
-control_m3p1.InPort( 'N' , 'long' )
-control_m3p1.InPort( 'K' , 'long' )
-
-Pycontrol_div2 = []
-Pycontrol_div2.append( 'def control_div2( N , K ) :' )
-Pycontrol_div2.append( '    return N,K' )
-control_div2 = GraphSyrControlGUI.GNode( 'control_div2' , Pycontrol_div2 , 'label_begin' )
-control_div2.SetName( 'control_div2' )
-control_div2.SetAuthor( '' )
-control_div2.SetComment( '' )
-control_div2.Coords( 972 , 430 )
-control_div2.InPort( 'N' , 'long' )
-control_div2.InPort( 'K' , 'long' )
-
-# Creation of Links
-test_ISEVENBoolEven = test_ISEVEN.Port( 'BoolEven' )
-label_testValEven = GraphSyrControlGUI.Link( test_ISEVENBoolEven , label_test.Port( 'ValEven' ) )
-label_testValEven.AddCoord( 1 , 493 , 238 )
-label_testValEven.AddCoord( 2 , 493 , 418 )
-
-test_ISONEBoolOne = test_ISONE.Port( 'BoolOne' )
-label_testValOne = GraphSyrControlGUI.Link( test_ISONEBoolOne , label_test.Port( 'ValOne' ) )
-
-m3p1anEvenInteger = m3p1.Port( 'anEvenInteger' )
-control_m3p1N = GraphSyrControlGUI.Link( m3p1anEvenInteger , control_m3p1.Port( 'N' ) )
-
-div2anInteger = div2.Port( 'anInteger' )
-control_div2N = GraphSyrControlGUI.Link( div2anInteger , control_div2.Port( 'N' ) )
-
-incraNewCount = incr.Port( 'aNewCount' )
-control_div2K = GraphSyrControlGUI.Link( incraNewCount , control_div2.Port( 'K' ) )
-control_div2K.AddCoord( 1 , 954 , 494 )
-control_div2K.AddCoord( 2 , 954 , 259 )
-
-control_m3p1K = GraphSyrControlGUI.Link( incraNewCount , control_m3p1.Port( 'K' ) )
-control_m3p1K.AddCoord( 1 , 955 , 128 )
-control_m3p1K.AddCoord( 2 , 954 , 258 )
-
-label_beginNT = label_begin.Port( 'NT' )
-test_ISONEanInteger = GraphSyrControlGUI.Link( label_beginNT , test_ISONE.Port( 'anInteger' ) )
-test_ISONEanInteger.AddCoord( 1 , 275 , 211 )
-test_ISONEanInteger.AddCoord( 2 , 275 , 270 )
-
-label_testNT = GraphSyrControlGUI.Link( label_beginNT , label_test.Port( 'NT' ) )
-
-test_ISEVENanInteger = GraphSyrControlGUI.Link( label_beginNT , test_ISEVEN.Port( 'anInteger' ) )
-test_ISEVENanInteger.AddCoord( 1 , 274 , 417 )
-test_ISEVENanInteger.AddCoord( 2 , 275 , 270 )
-
-label_beginKT = label_begin.Port( 'KT' )
-label_testKT = GraphSyrControlGUI.Link( label_beginKT , label_test.Port( 'KT' ) )
-label_testKT.AddCoord( 1 , 476 , 294 )
-label_testKT.AddCoord( 2 , 475 , 515 )
-label_testKT.AddCoord( 3 , 260 , 515 )
-label_testKT.AddCoord( 4 , 260 , 298 )
-
-label_testIncr = label_test.Port( 'Incr' )
-incrInGate = GraphSyrControlGUI.Link( label_testIncr , incr.Port( 'InGate' ) )
-incrInGate.AddCoord( 1 , 712 , 292 )
-incrInGate.AddCoord( 2 , 711 , 238 )
-
-label_testEven = label_test.Port( 'Even' )
-div2InGate = GraphSyrControlGUI.Link( label_testEven , div2.Port( 'InGate' ) )
-div2InGate.AddCoord( 1 , 724 , 498 )
-div2InGate.AddCoord( 2 , 723 , 268 )
-
-label_testOdd = label_test.Port( 'Odd' )
-m3p1InGate = GraphSyrControlGUI.Link( label_testOdd , m3p1.Port( 'InGate' ) )
-m3p1InGate.AddCoord( 1 , 698 , 132 )
-m3p1InGate.AddCoord( 2 , 697 , 297 )
-
-label_testN = label_test.Port( 'N' )
-m3p1anOddInteger = GraphSyrControlGUI.Link( label_testN , m3p1.Port( 'anOddInteger' ) )
-m3p1anOddInteger.AddCoord( 1 , 748 , 100 )
-m3p1anOddInteger.AddCoord( 2 , 747 , 325 )
-
-div2anEvenInteger = GraphSyrControlGUI.Link( label_testN , div2.Port( 'anEvenInteger' ) )
-div2anEvenInteger.AddCoord( 1 , 746 , 463 )
-div2anEvenInteger.AddCoord( 2 , 747 , 327 )
-
-label_testK = label_test.Port( 'K' )
-incraCount = GraphSyrControlGUI.Link( label_testK , incr.Port( 'aCount' ) )
-incraCount.AddCoord( 1 , 732 , 260 )
-incraCount.AddCoord( 2 , 732 , 354 )
-
-label_testDefault = label_test.Port( 'Default' )
-EndL_OneEvenDefault = GraphSyrControlGUI.Link( label_testDefault , EndL_OneEven.Port( 'Default' ) )
-
-control_m3p1OutGate = control_m3p1.Port( 'OutGate' )
-label_testInGate = GraphSyrControlGUI.Link( control_m3p1OutGate , label_test.Port( 'InGate' ) )
-label_testInGate.AddCoord( 1 , 503 , 388 )
-label_testInGate.AddCoord( 2 , 505 , 5 )
-label_testInGate.AddCoord( 3 , 1149 , 5 )
-label_testInGate.AddCoord( 4 , 1150 , 219 )
-
-control_div2OutGate = control_div2.Port( 'OutGate' )
-label_beginInGate = GraphSyrControlGUI.Link( control_div2OutGate , label_begin.Port( 'InGate' ) )
-label_beginInGate.AddCoord( 1 , 34 , 332 )
-label_beginInGate.AddCoord( 2 , 34 , 592 )
-label_beginInGate.AddCoord( 3 , 1145 , 586 )
-label_beginInGate.AddCoord( 4 , 1144 , 527 )
-
-# Creation of Input datas
-label_beginNB = label_begin.Input( 'NB' , 7)
-label_beginKB = label_begin.Input( 'KB' , 0)
-
-# Creation of Output variables
-label_testFinished = label_test.Port( 'Finished' )
-
-GraphSyrControlGUI.Run()
-GraphSyrControlGUI.DoneW()
-print GraphSyrControlGUI.State()
-GraphSyrControlGUI.PrintPorts()
+# Graph creation of GraphSyrControlGUI_2
+def DefGraphSyrControlGUI_2() :
+    GraphSyrControlGUI_2 = Graph( 'GraphSyrControlGUI_2' )
+    GraphSyrControlGUI_2.SetName( 'GraphSyrControlGUI_2' )
+    GraphSyrControlGUI_2.SetAuthor( 'JR' )
+    GraphSyrControlGUI_2.SetComment( 'Syracuse algorithm' )
+    GraphSyrControlGUI_2.Coords( 0 , 0 )
+    
+    # Creation of Factory Nodes
+    
+    test_ISEVEN = GraphSyrControlGUI_2.FNode( 'SyrComponent' , 'SyrComponent' , 'C_ISEVEN' )
+    test_ISEVEN.SetName( 'test_ISEVEN' )
+    test_ISEVEN.SetAuthor( '' )
+    test_ISEVEN.SetContainer( 'localhost/FactoryServer' )
+    test_ISEVEN.SetComment( 'C_ISEVEN from SyrComponent' )
+    test_ISEVEN.Coords( 288 , 337 )
+    Itest_ISEVENanInteger = test_ISEVEN.GetInPort( 'anInteger' )
+    Itest_ISEVENGate = test_ISEVEN.GetInPort( 'Gate' )
+    Otest_ISEVENBoolEven = test_ISEVEN.GetOutPort( 'BoolEven' )
+    Otest_ISEVENGate = test_ISEVEN.GetOutPort( 'Gate' )
+    
+    test_ISONE = GraphSyrControlGUI_2.FNode( 'SyrComponent' , 'SyrComponent' , 'C_ISONE' )
+    test_ISONE.SetName( 'test_ISONE' )
+    test_ISONE.SetAuthor( '' )
+    test_ISONE.SetContainer( 'localhost/FactoryServer' )
+    test_ISONE.SetComment( 'C_ISONE from SyrComponent' )
+    test_ISONE.Coords( 293 , 130 )
+    Itest_ISONEanInteger = test_ISONE.GetInPort( 'anInteger' )
+    Itest_ISONEGate = test_ISONE.GetInPort( 'Gate' )
+    Otest_ISONEBoolOne = test_ISONE.GetOutPort( 'BoolOne' )
+    Otest_ISONEGate = test_ISONE.GetOutPort( 'Gate' )
+    
+    m3p1 = GraphSyrControlGUI_2.FNode( 'SyrComponent' , 'SyrComponent' , 'C_M3P1' )
+    m3p1.SetName( 'm3p1' )
+    m3p1.SetAuthor( '' )
+    m3p1.SetContainer( 'localhost/FactoryServer' )
+    m3p1.SetComment( 'C_M3P1 from SyrComponent' )
+    m3p1.Coords( 761 , 19 )
+    Im3p1anOddInteger = m3p1.GetInPort( 'anOddInteger' )
+    Im3p1Gate = m3p1.GetInPort( 'Gate' )
+    Om3p1anEvenInteger = m3p1.GetOutPort( 'anEvenInteger' )
+    Om3p1Gate = m3p1.GetOutPort( 'Gate' )
+    
+    div2 = GraphSyrControlGUI_2.FNode( 'SyrComponent' , 'SyrComponent' , 'C_DIV2' )
+    div2.SetName( 'div2' )
+    div2.SetAuthor( '' )
+    div2.SetContainer( 'localhost/FactoryServer' )
+    div2.SetComment( 'C_DIV2 from SyrComponent' )
+    div2.Coords( 770 , 384 )
+    Idiv2anEvenInteger = div2.GetInPort( 'anEvenInteger' )
+    Idiv2Gate = div2.GetInPort( 'Gate' )
+    Odiv2anInteger = div2.GetOutPort( 'anInteger' )
+    Odiv2Gate = div2.GetOutPort( 'Gate' )
+    
+    incr = GraphSyrControlGUI_2.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' )
+    incr.SetName( 'incr' )
+    incr.SetAuthor( '' )
+    incr.SetContainer( 'localhost/FactoryServer' )
+    incr.SetComment( 'C_INCR from SyrComponent' )
+    incr.Coords( 764 , 179 )
+    IincraCount = incr.GetInPort( 'aCount' )
+    IincrGate = incr.GetInPort( 'Gate' )
+    OincraNewCount = incr.GetOutPort( 'aNewCount' )
+    OincrGate = incr.GetOutPort( 'Gate' )
+    
+    # Creation of InLine Nodes
+    Pylabel_begin = []
+    Pylabel_begin.append( 'def label_begin( NB , KB ) :' )
+    Pylabel_begin.append( '    return NB,KB' )
+    label_begin = GraphSyrControlGUI_2.INode( 'label_begin' , Pylabel_begin )
+    label_begin.SetName( 'label_begin' )
+    label_begin.SetAuthor( '' )
+    label_begin.SetComment( 'Python function' )
+    label_begin.Coords( 58 , 189 )
+    Ilabel_beginNB = label_begin.InPort( 'NB' , 'long' )
+    Ilabel_beginKB = label_begin.InPort( 'KB' , 'long' )
+    Ilabel_beginGate = label_begin.GetInPort( 'Gate' )
+    Olabel_beginNT = label_begin.OutPort( 'NT' , 'long' )
+    Olabel_beginKT = label_begin.OutPort( 'KT' , 'long' )
+    Olabel_beginGate = label_begin.GetOutPort( 'Gate' )
+    
+    # Creation of Switch Nodes
+    Pylabel_test = []
+    Pylabel_test.append( 'def L_OneEven( ValOne , ValEven , NT , KT ):' )
+    Pylabel_test.append( '    Finished = ValOne' )
+    Pylabel_test.append( '    if Finished == 0 :' )
+    Pylabel_test.append( '        Incr = 1' )
+    Pylabel_test.append( '        Even = ValEven' )
+    Pylabel_test.append( '        if Even == 0 :' )
+    Pylabel_test.append( '            Odd = 1' )
+    Pylabel_test.append( '        else :' )
+    Pylabel_test.append( '            Odd = 0' )
+    Pylabel_test.append( '    else :' )
+    Pylabel_test.append( '        Incr = 0' )
+    Pylabel_test.append( '        Even = 0' )
+    Pylabel_test.append( '        Odd = 0' )
+    Pylabel_test.append( '    Even = ValEven' )
+    Pylabel_test.append( '    return Finished,Incr,Even,Odd,NT,KT' )
+    label_test,EndL_OneEven = GraphSyrControlGUI_2.SNode( 'L_OneEven' , Pylabel_test )
+    EndL_OneEven.SetName( 'EndL_OneEven' )
+    EndL_OneEven.SetAuthor( '' )
+    EndL_OneEven.SetComment( 'Compute Node' )
+    EndL_OneEven.Coords( 1068 , 258 )
+    PyEndL_OneEven = []
+    EndL_OneEven.SetPyFunction( '' , PyEndL_OneEven )
+    IEndL_OneEvenDefault = EndL_OneEven.GetInPort( 'Default' )
+    OEndL_OneEvenGate = EndL_OneEven.GetOutPort( 'Gate' )
+    label_test.SetName( 'label_test' )
+    label_test.SetAuthor( '' )
+    label_test.SetComment( 'Compute Node' )
+    label_test.Coords( 516 , 175 )
+    Ilabel_testValOne = label_test.InPort( 'ValOne' , 'long' )
+    Ilabel_testValEven = label_test.InPort( 'ValEven' , 'long' )
+    Ilabel_testNT = label_test.InPort( 'NT' , 'long' )
+    Ilabel_testKT = label_test.InPort( 'KT' , 'long' )
+    Ilabel_testGate = label_test.GetInPort( 'Gate' )
+    Olabel_testFinished = label_test.OutPort( 'Finished' , 'long' )
+    Olabel_testIncr = label_test.OutPort( 'Incr' , 'long' )
+    Olabel_testEven = label_test.OutPort( 'Even' , 'long' )
+    Olabel_testOdd = label_test.OutPort( 'Odd' , 'long' )
+    Olabel_testN = label_test.OutPort( 'N' , 'long' )
+    Olabel_testK = label_test.OutPort( 'K' , 'long' )
+    Olabel_testDefault = label_test.GetOutPort( 'Default' )
+    
+    # Creation of GOTO Nodes
+    Pycontrol_m3p1 = []
+    Pycontrol_m3p1.append( 'def C_NotOneIsEven( N , K ):' )
+    Pycontrol_m3p1.append( '    return 0,1,N,K' )
+    control_m3p1 = GraphSyrControlGUI_2.GNode( 'C_NotOneIsEven' , Pycontrol_m3p1 , 'label_test' )
+    control_m3p1.SetName( 'control_m3p1' )
+    control_m3p1.SetAuthor( '' )
+    control_m3p1.SetComment( 'Compute Node' )
+    control_m3p1.Coords( 972 , 64 )
+    Icontrol_m3p1N = control_m3p1.InPort( 'N' , 'long' )
+    Icontrol_m3p1K = control_m3p1.InPort( 'K' , 'long' )
+    Icontrol_m3p1Gate = control_m3p1.GetInPort( 'Gate' )
+    Ocontrol_m3p1ValOne = control_m3p1.OutPort( 'ValOne' , 'long' )
+    Ocontrol_m3p1ValEven = control_m3p1.OutPort( 'ValEven' , 'long' )
+    Ocontrol_m3p1NT = control_m3p1.OutPort( 'NT' , 'long' )
+    Ocontrol_m3p1KT = control_m3p1.OutPort( 'KT' , 'long' )
+    Ocontrol_m3p1Gate = control_m3p1.GetOutPort( 'Gate' )
+    
+    Pycontrol_div2 = []
+    Pycontrol_div2.append( 'def control_div2( N , K ) :' )
+    Pycontrol_div2.append( '    return N,K' )
+    control_div2 = GraphSyrControlGUI_2.GNode( 'control_div2' , Pycontrol_div2 , 'label_begin' )
+    control_div2.SetName( 'control_div2' )
+    control_div2.SetAuthor( '' )
+    control_div2.SetComment( 'Compute Node' )
+    control_div2.Coords( 972 , 430 )
+    Icontrol_div2N = control_div2.InPort( 'N' , 'long' )
+    Icontrol_div2K = control_div2.InPort( 'K' , 'long' )
+    Icontrol_div2Gate = control_div2.GetInPort( 'Gate' )
+    Ocontrol_div2NB = control_div2.OutPort( 'NB' , 'long' )
+    Ocontrol_div2KB = control_div2.OutPort( 'KB' , 'long' )
+    Ocontrol_div2Gate = control_div2.GetOutPort( 'Gate' )
+    
+    # Creation of Links
+    Ltest_ISEVENBoolEvenlabel_testValEven = GraphSyrControlGUI_2.Link( Otest_ISEVENBoolEven , Ilabel_testValEven )
+    Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 1 , 493 , 238 )
+    Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 2 , 493 , 418 )
+    
+    Ltest_ISONEBoolOnelabel_testValOne = GraphSyrControlGUI_2.Link( Otest_ISONEBoolOne , Ilabel_testValOne )
+    
+    Lm3p1anEvenIntegercontrol_m3p1N = GraphSyrControlGUI_2.Link( Om3p1anEvenInteger , Icontrol_m3p1N )
+    
+    Ldiv2anIntegercontrol_div2N = GraphSyrControlGUI_2.Link( Odiv2anInteger , Icontrol_div2N )
+    
+    LincraNewCountcontrol_div2K = GraphSyrControlGUI_2.Link( OincraNewCount , Icontrol_div2K )
+    LincraNewCountcontrol_div2K.AddCoord( 1 , 954 , 494 )
+    LincraNewCountcontrol_div2K.AddCoord( 2 , 954 , 259 )
+    
+    LincraNewCountcontrol_m3p1K = GraphSyrControlGUI_2.Link( OincraNewCount , Icontrol_m3p1K )
+    LincraNewCountcontrol_m3p1K.AddCoord( 1 , 955 , 128 )
+    LincraNewCountcontrol_m3p1K.AddCoord( 2 , 954 , 258 )
+    
+    Llabel_beginNTtest_ISONEanInteger = GraphSyrControlGUI_2.Link( Olabel_beginNT , Itest_ISONEanInteger )
+    Llabel_beginNTtest_ISONEanInteger.AddCoord( 1 , 275 , 211 )
+    Llabel_beginNTtest_ISONEanInteger.AddCoord( 2 , 275 , 270 )
+    
+    Llabel_beginNTlabel_testNT = GraphSyrControlGUI_2.Link( Olabel_beginNT , Ilabel_testNT )
+    
+    Llabel_beginNTtest_ISEVENanInteger = GraphSyrControlGUI_2.Link( Olabel_beginNT , Itest_ISEVENanInteger )
+    Llabel_beginNTtest_ISEVENanInteger.AddCoord( 1 , 274 , 417 )
+    Llabel_beginNTtest_ISEVENanInteger.AddCoord( 2 , 275 , 270 )
+    
+    Llabel_beginKTlabel_testKT = GraphSyrControlGUI_2.Link( Olabel_beginKT , Ilabel_testKT )
+    Llabel_beginKTlabel_testKT.AddCoord( 1 , 476 , 294 )
+    Llabel_beginKTlabel_testKT.AddCoord( 2 , 475 , 515 )
+    Llabel_beginKTlabel_testKT.AddCoord( 3 , 260 , 515 )
+    Llabel_beginKTlabel_testKT.AddCoord( 4 , 260 , 298 )
+    
+    Llabel_testEvendiv2Gate = GraphSyrControlGUI_2.Link( Olabel_testEven , Idiv2Gate )
+    Llabel_testEvendiv2Gate.AddCoord( 1 , 724 , 498 )
+    Llabel_testEvendiv2Gate.AddCoord( 2 , 723 , 268 )
+    
+    Llabel_testOddm3p1Gate = GraphSyrControlGUI_2.Link( Olabel_testOdd , Im3p1Gate )
+    Llabel_testOddm3p1Gate.AddCoord( 1 , 698 , 132 )
+    Llabel_testOddm3p1Gate.AddCoord( 2 , 697 , 297 )
+    
+    Llabel_testNm3p1anOddInteger = GraphSyrControlGUI_2.Link( Olabel_testN , Im3p1anOddInteger )
+    Llabel_testNm3p1anOddInteger.AddCoord( 1 , 748 , 100 )
+    Llabel_testNm3p1anOddInteger.AddCoord( 2 , 747 , 325 )
+    
+    Llabel_testNdiv2anEvenInteger = GraphSyrControlGUI_2.Link( Olabel_testN , Idiv2anEvenInteger )
+    Llabel_testNdiv2anEvenInteger.AddCoord( 1 , 746 , 463 )
+    Llabel_testNdiv2anEvenInteger.AddCoord( 2 , 747 , 327 )
+    
+    Llabel_testKincraCount = GraphSyrControlGUI_2.Link( Olabel_testK , IincraCount )
+    Llabel_testKincraCount.AddCoord( 1 , 732 , 260 )
+    Llabel_testKincraCount.AddCoord( 2 , 732 , 354 )
+    
+    Llabel_testDefaultEndL_OneEvenDefault = GraphSyrControlGUI_2.Link( Olabel_testDefault , IEndL_OneEvenDefault )
+    
+    Lcontrol_m3p1Gatelabel_testGate = GraphSyrControlGUI_2.Link( Ocontrol_m3p1Gate , Ilabel_testGate )
+    Lcontrol_m3p1Gatelabel_testGate.AddCoord( 1 , 503 , 388 )
+    Lcontrol_m3p1Gatelabel_testGate.AddCoord( 2 , 505 , 5 )
+    Lcontrol_m3p1Gatelabel_testGate.AddCoord( 3 , 1149 , 5 )
+    Lcontrol_m3p1Gatelabel_testGate.AddCoord( 4 , 1150 , 219 )
+    
+    Lcontrol_div2Gatelabel_beginGate = GraphSyrControlGUI_2.Link( Ocontrol_div2Gate , Ilabel_beginGate )
+    Lcontrol_div2Gatelabel_beginGate.AddCoord( 1 , 34 , 332 )
+    Lcontrol_div2Gatelabel_beginGate.AddCoord( 2 , 34 , 592 )
+    Lcontrol_div2Gatelabel_beginGate.AddCoord( 3 , 1145 , 586 )
+    Lcontrol_div2Gatelabel_beginGate.AddCoord( 4 , 1144 , 527 )
+    
+    # Input datas
+    Ilabel_beginNB.Input( 7 )
+    Ilabel_beginKB.Input( 0 )
+    
+    # Output Ports of the graph
+    #Olabel_testFinished = label_test.GetOutPort( 'Finished' )
+    #Olabel_testIncr = label_test.GetOutPort( 'Incr' )
+    return GraphSyrControlGUI_2
+
+
+GraphSyrControlGUI_2 = DefGraphSyrControlGUI_2()
index 14986c932defc4c405d42fe3504e17d749f1e6a8..f855cc77b60d9077491307c0e330b3229a4f67f2 100644 (file)
-<!DOCTYPE Dataflow>
+<!DOCTYPE SuperGraph>
+<supergraph>
 <dataflow>
 <info-list>
 <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>GraphSyrControlGUI</node-name>
-   <kind>1</kind>
-   <coupled-node>?</coupled-node>
-   <service>
-<service-name>GraphSyrControlGUI</service-name>
-    <inParameter-list>
+    <interface-name>?</interface-name>
+    <node-name>GraphSyrControlGUI_2</node-name>
+    <kind>1</kind>
+    <coupled-node>?</coupled-node>
+    <service>
+<service-name>GraphSyrControlGUI_2</service-name>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>label_begin\NB</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>label_begin__NB</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>label_begin\KB</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>label_begin__KB</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>label_test\Finished</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <DataStream-list/>
-   <PyFunction-list/>
-   <creation-date>11/3/2003 - 18:28:48</creation-date>
-   <lastmodification-date>18/3/2004 - 14:22:38</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>JR</author>
-   <container>?</container>
-   <comment>Syracuse algorithm</comment>
-   <x-position>0</x-position>
-   <y-position>0</y-position>  </node> </info-list>
- <node-list>
+       <outParameter-name>label_test__Finished</outParameter-name>      </outParameter>
+      <outParameter>
+<outParameter-type>long</outParameter-type>
+       <outParameter-name>label_test__Incr</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>11/3/2003 - 18:28:48</creation-date>
+    <lastmodification-date>20/1/2005 - 13:18:12</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>JR</author>
+    <container>?</container>
+    <comment>Syracuse algorithm</comment>
+    <x-position>0</x-position>
+    <y-position>0</y-position>   </node>  </info-list>
+  <node-list>
 <node>
 <component-name>SyrComponent</component-name>
-   <interface-name>SyrComponent</interface-name>
-   <node-name>test_ISEVEN</node-name>
-   <kind>0</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>SyrComponent</interface-name>
+    <node-name>test_ISEVEN</node-name>
+    <kind>0</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>C_ISEVEN</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>anInteger</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>anInteger</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>BoolEven</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <DataStream-list/>
-   <PyFunction-list/>
-   <creation-date>18/3/2004 - 14:22:38</creation-date>
-   <lastmodification-date>18/3/2004 - 14:22:38</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>localhost/FactoryServer</container>
-   <comment>C_ISEVEN from SyrComponent</comment>
-   <x-position>288</x-position>
-   <y-position>337</y-position>  </node>
-  <node>
+       <outParameter-name>BoolEven</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>20/1/2005 - 13:17:57</creation-date>
+    <lastmodification-date>20/1/2005 - 13:17:57</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>localhost/FactoryServer</container>
+    <comment>C_ISEVEN from SyrComponent</comment>
+    <x-position>288</x-position>
+    <y-position>337</y-position>   </node>
+   <node>
 <component-name>SyrComponent</component-name>
-   <interface-name>SyrComponent</interface-name>
-   <node-name>test_ISONE</node-name>
-   <kind>0</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>SyrComponent</interface-name>
+    <node-name>test_ISONE</node-name>
+    <kind>0</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>C_ISONE</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>anInteger</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>anInteger</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>BoolOne</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <DataStream-list/>
-   <PyFunction-list/>
-   <creation-date>18/3/2004 - 14:22:38</creation-date>
-   <lastmodification-date>18/3/2004 - 14:22:38</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>localhost/FactoryServer</container>
-   <comment>C_ISONE from SyrComponent</comment>
-   <x-position>293</x-position>
-   <y-position>130</y-position>  </node>
-  <node>
+       <outParameter-name>BoolOne</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>20/1/2005 - 13:17:57</creation-date>
+    <lastmodification-date>20/1/2005 - 13:17:57</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>localhost/FactoryServer</container>
+    <comment>C_ISONE from SyrComponent</comment>
+    <x-position>293</x-position>
+    <y-position>130</y-position>   </node>
+   <node>
 <component-name>SyrComponent</component-name>
-   <interface-name>SyrComponent</interface-name>
-   <node-name>m3p1</node-name>
-   <kind>0</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>SyrComponent</interface-name>
+    <node-name>m3p1</node-name>
+    <kind>0</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>C_M3P1</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>anOddInteger</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>anOddInteger</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>anEvenInteger</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <DataStream-list/>
-   <PyFunction-list/>
-   <creation-date>18/3/2004 - 14:22:38</creation-date>
-   <lastmodification-date>18/3/2004 - 14:22:38</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>localhost/FactoryServer</container>
-   <comment>C_M3P1 from SyrComponent</comment>
-   <x-position>761</x-position>
-   <y-position>19</y-position>  </node>
-  <node>
+       <outParameter-name>anEvenInteger</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>20/1/2005 - 13:17:57</creation-date>
+    <lastmodification-date>20/1/2005 - 13:17:57</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>localhost/FactoryServer</container>
+    <comment>C_M3P1 from SyrComponent</comment>
+    <x-position>761</x-position>
+    <y-position>19</y-position>   </node>
+   <node>
 <component-name>SyrComponent</component-name>
-   <interface-name>SyrComponent</interface-name>
-   <node-name>div2</node-name>
-   <kind>0</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>SyrComponent</interface-name>
+    <node-name>div2</node-name>
+    <kind>0</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>C_DIV2</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>anEvenInteger</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>anEvenInteger</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>anInteger</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <DataStream-list/>
-   <PyFunction-list/>
-   <creation-date>18/3/2004 - 14:22:38</creation-date>
-   <lastmodification-date>18/3/2004 - 14:22:38</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>localhost/FactoryServer</container>
-   <comment>C_DIV2 from SyrComponent</comment>
-   <x-position>770</x-position>
-   <y-position>384</y-position>  </node>
-  <node>
+       <outParameter-name>anInteger</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>20/1/2005 - 13:17:57</creation-date>
+    <lastmodification-date>20/1/2005 - 13:17:57</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>localhost/FactoryServer</container>
+    <comment>C_DIV2 from SyrComponent</comment>
+    <x-position>770</x-position>
+    <y-position>384</y-position>   </node>
+   <node>
 <component-name>SyrComponent</component-name>
-   <interface-name>SyrComponent</interface-name>
-   <node-name>incr</node-name>
-   <kind>0</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>SyrComponent</interface-name>
+    <node-name>incr</node-name>
+    <kind>0</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>C_INCR</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>aCount</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>aCount</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>aNewCount</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <DataStream-list/>
-   <PyFunction-list/>
-   <creation-date>18/3/2004 - 14:22:38</creation-date>
-   <lastmodification-date>18/3/2004 - 14:22:38</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>localhost/FactoryServer</container>
-   <comment>C_INCR from SyrComponent</comment>
-   <x-position>764</x-position>
-   <y-position>179</y-position>  </node>
-  <node>
+       <outParameter-name>aNewCount</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list/>
+    <creation-date>20/1/2005 - 13:17:57</creation-date>
+    <lastmodification-date>20/1/2005 - 13:17:57</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>localhost/FactoryServer</container>
+    <comment>C_INCR from SyrComponent</comment>
+    <x-position>764</x-position>
+    <y-position>179</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>label_begin</node-name>
-   <kind>3</kind>
-   <coupled-node>?</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>label_begin</node-name>
+    <kind>3</kind>
+    <coupled-node>?</coupled-node>
+    <service>
 <service-name>label_begin</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>NB</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>NB</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>KB</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>KB</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>NT</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>NT</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>KT</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <DataStream-list/>
-   <PyFunction-list>
+       <outParameter-name>KT</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>label_begin</FuncName>
-     <PyFunc><![CDATA[def label_begin( NB , KB ) :]]></PyFunc>
-     <PyFunc><![CDATA[    return NB,KB]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>18/3/2004 - 14:22:38</creation-date>
-   <lastmodification-date>18/3/2004 - 14:22:38</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>Python function</comment>
-   <x-position>58</x-position>
-   <y-position>189</y-position>  </node>
-  <node>
+      <PyFunc><![CDATA[def label_begin( NB , KB ) :]]></PyFunc>
+      <PyFunc><![CDATA[    return NB,KB]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>20/1/2005 - 13:17:57</creation-date>
+    <lastmodification-date>20/1/2005 - 13:17:57</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Python function</comment>
+    <x-position>58</x-position>
+    <y-position>189</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>label_test</node-name>
-   <kind>6</kind>
-   <coupled-node>EndL_OneEven</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>label_test</node-name>
+    <kind>6</kind>
+    <coupled-node>EndL_OneEven</coupled-node>
+    <service>
 <service-name>label_test</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>ValOne</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>ValOne</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>ValEven</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>ValEven</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>NT</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>NT</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>KT</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>KT</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Finished</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Finished</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Incr</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Incr</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Even</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Even</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>Odd</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>Odd</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>N</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>N</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>K</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <DataStream-list/>
-   <PyFunction-list>
+       <outParameter-name>K</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>L_OneEven</FuncName>
-     <PyFunc><![CDATA[def L_OneEven( ValOne , ValEven , NT , KT ):]]></PyFunc>
-     <PyFunc><![CDATA[    Finished = ValOne]]></PyFunc>
-     <PyFunc><![CDATA[    if Finished == 0 :]]></PyFunc>
-     <PyFunc><![CDATA[        Incr = 1]]></PyFunc>
-     <PyFunc><![CDATA[        Even = ValEven]]></PyFunc>
-     <PyFunc><![CDATA[        if Even == 0 :]]></PyFunc>
-     <PyFunc><![CDATA[            Odd = 1]]></PyFunc>
-     <PyFunc><![CDATA[        else :]]></PyFunc>
-     <PyFunc><![CDATA[            Odd = 0]]></PyFunc>
-     <PyFunc><![CDATA[    else :]]></PyFunc>
-     <PyFunc><![CDATA[        Incr = 0]]></PyFunc>
-     <PyFunc><![CDATA[        Even = 0]]></PyFunc>
-     <PyFunc><![CDATA[        Odd = 0]]></PyFunc>
-     <PyFunc><![CDATA[    Even = ValEven]]></PyFunc>
-     <PyFunc><![CDATA[    return Finished,Incr,Even,Odd,NT,KT]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>18/3/2004 - 14:22:38</creation-date>
-   <lastmodification-date>18/3/2004 - 14:22:38</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>516</x-position>
-   <y-position>175</y-position>  </node>
-  <node>
+      <PyFunc><![CDATA[def L_OneEven( ValOne , ValEven , NT , KT ):]]></PyFunc>
+      <PyFunc><![CDATA[    Finished = ValOne]]></PyFunc>
+      <PyFunc><![CDATA[    if Finished == 0 :]]></PyFunc>
+      <PyFunc><![CDATA[        Incr = 1]]></PyFunc>
+      <PyFunc><![CDATA[        Even = ValEven]]></PyFunc>
+      <PyFunc><![CDATA[        if Even == 0 :]]></PyFunc>
+      <PyFunc><![CDATA[            Odd = 1]]></PyFunc>
+      <PyFunc><![CDATA[        else :]]></PyFunc>
+      <PyFunc><![CDATA[            Odd = 0]]></PyFunc>
+      <PyFunc><![CDATA[    else :]]></PyFunc>
+      <PyFunc><![CDATA[        Incr = 0]]></PyFunc>
+      <PyFunc><![CDATA[        Even = 0]]></PyFunc>
+      <PyFunc><![CDATA[        Odd = 0]]></PyFunc>
+      <PyFunc><![CDATA[    Even = ValEven]]></PyFunc>
+      <PyFunc><![CDATA[    return Finished,Incr,Even,Odd,NT,KT]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>20/1/2005 - 13:17:57</creation-date>
+    <lastmodification-date>20/1/2005 - 13:17:57</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>516</x-position>
+    <y-position>175</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>EndL_OneEven</node-name>
-   <kind>7</kind>
-   <coupled-node>label_test</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>EndL_OneEven</node-name>
+    <kind>7</kind>
+    <coupled-node>label_test</coupled-node>
+    <service>
 <service-name>EndL_OneEven</service-name>
-    <inParameter-list/>
-    <outParameter-list/>   </service>
-   <DataStream-list/>
-   <PyFunction-list>
+     <inParameter-list/>
+     <outParameter-list/>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>?</FuncName>
-     <PyFunc><![CDATA[?]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>18/3/2004 - 14:22:38</creation-date>
-   <lastmodification-date>18/3/2004 - 14:22:38</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>1068</x-position>
-   <y-position>258</y-position>  </node>
-  <node>
+      <PyFunc><![CDATA[?]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>20/1/2005 - 13:17:57</creation-date>
+    <lastmodification-date>20/1/2005 - 13:17:57</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>1068</x-position>
+    <y-position>258</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>control_m3p1</node-name>
-   <kind>8</kind>
-   <coupled-node>label_test</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>control_m3p1</node-name>
+    <kind>8</kind>
+    <coupled-node>label_test</coupled-node>
+    <service>
 <service-name>control_m3p1</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>N</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>N</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>K</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>K</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>ValOne</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>ValOne</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>ValEven</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>ValEven</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>NT</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>NT</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>KT</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <DataStream-list/>
-   <PyFunction-list>
+       <outParameter-name>KT</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>C_NotOneIsEven</FuncName>
-     <PyFunc><![CDATA[def C_NotOneIsEven( N , K ):]]></PyFunc>
-     <PyFunc><![CDATA[    return 0,1,N,K]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>18/3/2004 - 14:22:38</creation-date>
-   <lastmodification-date>18/3/2004 - 14:22:38</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>972</x-position>
-   <y-position>64</y-position>  </node>
-  <node>
+      <PyFunc><![CDATA[def C_NotOneIsEven( N , K ):]]></PyFunc>
+      <PyFunc><![CDATA[    return 0,1,N,K]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>20/1/2005 - 13:17:57</creation-date>
+    <lastmodification-date>20/1/2005 - 13:17:57</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>972</x-position>
+    <y-position>64</y-position>   </node>
+   <node>
 <component-name>?</component-name>
-   <interface-name>?</interface-name>
-   <node-name>control_div2</node-name>
-   <kind>8</kind>
-   <coupled-node>label_begin</coupled-node>
-   <service>
+    <interface-name>?</interface-name>
+    <node-name>control_div2</node-name>
+    <kind>8</kind>
+    <coupled-node>label_begin</coupled-node>
+    <service>
 <service-name>control_div2</service-name>
-    <inParameter-list>
+     <inParameter-list>
 <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>N</inParameter-name>     </inParameter>
-     <inParameter>
+       <inParameter-name>N</inParameter-name>      </inParameter>
+      <inParameter>
 <inParameter-type>long</inParameter-type>
-      <inParameter-name>K</inParameter-name>     </inParameter>    </inParameter-list>
-    <outParameter-list>
+       <inParameter-name>K</inParameter-name>      </inParameter>     </inParameter-list>
+     <outParameter-list>
 <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>NB</outParameter-name>     </outParameter>
-     <outParameter>
+       <outParameter-name>NB</outParameter-name>      </outParameter>
+      <outParameter>
 <outParameter-type>long</outParameter-type>
-      <outParameter-name>KB</outParameter-name>     </outParameter>    </outParameter-list>   </service>
-   <DataStream-list/>
-   <PyFunction-list>
+       <outParameter-name>KB</outParameter-name>      </outParameter>     </outParameter-list>    </service>
+    <DataStream-list/>
+    <PyFunction-list>
 <PyFunction>
 <FuncName>control_div2</FuncName>
-     <PyFunc><![CDATA[def control_div2( N , K ) :]]></PyFunc>
-     <PyFunc><![CDATA[    return N,K]]></PyFunc>    </PyFunction>   </PyFunction-list>
-   <creation-date>18/3/2004 - 14:22:38</creation-date>
-   <lastmodification-date>18/3/2004 - 14:22:38</lastmodification-date>
-   <editor-release>1.04</editor-release>
-   <author>?</author>
-   <container>?</container>
-   <comment>?</comment>
-   <x-position>972</x-position>
-   <y-position>430</y-position>  </node> </node-list>
- <link-list>
+      <PyFunc><![CDATA[def control_div2( N , K ) :]]></PyFunc>
+      <PyFunc><![CDATA[    return N,K]]></PyFunc>     </PyFunction>    </PyFunction-list>
+    <creation-date>20/1/2005 - 13:17:57</creation-date>
+    <lastmodification-date>20/1/2005 - 13:17:57</lastmodification-date>
+    <editor-release>1.04</editor-release>
+    <author>?</author>
+    <container>?</container>
+    <comment>Compute Node</comment>
+    <x-position>972</x-position>
+    <y-position>430</y-position>   </node>  </node-list>
 <link-list>
 <link>
 <fromnode-name>test_ISEVEN</fromnode-name>
-   <fromserviceparameter-name>BoolEven</fromserviceparameter-name>
-   <tonode-name>label_test</tonode-name>
-   <toserviceparameter-name>ValEven</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>BoolEven</fromserviceparameter-name>
+    <tonode-name>label_test</tonode-name>
+    <toserviceparameter-name>ValEven</toserviceparameter-name>
+    <coord-list>
 <coord>
 <x>493</x>
-     <y>238</y>    </coord>
-    <coord>
+      <y>238</y>     </coord>
+     <coord>
 <x>493</x>
-     <y>418</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>418</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>test_ISONE</fromnode-name>
-   <fromserviceparameter-name>BoolOne</fromserviceparameter-name>
-   <tonode-name>label_test</tonode-name>
-   <toserviceparameter-name>ValOne</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>BoolOne</fromserviceparameter-name>
+    <tonode-name>label_test</tonode-name>
+    <toserviceparameter-name>ValOne</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>m3p1</fromnode-name>
-   <fromserviceparameter-name>anEvenInteger</fromserviceparameter-name>
-   <tonode-name>control_m3p1</tonode-name>
-   <toserviceparameter-name>N</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>anEvenInteger</fromserviceparameter-name>
+    <tonode-name>control_m3p1</tonode-name>
+    <toserviceparameter-name>N</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>div2</fromnode-name>
-   <fromserviceparameter-name>anInteger</fromserviceparameter-name>
-   <tonode-name>control_div2</tonode-name>
-   <toserviceparameter-name>N</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>anInteger</fromserviceparameter-name>
+    <tonode-name>control_div2</tonode-name>
+    <toserviceparameter-name>N</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>incr</fromnode-name>
-   <fromserviceparameter-name>aNewCount</fromserviceparameter-name>
-   <tonode-name>control_div2</tonode-name>
-   <toserviceparameter-name>K</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>aNewCount</fromserviceparameter-name>
+    <tonode-name>control_div2</tonode-name>
+    <toserviceparameter-name>K</toserviceparameter-name>
+    <coord-list>
 <coord>
 <x>954</x>
-     <y>494</y>    </coord>
-    <coord>
+      <y>494</y>     </coord>
+     <coord>
 <x>954</x>
-     <y>259</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>259</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>incr</fromnode-name>
-   <fromserviceparameter-name>aNewCount</fromserviceparameter-name>
-   <tonode-name>control_m3p1</tonode-name>
-   <toserviceparameter-name>K</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>aNewCount</fromserviceparameter-name>
+    <tonode-name>control_m3p1</tonode-name>
+    <toserviceparameter-name>K</toserviceparameter-name>
+    <coord-list>
 <coord>
 <x>955</x>
-     <y>128</y>    </coord>
-    <coord>
+      <y>128</y>     </coord>
+     <coord>
 <x>954</x>
-     <y>258</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>258</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>label_begin</fromnode-name>
-   <fromserviceparameter-name>NT</fromserviceparameter-name>
-   <tonode-name>test_ISONE</tonode-name>
-   <toserviceparameter-name>anInteger</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>NT</fromserviceparameter-name>
+    <tonode-name>test_ISONE</tonode-name>
+    <toserviceparameter-name>anInteger</toserviceparameter-name>
+    <coord-list>
 <coord>
 <x>275</x>
-     <y>211</y>    </coord>
-    <coord>
+      <y>211</y>     </coord>
+     <coord>
 <x>275</x>
-     <y>270</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>270</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>label_begin</fromnode-name>
-   <fromserviceparameter-name>NT</fromserviceparameter-name>
-   <tonode-name>label_test</tonode-name>
-   <toserviceparameter-name>NT</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>NT</fromserviceparameter-name>
+    <tonode-name>label_test</tonode-name>
+    <toserviceparameter-name>NT</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>label_begin</fromnode-name>
-   <fromserviceparameter-name>NT</fromserviceparameter-name>
-   <tonode-name>test_ISEVEN</tonode-name>
-   <toserviceparameter-name>anInteger</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>NT</fromserviceparameter-name>
+    <tonode-name>test_ISEVEN</tonode-name>
+    <toserviceparameter-name>anInteger</toserviceparameter-name>
+    <coord-list>
 <coord>
 <x>274</x>
-     <y>417</y>    </coord>
-    <coord>
+      <y>417</y>     </coord>
+     <coord>
 <x>275</x>
-     <y>270</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>270</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>label_begin</fromnode-name>
-   <fromserviceparameter-name>KT</fromserviceparameter-name>
-   <tonode-name>label_test</tonode-name>
-   <toserviceparameter-name>KT</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>KT</fromserviceparameter-name>
+    <tonode-name>label_test</tonode-name>
+    <toserviceparameter-name>KT</toserviceparameter-name>
+    <coord-list>
 <coord>
 <x>476</x>
-     <y>294</y>    </coord>
-    <coord>
+      <y>294</y>     </coord>
+     <coord>
 <x>475</x>
-     <y>515</y>    </coord>
-    <coord>
+      <y>515</y>     </coord>
+     <coord>
 <x>260</x>
-     <y>515</y>    </coord>
-    <coord>
+      <y>515</y>     </coord>
+     <coord>
 <x>260</x>
-     <y>298</y>    </coord>   </coord-list>  </link>
-  <link>
-<fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>Incr</fromserviceparameter-name>
-   <tonode-name>incr</tonode-name>
-   <toserviceparameter-name>InGate</toserviceparameter-name>
-   <coord-list>
-<coord>
-<x>712</x>
-     <y>292</y>    </coord>
-    <coord>
-<x>711</x>
-     <y>238</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>298</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>Even</fromserviceparameter-name>
-   <tonode-name>div2</tonode-name>
-   <toserviceparameter-name>InGate</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>Even</fromserviceparameter-name>
+    <tonode-name>div2</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list>
 <coord>
 <x>724</x>
-     <y>498</y>    </coord>
-    <coord>
+      <y>498</y>     </coord>
+     <coord>
 <x>723</x>
-     <y>268</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>268</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>Odd</fromserviceparameter-name>
-   <tonode-name>m3p1</tonode-name>
-   <toserviceparameter-name>InGate</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>Odd</fromserviceparameter-name>
+    <tonode-name>m3p1</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list>
 <coord>
 <x>698</x>
-     <y>132</y>    </coord>
-    <coord>
+      <y>132</y>     </coord>
+     <coord>
 <x>697</x>
-     <y>297</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>297</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>N</fromserviceparameter-name>
-   <tonode-name>m3p1</tonode-name>
-   <toserviceparameter-name>anOddInteger</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>N</fromserviceparameter-name>
+    <tonode-name>m3p1</tonode-name>
+    <toserviceparameter-name>anOddInteger</toserviceparameter-name>
+    <coord-list>
 <coord>
 <x>748</x>
-     <y>100</y>    </coord>
-    <coord>
+      <y>100</y>     </coord>
+     <coord>
 <x>747</x>
-     <y>325</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>325</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>N</fromserviceparameter-name>
-   <tonode-name>div2</tonode-name>
-   <toserviceparameter-name>anEvenInteger</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>N</fromserviceparameter-name>
+    <tonode-name>div2</tonode-name>
+    <toserviceparameter-name>anEvenInteger</toserviceparameter-name>
+    <coord-list>
 <coord>
 <x>746</x>
-     <y>463</y>    </coord>
-    <coord>
+      <y>463</y>     </coord>
+     <coord>
 <x>747</x>
-     <y>327</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>327</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>K</fromserviceparameter-name>
-   <tonode-name>incr</tonode-name>
-   <toserviceparameter-name>aCount</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>K</fromserviceparameter-name>
+    <tonode-name>incr</tonode-name>
+    <toserviceparameter-name>aCount</toserviceparameter-name>
+    <coord-list>
 <coord>
 <x>732</x>
-     <y>260</y>    </coord>
-    <coord>
+      <y>260</y>     </coord>
+     <coord>
 <x>732</x>
-     <y>354</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>354</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>label_test</fromnode-name>
-   <fromserviceparameter-name>Default</fromserviceparameter-name>
-   <tonode-name>EndL_OneEven</tonode-name>
-   <toserviceparameter-name>Default</toserviceparameter-name>
-   <coord-list/>  </link>
-  <link>
+    <fromserviceparameter-name>Default</fromserviceparameter-name>
+    <tonode-name>EndL_OneEven</tonode-name>
+    <toserviceparameter-name>Default</toserviceparameter-name>
+    <coord-list/>   </link>
+   <link>
 <fromnode-name>control_m3p1</fromnode-name>
-   <fromserviceparameter-name>OutGate</fromserviceparameter-name>
-   <tonode-name>label_test</tonode-name>
-   <toserviceparameter-name>InGate</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>Gate</fromserviceparameter-name>
+    <tonode-name>label_test</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list>
 <coord>
 <x>503</x>
-     <y>388</y>    </coord>
-    <coord>
+      <y>388</y>     </coord>
+     <coord>
 <x>505</x>
-     <y>5</y>    </coord>
-    <coord>
+      <y>5</y>     </coord>
+     <coord>
 <x>1149</x>
-     <y>5</y>    </coord>
-    <coord>
+      <y>5</y>     </coord>
+     <coord>
 <x>1150</x>
-     <y>219</y>    </coord>   </coord-list>  </link>
-  <link>
+      <y>219</y>     </coord>    </coord-list>   </link>
+   <link>
 <fromnode-name>control_div2</fromnode-name>
-   <fromserviceparameter-name>OutGate</fromserviceparameter-name>
-   <tonode-name>label_begin</tonode-name>
-   <toserviceparameter-name>InGate</toserviceparameter-name>
-   <coord-list>
+    <fromserviceparameter-name>Gate</fromserviceparameter-name>
+    <tonode-name>label_begin</tonode-name>
+    <toserviceparameter-name>Gate</toserviceparameter-name>
+    <coord-list>
 <coord>
 <x>34</x>
-     <y>332</y>    </coord>
-    <coord>
+      <y>332</y>     </coord>
+     <coord>
 <x>34</x>
-     <y>592</y>    </coord>
-    <coord>
+      <y>592</y>     </coord>
+     <coord>
 <x>1145</x>
-     <y>586</y>    </coord>
-    <coord>
+      <y>586</y>     </coord>
+     <coord>
 <x>1144</x>
-     <y>527</y>    </coord>   </coord-list>  </link> </link-list>
- <data-list>
+      <y>527</y>     </coord>    </coord-list>   </link>  </link-list>
 <data-list>
 <data>
-<fromnode-name>GraphSyrControlGUI</fromnode-name>
-   <fromserviceparameter-name>label_begin\NB</fromserviceparameter-name>
-   <tonode-name>label_begin</tonode-name>
-   <toserviceparameter-name>NB</toserviceparameter-name>
-   <data-value>
+<fromnode-name>GraphSyrControlGUI_2</fromnode-name>
+    <fromserviceparameter-name>label_begin__NB</fromserviceparameter-name>
+    <tonode-name>label_begin</tonode-name>
+    <toserviceparameter-name>NB</toserviceparameter-name>
+    <data-value>
 <value-type>3</value-type>
-    <value>7</value>   </data-value>
-   <coord-list/>  </data>
-  <data>
-<fromnode-name>GraphSyrControlGUI</fromnode-name>
-   <fromserviceparameter-name>label_begin\KB</fromserviceparameter-name>
-   <tonode-name>label_begin</tonode-name>
-   <toserviceparameter-name>KB</toserviceparameter-name>
-   <data-value>
+     <value>7</value>    </data-value>
+    <coord-list/>   </data>
+   <data>
+<fromnode-name>GraphSyrControlGUI_2</fromnode-name>
+    <fromserviceparameter-name>label_begin__KB</fromserviceparameter-name>
+    <tonode-name>label_begin</tonode-name>
+    <toserviceparameter-name>KB</toserviceparameter-name>
+    <data-value>
 <value-type>3</value-type>
-    <value>0</value>   </data-value>
-   <coord-list/>  </data> </data-list></dataflow>
+     <value>0</value>    </data-value>
+    <coord-list/>   </data>  </data-list> </dataflow></supergraph>