]> SALOME platform Git repositories - modules/superv.git/blobdiff - examples/GraphSyracuseC_Void.py
Salome HOME
This commit was generated by cvs2git to create branch 'Tag-First-
[modules/superv.git] / examples / GraphSyracuseC_Void.py
diff --git a/examples/GraphSyracuseC_Void.py b/examples/GraphSyracuseC_Void.py
deleted file mode 100644 (file)
index b4effae..0000000
+++ /dev/null
@@ -1,160 +0,0 @@
-
-# Generated python file of Graph GraphSyracuseC_Void
-
-from SuperV import *
-# Graph creation 
-GraphSyracuseC_Void = Graph( 'GraphSyracuseC_Void' )
-print GraphSyracuseC_Void.SetName( 'GraphSyracuseC_Void' )
-print GraphSyracuseC_Void.SetAuthor( 'JR' )
-print GraphSyracuseC_Void.SetContainer( 'localhost/FactoryServer' )
-print GraphSyracuseC_Void.SetComment( 'Syracuse algorithm' )
-GraphSyracuseC_Void.Coords( 0 , 0 )
-
-# Creation of Nodes
-test_ISEVEN = GraphSyracuseC_Void.Node( 'SyrComponent' , 'SyrComponent' , 'C_ISEVEN' )
-print test_ISEVEN.SetName( 'test_ISEVEN' )
-print test_ISEVEN.SetAuthor( '' )
-print test_ISEVEN.SetContainer( 'localhost/FactoryServer' )
-print test_ISEVEN.SetComment( '' )
-test_ISEVEN.Coords( 5 , 416 )
-test_ISONE = GraphSyracuseC_Void.Node( 'SyrComponent' , 'SyrComponent' , 'C_ISONE' )
-print test_ISONE.SetName( 'test_ISONE' )
-print test_ISONE.SetAuthor( '' )
-print test_ISONE.SetContainer( 'localhost/FactoryServer' )
-print test_ISONE.SetComment( '' )
-test_ISONE.Coords( 7 , 232 )
-m3p1 = GraphSyracuseC_Void.Node( 'SyrComponent' , 'SyrComponent' , 'C_M3P1' )
-print m3p1.SetName( 'm3p1' )
-print m3p1.SetAuthor( '' )
-print m3p1.SetContainer( 'localhost/FactoryServer' )
-print m3p1.SetComment( '' )
-m3p1.Coords( 180 , 417 )
-div2 = GraphSyracuseC_Void.Node( 'SyrComponent' , 'SyrComponent' , 'C_DIV2' )
-print div2.SetName( 'div2' )
-print div2.SetAuthor( '' )
-print div2.SetContainer( 'localhost/FactoryServer' )
-print div2.SetComment( '' )
-div2.Coords( 435 , 7 )
-div2_ISEVEN = GraphSyracuseC_Void.Node( 'SyrComponent' , 'SyrComponent' , 'C_ISEVEN' )
-print div2_ISEVEN.SetName( 'div2_ISEVEN' )
-print div2_ISEVEN.SetAuthor( '' )
-print div2_ISEVEN.SetContainer( 'localhost/FactoryServer' )
-print div2_ISEVEN.SetComment( '' )
-div2_ISEVEN.Coords( 619 , 191 )
-div2_ISONE = GraphSyracuseC_Void.Node( 'SyrComponent' , 'SyrComponent' , 'C_ISONE' )
-print div2_ISONE.SetName( 'div2_ISONE' )
-print div2_ISONE.SetAuthor( '' )
-print div2_ISONE.SetContainer( 'localhost/FactoryServer' )
-print div2_ISONE.SetComment( '' )
-div2_ISONE.Coords( 616 , 6 )
-incr = GraphSyracuseC_Void.Node( 'SyrComponent' , 'SyrComponent' , 'C_INCR' )
-print incr.SetName( 'incr' )
-print incr.SetAuthor( '' )
-print incr.SetContainer( 'localhost/FactoryServer' )
-print incr.SetComment( '' )
-incr.Coords( 434 , 193 )
-
-# Creation of intermediate Output variables and of links
-test_ISEVENOutVoid = test_ISEVEN.Port( 'OutVoid' )
-m3p1InVoid = GraphSyracuseC_Void.Link( test_ISEVENOutVoid , m3p1.Port( 'InVoid' ) )
-m3p1anEvenInteger = m3p1.Port( 'anEvenInteger' )
-div2anEvenInteger = GraphSyracuseC_Void.Link( m3p1anEvenInteger , div2.Port( 'anEvenInteger' ) )
-print div2anEvenInteger.AddCoord( 1 , 368 , 158 )
-print div2anEvenInteger.AddCoord( 2 , 369 , 568 )
-div2anInteger = div2.Port( 'anInteger' )
-div2_ISONEanInteger = GraphSyracuseC_Void.Link( div2anInteger , div2_ISONE.Port( 'anInteger' ) )
-div2_ISEVENanInteger = GraphSyracuseC_Void.Link( div2anInteger , div2_ISEVEN.Port( 'anInteger' ) )
-print div2_ISEVENanInteger.AddCoord( 1 , 603 , 342 )
-print div2_ISEVENanInteger.AddCoord( 2 , 603 , 158 )
-
-# Creation of Input datas
-test_ISEVENanInteger = test_ISEVEN.Input( 'anInteger' , 31)
-test_ISONEanInteger = test_ISONE.Input( 'anInteger' , 31)
-m3p1anOddInteger = m3p1.Input( 'anOddInteger' , 31)
-div2InanEvenInteger = div2.Port( 'anEvenInteger' )
-incraCount = incr.Input( 'aCount' , 0)
-
-# Missing Input datas
-
-# Creation of Output variables
-test_ISEVENBoolEven = test_ISEVEN.Port( 'BoolEven' )
-test_ISONEBoolOne = test_ISONE.Port( 'BoolOne' )
-div2_ISEVENBoolEven = div2_ISEVEN.Port( 'BoolEven' )
-div2_ISONEBoolOne = div2_ISONE.Port( 'BoolOne' )
-incraNewCount = incr.Port( 'aNewCount' )
-
-GraphSyracuseC_Void.IsValid()
-
-GraphSyracuseC_Void.ThreadsMax()
-
-GraphSyracuseC_Void.LevelMax()
-
-GraphSyracuseC_Void.GraphsNumber()
-
-curM3P1 = m3p1.Input( 'anOddInteger' , 31 )
-curtestISEVEN = test_ISEVEN.Input( 'anInteger' , curM3P1.ToAny() )
-curtestISONE = test_ISONE.Input( 'anInteger' , curM3P1.ToAny() )
-
-GraphSyracuseC_Void.IsExecutable()
-
-GraphSyracuseC_Void.Start()
-
-m3p1.Suspend()
-
-div2_ISEVEN.SuspendDone()
-div2_ISONE.SuspendDone()
-
-test_ISEVEN.Resume()
-test_ISONE.Resume()
-
-# Attente de fin d'exécution de test
-test_ISONE.DoneW()
-test_ISEVEN.DoneW()
-
-m3p1.SuspendedW()
-incr.SuspendedW()
-incr.SuspendDone()
-
-# Etats et Threads des nodes
-GraphSyracuseC_Void.PrintThreads()
-
-BoolOne = int( test_ISONEBoolOne.ToString() )
-BoolEven = int( test_ISEVENBoolEven.ToString() )
-while BoolOne == 0 :
-    if BoolEven == 0 :
-        sts = div2_ISONE.ReRunAt('m3p1')
-        sts = incr.ReRun()
-        sts = m3p1.DoneW()
-        sts = incr.DoneW()
-        sts = incraCount.Input( int( incraNewCount.ToString() ) + 1 )
-        BoolEven = 1 
-        BoolOne = 0
-        Current = int( m3p1anEvenInteger.ToString() )
-        print "m3p1",Current,BoolEven
-    while BoolEven == 1 :
-        sts = incr.ReRun()
-        sts = div2.DoneW()
-        sts = div2_ISEVEN.DoneW()
-        sts = div2_ISONE.DoneW()
-        sts = incr.DoneW()
-        sts = incraCount.Input( incraNewCount.ToString() )
-        BoolOne = int( div2_ISONEBoolOne.ToString() )
-        BoolEven = int( div2_ISEVENBoolEven.ToString() )
-        Current = int( div2anInteger.ToString() )
-        print "div2",Current,BoolEven,BoolOne
-        if BoolEven == 1 :
-            div2InanEvenInteger.Input( Current )
-            sts = div2_ISONE.ReRunAt('div2')
-    sts = curM3P1.Input( Current )
-
-
-GraphSyracuseC_Void.PrintThreads()
-m3p1.Resume()
-div2.Resume()
-incr.Resume()
-div2_ISONE.Resume()
-div2_ISEVEN.Resume()
-GraphSyracuseC_Void.DoneW()
-GraphSyracuseC_Void.PrintPorts()
-GraphSyracuseC_Void.PrintThreads()
-