Salome HOME
Updated example graphs from Jean Rahuel. Switch nodes in the graphs were modified.
[modules/superv.git] / examples / GraphSyrControl1.py
index 254113c4664bc02679dad3dbdc4126dae7dc3617..77c385d71389e403d0436f92cebdc0f35cdac93e 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( 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 = 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( 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 = 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( 623 , 206 )
+    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( 1017 , 247 )
+    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( 399 , 177 )
+    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( 821 , 28 )
+    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( 818 , 358 )
+    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 )
+    Lm3p1anEvenIntegercontrol_m3p1N.AddCoord( 1 , 793 , 62 )
+    Lm3p1anEvenIntegercontrol_m3p1N.AddCoord( 2 , 792 , 111 )
+    
+    Ldiv2anIntegercontrol_div2N = GraphSyrControlGUI.Link( Odiv2anInteger , Icontrol_div2N )
+    Ldiv2anIntegercontrol_div2N.AddCoord( 1 , 797 , 392 )
+    Ldiv2anIntegercontrol_div2N.AddCoord( 2 , 798 , 471 )
+    
+    LincraNewCountcontrol_div2K = GraphSyrControlGUI.Link( OincraNewCount , Icontrol_div2K )
+    LincraNewCountcontrol_div2K.AddCoord( 1 , 809 , 420 )
+    LincraNewCountcontrol_div2K.AddCoord( 2 , 808 , 288 )
+    
+    LincraNewCountcontrol_m3p1K = GraphSyrControlGUI.Link( OincraNewCount , Icontrol_m3p1K )
+    LincraNewCountcontrol_m3p1K.AddCoord( 1 , 807 , 91 )
+    LincraNewCountcontrol_m3p1K.AddCoord( 2 , 808 , 286 )
+    
+    Llabel_beginNTtest_ISONEanInteger = GraphSyrControlGUI.Link( Olabel_beginNT , Itest_ISONEanInteger )
+    Llabel_beginNTtest_ISONEanInteger.AddCoord( 1 , 180 , 211 )
+    Llabel_beginNTtest_ISONEanInteger.AddCoord( 2 , 179 , 269 )
+    
+    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 , 179 , 271 )
+    
+    Llabel_beginKTlabel_testKT = GraphSyrControlGUI.Link( Olabel_beginKT , Ilabel_testKT )
+    
+    Llabel_testEvendiv2Gate = GraphSyrControlGUI.Link( Olabel_testEven , Idiv2Gate )
+    Llabel_testEvendiv2Gate.AddCoord( 1 , 583 , 500 )
+    Llabel_testEvendiv2Gate.AddCoord( 2 , 582 , 269 )
+    
+    Llabel_testOddm3p1Gate = GraphSyrControlGUI.Link( Olabel_testOdd , Im3p1Gate )
+    Llabel_testOddm3p1Gate.AddCoord( 1 , 571 , 138 )
+    Llabel_testOddm3p1Gate.AddCoord( 2 , 573 , 298 )
+    
+    Llabel_testNm3p1anOddInteger = GraphSyrControlGUI.Link( Olabel_testN , Im3p1anOddInteger )
+    Llabel_testNm3p1anOddInteger.AddCoord( 1 , 604 , 110 )
+    Llabel_testNm3p1anOddInteger.AddCoord( 2 , 605 , 328 )
+    
+    Llabel_testNdiv2anEvenInteger = GraphSyrControlGUI.Link( Olabel_testN , Idiv2anEvenInteger )
+    Llabel_testNdiv2anEvenInteger.AddCoord( 1 , 606 , 471 )
+    Llabel_testNdiv2anEvenInteger.AddCoord( 2 , 605 , 328 )
+    
+    Llabel_testKincraCount = GraphSyrControlGUI.Link( Olabel_testK , IincraCount )
+    Llabel_testKincraCount.AddCoord( 1 , 594 , 287 )
+    Llabel_testKincraCount.AddCoord( 2 , 595 , 356 )
+    
+    Llabel_testDefaultEndL_OneEvenDefault = GraphSyrControlGUI.Link( Olabel_testDefault , IEndL_OneEvenDefault )
+    Llabel_testDefaultEndL_OneEvenDefault.AddCoord( 1 , 1008 , 281 )
+    Llabel_testDefaultEndL_OneEvenDefault.AddCoord( 2 , 1008 , 560 )
+    Llabel_testDefaultEndL_OneEvenDefault.AddCoord( 3 , 565 , 559 )
+    Llabel_testDefaultEndL_OneEvenDefault.AddCoord( 4 , 564 , 385 )
+    
+    Lcontrol_m3p1Gatelabel_testGate = GraphSyrControlGUI.Link( Ocontrol_m3p1Gate , Ilabel_testGate )
+    Lcontrol_m3p1Gatelabel_testGate.AddCoord( 1 , 368 , 327 )
+    Lcontrol_m3p1Gatelabel_testGate.AddCoord( 2 , 369 , 7 )
+    Lcontrol_m3p1Gatelabel_testGate.AddCoord( 3 , 1009 , 8 )
+    Lcontrol_m3p1Gatelabel_testGate.AddCoord( 4 , 1009 , 179 )
+    
+    Lcontrol_div2Gatelabel_beginGate = GraphSyrControlGUI.Link( Ocontrol_div2Gate , Ilabel_beginGate )
+    Lcontrol_div2Gatelabel_beginGate.AddCoord( 1 , 3 , 327 )
+    Lcontrol_div2Gatelabel_beginGate.AddCoord( 2 , 2 , 582 )
+    Lcontrol_div2Gatelabel_beginGate.AddCoord( 3 , 991 , 583 )
+    Lcontrol_div2Gatelabel_beginGate.AddCoord( 4 , 991 , 451 )
+    
+    # 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()