From 5b5823eac47100349013464d04da12c6984a72eb Mon Sep 17 00:00:00 2001 From: rahuel Date: Fri, 10 Jun 2005 08:17:20 +0000 Subject: [PATCH] *** empty log message *** --- examples/GeomGraph.py | 54 +- examples/GeomGraph.xml | 66 +- examples/GraphBadInputInLoop.py | 24 +- examples/GraphBadInputInLoop.xml | 88 +-- examples/GraphBadInputInLoop1.py | 24 +- examples/GraphBadInputInLoop1.xml | 88 +-- examples/GraphBadInputInLoop2.py | 24 +- examples/GraphBadInputInLoop2.xml | 86 +-- examples/GraphBadInputInLoop3.py | 24 +- examples/GraphBadInputInLoop3.xml | 86 +-- examples/GraphBadOutputOfLoop.py | 28 +- examples/GraphBadOutputOfLoop.xml | 95 +-- examples/GraphBadOutputOfLoop1.py | 25 +- examples/GraphBadOutputOfLoop1.xml | 100 +-- examples/GraphBadOutputOfLoop2.py | 28 +- examples/GraphBadOutputOfLoop2.xml | 109 +-- examples/GraphGOTO1.py | 88 +-- examples/GraphGOTO1.xml | 54 +- examples/GraphGOTOAborted.py | 90 +-- examples/GraphGOTOAborted.xml | 54 +- examples/GraphLoop1.py | 122 ++++ examples/GraphLoop1.xml | 307 +++++++++ examples/GraphLoop2.py | 126 ++++ examples/GraphLoop2.xml | 328 +++++++++ examples/GraphLoopAddMemory.py | 114 ++++ examples/GraphLoopAddMemory.xml | 291 ++++++++ examples/GraphLoopGates1.py | 181 +++++ examples/GraphLoopGates1.xml | 520 ++++++++++++++ examples/GraphLoopPyAddAddMemory.py | 135 ++++ examples/GraphLoopPyAddAddMemory.xml | 342 ++++++++++ examples/GraphLoopsStupidCoupledSwitchs.py | 273 ++++++++ examples/GraphLoopsStupidCoupledSwitchs.xml | 706 ++++++++++++++++++++ examples/GraphMacroNodes.py | 52 +- examples/GraphMacroNodes.xml | 218 +++--- examples/PAL8512.py | 41 ++ examples/PAL8512.xml | 92 +++ examples/PAL8512Ok.py | 40 ++ examples/PAL8512Ok.xml | 90 +++ examples/PAL8512a.py | 39 ++ examples/PAL8512a.xml | 86 +++ examples/PAL8516.py | 54 ++ examples/PAL8516.xml | 122 ++++ examples/PAL9048.py | 31 + examples/PAL9048.xml | 50 ++ examples/PAL9133.py | 40 ++ examples/PAL9133.xml | 65 ++ examples/PAL9133_Input.py | 39 ++ examples/PAL9133_Input.xml | 72 ++ 48 files changed, 4864 insertions(+), 947 deletions(-) create mode 100644 examples/GraphLoop1.py create mode 100644 examples/GraphLoop1.xml create mode 100644 examples/GraphLoop2.py create mode 100644 examples/GraphLoop2.xml create mode 100644 examples/GraphLoopAddMemory.py create mode 100644 examples/GraphLoopAddMemory.xml create mode 100644 examples/GraphLoopGates1.py create mode 100644 examples/GraphLoopGates1.xml create mode 100644 examples/GraphLoopPyAddAddMemory.py create mode 100644 examples/GraphLoopPyAddAddMemory.xml create mode 100644 examples/GraphLoopsStupidCoupledSwitchs.py create mode 100644 examples/GraphLoopsStupidCoupledSwitchs.xml create mode 100644 examples/PAL8512.py create mode 100644 examples/PAL8512.xml create mode 100644 examples/PAL8512Ok.py create mode 100644 examples/PAL8512Ok.xml create mode 100644 examples/PAL8512a.py create mode 100644 examples/PAL8512a.xml create mode 100644 examples/PAL8516.py create mode 100644 examples/PAL8516.xml create mode 100644 examples/PAL9048.py create mode 100644 examples/PAL9048.xml create mode 100644 examples/PAL9133.py create mode 100644 examples/PAL9133.xml create mode 100644 examples/PAL9133_Input.py create mode 100644 examples/PAL9133_Input.xml diff --git a/examples/GeomGraph.py b/examples/GeomGraph.py index 0553d96..20fb113 100644 --- a/examples/GeomGraph.py +++ b/examples/GeomGraph.py @@ -1,19 +1,19 @@ -# Generated python file of Graph aNewDataFlow_1 +# Generated python file of Graph GeomGraph from SuperV import * -# Graph creation of aNewDataFlow_1 -def DefaNewDataFlow_1() : - aNewDataFlow_1 = Graph( 'aNewDataFlow_1' ) - aNewDataFlow_1.SetName( 'aNewDataFlow_1' ) - aNewDataFlow_1.SetAuthor( '' ) - aNewDataFlow_1.SetComment( '' ) - aNewDataFlow_1.Coords( 0 , 0 ) +# Graph creation of GeomGraph +def DefGeomGraph() : + GeomGraph = Graph( 'GeomGraph' ) + GeomGraph.SetName( 'GeomGraph' ) + GeomGraph.SetAuthor( '' ) + GeomGraph.SetComment( '' ) + GeomGraph.Coords( 0 , 0 ) # Creation of Factory Nodes - SetStudyID = aNewDataFlow_1.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'SetStudyID' ) + SetStudyID = GeomGraph.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'SetStudyID' ) SetStudyID.SetName( 'SetStudyID' ) SetStudyID.SetAuthor( '' ) SetStudyID.SetContainer( 'localhost/FactoryServer' ) @@ -23,7 +23,7 @@ def DefaNewDataFlow_1() : ISetStudyIDGate = SetStudyID.GetInPort( 'Gate' ) OSetStudyIDGate = SetStudyID.GetOutPort( 'Gate' ) - MakeBox = aNewDataFlow_1.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeBox' ) + MakeBox = GeomGraph.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeBox' ) MakeBox.SetName( 'MakeBox' ) MakeBox.SetAuthor( '' ) MakeBox.SetContainer( 'localhost/FactoryServer' ) @@ -39,7 +39,7 @@ def DefaNewDataFlow_1() : OMakeBoxreturn = MakeBox.GetOutPort( 'return' ) OMakeBoxGate = MakeBox.GetOutPort( 'Gate' ) - MakeCopy = aNewDataFlow_1.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeCopy' ) + MakeCopy = GeomGraph.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeCopy' ) MakeCopy.SetName( 'MakeCopy' ) MakeCopy.SetAuthor( '' ) MakeCopy.SetContainer( 'localhost/FactoryServer' ) @@ -50,7 +50,7 @@ def DefaNewDataFlow_1() : OMakeCopyreturn = MakeCopy.GetOutPort( 'return' ) OMakeCopyGate = MakeCopy.GetOutPort( 'Gate' ) - TranslateDXDYDZ = aNewDataFlow_1.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'TranslateDXDYDZ' ) + TranslateDXDYDZ = GeomGraph.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'TranslateDXDYDZ' ) TranslateDXDYDZ.SetName( 'TranslateDXDYDZ' ) TranslateDXDYDZ.SetAuthor( '' ) TranslateDXDYDZ.SetContainer( 'localhost/FactoryServer' ) @@ -64,7 +64,7 @@ def DefaNewDataFlow_1() : OTranslateDXDYDZreturn = TranslateDXDYDZ.GetOutPort( 'return' ) OTranslateDXDYDZGate = TranslateDXDYDZ.GetOutPort( 'Gate' ) - MakeCopy_1 = aNewDataFlow_1.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeCopy' ) + MakeCopy_1 = GeomGraph.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeCopy' ) MakeCopy_1.SetName( 'MakeCopy_1' ) MakeCopy_1.SetAuthor( '' ) MakeCopy_1.SetContainer( 'localhost/FactoryServer' ) @@ -75,7 +75,7 @@ def DefaNewDataFlow_1() : OMakeCopy_1return = MakeCopy_1.GetOutPort( 'return' ) OMakeCopy_1Gate = MakeCopy_1.GetOutPort( 'Gate' ) - MakeSphere_1 = aNewDataFlow_1.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeSphere' ) + MakeSphere_1 = GeomGraph.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeSphere' ) MakeSphere_1.SetName( 'MakeSphere_1' ) MakeSphere_1.SetAuthor( '' ) MakeSphere_1.SetContainer( 'localhost/FactoryServer' ) @@ -89,7 +89,7 @@ def DefaNewDataFlow_1() : OMakeSphere_1return = MakeSphere_1.GetOutPort( 'return' ) OMakeSphere_1Gate = MakeSphere_1.GetOutPort( 'Gate' ) - MakeFuse = aNewDataFlow_1.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeFuse' ) + MakeFuse = GeomGraph.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeFuse' ) MakeFuse.SetName( 'MakeFuse' ) MakeFuse.SetAuthor( '' ) MakeFuse.SetContainer( 'localhost/FactoryServer' ) @@ -101,7 +101,7 @@ def DefaNewDataFlow_1() : OMakeFusereturn = MakeFuse.GetOutPort( 'return' ) OMakeFuseGate = MakeFuse.GetOutPort( 'Gate' ) - MakeFuse_1 = aNewDataFlow_1.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeFuse' ) + MakeFuse_1 = GeomGraph.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeFuse' ) MakeFuse_1.SetName( 'MakeFuse_1' ) MakeFuse_1.SetAuthor( '' ) MakeFuse_1.SetContainer( 'localhost/FactoryServer' ) @@ -114,23 +114,23 @@ def DefaNewDataFlow_1() : OMakeFuse_1Gate = MakeFuse_1.GetOutPort( 'Gate' ) # Creation of Links - LSetStudyIDGateMakeBoxGate = aNewDataFlow_1.Link( OSetStudyIDGate , IMakeBoxGate ) + LSetStudyIDGateMakeBoxGate = GeomGraph.Link( OSetStudyIDGate , IMakeBoxGate ) - LSetStudyIDGateMakeSphere_1Gate = aNewDataFlow_1.Link( OSetStudyIDGate , IMakeSphere_1Gate ) + LSetStudyIDGateMakeSphere_1Gate = GeomGraph.Link( OSetStudyIDGate , IMakeSphere_1Gate ) - LMakeBoxreturnMakeCopytheOriginal = aNewDataFlow_1.Link( OMakeBoxreturn , IMakeCopytheOriginal ) + LMakeBoxreturnMakeCopytheOriginal = GeomGraph.Link( OMakeBoxreturn , IMakeCopytheOriginal ) - LMakeBoxreturnMakeCopy_1theOriginal = aNewDataFlow_1.Link( OMakeBoxreturn , IMakeCopy_1theOriginal ) + LMakeBoxreturnMakeCopy_1theOriginal = GeomGraph.Link( OMakeBoxreturn , IMakeCopy_1theOriginal ) - LMakeCopyreturnTranslateDXDYDZtheObject = aNewDataFlow_1.Link( OMakeCopyreturn , ITranslateDXDYDZtheObject ) + LMakeCopyreturnTranslateDXDYDZtheObject = GeomGraph.Link( OMakeCopyreturn , ITranslateDXDYDZtheObject ) - LTranslateDXDYDZreturnMakeFusetheShape1 = aNewDataFlow_1.Link( OTranslateDXDYDZreturn , IMakeFusetheShape1 ) + LTranslateDXDYDZreturnMakeFusetheShape1 = GeomGraph.Link( OTranslateDXDYDZreturn , IMakeFusetheShape1 ) - LMakeCopy_1returnMakeFusetheShape2 = aNewDataFlow_1.Link( OMakeCopy_1return , IMakeFusetheShape2 ) + LMakeCopy_1returnMakeFusetheShape2 = GeomGraph.Link( OMakeCopy_1return , IMakeFusetheShape2 ) - LMakeSphere_1returnMakeFuse_1theShape2 = aNewDataFlow_1.Link( OMakeSphere_1return , IMakeFuse_1theShape2 ) + LMakeSphere_1returnMakeFuse_1theShape2 = GeomGraph.Link( OMakeSphere_1return , IMakeFuse_1theShape2 ) - LMakeFusereturnMakeFuse_1theShape1 = aNewDataFlow_1.Link( OMakeFusereturn , IMakeFuse_1theShape1 ) + LMakeFusereturnMakeFuse_1theShape1 = GeomGraph.Link( OMakeFusereturn , IMakeFuse_1theShape1 ) # Input datas ISetStudyIDtheStudyID.Input( 1 ) @@ -150,7 +150,7 @@ def DefaNewDataFlow_1() : # Output Ports of the graph #OMakeFuse_1return = MakeFuse_1.GetOutPort( 'return' ) - return aNewDataFlow_1 + return GeomGraph -aNewDataFlow_1 = DefaNewDataFlow_1() +GeomGraph = DefGeomGraph() diff --git a/examples/GeomGraph.xml b/examples/GeomGraph.xml index 663002d..f56de43 100644 --- a/examples/GeomGraph.xml +++ b/examples/GeomGraph.xml @@ -5,11 +5,11 @@ ? ? - aNewDataFlow_1 + GeomGraph 1 ? -aNewDataFlow_1 +GeomGraph long @@ -60,7 +60,7 @@ 29/10/2004 - 10:52:34 - 11/11/2004 - 11:41:31 + 6/6/2005 - 10:39:55 2.0 ? ? @@ -83,8 +83,8 @@ - 11/11/2004 - 11:16:35 - 11/11/2004 - 11:16:35 + 6/6/2005 - 10:39:55 + 6/6/2005 - 10:39:55 2.0 ? localhost/FactoryServer @@ -124,8 +124,8 @@ return - 11/11/2004 - 11:17:44 - 11/11/2004 - 11:17:44 + 6/6/2005 - 10:39:55 + 6/6/2005 - 10:39:55 2.0 ? localhost/FactoryServer @@ -150,8 +150,8 @@ return - 11/11/2004 - 11:36:29 - 11/11/2004 - 11:36:29 + 6/6/2005 - 10:39:55 + 6/6/2005 - 10:39:55 2.0 ? localhost/FactoryServer @@ -185,8 +185,8 @@ return - 11/11/2004 - 11:37:10 - 11/11/2004 - 11:37:10 + 6/6/2005 - 10:39:55 + 6/6/2005 - 10:39:55 2.0 ? localhost/FactoryServer @@ -211,8 +211,8 @@ return - 11/11/2004 - 11:38:45 - 11/11/2004 - 11:38:45 + 6/6/2005 - 10:39:55 + 6/6/2005 - 10:39:55 2.0 ? localhost/FactoryServer @@ -246,8 +246,8 @@ return - 11/11/2004 - 11:38:54 - 11/11/2004 - 11:38:54 + 6/6/2005 - 10:39:55 + 6/6/2005 - 10:39:55 2.0 ? localhost/FactoryServer @@ -275,8 +275,8 @@ return - 11/11/2004 - 11:39:55 - 11/11/2004 - 11:39:55 + 6/6/2005 - 10:39:55 + 6/6/2005 - 10:39:55 2.0 ? localhost/FactoryServer @@ -304,8 +304,8 @@ return - 11/11/2004 - 11:40:15 - 11/11/2004 - 11:40:15 + 6/6/2005 - 10:39:55 + 6/6/2005 - 10:39:55 2.0 ? localhost/FactoryServer @@ -369,7 +369,7 @@ -aNewDataFlow_1 +GeomGraph SetStudyID__theStudyID SetStudyID theStudyID @@ -378,7 +378,7 @@ 1 -aNewDataFlow_1 +GeomGraph MakeBox__theX1 MakeBox theX1 @@ -387,7 +387,7 @@ 0 -aNewDataFlow_1 +GeomGraph MakeBox__theY1 MakeBox theY1 @@ -396,7 +396,7 @@ 0 -aNewDataFlow_1 +GeomGraph MakeBox__theZ1 MakeBox theZ1 @@ -405,7 +405,7 @@ 0 -aNewDataFlow_1 +GeomGraph MakeBox__theX2 MakeBox theX2 @@ -414,7 +414,7 @@ 50 -aNewDataFlow_1 +GeomGraph MakeBox__theY2 MakeBox theY2 @@ -423,7 +423,7 @@ 50 -aNewDataFlow_1 +GeomGraph MakeBox__theZ2 MakeBox theZ2 @@ -432,7 +432,7 @@ 50 -aNewDataFlow_1 +GeomGraph TranslateDXDYDZ__theDX TranslateDXDYDZ theDX @@ -441,7 +441,7 @@ 10 -aNewDataFlow_1 +GeomGraph TranslateDXDYDZ__theDY TranslateDXDYDZ theDY @@ -450,7 +450,7 @@ 10 -aNewDataFlow_1 +GeomGraph TranslateDXDYDZ__theDZ TranslateDXDYDZ theDZ @@ -459,7 +459,7 @@ 10 -aNewDataFlow_1 +GeomGraph MakeSphere_1__theX MakeSphere_1 theX @@ -468,7 +468,7 @@ 0 -aNewDataFlow_1 +GeomGraph MakeSphere_1__theY MakeSphere_1 theY @@ -477,7 +477,7 @@ 0 -aNewDataFlow_1 +GeomGraph MakeSphere_1__theZ MakeSphere_1 theZ @@ -486,7 +486,7 @@ 0 -aNewDataFlow_1 +GeomGraph MakeSphere_1__theRadius MakeSphere_1 theRadius diff --git a/examples/GraphBadInputInLoop.py b/examples/GraphBadInputInLoop.py index f8c17e3..28c0c72 100755 --- a/examples/GraphBadInputInLoop.py +++ b/examples/GraphBadInputInLoop.py @@ -15,18 +15,17 @@ def DefGraphBadInputInLoop() : # 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 ' ) + 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 = GraphBadInputInLoop.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' ) @@ -64,7 +63,7 @@ def DefGraphBadInputInLoop() : PyEndOfInitLoop.append( ' DoLoop = 0 ' ) PyEndOfInitLoop.append( ' return DoLoop,Index,Min,Max ' ) EndOfInitLoop.SetPyFunction( 'EndOfInitLoop' , PyEndOfInitLoop ) - IInitLoopInitLoop = InitLoop.GetInPort( 'InitLoop' ) + IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) @@ -82,6 +81,7 @@ def DefGraphBadInputInLoop() : 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' ) @@ -122,8 +122,6 @@ def DefGraphBadInputInLoop() : # Creation of Links LIsOddaEndSwitcha = GraphBadInputInLoop.Link( OIsOdda , IEndSwitcha ) - LIsOddaEndSwitcha.AddCoord( 1 , 576 , 136 ) - LIsOddaEndSwitcha.AddCoord( 2 , 575 , 81 ) LInitLoopIndexSwitcha = GraphBadInputInLoop.Link( OInitLoopIndex , ISwitcha ) @@ -133,13 +131,7 @@ def DefGraphBadInputInLoop() : LSwitchEvenEndSwitchDefault = GraphBadInputInLoop.Link( OSwitchEven , IEndSwitchDefault ) - LSwitchEvenIsOddEven = GraphBadInputInLoop.Link( OSwitchEven , IIsOddEven ) - LSwitchEvenIsOddEven.AddCoord( 1 , 375 , 111 ) - LSwitchEvenIsOddEven.AddCoord( 2 , 375 , 172 ) - LSwitchaIsOdda = GraphBadInputInLoop.Link( OSwitcha , IIsOdda ) - LSwitchaIsOdda.AddCoord( 1 , 362 , 82 ) - LSwitchaIsOdda.AddCoord( 2 , 360 , 201 ) LEndSwitchaEndOfInitLoopIndex = GraphBadInputInLoop.Link( OEndSwitcha , IEndOfInitLoopIndex ) @@ -149,10 +141,8 @@ def DefGraphBadInputInLoop() : IInitLoopIndex.Input( 0 ) IInitLoopMin.Input( 0 ) IInitLoopMax.Input( 100 ) - IEndOfInitLoopMax.Input( 136221856 ) # Output Ports of the graph - #OInitLoopMax = InitLoop.GetOutPort( 'Max' ) #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) diff --git a/examples/GraphBadInputInLoop.xml b/examples/GraphBadInputInLoop.xml index ccec624..ee6a1e6 100755 --- a/examples/GraphBadInputInLoop.xml +++ b/examples/GraphBadInputInLoop.xml @@ -19,15 +19,9 @@ InitLoop__Min long - InitLoop__Max - -long - EndOfInitLoop__Max + InitLoop__Max -long - InitLoop__Max - long EndOfInitLoop__Index @@ -39,7 +33,7 @@ 22/10/2003 - 10:36:39 - 14/12/2004 - 15:56:35 + 6/6/2005 - 11:2:40 1.05 ? ? @@ -58,10 +52,7 @@ long - a - -boolean - Even + a long @@ -70,13 +61,13 @@ IsOdd - - - - - - 14/12/2004 - 15:56:35 - 14/12/2004 - 15:56:35 + + + + + + 6/6/2005 - 11:0:57 + 6/6/2005 - 11:0:57 1.05 ? ? @@ -122,8 +113,8 @@ ? - 14/12/2004 - 15:56:35 - 14/12/2004 - 15:56:35 + 6/6/2005 - 11:0:57 + 6/6/2005 - 11:0:57 1.05 ? ? @@ -169,8 +160,8 @@ - 14/12/2004 - 15:56:35 - 14/12/2004 - 15:56:35 + 6/6/2005 - 11:0:57 + 6/6/2005 - 11:0:57 1.05 ? ? @@ -208,8 +199,8 @@ - 14/12/2004 - 15:56:35 - 14/12/2004 - 15:56:35 + 6/6/2005 - 11:0:57 + 6/6/2005 - 11:0:57 1.05 ? ? @@ -240,8 +231,8 @@ - 14/12/2004 - 15:56:35 - 14/12/2004 - 15:56:35 + 6/6/2005 - 11:0:57 + 6/6/2005 - 11:0:57 1.05 ? ? @@ -268,8 +259,8 @@ - 14/12/2004 - 15:56:35 - 14/12/2004 - 15:56:35 + 6/6/2005 - 11:0:57 + 6/6/2005 - 11:0:57 2.0 ? ? @@ -282,13 +273,7 @@ a EndSwitch a - - -576 - 136 - -575 - 81 + InitLoop DoLoop @@ -311,7 +296,7 @@ EndOfInitLoop DoLoop InitLoop - InitLoop + DoLoop Switch @@ -326,29 +311,11 @@ Default -Switch - Even - IsOdd - Even - - -375 - 111 - -375 - 172 - Switch a IsOdd a - - -362 - 82 - -360 - 201 + EndSwitch a @@ -388,13 +355,4 @@ 3 100 - - -GraphBadInputInLoop - EndOfInitLoop__Max - EndOfInitLoop - Max - -3 - 136221856 diff --git a/examples/GraphBadInputInLoop1.py b/examples/GraphBadInputInLoop1.py index d5d1da8..6738070 100755 --- a/examples/GraphBadInputInLoop1.py +++ b/examples/GraphBadInputInLoop1.py @@ -15,18 +15,17 @@ def DefGraphBadInputInLoop1() : # 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 ' ) + 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 = GraphBadInputInLoop1.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' ) @@ -64,7 +63,7 @@ def DefGraphBadInputInLoop1() : PyEndOfInitLoop.append( ' DoLoop = 0 ' ) PyEndOfInitLoop.append( ' return DoLoop,Index,Min,Max ' ) EndOfInitLoop.SetPyFunction( 'EndOfInitLoop' , PyEndOfInitLoop ) - IInitLoopInitLoop = InitLoop.GetInPort( 'InitLoop' ) + IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) @@ -82,6 +81,7 @@ def DefGraphBadInputInLoop1() : 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' ) @@ -122,8 +122,6 @@ def DefGraphBadInputInLoop1() : # Creation of Links LIsOddaEndSwitcha = GraphBadInputInLoop1.Link( OIsOdda , IEndSwitcha ) - LIsOddaEndSwitcha.AddCoord( 1 , 576 , 136 ) - LIsOddaEndSwitcha.AddCoord( 2 , 575 , 81 ) LInitLoopIndexSwitcha = GraphBadInputInLoop1.Link( OInitLoopIndex , ISwitcha ) @@ -133,13 +131,7 @@ def DefGraphBadInputInLoop1() : LSwitchEvenEndSwitchDefault = GraphBadInputInLoop1.Link( OSwitchEven , IEndSwitchDefault ) - LSwitchEvenIsOddEven = GraphBadInputInLoop1.Link( OSwitchEven , IIsOddEven ) - LSwitchEvenIsOddEven.AddCoord( 1 , 375 , 111 ) - LSwitchEvenIsOddEven.AddCoord( 2 , 375 , 172 ) - LSwitchaIsOdda = GraphBadInputInLoop1.Link( OSwitcha , IIsOdda ) - LSwitchaIsOdda.AddCoord( 1 , 362 , 82 ) - LSwitchaIsOdda.AddCoord( 2 , 360 , 201 ) LEndSwitchaEndOfInitLoopIndex = GraphBadInputInLoop1.Link( OEndSwitcha , IEndOfInitLoopIndex ) @@ -149,10 +141,8 @@ def DefGraphBadInputInLoop1() : IInitLoopIndex.Input( 0 ) IInitLoopMin.Input( 0 ) IInitLoopMax.Input( 100 ) - IEndOfInitLoopMax.Input( 136221856 ) # Output Ports of the graph - #OInitLoopMax = InitLoop.GetOutPort( 'Max' ) #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) diff --git a/examples/GraphBadInputInLoop1.xml b/examples/GraphBadInputInLoop1.xml index 5efd5ef..9fb525a 100755 --- a/examples/GraphBadInputInLoop1.xml +++ b/examples/GraphBadInputInLoop1.xml @@ -19,15 +19,9 @@ InitLoop__Min long - InitLoop__Max - -long - EndOfInitLoop__Max + InitLoop__Max -long - InitLoop__Max - long EndOfInitLoop__Index @@ -39,7 +33,7 @@ 22/10/2003 - 10:36:39 - 14/12/2004 - 15:57:27 + 6/6/2005 - 11:6:0 1.05 ? ? @@ -58,10 +52,7 @@ long - a - -boolean - Even + a long @@ -70,13 +61,13 @@ IsOdd - - - - - - 14/12/2004 - 15:57:27 - 14/12/2004 - 15:57:27 + + + + + + 6/6/2005 - 11:5:18 + 6/6/2005 - 11:5:18 1.05 ? ? @@ -122,8 +113,8 @@ ? - 14/12/2004 - 15:57:27 - 14/12/2004 - 15:57:27 + 6/6/2005 - 11:5:18 + 6/6/2005 - 11:5:18 1.05 ? ? @@ -169,8 +160,8 @@ - 14/12/2004 - 15:57:27 - 14/12/2004 - 15:57:27 + 6/6/2005 - 11:5:18 + 6/6/2005 - 11:5:18 1.05 ? ? @@ -208,8 +199,8 @@ - 14/12/2004 - 15:57:27 - 14/12/2004 - 15:57:27 + 6/6/2005 - 11:5:18 + 6/6/2005 - 11:5:18 1.05 ? ? @@ -240,8 +231,8 @@ - 14/12/2004 - 15:57:27 - 14/12/2004 - 15:57:27 + 6/6/2005 - 11:5:18 + 6/6/2005 - 11:5:18 1.05 ? ? @@ -268,8 +259,8 @@ - 14/12/2004 - 15:57:27 - 14/12/2004 - 15:57:27 + 6/6/2005 - 11:5:18 + 6/6/2005 - 11:5:18 2.0 ? ? @@ -282,13 +273,7 @@ a EndSwitch a - - -576 - 136 - -575 - 81 + InitLoop DoLoop @@ -311,7 +296,7 @@ EndOfInitLoop DoLoop InitLoop - InitLoop + DoLoop Switch @@ -326,29 +311,11 @@ Default -Switch - Even - IsOdd - Even - - -375 - 111 - -375 - 172 - Switch a IsOdd a - - -362 - 82 - -360 - 201 + EndSwitch a @@ -388,13 +355,4 @@ 3 100 - - -GraphBadInputInLoop1 - EndOfInitLoop__Max - EndOfInitLoop - Max - -3 - 136221856 diff --git a/examples/GraphBadInputInLoop2.py b/examples/GraphBadInputInLoop2.py index eea51de..52e8ec1 100755 --- a/examples/GraphBadInputInLoop2.py +++ b/examples/GraphBadInputInLoop2.py @@ -15,18 +15,17 @@ def DefGraphBadInputInLoop2() : # Creation of InLine Nodes PyIsOdd = [] - PyIsOdd.append( 'from time import * ' ) - PyIsOdd.append( 'def IsOdd(a,Even,InputInLoop) : ' ) - PyIsOdd.append( ' print a,"IsOdd (GraphLoopSwitch1)" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a ' ) + PyIsOdd.append( 'from time import * ' ) + PyIsOdd.append( 'def IsOdd(a,InputInLoop) : ' ) + PyIsOdd.append( ' print a,"IsOdd (GraphLoopSwitch1)" ' ) + PyIsOdd.append( ' sleep( 1 ) ' ) + PyIsOdd.append( ' return a ' ) IsOdd = GraphBadInputInLoop2.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' ) IIsOddInputInLoop = IsOdd.InPort( 'InputInLoop' , 'boolean' ) IIsOddGate = IsOdd.GetInPort( 'Gate' ) OIsOdda = IsOdd.OutPort( 'a' , 'long' ) @@ -65,7 +64,7 @@ def DefGraphBadInputInLoop2() : PyEndOfInitLoop.append( ' DoLoop = 0 ' ) PyEndOfInitLoop.append( ' return DoLoop,Index,Min,Max ' ) EndOfInitLoop.SetPyFunction( 'EndOfInitLoop' , PyEndOfInitLoop ) - IInitLoopInitLoop = InitLoop.GetInPort( 'InitLoop' ) + IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) @@ -83,6 +82,7 @@ def DefGraphBadInputInLoop2() : 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' ) @@ -123,8 +123,6 @@ def DefGraphBadInputInLoop2() : # Creation of Links LIsOddaEndSwitcha = GraphBadInputInLoop2.Link( OIsOdda , IEndSwitcha ) - LIsOddaEndSwitcha.AddCoord( 1 , 576 , 136 ) - LIsOddaEndSwitcha.AddCoord( 2 , 575 , 81 ) LInitLoopIndexSwitcha = GraphBadInputInLoop2.Link( OInitLoopIndex , ISwitcha ) @@ -134,13 +132,7 @@ def DefGraphBadInputInLoop2() : LSwitchEvenEndSwitchDefault = GraphBadInputInLoop2.Link( OSwitchEven , IEndSwitchDefault ) - LSwitchEvenIsOddEven = GraphBadInputInLoop2.Link( OSwitchEven , IIsOddEven ) - LSwitchEvenIsOddEven.AddCoord( 1 , 375 , 111 ) - LSwitchEvenIsOddEven.AddCoord( 2 , 375 , 172 ) - LSwitchaIsOdda = GraphBadInputInLoop2.Link( OSwitcha , IIsOdda ) - LSwitchaIsOdda.AddCoord( 1 , 362 , 82 ) - LSwitchaIsOdda.AddCoord( 2 , 360 , 201 ) LEndSwitchaEndOfInitLoopIndex = GraphBadInputInLoop2.Link( OEndSwitcha , IEndOfInitLoopIndex ) @@ -150,10 +142,8 @@ def DefGraphBadInputInLoop2() : IInitLoopIndex.Input( 0 ) IInitLoopMin.Input( 0 ) IInitLoopMax.Input( 100 ) - IEndOfInitLoopMax.Input( 136221856 ) # Output Ports of the graph - #OInitLoopMax = InitLoop.GetOutPort( 'Max' ) #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) diff --git a/examples/GraphBadInputInLoop2.xml b/examples/GraphBadInputInLoop2.xml index 3e5ec3c..e531167 100755 --- a/examples/GraphBadInputInLoop2.xml +++ b/examples/GraphBadInputInLoop2.xml @@ -19,15 +19,9 @@ InitLoop__Min long - InitLoop__Max - -long - EndOfInitLoop__Max + InitLoop__Max -long - InitLoop__Max - long EndOfInitLoop__Index @@ -39,7 +33,7 @@ 22/10/2003 - 10:36:39 - 14/12/2004 - 15:57:56 + 6/6/2005 - 11:9:55 1.05 ? ? @@ -60,9 +54,6 @@ long a -boolean - Even - boolean InputInLoop @@ -73,13 +64,13 @@ IsOdd - - - - - - 14/12/2004 - 15:57:56 - 14/12/2004 - 15:57:56 + + + + + + 6/6/2005 - 11:9:7 + 6/6/2005 - 11:9:7 1.05 ? ? @@ -125,8 +116,8 @@ ? - 14/12/2004 - 15:57:56 - 14/12/2004 - 15:57:56 + 6/6/2005 - 11:9:7 + 6/6/2005 - 11:9:7 1.05 ? ? @@ -172,8 +163,8 @@ - 14/12/2004 - 15:57:56 - 14/12/2004 - 15:57:56 + 6/6/2005 - 11:9:7 + 6/6/2005 - 11:9:7 1.05 ? ? @@ -211,8 +202,8 @@ - 14/12/2004 - 15:57:56 - 14/12/2004 - 15:57:56 + 6/6/2005 - 11:9:7 + 6/6/2005 - 11:9:7 1.05 ? ? @@ -243,8 +234,8 @@ - 14/12/2004 - 15:57:56 - 14/12/2004 - 15:57:56 + 6/6/2005 - 11:9:7 + 6/6/2005 - 11:9:7 1.05 ? ? @@ -271,8 +262,8 @@ - 14/12/2004 - 15:57:56 - 14/12/2004 - 15:57:56 + 6/6/2005 - 11:9:7 + 6/6/2005 - 11:9:7 2.0 ? ? @@ -285,13 +276,7 @@ a EndSwitch a - - -576 - 136 - -575 - 81 + InitLoop DoLoop @@ -314,7 +299,7 @@ EndOfInitLoop DoLoop InitLoop - InitLoop + DoLoop Switch @@ -329,29 +314,11 @@ Default -Switch - Even - IsOdd - Even - - -375 - 111 - -375 - 172 - Switch a IsOdd a - - -362 - 82 - -360 - 201 + EndSwitch a @@ -391,13 +358,4 @@ 3 100 - - -GraphBadInputInLoop2 - EndOfInitLoop__Max - EndOfInitLoop - Max - -3 - 136221856 diff --git a/examples/GraphBadInputInLoop3.py b/examples/GraphBadInputInLoop3.py index 71c7c77..0297578 100755 --- a/examples/GraphBadInputInLoop3.py +++ b/examples/GraphBadInputInLoop3.py @@ -15,18 +15,17 @@ def DefGraphBadInputInLoop3() : # Creation of InLine Nodes PyIsOdd = [] - PyIsOdd.append( 'from time import * ' ) - PyIsOdd.append( 'def IsOdd(a,Even,InputInLoop) : ' ) - PyIsOdd.append( ' print a,"IsOdd (GraphLoopSwitch1)" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a ' ) + PyIsOdd.append( 'from time import * ' ) + PyIsOdd.append( 'def IsOdd(a,InputInLoop) : ' ) + PyIsOdd.append( ' print a,"IsOdd (GraphLoopSwitch1)" ' ) + PyIsOdd.append( ' sleep( 1 ) ' ) + PyIsOdd.append( ' return a ' ) IsOdd = GraphBadInputInLoop3.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' ) IIsOddInputInLoop = IsOdd.InPort( 'InputInLoop' , 'boolean' ) IIsOddGate = IsOdd.GetInPort( 'Gate' ) OIsOdda = IsOdd.OutPort( 'a' , 'long' ) @@ -65,7 +64,7 @@ def DefGraphBadInputInLoop3() : PyEndOfInitLoop.append( ' DoLoop = 0 ' ) PyEndOfInitLoop.append( ' return DoLoop,Index,Min,Max ' ) EndOfInitLoop.SetPyFunction( 'EndOfInitLoop' , PyEndOfInitLoop ) - IInitLoopInitLoop = InitLoop.GetInPort( 'InitLoop' ) + IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) @@ -83,6 +82,7 @@ def DefGraphBadInputInLoop3() : 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' ) @@ -123,8 +123,6 @@ def DefGraphBadInputInLoop3() : # Creation of Links LIsOddaEndSwitcha = GraphBadInputInLoop3.Link( OIsOdda , IEndSwitcha ) - LIsOddaEndSwitcha.AddCoord( 1 , 576 , 136 ) - LIsOddaEndSwitcha.AddCoord( 2 , 575 , 81 ) LInitLoopIndexSwitcha = GraphBadInputInLoop3.Link( OInitLoopIndex , ISwitcha ) @@ -134,13 +132,7 @@ def DefGraphBadInputInLoop3() : LSwitchEvenEndSwitchDefault = GraphBadInputInLoop3.Link( OSwitchEven , IEndSwitchDefault ) - LSwitchEvenIsOddEven = GraphBadInputInLoop3.Link( OSwitchEven , IIsOddEven ) - LSwitchEvenIsOddEven.AddCoord( 1 , 375 , 111 ) - LSwitchEvenIsOddEven.AddCoord( 2 , 375 , 172 ) - LSwitchaIsOdda = GraphBadInputInLoop3.Link( OSwitcha , IIsOdda ) - LSwitchaIsOdda.AddCoord( 1 , 362 , 82 ) - LSwitchaIsOdda.AddCoord( 2 , 360 , 201 ) LEndSwitchaEndOfInitLoopIndex = GraphBadInputInLoop3.Link( OEndSwitcha , IEndOfInitLoopIndex ) @@ -150,13 +142,11 @@ def DefGraphBadInputInLoop3() : IInitLoopIndex.Input( 0 ) IInitLoopMin.Input( 0 ) IInitLoopMax.Input( 100 ) - IEndOfInitLoopMax.Input( 136221856 ) # Input Ports of the graph #IIsOddInputInLoop = IsOdd.GetInPort( 'InputInLoop' ) # Output Ports of the graph - #OInitLoopMax = InitLoop.GetOutPort( 'Max' ) #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) diff --git a/examples/GraphBadInputInLoop3.xml b/examples/GraphBadInputInLoop3.xml index 46199ef..c0f38ff 100755 --- a/examples/GraphBadInputInLoop3.xml +++ b/examples/GraphBadInputInLoop3.xml @@ -22,15 +22,9 @@ InitLoop__Min long - InitLoop__Max - -long - EndOfInitLoop__Max + InitLoop__Max -long - InitLoop__Max - long EndOfInitLoop__Index @@ -45,7 +39,7 @@ 22/10/2003 - 10:36:39 - 14/12/2004 - 15:58:23 + 6/6/2005 - 11:13:36 1.05 ? ? @@ -66,9 +60,6 @@ long a -boolean - Even - boolean InputInLoop @@ -79,13 +70,13 @@ IsOdd - - - - - - 14/12/2004 - 15:58:23 - 14/12/2004 - 15:58:23 + + + + + + 6/6/2005 - 11:11:59 + 6/6/2005 - 11:11:59 1.05 ? ? @@ -131,8 +122,8 @@ ? - 14/12/2004 - 15:58:23 - 14/12/2004 - 15:58:23 + 6/6/2005 - 11:11:59 + 6/6/2005 - 11:11:59 1.05 ? ? @@ -178,8 +169,8 @@ - 14/12/2004 - 15:58:23 - 14/12/2004 - 15:58:23 + 6/6/2005 - 11:11:59 + 6/6/2005 - 11:11:59 1.05 ? ? @@ -217,8 +208,8 @@ - 14/12/2004 - 15:58:23 - 14/12/2004 - 15:58:23 + 6/6/2005 - 11:11:59 + 6/6/2005 - 11:11:59 1.05 ? ? @@ -249,8 +240,8 @@ - 14/12/2004 - 15:58:23 - 14/12/2004 - 15:58:23 + 6/6/2005 - 11:11:59 + 6/6/2005 - 11:11:59 1.05 ? ? @@ -277,8 +268,8 @@ - 14/12/2004 - 15:58:23 - 14/12/2004 - 15:58:23 + 6/6/2005 - 11:11:59 + 6/6/2005 - 11:11:59 2.0 ? ? @@ -291,13 +282,7 @@ a EndSwitch a - - -576 - 136 - -575 - 81 + InitLoop DoLoop @@ -320,7 +305,7 @@ EndOfInitLoop DoLoop InitLoop - InitLoop + DoLoop Switch @@ -335,29 +320,11 @@ Default -Switch - Even - IsOdd - Even - - -375 - 111 - -375 - 172 - Switch a IsOdd a - - -362 - 82 - -360 - 201 + EndSwitch a @@ -397,13 +364,4 @@ 3 100 - - -GraphBadInputInLoop3 - EndOfInitLoop__Max - EndOfInitLoop - Max - -3 - 136221856 diff --git a/examples/GraphBadOutputOfLoop.py b/examples/GraphBadOutputOfLoop.py index 28c91d9..f6478a7 100755 --- a/examples/GraphBadOutputOfLoop.py +++ b/examples/GraphBadOutputOfLoop.py @@ -15,18 +15,17 @@ def DefGraphBadOutputOfLoop() : # Creation of InLine Nodes PyIsOdd = [] - PyIsOdd.append( 'from time import * ' ) - PyIsOdd.append( 'def IsOdd(a,Even,InputInLoop) : ' ) - PyIsOdd.append( ' print a,"IsOdd (GraphLoopSwitch1)" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a ' ) + PyIsOdd.append( 'from time import * ' ) + PyIsOdd.append( 'def IsOdd(a,InputInLoop) : ' ) + PyIsOdd.append( ' print a,"IsOdd (GraphLoopSwitch1)" ' ) + PyIsOdd.append( ' sleep( 1 ) ' ) + PyIsOdd.append( ' return a ' ) IsOdd = GraphBadOutputOfLoop.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' ) IIsOddInputInLoop = IsOdd.InPort( 'InputInLoop' , 'boolean' ) IIsOddGate = IsOdd.GetInPort( 'Gate' ) OIsOdda = IsOdd.OutPort( 'a' , 'long' ) @@ -65,7 +64,7 @@ def DefGraphBadOutputOfLoop() : PyEndOfInitLoop.append( ' DoLoop = 0 ' ) PyEndOfInitLoop.append( ' return DoLoop,Index,Min,Max ' ) EndOfInitLoop.SetPyFunction( 'EndOfInitLoop' , PyEndOfInitLoop ) - IInitLoopInitLoop = InitLoop.GetInPort( 'InitLoop' ) + IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) @@ -83,6 +82,7 @@ def DefGraphBadOutputOfLoop() : 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' ) @@ -123,8 +123,6 @@ def DefGraphBadOutputOfLoop() : # Creation of Links LIsOddaEndSwitcha = GraphBadOutputOfLoop.Link( OIsOdda , IEndSwitcha ) - LIsOddaEndSwitcha.AddCoord( 1 , 576 , 136 ) - LIsOddaEndSwitcha.AddCoord( 2 , 575 , 81 ) LInitLoopIndexSwitcha = GraphBadOutputOfLoop.Link( OInitLoopIndex , ISwitcha ) @@ -134,27 +132,21 @@ def DefGraphBadOutputOfLoop() : LSwitchEvenEndSwitchDefault = GraphBadOutputOfLoop.Link( OSwitchEven , IEndSwitchDefault ) - LSwitchEvenIsOddEven = GraphBadOutputOfLoop.Link( OSwitchEven , IIsOddEven ) - LSwitchEvenIsOddEven.AddCoord( 1 , 375 , 111 ) - LSwitchEvenIsOddEven.AddCoord( 2 , 375 , 172 ) - LSwitchaIsOdda = GraphBadOutputOfLoop.Link( OSwitcha , IIsOdda ) - LSwitchaIsOdda.AddCoord( 1 , 362 , 82 ) - LSwitchaIsOdda.AddCoord( 2 , 360 , 201 ) LEndSwitchaEndOfInitLoopIndex = GraphBadOutputOfLoop.Link( OEndSwitcha , IEndOfInitLoopIndex ) LEndSwitchaBadOutputOfLoopOutputOfLoop = GraphBadOutputOfLoop.Link( OEndSwitcha , IBadOutputOfLoopOutputOfLoop ) # Input datas - IIsOddInputInLoop.Input( 136306160 ) IInitLoopIndex.Input( 0 ) IInitLoopMin.Input( 0 ) IInitLoopMax.Input( 100 ) - IEndOfInitLoopMax.Input( 136221856 ) + + # Input Ports of the graph + #IIsOddInputInLoop = IsOdd.GetInPort( 'InputInLoop' ) # Output Ports of the graph - #OInitLoopMax = InitLoop.GetOutPort( 'Max' ) #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) diff --git a/examples/GraphBadOutputOfLoop.xml b/examples/GraphBadOutputOfLoop.xml index 1965e84..92424d7 100755 --- a/examples/GraphBadOutputOfLoop.xml +++ b/examples/GraphBadOutputOfLoop.xml @@ -22,15 +22,9 @@ InitLoop__Min long - InitLoop__Max - -long - EndOfInitLoop__Max + InitLoop__Max -long - InitLoop__Max - long EndOfInitLoop__Index @@ -42,7 +36,7 @@ 22/10/2003 - 10:36:39 - 14/12/2004 - 15:58:56 + 6/6/2005 - 11:19:39 1.05 ? ? @@ -63,9 +57,6 @@ long a -boolean - Even - boolean InputInLoop @@ -76,13 +67,13 @@ IsOdd - - - - - - 14/12/2004 - 15:58:56 - 14/12/2004 - 15:58:56 + + + + + + 6/6/2005 - 11:18:37 + 6/6/2005 - 11:18:37 1.05 ? ? @@ -128,8 +119,8 @@ ? - 14/12/2004 - 15:58:56 - 14/12/2004 - 15:58:56 + 6/6/2005 - 11:18:37 + 6/6/2005 - 11:18:37 1.05 ? ? @@ -175,8 +166,8 @@ - 14/12/2004 - 15:58:56 - 14/12/2004 - 15:58:56 + 6/6/2005 - 11:18:37 + 6/6/2005 - 11:18:37 1.05 ? ? @@ -214,8 +205,8 @@ - 14/12/2004 - 15:58:56 - 14/12/2004 - 15:58:56 + 6/6/2005 - 11:18:37 + 6/6/2005 - 11:18:37 1.05 ? ? @@ -246,8 +237,8 @@ - 14/12/2004 - 15:58:56 - 14/12/2004 - 15:58:56 + 6/6/2005 - 11:18:37 + 6/6/2005 - 11:18:37 1.05 ? ? @@ -274,8 +265,8 @@ - 14/12/2004 - 15:58:56 - 14/12/2004 - 15:58:56 + 6/6/2005 - 11:18:37 + 6/6/2005 - 11:18:37 2.0 ? ? @@ -288,13 +279,7 @@ a EndSwitch a - - -576 - 136 - -575 - 81 + InitLoop DoLoop @@ -317,7 +302,7 @@ EndOfInitLoop DoLoop InitLoop - InitLoop + DoLoop Switch @@ -332,29 +317,11 @@ Default -Switch - Even - IsOdd - Even - - -375 - 111 - -375 - 172 - Switch a IsOdd a - - -362 - 82 - -360 - 201 + EndSwitch a @@ -369,15 +336,6 @@ -GraphBadOutputOfLoop - IsOdd__InputInLoop - IsOdd - InputInLoop - -3 - 136306160 - - GraphBadOutputOfLoop InitLoop__Index InitLoop @@ -403,13 +361,4 @@ 3 100 - - -GraphBadOutputOfLoop - EndOfInitLoop__Max - EndOfInitLoop - Max - -3 - 136221856 diff --git a/examples/GraphBadOutputOfLoop1.py b/examples/GraphBadOutputOfLoop1.py index 3405c93..700af33 100755 --- a/examples/GraphBadOutputOfLoop1.py +++ b/examples/GraphBadOutputOfLoop1.py @@ -15,19 +15,17 @@ def DefGraphBadOutputOfLoop1() : # Creation of InLine Nodes PyIsOdd = [] - PyIsOdd.append( 'from time import * ' ) - PyIsOdd.append( 'def IsOdd(a,Even,InputInLoop) : ' ) - PyIsOdd.append( ' print a,"IsOdd (GraphLoopSwitch1)" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a ' ) + 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 = GraphBadOutputOfLoop1.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' ) - IIsOddInputInLoop = IsOdd.InPort( 'InputInLoop' , 'boolean' ) IIsOddGate = IsOdd.GetInPort( 'Gate' ) OIsOdda = IsOdd.OutPort( 'a' , 'long' ) OIsOddGate = IsOdd.GetOutPort( 'Gate' ) @@ -65,7 +63,7 @@ def DefGraphBadOutputOfLoop1() : PyEndOfInitLoop.append( ' DoLoop = 0 ' ) PyEndOfInitLoop.append( ' return DoLoop,Index,Min,Max ' ) EndOfInitLoop.SetPyFunction( 'EndOfInitLoop' , PyEndOfInitLoop ) - IInitLoopInitLoop = InitLoop.GetInPort( 'InitLoop' ) + IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) @@ -83,6 +81,7 @@ def DefGraphBadOutputOfLoop1() : 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' ) @@ -123,8 +122,6 @@ def DefGraphBadOutputOfLoop1() : # Creation of Links LIsOddaEndSwitcha = GraphBadOutputOfLoop1.Link( OIsOdda , IEndSwitcha ) - LIsOddaEndSwitcha.AddCoord( 1 , 576 , 136 ) - LIsOddaEndSwitcha.AddCoord( 2 , 575 , 81 ) LInitLoopIndexSwitcha = GraphBadOutputOfLoop1.Link( OInitLoopIndex , ISwitcha ) @@ -136,22 +133,14 @@ def DefGraphBadOutputOfLoop1() : LSwitchEvenEndSwitchDefault = GraphBadOutputOfLoop1.Link( OSwitchEven , IEndSwitchDefault ) - LSwitchEvenIsOddEven = GraphBadOutputOfLoop1.Link( OSwitchEven , IIsOddEven ) - LSwitchEvenIsOddEven.AddCoord( 1 , 375 , 111 ) - LSwitchEvenIsOddEven.AddCoord( 2 , 375 , 172 ) - LSwitchaIsOdda = GraphBadOutputOfLoop1.Link( OSwitcha , IIsOdda ) - LSwitchaIsOdda.AddCoord( 1 , 362 , 82 ) - LSwitchaIsOdda.AddCoord( 2 , 360 , 201 ) LEndSwitchaEndOfInitLoopIndex = GraphBadOutputOfLoop1.Link( OEndSwitcha , IEndOfInitLoopIndex ) # Input datas - IIsOddInputInLoop.Input( 136306160 ) IInitLoopIndex.Input( 0 ) IInitLoopMin.Input( 0 ) IInitLoopMax.Input( 100 ) - IEndOfInitLoopMax.Input( 136221856 ) # Output Ports of the graph #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) diff --git a/examples/GraphBadOutputOfLoop1.xml b/examples/GraphBadOutputOfLoop1.xml index 6f0ed94..8c6419c 100755 --- a/examples/GraphBadOutputOfLoop1.xml +++ b/examples/GraphBadOutputOfLoop1.xml @@ -12,9 +12,6 @@ GraphBadOutputOfLoop1 -boolean - IsOdd__InputInLoop - long InitLoop__Index @@ -22,10 +19,7 @@ InitLoop__Min long - InitLoop__Max - -long - EndOfInitLoop__Max + InitLoop__Max long @@ -39,7 +33,7 @@ 22/10/2003 - 10:36:39 - 14/12/2004 - 15:59:22 + 6/6/2005 - 11:25:16 1.05 ? ? @@ -58,13 +52,7 @@ long - a - -boolean - Even - -boolean - InputInLoop + a long @@ -73,13 +61,13 @@ IsOdd - - - - - - 14/12/2004 - 15:59:22 - 14/12/2004 - 15:59:22 + + + + + + 6/6/2005 - 11:23:48 + 6/6/2005 - 11:23:48 1.05 ? ? @@ -125,8 +113,8 @@ ? - 14/12/2004 - 15:59:22 - 14/12/2004 - 15:59:22 + 6/6/2005 - 11:23:48 + 6/6/2005 - 11:23:48 1.05 ? ? @@ -172,8 +160,8 @@ - 14/12/2004 - 15:59:22 - 14/12/2004 - 15:59:22 + 6/6/2005 - 11:23:48 + 6/6/2005 - 11:23:48 1.05 ? ? @@ -211,8 +199,8 @@ - 14/12/2004 - 15:59:22 - 14/12/2004 - 15:59:22 + 6/6/2005 - 11:23:48 + 6/6/2005 - 11:23:48 1.05 ? ? @@ -243,8 +231,8 @@ - 14/12/2004 - 15:59:22 - 14/12/2004 - 15:59:22 + 6/6/2005 - 11:23:48 + 6/6/2005 - 11:23:48 1.05 ? ? @@ -271,8 +259,8 @@ - 14/12/2004 - 15:59:22 - 14/12/2004 - 15:59:22 + 6/6/2005 - 11:23:48 + 6/6/2005 - 11:23:48 2.0 ? ? @@ -285,13 +273,7 @@ a EndSwitch a - - -576 - 136 - -575 - 81 + InitLoop DoLoop @@ -320,7 +302,7 @@ EndOfInitLoop DoLoop InitLoop - InitLoop + DoLoop Switch @@ -335,29 +317,11 @@ Default -Switch - Even - IsOdd - Even - - -375 - 111 - -375 - 172 - Switch a IsOdd a - - -362 - 82 - -360 - 201 + EndSwitch a @@ -366,15 +330,6 @@ -GraphBadOutputOfLoop1 - IsOdd__InputInLoop - IsOdd - InputInLoop - -3 - 136306160 - - GraphBadOutputOfLoop1 InitLoop__Index InitLoop @@ -400,13 +355,4 @@ 3 100 - - -GraphBadOutputOfLoop1 - EndOfInitLoop__Max - EndOfInitLoop - Max - -3 - 136221856 diff --git a/examples/GraphBadOutputOfLoop2.py b/examples/GraphBadOutputOfLoop2.py index a0a71f1..6beae23 100755 --- a/examples/GraphBadOutputOfLoop2.py +++ b/examples/GraphBadOutputOfLoop2.py @@ -15,19 +15,17 @@ def DefGraphBadOutputOfLoop2() : # Creation of InLine Nodes PyIsOdd = [] - PyIsOdd.append( 'from time import * ' ) - PyIsOdd.append( 'def IsOdd(a,Even,InputInLoop) : ' ) - PyIsOdd.append( ' print a,"IsOdd (GraphLoopSwitch1)" ' ) - PyIsOdd.append( ' sleep( 1 ) ' ) - PyIsOdd.append( ' return a ' ) + 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 = GraphBadOutputOfLoop2.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' ) - IIsOddInputInLoop = IsOdd.InPort( 'InputInLoop' , 'boolean' ) IIsOddGate = IsOdd.GetInPort( 'Gate' ) OIsOdda = IsOdd.OutPort( 'a' , 'long' ) OIsOddGate = IsOdd.GetOutPort( 'Gate' ) @@ -65,7 +63,7 @@ def DefGraphBadOutputOfLoop2() : PyEndOfInitLoop.append( ' DoLoop = 0 ' ) PyEndOfInitLoop.append( ' return DoLoop,Index,Min,Max ' ) EndOfInitLoop.SetPyFunction( 'EndOfInitLoop' , PyEndOfInitLoop ) - IInitLoopInitLoop = InitLoop.GetInPort( 'InitLoop' ) + IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' ) IInitLoopIndex = InitLoop.InPort( 'Index' , 'long' ) IInitLoopMin = InitLoop.InPort( 'Min' , 'long' ) IInitLoopMax = InitLoop.InPort( 'Max' , 'long' ) @@ -83,6 +81,7 @@ def DefGraphBadOutputOfLoop2() : 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' ) @@ -123,8 +122,6 @@ def DefGraphBadOutputOfLoop2() : # Creation of Links LIsOddaEndSwitcha = GraphBadOutputOfLoop2.Link( OIsOdda , IEndSwitcha ) - LIsOddaEndSwitcha.AddCoord( 1 , 576 , 136 ) - LIsOddaEndSwitcha.AddCoord( 2 , 575 , 81 ) LInitLoopIndexSwitcha = GraphBadOutputOfLoop2.Link( OInitLoopIndex , ISwitcha ) @@ -134,27 +131,18 @@ def DefGraphBadOutputOfLoop2() : LSwitchEvenEndSwitchDefault = GraphBadOutputOfLoop2.Link( OSwitchEven , IEndSwitchDefault ) - LSwitchEvenIsOddEven = GraphBadOutputOfLoop2.Link( OSwitchEven , IIsOddEven ) - LSwitchEvenIsOddEven.AddCoord( 1 , 375 , 111 ) - LSwitchEvenIsOddEven.AddCoord( 2 , 375 , 172 ) + LSwitchaBadOutputOfLoopOutputOfLoop = GraphBadOutputOfLoop2.Link( OSwitcha , IBadOutputOfLoopOutputOfLoop ) LSwitchaIsOdda = GraphBadOutputOfLoop2.Link( OSwitcha , IIsOdda ) - LSwitchaIsOdda.AddCoord( 1 , 362 , 82 ) - LSwitchaIsOdda.AddCoord( 2 , 360 , 201 ) - - LSwitchaBadOutputOfLoopOutputOfLoop = GraphBadOutputOfLoop2.Link( OSwitcha , IBadOutputOfLoopOutputOfLoop ) LEndSwitchaEndOfInitLoopIndex = GraphBadOutputOfLoop2.Link( OEndSwitcha , IEndOfInitLoopIndex ) # Input datas - IIsOddInputInLoop.Input( 136306160 ) IInitLoopIndex.Input( 0 ) IInitLoopMin.Input( 0 ) IInitLoopMax.Input( 100 ) - IEndOfInitLoopMax.Input( 136221856 ) # Output Ports of the graph - #OInitLoopMax = InitLoop.GetOutPort( 'Max' ) #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) diff --git a/examples/GraphBadOutputOfLoop2.xml b/examples/GraphBadOutputOfLoop2.xml index 83617b0..b9c3e24 100755 --- a/examples/GraphBadOutputOfLoop2.xml +++ b/examples/GraphBadOutputOfLoop2.xml @@ -12,9 +12,6 @@ GraphBadOutputOfLoop2 -boolean - IsOdd__InputInLoop - long InitLoop__Index @@ -22,15 +19,9 @@ InitLoop__Min long - InitLoop__Max - -long - EndOfInitLoop__Max + InitLoop__Max -long - InitLoop__Max - long EndOfInitLoop__Index @@ -42,7 +33,7 @@ 22/10/2003 - 10:36:39 - 14/12/2004 - 15:59:49 + 6/6/2005 - 11:27:14 1.05 ? ? @@ -61,13 +52,7 @@ long - a - -boolean - Even - -boolean - InputInLoop + a long @@ -76,13 +61,13 @@ IsOdd - - - - - - 14/12/2004 - 15:59:49 - 14/12/2004 - 15:59:49 + + + + + + 6/6/2005 - 11:26:44 + 6/6/2005 - 11:26:44 1.05 ? ? @@ -128,8 +113,8 @@ ? - 14/12/2004 - 15:59:49 - 14/12/2004 - 15:59:49 + 6/6/2005 - 11:26:44 + 6/6/2005 - 11:26:44 1.05 ? ? @@ -175,8 +160,8 @@ - 14/12/2004 - 15:59:49 - 14/12/2004 - 15:59:49 + 6/6/2005 - 11:26:44 + 6/6/2005 - 11:26:44 1.05 ? ? @@ -214,8 +199,8 @@ - 14/12/2004 - 15:59:49 - 14/12/2004 - 15:59:49 + 6/6/2005 - 11:26:44 + 6/6/2005 - 11:26:44 1.05 ? ? @@ -246,8 +231,8 @@ - 14/12/2004 - 15:59:49 - 14/12/2004 - 15:59:49 + 6/6/2005 - 11:26:44 + 6/6/2005 - 11:26:44 1.05 ? ? @@ -274,8 +259,8 @@ - 14/12/2004 - 15:59:49 - 14/12/2004 - 15:59:49 + 6/6/2005 - 11:26:44 + 6/6/2005 - 11:26:44 2.0 ? ? @@ -288,13 +273,7 @@ a EndSwitch a - - -576 - 136 - -575 - 81 + InitLoop DoLoop @@ -317,7 +296,7 @@ EndOfInitLoop DoLoop InitLoop - InitLoop + DoLoop Switch @@ -333,33 +312,15 @@ Switch - Even - IsOdd - Even - - -375 - 111 - -375 - 172 + a + BadOutputOfLoop + OutputOfLoop + Switch a IsOdd a - - -362 - 82 - -360 - 201 - -Switch - a - BadOutputOfLoop - OutputOfLoop EndSwitch @@ -369,15 +330,6 @@ -GraphBadOutputOfLoop2 - IsOdd__InputInLoop - IsOdd - InputInLoop - -3 - 136306160 - - GraphBadOutputOfLoop2 InitLoop__Index InitLoop @@ -403,13 +355,4 @@ 3 100 - - -GraphBadOutputOfLoop2 - EndOfInitLoop__Max - EndOfInitLoop - Max - -3 - 136221856 diff --git a/examples/GraphGOTO1.py b/examples/GraphGOTO1.py index 7201a44..6731b6b 100755 --- a/examples/GraphGOTO1.py +++ b/examples/GraphGOTO1.py @@ -1,19 +1,19 @@ -# Generated python file of Graph GraphGOTO_2_2 +# Generated python file of Graph GraphGOTO1 from SuperV import * -# Graph creation of GraphGOTO_2_2 -def DefGraphGOTO_2_2() : - GraphGOTO_2_2 = Graph( 'GraphGOTO_2_2' ) - GraphGOTO_2_2.SetName( 'GraphGOTO_2_2' ) - GraphGOTO_2_2.SetAuthor( 'JR' ) - GraphGOTO_2_2.SetComment( 'Syracuse algorithm' ) - GraphGOTO_2_2.Coords( 0 , 0 ) +# Graph creation of GraphGOTO1 +def DefGraphGOTO1() : + GraphGOTO1 = Graph( 'GraphGOTO1' ) + GraphGOTO1.SetName( 'GraphGOTO1' ) + GraphGOTO1.SetAuthor( 'JR' ) + GraphGOTO1.SetComment( 'Syracuse algorithm' ) + GraphGOTO1.Coords( 0 , 0 ) # Creation of Factory Nodes - test_ISEVEN = GraphGOTO_2_2.FNode( 'SyrComponent' , 'SyrComponent' , 'C_ISEVEN' ) + test_ISEVEN = GraphGOTO1.FNode( 'SyrComponent' , 'SyrComponent' , 'C_ISEVEN' ) test_ISEVEN.SetName( 'test_ISEVEN' ) test_ISEVEN.SetAuthor( '' ) test_ISEVEN.SetContainer( 'localhost/FactoryServer' ) @@ -24,7 +24,7 @@ def DefGraphGOTO_2_2() : Otest_ISEVENBoolEven = test_ISEVEN.GetOutPort( 'BoolEven' ) Otest_ISEVENGate = test_ISEVEN.GetOutPort( 'Gate' ) - test_ISONE = GraphGOTO_2_2.FNode( 'SyrComponent' , 'SyrComponent' , 'C_ISONE' ) + test_ISONE = GraphGOTO1.FNode( 'SyrComponent' , 'SyrComponent' , 'C_ISONE' ) test_ISONE.SetName( 'test_ISONE' ) test_ISONE.SetAuthor( '' ) test_ISONE.SetContainer( 'localhost/FactoryServer' ) @@ -35,7 +35,7 @@ def DefGraphGOTO_2_2() : Otest_ISONEBoolOne = test_ISONE.GetOutPort( 'BoolOne' ) Otest_ISONEGate = test_ISONE.GetOutPort( 'Gate' ) - m3p1 = GraphGOTO_2_2.FNode( 'SyrComponent' , 'SyrComponent' , 'C_M3P1' ) + m3p1 = GraphGOTO1.FNode( 'SyrComponent' , 'SyrComponent' , 'C_M3P1' ) m3p1.SetName( 'm3p1' ) m3p1.SetAuthor( '' ) m3p1.SetContainer( 'localhost/FactoryServer' ) @@ -46,7 +46,7 @@ def DefGraphGOTO_2_2() : Om3p1anEvenInteger = m3p1.GetOutPort( 'anEvenInteger' ) Om3p1Gate = m3p1.GetOutPort( 'Gate' ) - div2 = GraphGOTO_2_2.FNode( 'SyrComponent' , 'SyrComponent' , 'C_DIV2' ) + div2 = GraphGOTO1.FNode( 'SyrComponent' , 'SyrComponent' , 'C_DIV2' ) div2.SetName( 'div2' ) div2.SetAuthor( '' ) div2.SetContainer( 'localhost/FactoryServer' ) @@ -57,7 +57,7 @@ def DefGraphGOTO_2_2() : Odiv2anInteger = div2.GetOutPort( 'anInteger' ) Odiv2Gate = div2.GetOutPort( 'Gate' ) - incr = GraphGOTO_2_2.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' ) + incr = GraphGOTO1.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' ) incr.SetName( 'incr' ) incr.SetAuthor( '' ) incr.SetContainer( 'localhost/FactoryServer' ) @@ -73,7 +73,7 @@ def DefGraphGOTO_2_2() : Pylabel_begin.append( 'def label_begin( NB , KB ):' ) Pylabel_begin.append( ' print "label_begin",NB,KB' ) Pylabel_begin.append( ' return NB,KB' ) - label_begin = GraphGOTO_2_2.INode( 'label_begin' , Pylabel_begin ) + label_begin = GraphGOTO1.INode( 'label_begin' , Pylabel_begin ) label_begin.SetName( 'label_begin' ) label_begin.SetAuthor( '' ) label_begin.SetComment( 'Python function' ) @@ -89,7 +89,7 @@ def DefGraphGOTO_2_2() : 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 = GraphGOTO_2_2.INode( 'label_test' , Pylabel_test ) + label_test = GraphGOTO1.INode( 'label_test' , Pylabel_test ) label_test.SetName( 'label_test' ) label_test.SetAuthor( '' ) label_test.SetComment( 'Python function' ) @@ -122,7 +122,7 @@ def DefGraphGOTO_2_2() : Pytest.append( ' Odd = 0' ) Pytest.append( ' Even = ValEven' ) Pytest.append( ' return Finished,Incr,Even,Odd,NT,KT' ) - test,EndSwitch_OneEven = GraphGOTO_2_2.SNode( 'Switch_OneEven' , Pytest ) + test,EndSwitch_OneEven = GraphGOTO1.SNode( 'Switch_OneEven' , Pytest ) EndSwitch_OneEven.SetName( 'EndSwitch_OneEven' ) EndSwitch_OneEven.SetAuthor( '' ) EndSwitch_OneEven.SetComment( 'Compute Node' ) @@ -159,7 +159,7 @@ def DefGraphGOTO_2_2() : Pycontrol_m3p1 = [] Pycontrol_m3p1.append( 'def control_m3p1( N , K ):' ) Pycontrol_m3p1.append( ' return 0,1,N,K' ) - control_m3p1 = GraphGOTO_2_2.GNode( 'control_m3p1' , Pycontrol_m3p1 , 'label_test' ) + control_m3p1 = GraphGOTO1.GNode( 'control_m3p1' , Pycontrol_m3p1 , 'label_test' ) control_m3p1.SetName( 'control_m3p1' ) control_m3p1.SetAuthor( '' ) control_m3p1.SetComment( 'Compute Node' ) @@ -176,7 +176,7 @@ def DefGraphGOTO_2_2() : Pycontrol_div2 = [] Pycontrol_div2.append( 'def control_div2( N , NB ) :' ) Pycontrol_div2.append( ' return N,NB' ) - control_div2 = GraphGOTO_2_2.GNode( 'control_div2' , Pycontrol_div2 , 'label_begin' ) + control_div2 = GraphGOTO1.GNode( 'control_div2' , Pycontrol_div2 , 'label_begin' ) control_div2.SetName( 'control_div2' ) control_div2.SetAuthor( '' ) control_div2.SetComment( 'Compute Node' ) @@ -189,81 +189,81 @@ def DefGraphGOTO_2_2() : Ocontrol_div2Gate = control_div2.GetOutPort( 'Gate' ) # Creation of Links - Ltest_ISEVENBoolEvenlabel_testValEven = GraphGOTO_2_2.Link( Otest_ISEVENBoolEven , Ilabel_testValEven ) + Ltest_ISEVENBoolEvenlabel_testValEven = GraphGOTO1.Link( Otest_ISEVENBoolEven , Ilabel_testValEven ) Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 1 , 369 , 273 ) Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 2 , 370 , 498 ) - Ltest_ISONEBoolOnelabel_testValOne = GraphGOTO_2_2.Link( Otest_ISONEBoolOne , Ilabel_testValOne ) + Ltest_ISONEBoolOnelabel_testValOne = GraphGOTO1.Link( Otest_ISONEBoolOne , Ilabel_testValOne ) Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 1 , 384 , 281 ) Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 2 , 384 , 225 ) - Lm3p1anEvenIntegercontrol_m3p1N = GraphGOTO_2_2.Link( Om3p1anEvenInteger , Icontrol_m3p1N ) + Lm3p1anEvenIntegercontrol_m3p1N = GraphGOTO1.Link( Om3p1anEvenInteger , Icontrol_m3p1N ) - Ldiv2anIntegercontrol_div2N = GraphGOTO_2_2.Link( Odiv2anInteger , Icontrol_div2N ) + Ldiv2anIntegercontrol_div2N = GraphGOTO1.Link( Odiv2anInteger , Icontrol_div2N ) - LincraNewCountcontrol_m3p1K = GraphGOTO_2_2.Link( OincraNewCount , Icontrol_m3p1K ) + LincraNewCountcontrol_m3p1K = GraphGOTO1.Link( OincraNewCount , Icontrol_m3p1K ) LincraNewCountcontrol_m3p1K.AddCoord( 1 , 1048 , 139 ) LincraNewCountcontrol_m3p1K.AddCoord( 2 , 1048 , 241 ) - LincraNewCountcontrol_div2K = GraphGOTO_2_2.Link( OincraNewCount , Icontrol_div2K ) + LincraNewCountcontrol_div2K = GraphGOTO1.Link( OincraNewCount , Icontrol_div2K ) LincraNewCountcontrol_div2K.AddCoord( 1 , 1052 , 504 ) LincraNewCountcontrol_div2K.AddCoord( 2 , 1049 , 239 ) - Llabel_beginNTlabel_testNT = GraphGOTO_2_2.Link( Olabel_beginNT , Ilabel_testNT ) + Llabel_beginNTlabel_testNT = GraphGOTO1.Link( Olabel_beginNT , Ilabel_testNT ) - Llabel_beginNTtest_ISONEanInteger = GraphGOTO_2_2.Link( Olabel_beginNT , Itest_ISONEanInteger ) + Llabel_beginNTtest_ISONEanInteger = GraphGOTO1.Link( Olabel_beginNT , Itest_ISONEanInteger ) Llabel_beginNTtest_ISONEanInteger.AddCoord( 1 , 192 , 226 ) Llabel_beginNTtest_ISONEanInteger.AddCoord( 2 , 191 , 331 ) - Llabel_beginNTtest_ISEVENanInteger = GraphGOTO_2_2.Link( Olabel_beginNT , Itest_ISEVENanInteger ) + Llabel_beginNTtest_ISEVENanInteger = GraphGOTO1.Link( Olabel_beginNT , Itest_ISEVENanInteger ) Llabel_beginNTtest_ISEVENanInteger.AddCoord( 1 , 191 , 494 ) Llabel_beginNTtest_ISEVENanInteger.AddCoord( 2 , 192 , 331 ) - Llabel_beginKTlabel_testKT = GraphGOTO_2_2.Link( Olabel_beginKT , Ilabel_testKT ) + Llabel_beginKTlabel_testKT = GraphGOTO1.Link( Olabel_beginKT , Ilabel_testKT ) - Llabel_testValEventestValEven = GraphGOTO_2_2.Link( Olabel_testValEven , ItestValEven ) + Llabel_testValEventestValEven = GraphGOTO1.Link( Olabel_testValEven , ItestValEven ) - Llabel_testValOnetestValOne = GraphGOTO_2_2.Link( Olabel_testValOne , ItestValOne ) + Llabel_testValOnetestValOne = GraphGOTO1.Link( Olabel_testValOne , ItestValOne ) - Llabel_testNTtestNT = GraphGOTO_2_2.Link( Olabel_testNT , ItestNT ) + Llabel_testNTtestNT = GraphGOTO1.Link( Olabel_testNT , ItestNT ) - Llabel_testKTtestKT = GraphGOTO_2_2.Link( Olabel_testKT , ItestKT ) + Llabel_testKTtestKT = GraphGOTO1.Link( Olabel_testKT , ItestKT ) - LtestFinishedEndSwitch_OneEvenFinished = GraphGOTO_2_2.Link( OtestFinished , IEndSwitch_OneEvenFinished ) + LtestFinishedEndSwitch_OneEvenFinished = GraphGOTO1.Link( OtestFinished , IEndSwitch_OneEvenFinished ) - LtestEvendiv2Gate = GraphGOTO_2_2.Link( OtestEven , Idiv2Gate ) + LtestEvendiv2Gate = GraphGOTO1.Link( OtestEven , Idiv2Gate ) LtestEvendiv2Gate.AddCoord( 1 , 793 , 561 ) LtestEvendiv2Gate.AddCoord( 2 , 794 , 310 ) - LtestOddm3p1Gate = GraphGOTO_2_2.Link( OtestOdd , Im3p1Gate ) + LtestOddm3p1Gate = GraphGOTO1.Link( OtestOdd , Im3p1Gate ) LtestOddm3p1Gate.AddCoord( 1 , 778 , 138 ) LtestOddm3p1Gate.AddCoord( 2 , 780 , 328 ) - LtestNm3p1anOddInteger = GraphGOTO_2_2.Link( OtestN , Im3p1anOddInteger ) + LtestNm3p1anOddInteger = GraphGOTO1.Link( OtestN , Im3p1anOddInteger ) LtestNm3p1anOddInteger.AddCoord( 1 , 808 , 113 ) LtestNm3p1anOddInteger.AddCoord( 2 , 807 , 352 ) - LtestNdiv2anEvenInteger = GraphGOTO_2_2.Link( OtestN , Idiv2anEvenInteger ) + LtestNdiv2anEvenInteger = GraphGOTO1.Link( OtestN , Idiv2anEvenInteger ) LtestNdiv2anEvenInteger.AddCoord( 1 , 806 , 537 ) LtestNdiv2anEvenInteger.AddCoord( 2 , 807 , 351 ) - LtestKEndSwitch_OneEvenK = GraphGOTO_2_2.Link( OtestK , IEndSwitch_OneEvenK ) + LtestKEndSwitch_OneEvenK = GraphGOTO1.Link( OtestK , IEndSwitch_OneEvenK ) - LtestKincraCount = GraphGOTO_2_2.Link( OtestK , IincraCount ) + LtestKincraCount = GraphGOTO1.Link( OtestK , IincraCount ) LtestKincraCount.AddCoord( 1 , 773 , 236 ) LtestKincraCount.AddCoord( 2 , 773 , 370 ) - LtestDefaultEndSwitch_OneEvenDefault = GraphGOTO_2_2.Link( OtestDefault , IEndSwitch_OneEvenDefault ) + LtestDefaultEndSwitch_OneEvenDefault = GraphGOTO1.Link( OtestDefault , IEndSwitch_OneEvenDefault ) LtestDefaultEndSwitch_OneEvenDefault.AddCoord( 1 , 840 , 381 ) LtestDefaultEndSwitch_OneEvenDefault.AddCoord( 2 , 839 , 394 ) - Lcontrol_m3p1Gatelabel_testGate = GraphGOTO_2_2.Link( Ocontrol_m3p1Gate , Ilabel_testGate ) + Lcontrol_m3p1Gatelabel_testGate = GraphGOTO1.Link( Ocontrol_m3p1Gate , Ilabel_testGate ) Lcontrol_m3p1Gatelabel_testGate.AddCoord( 1 , 388 , 388 ) Lcontrol_m3p1Gatelabel_testGate.AddCoord( 2 , 389 , 597 ) Lcontrol_m3p1Gatelabel_testGate.AddCoord( 3 , 1441 , 604 ) Lcontrol_m3p1Gatelabel_testGate.AddCoord( 4 , 1441 , 199 ) - Lcontrol_div2Gatelabel_beginGate = GraphGOTO_2_2.Link( Ocontrol_div2Gate , Ilabel_beginGate ) + Lcontrol_div2Gatelabel_beginGate = GraphGOTO1.Link( Ocontrol_div2Gate , Ilabel_beginGate ) Lcontrol_div2Gatelabel_beginGate.AddCoord( 1 , 4 , 388 ) Lcontrol_div2Gatelabel_beginGate.AddCoord( 2 , 3 , 587 ) Lcontrol_div2Gatelabel_beginGate.AddCoord( 3 , 1307 , 586 ) @@ -277,7 +277,7 @@ def DefGraphGOTO_2_2() : #OtestIncr = test.GetOutPort( 'Incr' ) #OEndSwitch_OneEvenFinished = EndSwitch_OneEven.GetOutPort( 'Finished' ) #OEndSwitch_OneEvenK = EndSwitch_OneEven.GetOutPort( 'K' ) - return GraphGOTO_2_2 + return GraphGOTO1 -GraphGOTO_2_2 = DefGraphGOTO_2_2() +GraphGOTO1 = DefGraphGOTO1() diff --git a/examples/GraphGOTO1.xml b/examples/GraphGOTO1.xml index 7aa0df2..620e0db 100755 --- a/examples/GraphGOTO1.xml +++ b/examples/GraphGOTO1.xml @@ -5,11 +5,11 @@ ? ? - GraphGOTO_2_2 + GraphGOTO1 1 ? -GraphGOTO_2_2 +GraphGOTO_2_2_3 long @@ -30,7 +30,7 @@ 17/1/2005 - 13:44:46 - 18/1/2005 - 16:18:56 + 6/6/2005 - 14:54:25 2.0 JR ? @@ -56,8 +56,8 @@ BoolEven - 18/1/2005 - 16:18:56 - 18/1/2005 - 16:18:56 + 6/6/2005 - 14:54:25 + 6/6/2005 - 14:54:25 2.0 ? localhost/FactoryServer @@ -82,8 +82,8 @@ BoolOne - 18/1/2005 - 16:18:56 - 18/1/2005 - 16:18:56 + 6/6/2005 - 14:54:25 + 6/6/2005 - 14:54:25 2.0 ? localhost/FactoryServer @@ -108,8 +108,8 @@ anEvenInteger - 18/1/2005 - 16:18:56 - 18/1/2005 - 16:18:56 + 6/6/2005 - 14:54:25 + 6/6/2005 - 14:54:25 2.0 ? localhost/FactoryServer @@ -134,8 +134,8 @@ anInteger - 18/1/2005 - 16:18:56 - 18/1/2005 - 16:18:56 + 6/6/2005 - 14:54:25 + 6/6/2005 - 14:54:25 2.0 ? localhost/FactoryServer @@ -160,8 +160,8 @@ aNewCount - 18/1/2005 - 16:18:56 - 18/1/2005 - 16:18:56 + 6/6/2005 - 14:54:25 + 6/6/2005 - 14:54:25 2.0 ? localhost/FactoryServer @@ -197,8 +197,8 @@ - 18/1/2005 - 16:18:56 - 18/1/2005 - 16:18:56 + 6/6/2005 - 14:54:25 + 6/6/2005 - 14:54:25 2.0 ? ? @@ -246,8 +246,8 @@ - 18/1/2005 - 16:18:56 - 18/1/2005 - 16:18:56 + 6/6/2005 - 14:54:25 + 6/6/2005 - 14:54:25 2.0 ? ? @@ -313,8 +313,8 @@ - 18/1/2005 - 16:18:56 - 18/1/2005 - 16:18:56 + 6/6/2005 - 14:54:25 + 6/6/2005 - 14:54:25 2.0 ? ? @@ -350,8 +350,8 @@ - 18/1/2005 - 16:18:56 - 18/1/2005 - 16:18:56 + 6/6/2005 - 14:54:25 + 6/6/2005 - 14:54:25 2.0 ? ? @@ -392,8 +392,8 @@ control_m3p1 - 18/1/2005 - 16:18:56 - 18/1/2005 - 16:18:56 + 6/6/2005 - 14:54:25 + 6/6/2005 - 14:54:25 2.0 ? ? @@ -428,8 +428,8 @@ control_div2 - 18/1/2005 - 16:18:56 - 18/1/2005 - 16:18:56 + 6/6/2005 - 14:54:25 + 6/6/2005 - 14:54:25 2.0 ? ? @@ -679,7 +679,7 @@ 528 -GraphGOTO_2_2 +GraphGOTO1 label_begin__NB label_begin NB @@ -688,7 +688,7 @@ 7 -GraphGOTO_2_2 +GraphGOTO1 label_begin__KB label_begin KB diff --git a/examples/GraphGOTOAborted.py b/examples/GraphGOTOAborted.py index 95519b9..f9dc8b3 100644 --- a/examples/GraphGOTOAborted.py +++ b/examples/GraphGOTOAborted.py @@ -1,19 +1,19 @@ -# Generated python file of Graph GraphGOTO_2_2 +# Generated python file of Graph GraphGOTOAborted from SuperV import * -# Graph creation of GraphGOTO_2_2 -def DefGraphGOTO_2_2() : - GraphGOTO_2_2 = Graph( 'GraphGOTO_2_2' ) - GraphGOTO_2_2.SetName( 'GraphGOTO_2_2' ) - GraphGOTO_2_2.SetAuthor( 'JR' ) - GraphGOTO_2_2.SetComment( 'Syracuse algorithm' ) - GraphGOTO_2_2.Coords( 0 , 0 ) +# Graph creation of GraphGOTOAborted +def DefGraphGOTOAborted() : + GraphGOTOAborted = Graph( 'GraphGOTOAborted' ) + GraphGOTOAborted.SetName( 'GraphGOTOAborted' ) + GraphGOTOAborted.SetAuthor( 'JR' ) + GraphGOTOAborted.SetComment( 'Syracuse algorithm' ) + GraphGOTOAborted.Coords( 0 , 0 ) # Creation of Factory Nodes - test_ISEVEN = GraphGOTO_2_2.FNode( 'SyrComponent' , 'SyrComponent' , 'C_ISEVEN' ) + test_ISEVEN = GraphGOTOAborted.FNode( 'SyrComponent' , 'SyrComponent' , 'C_ISEVEN' ) test_ISEVEN.SetName( 'test_ISEVEN' ) test_ISEVEN.SetAuthor( '' ) test_ISEVEN.SetContainer( 'localhost/FactoryServer' ) @@ -24,7 +24,7 @@ def DefGraphGOTO_2_2() : Otest_ISEVENBoolEven = test_ISEVEN.GetOutPort( 'BoolEven' ) Otest_ISEVENGate = test_ISEVEN.GetOutPort( 'Gate' ) - test_ISONE = GraphGOTO_2_2.FNode( 'SyrComponent' , 'SyrComponent' , 'C_ISONE' ) + test_ISONE = GraphGOTOAborted.FNode( 'SyrComponent' , 'SyrComponent' , 'C_ISONE' ) test_ISONE.SetName( 'test_ISONE' ) test_ISONE.SetAuthor( '' ) test_ISONE.SetContainer( 'localhost/FactoryServer' ) @@ -35,7 +35,7 @@ def DefGraphGOTO_2_2() : Otest_ISONEBoolOne = test_ISONE.GetOutPort( 'BoolOne' ) Otest_ISONEGate = test_ISONE.GetOutPort( 'Gate' ) - m3p1 = GraphGOTO_2_2.FNode( 'SyrComponent' , 'SyrComponent' , 'C_M3P1' ) + m3p1 = GraphGOTOAborted.FNode( 'SyrComponent' , 'SyrComponent' , 'C_M3P1' ) m3p1.SetName( 'm3p1' ) m3p1.SetAuthor( '' ) m3p1.SetContainer( 'localhost/FactoryServer' ) @@ -46,7 +46,7 @@ def DefGraphGOTO_2_2() : Om3p1anEvenInteger = m3p1.GetOutPort( 'anEvenInteger' ) Om3p1Gate = m3p1.GetOutPort( 'Gate' ) - div2 = GraphGOTO_2_2.FNode( 'SyrComponent' , 'SyrComponent' , 'C_DIV2' ) + div2 = GraphGOTOAborted.FNode( 'SyrComponent' , 'SyrComponent' , 'C_DIV2' ) div2.SetName( 'div2' ) div2.SetAuthor( '' ) div2.SetContainer( 'localhost/FactoryServer' ) @@ -57,7 +57,7 @@ def DefGraphGOTO_2_2() : Odiv2anInteger = div2.GetOutPort( 'anInteger' ) Odiv2Gate = div2.GetOutPort( 'Gate' ) - incr = GraphGOTO_2_2.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' ) + incr = GraphGOTOAborted.FNode( 'SyrComponent' , 'SyrComponent' , 'C_INCR' ) incr.SetName( 'incr' ) incr.SetAuthor( '' ) incr.SetContainer( 'localhost/FactoryServer' ) @@ -73,7 +73,7 @@ def DefGraphGOTO_2_2() : Pylabel_begin.append( 'def label_begin( NB , KB ):' ) Pylabel_begin.append( ' print "label_begin",NB,KB' ) Pylabel_begin.append( ' return NB,KB' ) - label_begin = GraphGOTO_2_2.INode( 'label_begin' , Pylabel_begin ) + label_begin = GraphGOTOAborted.INode( 'label_begin' , Pylabel_begin ) label_begin.SetName( 'label_begin' ) label_begin.SetAuthor( '' ) label_begin.SetComment( 'Python function' ) @@ -89,7 +89,7 @@ def DefGraphGOTO_2_2() : 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 = GraphGOTO_2_2.INode( 'label_test' , Pylabel_test ) + label_test = GraphGOTOAborted.INode( 'label_test' , Pylabel_test ) label_test.SetName( 'label_test' ) label_test.SetAuthor( '' ) label_test.SetComment( 'Python function' ) @@ -122,7 +122,7 @@ def DefGraphGOTO_2_2() : Pytest.append( ' Odd = 0' ) Pytest.append( ' Even = ValEven' ) Pytest.append( ' return Finished,Incr,Even,Odd,NT,KT' ) - test,EndSwitch_OneEven = GraphGOTO_2_2.SNode( 'Switch_OneEven' , Pytest ) + test,EndSwitch_OneEven = GraphGOTOAborted.SNode( 'Switch_OneEven' , Pytest ) EndSwitch_OneEven.SetName( 'EndSwitch_OneEven' ) EndSwitch_OneEven.SetAuthor( '' ) EndSwitch_OneEven.SetComment( 'Compute Node' ) @@ -159,7 +159,7 @@ def DefGraphGOTO_2_2() : Pycontrol_m3p1 = [] Pycontrol_m3p1.append( 'def control_m3p1( N , K ):' ) Pycontrol_m3p1.append( ' return 0,1,N,K' ) - control_m3p1 = GraphGOTO_2_2.GNode( 'control_m3p1' , Pycontrol_m3p1 , 'label_test' ) + control_m3p1 = GraphGOTOAborted.GNode( 'control_m3p1' , Pycontrol_m3p1 , 'label_test' ) control_m3p1.SetName( 'control_m3p1' ) control_m3p1.SetAuthor( '' ) control_m3p1.SetComment( 'Compute Node' ) @@ -176,7 +176,7 @@ def DefGraphGOTO_2_2() : Pycontrol_div2 = [] Pycontrol_div2.append( 'def control_div2( N , NB ) :' ) Pycontrol_div2.append( ' return N,NB' ) - control_div2 = GraphGOTO_2_2.GNode( 'control_div2' , Pycontrol_div2 , 'label_begin' ) + control_div2 = GraphGOTOAborted.GNode( 'control_div2' , Pycontrol_div2 , 'label_begin' ) control_div2.SetName( 'control_div2' ) control_div2.SetAuthor( '' ) control_div2.SetComment( 'Compute Node' ) @@ -189,83 +189,83 @@ def DefGraphGOTO_2_2() : Ocontrol_div2Gate = control_div2.GetOutPort( 'Gate' ) # Creation of Links - Ltest_ISEVENBoolEvenlabel_testValEven = GraphGOTO_2_2.Link( Otest_ISEVENBoolEven , Ilabel_testValEven ) + Ltest_ISEVENBoolEvenlabel_testValEven = GraphGOTOAborted.Link( Otest_ISEVENBoolEven , Ilabel_testValEven ) Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 1 , 369 , 273 ) Ltest_ISEVENBoolEvenlabel_testValEven.AddCoord( 2 , 370 , 498 ) - Ltest_ISONEBoolOnelabel_testValOne = GraphGOTO_2_2.Link( Otest_ISONEBoolOne , Ilabel_testValOne ) + Ltest_ISONEBoolOnelabel_testValOne = GraphGOTOAborted.Link( Otest_ISONEBoolOne , Ilabel_testValOne ) Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 1 , 384 , 281 ) Ltest_ISONEBoolOnelabel_testValOne.AddCoord( 2 , 384 , 225 ) - Lm3p1anEvenIntegercontrol_m3p1N = GraphGOTO_2_2.Link( Om3p1anEvenInteger , Icontrol_m3p1N ) + Lm3p1anEvenIntegercontrol_m3p1N = GraphGOTOAborted.Link( Om3p1anEvenInteger , Icontrol_m3p1N ) - Ldiv2anIntegercontrol_div2N = GraphGOTO_2_2.Link( Odiv2anInteger , Icontrol_div2N ) + Ldiv2anIntegercontrol_div2N = GraphGOTOAborted.Link( Odiv2anInteger , Icontrol_div2N ) - LincraNewCountcontrol_m3p1K = GraphGOTO_2_2.Link( OincraNewCount , Icontrol_m3p1K ) + LincraNewCountcontrol_m3p1K = GraphGOTOAborted.Link( OincraNewCount , Icontrol_m3p1K ) LincraNewCountcontrol_m3p1K.AddCoord( 1 , 1048 , 139 ) LincraNewCountcontrol_m3p1K.AddCoord( 2 , 1048 , 241 ) - LincraNewCountcontrol_div2K = GraphGOTO_2_2.Link( OincraNewCount , Icontrol_div2K ) + LincraNewCountcontrol_div2K = GraphGOTOAborted.Link( OincraNewCount , Icontrol_div2K ) LincraNewCountcontrol_div2K.AddCoord( 1 , 1052 , 504 ) LincraNewCountcontrol_div2K.AddCoord( 2 , 1049 , 239 ) - Llabel_beginNTlabel_testNT = GraphGOTO_2_2.Link( Olabel_beginNT , Ilabel_testNT ) + Llabel_beginNTlabel_testNT = GraphGOTOAborted.Link( Olabel_beginNT , Ilabel_testNT ) - Llabel_beginNTtest_ISONEanInteger = GraphGOTO_2_2.Link( Olabel_beginNT , Itest_ISONEanInteger ) + Llabel_beginNTtest_ISONEanInteger = GraphGOTOAborted.Link( Olabel_beginNT , Itest_ISONEanInteger ) Llabel_beginNTtest_ISONEanInteger.AddCoord( 1 , 192 , 226 ) Llabel_beginNTtest_ISONEanInteger.AddCoord( 2 , 191 , 331 ) - Llabel_beginNTtest_ISEVENanInteger = GraphGOTO_2_2.Link( Olabel_beginNT , Itest_ISEVENanInteger ) + Llabel_beginNTtest_ISEVENanInteger = GraphGOTOAborted.Link( Olabel_beginNT , Itest_ISEVENanInteger ) Llabel_beginNTtest_ISEVENanInteger.AddCoord( 1 , 191 , 494 ) Llabel_beginNTtest_ISEVENanInteger.AddCoord( 2 , 192 , 331 ) - Llabel_beginKTlabel_testKT = GraphGOTO_2_2.Link( Olabel_beginKT , Ilabel_testKT ) + Llabel_beginKTlabel_testKT = GraphGOTOAborted.Link( Olabel_beginKT , Ilabel_testKT ) - Llabel_testValEventestValEven = GraphGOTO_2_2.Link( Olabel_testValEven , ItestValEven ) + Llabel_testValEventestValEven = GraphGOTOAborted.Link( Olabel_testValEven , ItestValEven ) - Llabel_testValOnetestValOne = GraphGOTO_2_2.Link( Olabel_testValOne , ItestValOne ) + Llabel_testValOnetestValOne = GraphGOTOAborted.Link( Olabel_testValOne , ItestValOne ) - Llabel_testNTtestNT = GraphGOTO_2_2.Link( Olabel_testNT , ItestNT ) + Llabel_testNTtestNT = GraphGOTOAborted.Link( Olabel_testNT , ItestNT ) - Llabel_testKTtestKT = GraphGOTO_2_2.Link( Olabel_testKT , ItestKT ) + Llabel_testKTtestKT = GraphGOTOAborted.Link( Olabel_testKT , ItestKT ) - LtestFinishedEndSwitch_OneEvenFinished = GraphGOTO_2_2.Link( OtestFinished , IEndSwitch_OneEvenFinished ) + LtestFinishedEndSwitch_OneEvenFinished = GraphGOTOAborted.Link( OtestFinished , IEndSwitch_OneEvenFinished ) - LtestIncrincrGate = GraphGOTO_2_2.Link( OtestIncr , IincrGate ) + LtestIncrincrGate = GraphGOTOAborted.Link( OtestIncr , IincrGate ) - LtestEvendiv2Gate = GraphGOTO_2_2.Link( OtestEven , Idiv2Gate ) + LtestEvendiv2Gate = GraphGOTOAborted.Link( OtestEven , Idiv2Gate ) LtestEvendiv2Gate.AddCoord( 1 , 793 , 561 ) LtestEvendiv2Gate.AddCoord( 2 , 794 , 310 ) - LtestOddm3p1Gate = GraphGOTO_2_2.Link( OtestOdd , Im3p1Gate ) + LtestOddm3p1Gate = GraphGOTOAborted.Link( OtestOdd , Im3p1Gate ) LtestOddm3p1Gate.AddCoord( 1 , 778 , 138 ) LtestOddm3p1Gate.AddCoord( 2 , 780 , 328 ) - LtestNm3p1anOddInteger = GraphGOTO_2_2.Link( OtestN , Im3p1anOddInteger ) + LtestNm3p1anOddInteger = GraphGOTOAborted.Link( OtestN , Im3p1anOddInteger ) LtestNm3p1anOddInteger.AddCoord( 1 , 808 , 113 ) LtestNm3p1anOddInteger.AddCoord( 2 , 807 , 352 ) - LtestNdiv2anEvenInteger = GraphGOTO_2_2.Link( OtestN , Idiv2anEvenInteger ) + LtestNdiv2anEvenInteger = GraphGOTOAborted.Link( OtestN , Idiv2anEvenInteger ) LtestNdiv2anEvenInteger.AddCoord( 1 , 806 , 537 ) LtestNdiv2anEvenInteger.AddCoord( 2 , 807 , 351 ) - LtestKEndSwitch_OneEvenK = GraphGOTO_2_2.Link( OtestK , IEndSwitch_OneEvenK ) + LtestKEndSwitch_OneEvenK = GraphGOTOAborted.Link( OtestK , IEndSwitch_OneEvenK ) - LtestKincraCount = GraphGOTO_2_2.Link( OtestK , IincraCount ) + LtestKincraCount = GraphGOTOAborted.Link( OtestK , IincraCount ) LtestKincraCount.AddCoord( 1 , 773 , 236 ) LtestKincraCount.AddCoord( 2 , 773 , 370 ) - LtestDefaultEndSwitch_OneEvenDefault = GraphGOTO_2_2.Link( OtestDefault , IEndSwitch_OneEvenDefault ) + LtestDefaultEndSwitch_OneEvenDefault = GraphGOTOAborted.Link( OtestDefault , IEndSwitch_OneEvenDefault ) LtestDefaultEndSwitch_OneEvenDefault.AddCoord( 1 , 840 , 381 ) LtestDefaultEndSwitch_OneEvenDefault.AddCoord( 2 , 839 , 394 ) - Lcontrol_m3p1Gatelabel_testGate = GraphGOTO_2_2.Link( Ocontrol_m3p1Gate , Ilabel_testGate ) + Lcontrol_m3p1Gatelabel_testGate = GraphGOTOAborted.Link( Ocontrol_m3p1Gate , Ilabel_testGate ) Lcontrol_m3p1Gatelabel_testGate.AddCoord( 1 , 388 , 388 ) Lcontrol_m3p1Gatelabel_testGate.AddCoord( 2 , 389 , 597 ) Lcontrol_m3p1Gatelabel_testGate.AddCoord( 3 , 1441 , 604 ) Lcontrol_m3p1Gatelabel_testGate.AddCoord( 4 , 1441 , 199 ) - Lcontrol_div2Gatelabel_beginGate = GraphGOTO_2_2.Link( Ocontrol_div2Gate , Ilabel_beginGate ) + Lcontrol_div2Gatelabel_beginGate = GraphGOTOAborted.Link( Ocontrol_div2Gate , Ilabel_beginGate ) Lcontrol_div2Gatelabel_beginGate.AddCoord( 1 , 4 , 388 ) Lcontrol_div2Gatelabel_beginGate.AddCoord( 2 , 3 , 587 ) Lcontrol_div2Gatelabel_beginGate.AddCoord( 3 , 1307 , 586 ) @@ -278,7 +278,7 @@ def DefGraphGOTO_2_2() : # Output Ports of the graph #OEndSwitch_OneEvenFinished = EndSwitch_OneEven.GetOutPort( 'Finished' ) #OEndSwitch_OneEvenK = EndSwitch_OneEven.GetOutPort( 'K' ) - return GraphGOTO_2_2 + return GraphGOTOAborted -GraphGOTO_2_2 = DefGraphGOTO_2_2() +GraphGOTOAborted = DefGraphGOTOAborted() diff --git a/examples/GraphGOTOAborted.xml b/examples/GraphGOTOAborted.xml index 2f25ecd..02feebc 100644 --- a/examples/GraphGOTOAborted.xml +++ b/examples/GraphGOTOAborted.xml @@ -5,11 +5,11 @@ ? ? - GraphGOTO_2_2 + GraphGOTOAborted 1 ? -GraphGOTO_2_2 +GraphGOTO_2_2_2 long @@ -27,7 +27,7 @@ 17/1/2005 - 13:44:46 - 19/1/2005 - 18:25:16 + 6/6/2005 - 14:53:29 2.0 JR ? @@ -53,8 +53,8 @@ BoolEven - 19/1/2005 - 18:24:34 - 19/1/2005 - 18:24:34 + 6/6/2005 - 14:53:29 + 6/6/2005 - 14:53:29 2.0 ? localhost/FactoryServer @@ -79,8 +79,8 @@ BoolOne - 19/1/2005 - 18:24:34 - 19/1/2005 - 18:24:34 + 6/6/2005 - 14:53:29 + 6/6/2005 - 14:53:29 2.0 ? localhost/FactoryServer @@ -105,8 +105,8 @@ anEvenInteger - 19/1/2005 - 18:24:34 - 19/1/2005 - 18:24:34 + 6/6/2005 - 14:53:29 + 6/6/2005 - 14:53:29 2.0 ? localhost/FactoryServer @@ -131,8 +131,8 @@ anInteger - 19/1/2005 - 18:24:34 - 19/1/2005 - 18:24:34 + 6/6/2005 - 14:53:29 + 6/6/2005 - 14:53:29 2.0 ? localhost/FactoryServer @@ -157,8 +157,8 @@ aNewCount - 19/1/2005 - 18:24:34 - 19/1/2005 - 18:24:34 + 6/6/2005 - 14:53:29 + 6/6/2005 - 14:53:29 2.0 ? localhost/FactoryServer @@ -194,8 +194,8 @@ - 19/1/2005 - 18:24:34 - 19/1/2005 - 18:24:34 + 6/6/2005 - 14:53:29 + 6/6/2005 - 14:53:29 2.0 ? ? @@ -243,8 +243,8 @@ - 19/1/2005 - 18:24:34 - 19/1/2005 - 18:24:34 + 6/6/2005 - 14:53:29 + 6/6/2005 - 14:53:29 2.0 ? ? @@ -310,8 +310,8 @@ - 19/1/2005 - 18:24:34 - 19/1/2005 - 18:24:34 + 6/6/2005 - 14:53:29 + 6/6/2005 - 14:53:29 2.0 ? ? @@ -347,8 +347,8 @@ - 19/1/2005 - 18:24:34 - 19/1/2005 - 18:24:34 + 6/6/2005 - 14:53:29 + 6/6/2005 - 14:53:29 2.0 ? ? @@ -389,8 +389,8 @@ control_m3p1 - 19/1/2005 - 18:24:34 - 19/1/2005 - 18:24:34 + 6/6/2005 - 14:53:29 + 6/6/2005 - 14:53:29 2.0 ? ? @@ -425,8 +425,8 @@ control_div2 - 19/1/2005 - 18:24:34 - 19/1/2005 - 18:24:34 + 6/6/2005 - 14:53:29 + 6/6/2005 - 14:53:29 2.0 ? ? @@ -682,7 +682,7 @@ 528 -GraphGOTO_2_2 +GraphGOTOAborted label_begin__NB label_begin NB @@ -691,7 +691,7 @@ 7 -GraphGOTO_2_2 +GraphGOTOAborted label_begin__KB label_begin KB diff --git a/examples/GraphLoop1.py b/examples/GraphLoop1.py new file mode 100644 index 0000000..870d265 --- /dev/null +++ b/examples/GraphLoop1.py @@ -0,0 +1,122 @@ + +# Generated python file of Graph GraphLoop1 + +from SuperV import * + +# Graph creation of GraphLoop1 +def DefGraphLoop1() : + GraphLoop1 = Graph( 'GraphLoop1' ) + GraphLoop1.SetName( 'GraphLoop1' ) + GraphLoop1.SetAuthor( '' ) + GraphLoop1.SetComment( '' ) + GraphLoop1.Coords( 0 , 0 ) + + # Creation of Factory Nodes + + # Creation of InLine Nodes + PyNodeIndex = [] + NodeIndex = GraphLoop1.INode( '' , PyNodeIndex ) + NodeIndex.SetName( 'NodeIndex' ) + NodeIndex.SetAuthor( '' ) + NodeIndex.SetComment( 'Compute Node' ) + NodeIndex.Coords( 281 , 215 ) + INodeIndexIndex = NodeIndex.InPort( 'Index' , 'long' ) + INodeIndexGate = NodeIndex.GetInPort( 'Gate' ) + ONodeIndexIndex = NodeIndex.OutPort( 'Index' , 'long' ) + ONodeIndexGate = NodeIndex.GetOutPort( 'Gate' ) + + PyNodeIncr = [] + NodeIncr = GraphLoop1.INode( '' , PyNodeIncr ) + NodeIncr.SetName( 'NodeIncr' ) + NodeIncr.SetAuthor( '' ) + NodeIncr.SetComment( 'Compute Node' ) + NodeIncr.Coords( 278 , 372 ) + INodeIncrIncr = NodeIncr.InPort( 'Incr' , 'long' ) + INodeIncrGate = NodeIncr.GetInPort( 'Gate' ) + ONodeIncrIncr = NodeIncr.OutPort( 'Incr' , 'long' ) + ONodeIncrGate = NodeIncr.GetOutPort( 'Gate' ) + + # Creation of Loop Nodes + PyInit = [] + PyInit.append( 'def Init(Index,Min,Max,Incr) : ' ) + PyInit.append( ' if Min <= Max : ' ) + PyInit.append( ' Index = Min ' ) + PyInit.append( ' else : ' ) + PyInit.append( ' Index = Max ' ) + PyInit.append( ' return Index,Min,Max,Incr ' ) + PyMoreInit = [] + PyMoreInit.append( 'import time ' ) + PyMoreInit.append( 'def More(Index,Min,Max,Incr) : ' ) + PyMoreInit.append( ' time.sleep(2) ' ) + PyMoreInit.append( ' if Index < Max : ' ) + PyMoreInit.append( ' DoLoop = 1 ' ) + PyMoreInit.append( ' else : ' ) + PyMoreInit.append( ' DoLoop = 0 ' ) + PyMoreInit.append( ' return DoLoop,Index,Min,Max,Incr ' ) + PyNextInit = [] + PyNextInit.append( 'def Next(Index,Min,Max,Incr) : ' ) + PyNextInit.append( ' Index = Index + Incr ' ) + PyNextInit.append( ' return Index,Min,Max,Incr ' ) + Init,EndInit = GraphLoop1.LNode( 'Init' , PyInit , 'More' , PyMoreInit , 'Next' , PyNextInit ) + EndInit.SetName( 'EndInit' ) + EndInit.SetAuthor( '' ) + EndInit.SetComment( 'Compute Node' ) + EndInit.Coords( 555 , 255 ) + PyEndInit = [] + EndInit.SetPyFunction( '' , PyEndInit ) + IInitDoLoop = Init.GetInPort( 'DoLoop' ) + IInitIndex = Init.InPort( 'Index' , 'long' ) + IInitMin = Init.InPort( 'Min' , 'long' ) + IInitMax = Init.InPort( 'Max' , 'long' ) + IInitIncr = Init.InPort( 'Incr' , 'long' ) + IInitGate = Init.GetInPort( 'Gate' ) + OInitDoLoop = Init.GetOutPort( 'DoLoop' ) + OInitIndex = Init.GetOutPort( 'Index' ) + OInitMin = Init.GetOutPort( 'Min' ) + OInitMax = Init.GetOutPort( 'Max' ) + OInitIncr = Init.GetOutPort( 'Incr' ) + IEndInitDoLoop = EndInit.GetInPort( 'DoLoop' ) + IEndInitIndex = EndInit.GetInPort( 'Index' ) + IEndInitMin = EndInit.GetInPort( 'Min' ) + IEndInitMax = EndInit.GetInPort( 'Max' ) + IEndInitIncr = EndInit.GetInPort( 'Incr' ) + IEndInitGate = EndInit.GetInPort( 'Gate' ) + OEndInitDoLoop = EndInit.GetOutPort( 'DoLoop' ) + OEndInitIndex = EndInit.GetOutPort( 'Index' ) + OEndInitMin = EndInit.GetOutPort( 'Min' ) + OEndInitMax = EndInit.GetOutPort( 'Max' ) + OEndInitIncr = EndInit.GetOutPort( 'Incr' ) + OEndInitGate = EndInit.GetOutPort( 'Gate' ) + Init.SetName( 'Init' ) + Init.SetAuthor( '' ) + Init.SetComment( 'Compute Node' ) + Init.Coords( 17 , 257 ) + + # Creation of Links + LInitIndexNodeIndexIndex = GraphLoop1.Link( OInitIndex , INodeIndexIndex ) + + LInitMinEndInitMin = GraphLoop1.Link( OInitMin , IEndInitMin ) + + LInitMaxEndInitMax = GraphLoop1.Link( OInitMax , IEndInitMax ) + + LInitIncrNodeIncrIncr = GraphLoop1.Link( OInitIncr , INodeIncrIncr ) + + LNodeIndexIndexEndInitIndex = GraphLoop1.Link( ONodeIndexIndex , IEndInitIndex ) + + LNodeIncrIncrEndInitIncr = GraphLoop1.Link( ONodeIncrIncr , IEndInitIncr ) + + # Input datas + IInitIndex.Input( 0 ) + IInitMin.Input( 5 ) + IInitMax.Input( 10 ) + IInitIncr.Input( 1 ) + + # Output Ports of the graph + #OEndInitIndex = EndInit.GetOutPort( 'Index' ) + #OEndInitMin = EndInit.GetOutPort( 'Min' ) + #OEndInitMax = EndInit.GetOutPort( 'Max' ) + #OEndInitIncr = EndInit.GetOutPort( 'Incr' ) + return GraphLoop1 + + +GraphLoop1 = DefGraphLoop1() diff --git a/examples/GraphLoop1.xml b/examples/GraphLoop1.xml new file mode 100644 index 0000000..f5ad503 --- /dev/null +++ b/examples/GraphLoop1.xml @@ -0,0 +1,307 @@ + + + + + +? + ? + GraphLoop1 + 1 + ? + +GraphLoop_2 + + +long + Init__Index + +long + Init__Min + +long + Init__Max + +long + Init__Incr + + +long + EndInit__Index + +long + EndInit__Min + +long + EndInit__Max + +long + EndInit__Incr + + + 24/3/2003 - 14:44:35 + 6/6/2005 - 15:13:52 + 1.04 + ? + ? + ? + 0 + 0 + + +? + ? + Init + 4 + EndInit + +Init + + +long + Index + +long + Min + +long + Max + +long + Incr + + +long + Index + +long + Min + +long + Max + +long + Incr + + + +Init + + + + + + + +More + + + + + + + + + +Next + + + + 6/6/2005 - 15:13:52 + 6/6/2005 - 15:13:52 + 1.04 + ? + ? + Compute Node + 17 + 257 + +? + ? + EndInit + 5 + Init + +EndInit + + +long + Index + +long + Min + +long + Max + +long + Incr + + +long + Index + +long + Min + +long + Max + +long + Incr + + + +? + + 6/6/2005 - 15:13:52 + 6/6/2005 - 15:13:52 + 1.04 + ? + ? + Compute Node + 555 + 255 + +? + ? + NodeIndex + 3 + ? + +NodeIndex + + +long + Index + + +long + Index + + + +? + + 6/6/2005 - 15:13:52 + 6/6/2005 - 15:13:52 + 2.0 + ? + ? + Compute Node + 281 + 215 + +? + ? + NodeIncr + 3 + ? + +NodeIncr + + +long + Incr + + +long + Incr + + + +? + + 6/6/2005 - 15:13:52 + 6/6/2005 - 15:13:52 + 2.0 + ? + ? + Compute Node + 278 + 372 + + +Init + DoLoop + EndInit + DoLoop + + +Init + Index + NodeIndex + Index + + +Init + Min + EndInit + Min + + +Init + Max + EndInit + Max + + +Init + Incr + NodeIncr + Incr + + +EndInit + DoLoop + Init + DoLoop + + +NodeIndex + Index + EndInit + Index + + +NodeIncr + Incr + EndInit + Incr + + + +GraphLoop1 + Init__Index + Init + Index + +3 + 0 + + +GraphLoop1 + Init__Min + Init + Min + +3 + 5 + + +GraphLoop1 + Init__Max + Init + Max + +3 + 10 + + +GraphLoop1 + Init__Incr + Init + Incr + +3 + 1 + diff --git a/examples/GraphLoop2.py b/examples/GraphLoop2.py new file mode 100644 index 0000000..a9e33ec --- /dev/null +++ b/examples/GraphLoop2.py @@ -0,0 +1,126 @@ + +# Generated python file of Graph GraphLoop2 + +from SuperV import * + +# Graph creation of GraphLoop2 +def DefGraphLoop2() : + GraphLoop2 = Graph( 'GraphLoop2' ) + GraphLoop2.SetName( 'GraphLoop2' ) + GraphLoop2.SetAuthor( '' ) + GraphLoop2.SetComment( '' ) + GraphLoop2.Coords( 0 , 0 ) + + # Creation of Factory Nodes + + # Creation of InLine Nodes + PyNodeIndex = [] + NodeIndex = GraphLoop2.INode( '' , PyNodeIndex ) + NodeIndex.SetName( 'NodeIndex' ) + NodeIndex.SetAuthor( '' ) + NodeIndex.SetComment( 'Compute Node' ) + NodeIndex.Coords( 281 , 215 ) + INodeIndexIndex = NodeIndex.InPort( 'Index' , 'long' ) + INodeIndexGate = NodeIndex.GetInPort( 'Gate' ) + ONodeIndexIndex = NodeIndex.OutPort( 'Index' , 'long' ) + ONodeIndexGate = NodeIndex.GetOutPort( 'Gate' ) + + PyNodeIncr = [] + NodeIncr = GraphLoop2.INode( '' , PyNodeIncr ) + NodeIncr.SetName( 'NodeIncr' ) + NodeIncr.SetAuthor( '' ) + NodeIncr.SetComment( 'Compute Node' ) + NodeIncr.Coords( 278 , 372 ) + INodeIncrIncr = NodeIncr.InPort( 'Incr' , 'long' ) + INodeIncraString = NodeIncr.InPort( 'aString' , 'string' ) + INodeIncrGate = NodeIncr.GetInPort( 'Gate' ) + ONodeIncrIncr = NodeIncr.OutPort( 'Incr' , 'long' ) + ONodeIncraString = NodeIncr.OutPort( 'aString' , 'string' ) + ONodeIncrGate = NodeIncr.GetOutPort( 'Gate' ) + + # Creation of Loop Nodes + PyInit = [] + PyInit.append( 'def Init(Index,Min,Max,Incr) : ' ) + PyInit.append( ' if Min <= Max : ' ) + PyInit.append( ' Index = Min ' ) + PyInit.append( ' else : ' ) + PyInit.append( ' Index = Max ' ) + PyInit.append( ' return Index,Min,Max,Incr ' ) + PyMoreInit = [] + PyMoreInit.append( 'import time ' ) + PyMoreInit.append( 'def More(Index,Min,Max,Incr) : ' ) + PyMoreInit.append( ' time.sleep(2) ' ) + PyMoreInit.append( ' if Index < Max : ' ) + PyMoreInit.append( ' DoLoop = 1 ' ) + PyMoreInit.append( ' else : ' ) + PyMoreInit.append( ' DoLoop = 0 ' ) + PyMoreInit.append( ' return DoLoop,Index,Min,Max,Incr ' ) + PyNextInit = [] + PyNextInit.append( 'def Next(Index,Min,Max,Incr) : ' ) + PyNextInit.append( ' Index = Index + Incr ' ) + PyNextInit.append( ' return Index,Min,Max,Incr ' ) + Init,EndInit = GraphLoop2.LNode( 'Init' , PyInit , 'More' , PyMoreInit , 'Next' , PyNextInit ) + EndInit.SetName( 'EndInit' ) + EndInit.SetAuthor( '' ) + EndInit.SetComment( 'Compute Node' ) + EndInit.Coords( 555 , 255 ) + PyEndInit = [] + EndInit.SetPyFunction( '' , PyEndInit ) + IInitDoLoop = Init.GetInPort( 'DoLoop' ) + IInitIndex = Init.InPort( 'Index' , 'long' ) + IInitMin = Init.InPort( 'Min' , 'long' ) + IInitMax = Init.InPort( 'Max' , 'long' ) + IInitIncr = Init.InPort( 'Incr' , 'long' ) + IInitGate = Init.GetInPort( 'Gate' ) + OInitDoLoop = Init.GetOutPort( 'DoLoop' ) + OInitIndex = Init.GetOutPort( 'Index' ) + OInitMin = Init.GetOutPort( 'Min' ) + OInitMax = Init.GetOutPort( 'Max' ) + OInitIncr = Init.GetOutPort( 'Incr' ) + IEndInitDoLoop = EndInit.GetInPort( 'DoLoop' ) + IEndInitIndex = EndInit.GetInPort( 'Index' ) + IEndInitMin = EndInit.GetInPort( 'Min' ) + IEndInitMax = EndInit.GetInPort( 'Max' ) + IEndInitIncr = EndInit.GetInPort( 'Incr' ) + IEndInitGate = EndInit.GetInPort( 'Gate' ) + OEndInitDoLoop = EndInit.GetOutPort( 'DoLoop' ) + OEndInitIndex = EndInit.GetOutPort( 'Index' ) + OEndInitMin = EndInit.GetOutPort( 'Min' ) + OEndInitMax = EndInit.GetOutPort( 'Max' ) + OEndInitIncr = EndInit.GetOutPort( 'Incr' ) + OEndInitGate = EndInit.GetOutPort( 'Gate' ) + Init.SetName( 'Init' ) + Init.SetAuthor( '' ) + Init.SetComment( 'Compute Node' ) + Init.Coords( 17 , 257 ) + + # Creation of Links + LInitIndexNodeIndexIndex = GraphLoop2.Link( OInitIndex , INodeIndexIndex ) + + LInitMinEndInitMin = GraphLoop2.Link( OInitMin , IEndInitMin ) + + LInitMaxEndInitMax = GraphLoop2.Link( OInitMax , IEndInitMax ) + + LInitIncrNodeIncrIncr = GraphLoop2.Link( OInitIncr , INodeIncrIncr ) + + LNodeIndexIndexEndInitIndex = GraphLoop2.Link( ONodeIndexIndex , IEndInitIndex ) + + LNodeIncrIncrEndInitIncr = GraphLoop2.Link( ONodeIncrIncr , IEndInitIncr ) + + # Input datas + IInitIndex.Input( 0 ) + IInitMin.Input( 5 ) + IInitMax.Input( 10 ) + IInitIncr.Input( 1 ) + INodeIncraString.Input( 'NodeToDelete' ) + + # Output Ports of the graph + #OEndInitIndex = EndInit.GetOutPort( 'Index' ) + #OEndInitMin = EndInit.GetOutPort( 'Min' ) + #OEndInitMax = EndInit.GetOutPort( 'Max' ) + #OEndInitIncr = EndInit.GetOutPort( 'Incr' ) + #ONodeIncraString = NodeIncr.GetOutPort( 'aString' ) + return GraphLoop2 + + +GraphLoop2 = DefGraphLoop2() diff --git a/examples/GraphLoop2.xml b/examples/GraphLoop2.xml new file mode 100644 index 0000000..b0831b5 --- /dev/null +++ b/examples/GraphLoop2.xml @@ -0,0 +1,328 @@ + + + + + +? + ? + GraphLoop2 + 1 + ? + +GraphLoop1_1 + + +long + Init__Index + +long + Init__Min + +long + Init__Max + +long + Init__Incr + +string + NodeIncr__aString + + +long + EndInit__Index + +long + EndInit__Min + +long + EndInit__Max + +long + EndInit__Incr + +string + NodeIncr__aString + + + 24/3/2003 - 14:44:35 + 6/6/2005 - 16:24:36 + 1.04 + ? + ? + ? + 0 + 0 + + +? + ? + Init + 4 + EndInit + +Init + + +long + Index + +long + Min + +long + Max + +long + Incr + + +long + Index + +long + Min + +long + Max + +long + Incr + + + +Init + + + + + + + +More + + + + + + + + + +Next + + + + 6/6/2005 - 16:24:36 + 6/6/2005 - 16:24:36 + 1.04 + ? + ? + Compute Node + 17 + 257 + +? + ? + EndInit + 5 + Init + +EndInit + + +long + Index + +long + Min + +long + Max + +long + Incr + + +long + Index + +long + Min + +long + Max + +long + Incr + + + +? + + 6/6/2005 - 16:24:36 + 6/6/2005 - 16:24:36 + 1.04 + ? + ? + Compute Node + 555 + 255 + +? + ? + NodeIndex + 3 + ? + +NodeIndex + + +long + Index + + +long + Index + + + +? + + 6/6/2005 - 16:24:36 + 6/6/2005 - 16:24:36 + 2.0 + ? + ? + Compute Node + 281 + 215 + +? + ? + NodeIncr + 3 + ? + +NodeIncr + + +long + Incr + +string + aString + + +long + Incr + +string + aString + + + +? + + 6/6/2005 - 16:24:36 + 6/6/2005 - 16:24:36 + 2.0 + ? + ? + Compute Node + 278 + 372 + + +Init + DoLoop + EndInit + DoLoop + + +Init + Index + NodeIndex + Index + + +Init + Min + EndInit + Min + + +Init + Max + EndInit + Max + + +Init + Incr + NodeIncr + Incr + + +EndInit + DoLoop + Init + DoLoop + + +NodeIndex + Index + EndInit + Index + + +NodeIncr + Incr + EndInit + Incr + + + +GraphLoop2 + Init__Index + Init + Index + +3 + 0 + + +GraphLoop2 + Init__Min + Init + Min + +3 + 5 + + +GraphLoop2 + Init__Max + Init + Max + +3 + 10 + + +GraphLoop2 + Init__Incr + Init + Incr + +3 + 1 + + +GraphLoop2 + NodeIncr__aString + NodeIncr + aString + +18 + NodeToDelete + diff --git a/examples/GraphLoopAddMemory.py b/examples/GraphLoopAddMemory.py new file mode 100644 index 0000000..396d58c --- /dev/null +++ b/examples/GraphLoopAddMemory.py @@ -0,0 +1,114 @@ + +# Generated python file of Graph GraphLoopAddMemory + +from SuperV import * + +# Graph creation of GraphLoopAddMemory +def DefGraphLoopAddMemory() : + GraphLoopAddMemory = Graph( 'GraphLoopAddMemory' ) + GraphLoopAddMemory.SetName( 'GraphLoopAddMemory' ) + GraphLoopAddMemory.SetAuthor( 'JR' ) + GraphLoopAddMemory.SetComment( 'For solving of memory leaks' ) + GraphLoopAddMemory.Coords( 0 , 0 ) + + # Creation of Factory Nodes + + AddWithoutSleep = GraphLoopAddMemory.FNode( 'AddComponent' , 'AddComponent' , 'AddWithoutSleep' ) + AddWithoutSleep.SetName( 'AddWithoutSleep' ) + AddWithoutSleep.SetAuthor( '' ) + AddWithoutSleep.SetContainer( 'localhost/FactoryServer' ) + AddWithoutSleep.SetComment( 'AddWithoutSleep from AddComponent' ) + AddWithoutSleep.Coords( 246 , 262 ) + IAddWithoutSleepx = AddWithoutSleep.GetInPort( 'x' ) + IAddWithoutSleepy = AddWithoutSleep.GetInPort( 'y' ) + IAddWithoutSleepGate = AddWithoutSleep.GetInPort( 'Gate' ) + OAddWithoutSleepFuncValue = AddWithoutSleep.GetOutPort( 'FuncValue' ) + OAddWithoutSleepz = AddWithoutSleep.GetOutPort( 'z' ) + OAddWithoutSleepGate = AddWithoutSleep.GetOutPort( 'Gate' ) + + # Creation of Loop Nodes + PyInit = [] + PyInit.append( 'def Init(Index,Min,Max,Incr) : ' ) + PyInit.append( ' if Min <= Max : ' ) + PyInit.append( ' Index = Min ' ) + PyInit.append( ' else : ' ) + PyInit.append( ' Index = Max ' ) + PyInit.append( ' return Index,Min,Max,Incr ' ) + PyMoreInit = [] + PyMoreInit.append( 'def More(Index,Min,Max,Incr) : ' ) + PyMoreInit.append( ' if Index < Max : ' ) + PyMoreInit.append( ' DoLoop = 1 ' ) + PyMoreInit.append( ' else : ' ) + PyMoreInit.append( ' DoLoop = 0 ' ) + PyMoreInit.append( ' return DoLoop,Index,Min,Max,Incr ' ) + PyNextInit = [] + PyNextInit.append( 'def Next(Index,Min,Max,Incr) : ' ) + PyNextInit.append( ' Index = Index + Incr ' ) + PyNextInit.append( ' return Index,Min,Max,Incr ' ) + Init,EndInit = GraphLoopAddMemory.LNode( 'Init' , PyInit , 'More' , PyMoreInit , 'Next' , PyNextInit ) + EndInit.SetName( 'EndInit' ) + EndInit.SetAuthor( '' ) + EndInit.SetComment( 'Compute Node' ) + EndInit.Coords( 495 , 262 ) + PyEndInit = [] + EndInit.SetPyFunction( '' , PyEndInit ) + IInitDoLoop = Init.GetInPort( 'DoLoop' ) + IInitIndex = Init.InPort( 'Index' , 'long' ) + IInitMin = Init.InPort( 'Min' , 'long' ) + IInitMax = Init.InPort( 'Max' , 'long' ) + IInitIncr = Init.InPort( 'Incr' , 'long' ) + IInitGate = Init.GetInPort( 'Gate' ) + OInitDoLoop = Init.GetOutPort( 'DoLoop' ) + OInitIndex = Init.GetOutPort( 'Index' ) + OInitMin = Init.GetOutPort( 'Min' ) + OInitMax = Init.GetOutPort( 'Max' ) + OInitIncr = Init.GetOutPort( 'Incr' ) + IEndInitDoLoop = EndInit.GetInPort( 'DoLoop' ) + IEndInitIndex = EndInit.GetInPort( 'Index' ) + IEndInitMin = EndInit.GetInPort( 'Min' ) + IEndInitMax = EndInit.GetInPort( 'Max' ) + IEndInitIncr = EndInit.GetInPort( 'Incr' ) + IEndInitGate = EndInit.GetInPort( 'Gate' ) + OEndInitDoLoop = EndInit.GetOutPort( 'DoLoop' ) + OEndInitIndex = EndInit.GetOutPort( 'Index' ) + OEndInitMin = EndInit.GetOutPort( 'Min' ) + OEndInitMax = EndInit.GetOutPort( 'Max' ) + OEndInitIncr = EndInit.GetOutPort( 'Incr' ) + OEndInitGate = EndInit.GetOutPort( 'Gate' ) + Init.SetName( 'Init' ) + Init.SetAuthor( '' ) + Init.SetComment( 'Compute Node' ) + Init.Coords( 17 , 257 ) + + # Creation of Links + LInitIndexEndInitIndex = GraphLoopAddMemory.Link( OInitIndex , IEndInitIndex ) + + LInitIndexAddWithoutSleepx = GraphLoopAddMemory.Link( OInitIndex , IAddWithoutSleepx ) + + LInitMinEndInitMin = GraphLoopAddMemory.Link( OInitMin , IEndInitMin ) + + LInitMaxEndInitMax = GraphLoopAddMemory.Link( OInitMax , IEndInitMax ) + + LInitMaxAddWithoutSleepy = GraphLoopAddMemory.Link( OInitMax , IAddWithoutSleepy ) + + LInitIncrEndInitIncr = GraphLoopAddMemory.Link( OInitIncr , IEndInitIncr ) + + LAddWithoutSleepGateEndInitGate = GraphLoopAddMemory.Link( OAddWithoutSleepGate , IEndInitGate ) + + # Input datas + IInitIndex.Input( 0 ) + IInitMin.Input( 5 ) + IInitMax.Input( 100000 ) + IInitIncr.Input( 1 ) + + # Output Ports of the graph + #OEndInitIndex = EndInit.GetOutPort( 'Index' ) + #OEndInitMin = EndInit.GetOutPort( 'Min' ) + #OEndInitMax = EndInit.GetOutPort( 'Max' ) + #OEndInitIncr = EndInit.GetOutPort( 'Incr' ) + #OAddWithoutSleepFuncValue = AddWithoutSleep.GetOutPort( 'FuncValue' ) + #OAddWithoutSleepz = AddWithoutSleep.GetOutPort( 'z' ) + return GraphLoopAddMemory + + +GraphLoopAddMemory = DefGraphLoopAddMemory() diff --git a/examples/GraphLoopAddMemory.xml b/examples/GraphLoopAddMemory.xml new file mode 100644 index 0000000..4c2512d --- /dev/null +++ b/examples/GraphLoopAddMemory.xml @@ -0,0 +1,291 @@ + + + + + +? + ? + GraphLoopAddMemory + 1 + ? + +GraphLoopMemory_1 + + +long + Init__Index + +long + Init__Min + +long + Init__Max + +long + Init__Incr + + +long + EndInit__Index + +long + EndInit__Min + +long + EndInit__Max + +long + EndInit__Incr + +double + AddWithoutSleep__FuncValue + +double + AddWithoutSleep__z + + + 24/3/2003 - 14:44:35 + 14/4/2005 - 16:44:51 + 1.04 + JR + ? + For solving of memory leaks + 0 + 0 + + +? + ? + Init + 4 + EndInit + +Init + + +long + Index + +long + Min + +long + Max + +long + Incr + + +long + Index + +long + Min + +long + Max + +long + Incr + + + +Init + + + + + + + +More + + + + + + + +Next + + + + 14/4/2005 - 16:43:41 + 14/4/2005 - 16:43:41 + 1.04 + ? + ? + Compute Node + 17 + 257 + +? + ? + EndInit + 5 + Init + +EndInit + + +long + Index + +long + Min + +long + Max + +long + Incr + + +long + Index + +long + Min + +long + Max + +long + Incr + + + +? + + 14/4/2005 - 16:43:41 + 14/4/2005 - 16:43:41 + 1.04 + ? + ? + Compute Node + 495 + 262 + +AddComponent + AddComponent + AddWithoutSleep + 0 + ? + +AddWithoutSleep + + +double + x + +double + y + + +double + FuncValue + +double + z + + + 14/4/2005 - 16:44:22 + 14/4/2005 - 16:44:22 + 2.0 + ? + localhost/FactoryServer + AddWithoutSleep from AddComponent + 246 + 262 + + +Init + DoLoop + EndInit + DoLoop + + +Init + Index + EndInit + Index + + +Init + Index + AddWithoutSleep + x + + +Init + Min + EndInit + Min + + +Init + Max + EndInit + Max + + +Init + Max + AddWithoutSleep + y + + +Init + Incr + EndInit + Incr + + +EndInit + DoLoop + Init + DoLoop + + +AddWithoutSleep + Gate + EndInit + Gate + + + +GraphLoopAddMemory + Init__Index + Init + Index + +3 + 0 + + +GraphLoopAddMemory + Init__Min + Init + Min + +3 + 5 + + +GraphLoopAddMemory + Init__Max + Init + Max + +3 + 100000 + + +GraphLoopAddMemory + Init__Incr + Init + Incr + +3 + 1 + diff --git a/examples/GraphLoopGates1.py b/examples/GraphLoopGates1.py new file mode 100644 index 0000000..52a3672 --- /dev/null +++ b/examples/GraphLoopGates1.py @@ -0,0 +1,181 @@ + +# Generated python file of Graph GraphLoopGates1 + +from SuperV import * + +# Graph creation of GraphLoopGates1 +def DefGraphLoopGates1() : + GraphLoopGates1 = Graph( 'GraphLoopGates1' ) + GraphLoopGates1.SetName( 'GraphLoopGates1' ) + GraphLoopGates1.SetAuthor( 'JR' ) + GraphLoopGates1.SetComment( '' ) + GraphLoopGates1.Coords( 0 , 0 ) + + # Creation of Factory Nodes + + Add = GraphLoopGates1.FNode( 'AddComponent' , 'AddComponent' , 'Add' ) + Add.SetName( 'Add' ) + Add.SetAuthor( '' ) + Add.SetContainer( 'localhost/FactoryServer' ) + Add.SetComment( 'Add from AddComponent' ) + Add.Coords( 248 , 70 ) + IAddx = Add.GetInPort( 'x' ) + IAddy = Add.GetInPort( 'y' ) + IAddGate = Add.GetInPort( 'Gate' ) + OAddFuncValue = Add.GetOutPort( 'FuncValue' ) + OAddz = Add.GetOutPort( 'z' ) + OAddGate = Add.GetOutPort( 'Gate' ) + + Add_1 = GraphLoopGates1.FNode( 'AddComponent' , 'AddComponent' , 'Add' ) + Add_1.SetName( 'Add_1' ) + Add_1.SetAuthor( '' ) + Add_1.SetContainer( 'localhost/FactoryServer' ) + Add_1.SetComment( 'Add from AddComponent' ) + Add_1.Coords( 249 , 305 ) + IAdd_1x = Add_1.GetInPort( 'x' ) + IAdd_1y = Add_1.GetInPort( 'y' ) + IAdd_1Gate = Add_1.GetInPort( 'Gate' ) + OAdd_1FuncValue = Add_1.GetOutPort( 'FuncValue' ) + OAdd_1z = Add_1.GetOutPort( 'z' ) + OAdd_1Gate = Add_1.GetOutPort( 'Gate' ) + + Sub = GraphLoopGates1.FNode( 'SubComponent' , 'SubComponent' , 'Sub' ) + Sub.SetName( 'Sub' ) + Sub.SetAuthor( '' ) + Sub.SetContainer( 'localhost/FactoryServer' ) + Sub.SetComment( 'Sub from SubComponent' ) + Sub.Coords( 453 , 72 ) + ISubx = Sub.GetInPort( 'x' ) + ISuby = Sub.GetInPort( 'y' ) + ISubGate = Sub.GetInPort( 'Gate' ) + OSubz = Sub.GetOutPort( 'z' ) + OSubGate = Sub.GetOutPort( 'Gate' ) + + Sub_1 = GraphLoopGates1.FNode( 'SubComponent' , 'SubComponent' , 'Sub' ) + Sub_1.SetName( 'Sub_1' ) + Sub_1.SetAuthor( '' ) + Sub_1.SetContainer( 'localhost/FactoryServer' ) + Sub_1.SetComment( 'Sub from SubComponent' ) + Sub_1.Coords( 455 , 304 ) + ISub_1x = Sub_1.GetInPort( 'x' ) + ISub_1y = Sub_1.GetInPort( 'y' ) + ISub_1Gate = Sub_1.GetInPort( 'Gate' ) + OSub_1z = Sub_1.GetOutPort( 'z' ) + OSub_1Gate = Sub_1.GetOutPort( 'Gate' ) + + # Creation of InLine Nodes + PyGate = [] + PyGate.append( 'from time import * ' ) + PyGate.append( 'def Gate(G1,G2) : ' ) + PyGate.append( ' sleep(1) ' ) + PyGate.append( ' return G1&G2 ' ) + Gate = GraphLoopGates1.INode( 'Gate' , PyGate ) + Gate.SetName( 'Gate' ) + Gate.SetAuthor( '' ) + Gate.SetComment( 'Compute Node' ) + Gate.Coords( 650 , 227 ) + IGateG1 = Gate.InPort( 'G1' , 'long' ) + IGateG2 = Gate.InPort( 'G2' , 'long' ) + IGateGate = Gate.GetInPort( 'Gate' ) + OGateG = Gate.OutPort( 'G' , 'long' ) + OGateGate = Gate.GetOutPort( 'Gate' ) + + # Creation of Loop Nodes + PyInit = [] + PyInit.append( 'from time import * ' ) + PyInit.append( 'def Init(Index,Min,Max) : ' ) + PyInit.append( ' Index = Min ' ) + PyInit.append( ' sleep(1) ' ) + PyInit.append( ' return Index,Min,Max ' ) + PyMoreInit = [] + PyMoreInit.append( 'def More(Index,Min,Max) : ' ) + PyMoreInit.append( ' if Index < Max : ' ) + PyMoreInit.append( ' DoLoop = 1 ' ) + PyMoreInit.append( ' else : ' ) + PyMoreInit.append( ' DoLoop = 0 ' ) + PyMoreInit.append( ' return DoLoop,Index,Min,Max ' ) + PyNextInit = [] + PyNextInit.append( 'def Next(Index,Min,Max) : ' ) + PyNextInit.append( ' Index = Index + 1 ' ) + PyNextInit.append( ' return Index,Min,Max ' ) + Init,EndInit = GraphLoopGates1.LNode( 'Init' , PyInit , 'More' , PyMoreInit , 'Next' , PyNextInit ) + EndInit.SetName( 'EndInit' ) + EndInit.SetAuthor( '' ) + EndInit.SetComment( 'Compute Node' ) + EndInit.Coords( 847 , 247 ) + PyEndInit = [] + EndInit.SetPyFunction( 'EndInit' , PyEndInit ) + IInitDoLoop = Init.GetInPort( 'DoLoop' ) + IInitIndex = Init.InPort( 'Index' , 'long' ) + IInitMin = Init.InPort( 'Min' , 'long' ) + IInitMax = Init.InPort( 'Max' , 'long' ) + IInitGate = Init.GetInPort( 'Gate' ) + OInitDoLoop = Init.GetOutPort( 'DoLoop' ) + OInitIndex = Init.GetOutPort( 'Index' ) + OInitMin = Init.GetOutPort( 'Min' ) + OInitMax = Init.GetOutPort( 'Max' ) + IEndInitDoLoop = EndInit.GetInPort( 'DoLoop' ) + IEndInitIndex = EndInit.GetInPort( 'Index' ) + IEndInitMin = EndInit.GetInPort( 'Min' ) + IEndInitMax = EndInit.GetInPort( 'Max' ) + IEndInitGate = EndInit.GetInPort( 'Gate' ) + OEndInitDoLoop = EndInit.GetOutPort( 'DoLoop' ) + OEndInitIndex = EndInit.GetOutPort( 'Index' ) + OEndInitMin = EndInit.GetOutPort( 'Min' ) + OEndInitMax = EndInit.GetOutPort( 'Max' ) + OEndInitGate = EndInit.GetOutPort( 'Gate' ) + Init.SetName( 'Init' ) + Init.SetAuthor( '' ) + Init.SetComment( 'Compute Node' ) + Init.Coords( 10 , 181 ) + + # Creation of Links + LInitIndexEndInitIndex = GraphLoopGates1.Link( OInitIndex , IEndInitIndex ) + + LInitMinEndInitMin = GraphLoopGates1.Link( OInitMin , IEndInitMin ) + + LInitMaxEndInitMax = GraphLoopGates1.Link( OInitMax , IEndInitMax ) + + LInitGateAdd_1Gate = GraphLoopGates1.Link( OInitGate , IAdd_1Gate ) + + LInitGateAddGate = GraphLoopGates1.Link( OInitGate , IAddGate ) + + LAddGateSubGate = GraphLoopGates1.Link( OAddGate , ISubGate ) + + LAdd_1GateSub_1Gate = GraphLoopGates1.Link( OAdd_1Gate , ISub_1Gate ) + + LSubGateGateG1 = GraphLoopGates1.Link( OSubGate , IGateG1 ) + + LSub_1zGateG2 = GraphLoopGates1.Link( OSub_1z , IGateG2 ) + + LSub_1GateGateGate = GraphLoopGates1.Link( OSub_1Gate , IGateGate ) + + LGateGateEndInitGate = GraphLoopGates1.Link( OGateGate , IEndInitGate ) + + # Input datas + IInitIndex.Input( 0 ) + IInitMin.Input( 5 ) + IInitMax.Input( 13 ) + IAddx.Input( 1 ) + IAddy.Input( 2 ) + IAdd_1x.Input( 3 ) + IAdd_1y.Input( 4 ) + ISubx.Input( 5 ) + ISuby.Input( 6 ) + ISub_1x.Input( 7 ) + ISub_1y.Input( 8 ) + + # Output Ports of the graph + #OEndInitIndex = EndInit.GetOutPort( 'Index' ) + #OEndInitMin = EndInit.GetOutPort( 'Min' ) + #OEndInitMax = EndInit.GetOutPort( 'Max' ) + #OAddFuncValue = Add.GetOutPort( 'FuncValue' ) + #OAddz = Add.GetOutPort( 'z' ) + #OAdd_1FuncValue = Add_1.GetOutPort( 'FuncValue' ) + #OAdd_1z = Add_1.GetOutPort( 'z' ) + #OSubz = Sub.GetOutPort( 'z' ) + #OGateG = Gate.GetOutPort( 'G' ) + return GraphLoopGates1 + + +GraphLoopGates1 = DefGraphLoopGates1() diff --git a/examples/GraphLoopGates1.xml b/examples/GraphLoopGates1.xml new file mode 100644 index 0000000..e967c50 --- /dev/null +++ b/examples/GraphLoopGates1.xml @@ -0,0 +1,520 @@ + + + + + +? + ? + GraphLoopGates1 + 1 + ? + +GraphLoopGates1 + + +long + Init__Index + +long + Init__Min + +long + Init__Max + +double + Add__x + +double + Add__y + +double + Add_1__x + +double + Add_1__y + +double + Sub__x + +double + Sub__y + +double + Sub_1__x + +double + Sub_1__y + + +long + EndInit__Index + +long + EndInit__Min + +long + EndInit__Max + +double + Add__FuncValue + +double + Add__z + +double + Add_1__FuncValue + +double + Add_1__z + +double + Sub__z + +long + Gate__G + + + 7/1/2005 - 16:57:1 + 8/6/2005 - 16:6:58 + 2.0 + JR + ? + ? + 0 + 0 + + +? + ? + Init + 4 + EndInit + +Init + + +long + Index + +long + Min + +long + Max + + +long + Index + +long + Min + +long + Max + + + +Init + + + + + + +More + + + + + + + +Next + + + + 8/6/2005 - 16:5:20 + 8/6/2005 - 16:5:20 + 2.0 + ? + ? + Compute Node + 10 + 181 + +? + ? + EndInit + 5 + Init + +EndInit + + +long + Index + +long + Min + +long + Max + + +long + Index + +long + Min + +long + Max + + + +EndInit + + 8/6/2005 - 16:5:20 + 8/6/2005 - 16:5:20 + 2.0 + ? + ? + Compute Node + 847 + 247 + +AddComponent + AddComponent + Add + 0 + ? + +Add + + +double + x + +double + y + + +double + FuncValue + +double + z + + + 8/6/2005 - 16:5:20 + 8/6/2005 - 16:5:20 + 2.0 + ? + localhost/FactoryServer + Add from AddComponent + 248 + 70 + +AddComponent + AddComponent + Add_1 + 0 + ? + +Add + + +double + x + +double + y + + +double + FuncValue + +double + z + + + 8/6/2005 - 16:5:20 + 8/6/2005 - 16:5:20 + 2.0 + ? + localhost/FactoryServer + Add from AddComponent + 249 + 305 + +SubComponent + SubComponent + Sub + 0 + ? + +Sub + + +double + x + +double + y + + +double + z + + + 8/6/2005 - 16:5:20 + 8/6/2005 - 16:5:20 + 2.0 + ? + localhost/FactoryServer + Sub from SubComponent + 453 + 72 + +SubComponent + SubComponent + Sub_1 + 0 + ? + +Sub + + +double + x + +double + y + + +double + z + + + 8/6/2005 - 16:5:20 + 8/6/2005 - 16:5:20 + 2.0 + ? + localhost/FactoryServer + Sub from SubComponent + 455 + 304 + +? + ? + Gate + 3 + ? + +Gate + + +long + G1 + +long + G2 + + +long + G + + + +Gate + + + + + 8/6/2005 - 16:5:20 + 8/6/2005 - 16:5:20 + 2.0 + ? + ? + Compute Node + 650 + 227 + + +Init + DoLoop + EndInit + DoLoop + + +Init + Index + EndInit + Index + + +Init + Min + EndInit + Min + + +Init + Max + EndInit + Max + + +Init + Gate + Add_1 + Gate + + +Init + Gate + Add + Gate + + +EndInit + DoLoop + Init + DoLoop + + +Add + Gate + Sub + Gate + + +Add_1 + Gate + Sub_1 + Gate + + +Sub + Gate + Gate + G1 + + +Sub_1 + z + Gate + G2 + + +Sub_1 + Gate + Gate + Gate + + +Gate + Gate + EndInit + Gate + + + +GraphLoopGates1 + Init__Index + Init + Index + +3 + 0 + + +GraphLoopGates1 + Init__Min + Init + Min + +3 + 5 + + +GraphLoopGates1 + Init__Max + Init + Max + +3 + 13 + + +GraphLoopGates1 + Add__x + Add + x + +7 + 1 + + +GraphLoopGates1 + Add__y + Add + y + +7 + 2 + + +GraphLoopGates1 + Add_1__x + Add_1 + x + +7 + 3 + + +GraphLoopGates1 + Add_1__y + Add_1 + y + +7 + 4 + + +GraphLoopGates1 + Sub__x + Sub + x + +7 + 5 + + +GraphLoopGates1 + Sub__y + Sub + y + +7 + 6 + + +GraphLoopGates1 + Sub_1__x + Sub_1 + x + +7 + 7 + + +GraphLoopGates1 + Sub_1__y + Sub_1 + y + +7 + 8 + diff --git a/examples/GraphLoopPyAddAddMemory.py b/examples/GraphLoopPyAddAddMemory.py new file mode 100644 index 0000000..d1e9a82 --- /dev/null +++ b/examples/GraphLoopPyAddAddMemory.py @@ -0,0 +1,135 @@ + +# Generated python file of Graph GraphLoopPyAddAddMemory + +from SuperV import * + +# Graph creation of GraphLoopPyAddAddMemory +def DefGraphLoopPyAddAddMemory() : + GraphLoopPyAddAddMemory = Graph( 'GraphLoopPyAddAddMemory' ) + GraphLoopPyAddAddMemory.SetName( 'GraphLoopPyAddAddMemory' ) + GraphLoopPyAddAddMemory.SetAuthor( 'JR' ) + GraphLoopPyAddAddMemory.SetComment( 'For solving of memory leaks' ) + GraphLoopPyAddAddMemory.Coords( 0 , 0 ) + + # Creation of Factory Nodes + + AddWithoutSleep = GraphLoopPyAddAddMemory.FNode( 'AddComponent' , 'AddComponent' , 'AddWithoutSleep' ) + AddWithoutSleep.SetName( 'AddWithoutSleep' ) + AddWithoutSleep.SetAuthor( '' ) + AddWithoutSleep.SetContainer( 'localhost/FactoryServer' ) + AddWithoutSleep.SetComment( 'AddWithoutSleep from AddComponent' ) + AddWithoutSleep.Coords( 255 , 352 ) + IAddWithoutSleepx = AddWithoutSleep.GetInPort( 'x' ) + IAddWithoutSleepy = AddWithoutSleep.GetInPort( 'y' ) + IAddWithoutSleepGate = AddWithoutSleep.GetInPort( 'Gate' ) + OAddWithoutSleepFuncValue = AddWithoutSleep.GetOutPort( 'FuncValue' ) + OAddWithoutSleepz = AddWithoutSleep.GetOutPort( 'z' ) + OAddWithoutSleepGate = AddWithoutSleep.GetOutPort( 'Gate' ) + + # Creation of InLine Nodes + PyPyAdd = [] + PyPyAdd.append( 'def PyAdd(a,b) : ' ) + PyPyAdd.append( ' return a,a+b ' ) + PyAdd = GraphLoopPyAddAddMemory.INode( 'PyAdd' , PyPyAdd ) + PyAdd.SetName( 'PyAdd' ) + PyAdd.SetAuthor( '' ) + PyAdd.SetComment( 'Compute Node' ) + PyAdd.Coords( 266 , 188 ) + IPyAdda = PyAdd.InPort( 'a' , 'long' ) + IPyAddb = PyAdd.InPort( 'b' , 'long' ) + IPyAddGate = PyAdd.GetInPort( 'Gate' ) + OPyAdda = PyAdd.OutPort( 'a' , 'long' ) + OPyAddc = PyAdd.OutPort( 'c' , 'long' ) + OPyAddGate = PyAdd.GetOutPort( 'Gate' ) + + # Creation of Loop Nodes + PyInit = [] + PyInit.append( 'def Init(Index,Min,Max,Incr) : ' ) + PyInit.append( ' if Min <= Max : ' ) + PyInit.append( ' Index = Min ' ) + PyInit.append( ' else : ' ) + PyInit.append( ' Index = Max ' ) + PyInit.append( ' return Index,Min,Max,Incr ' ) + PyMoreInit = [] + PyMoreInit.append( 'def More(Index,Min,Max,Incr) : ' ) + PyMoreInit.append( ' if Index < Max : ' ) + PyMoreInit.append( ' DoLoop = 1 ' ) + PyMoreInit.append( ' else : ' ) + PyMoreInit.append( ' DoLoop = 0 ' ) + PyMoreInit.append( ' return DoLoop,Index,Min,Max,Incr ' ) + PyNextInit = [] + PyNextInit.append( 'def Next(Index,Min,Max,Incr) : ' ) + PyNextInit.append( ' Index = Index + Incr ' ) + PyNextInit.append( ' return Index,Min,Max,Incr ' ) + Init,EndInit = GraphLoopPyAddAddMemory.LNode( 'Init' , PyInit , 'More' , PyMoreInit , 'Next' , PyNextInit ) + EndInit.SetName( 'EndInit' ) + EndInit.SetAuthor( '' ) + EndInit.SetComment( 'Compute Node' ) + EndInit.Coords( 495 , 262 ) + PyEndInit = [] + EndInit.SetPyFunction( '' , PyEndInit ) + IInitDoLoop = Init.GetInPort( 'DoLoop' ) + IInitIndex = Init.InPort( 'Index' , 'long' ) + IInitMin = Init.InPort( 'Min' , 'long' ) + IInitMax = Init.InPort( 'Max' , 'long' ) + IInitIncr = Init.InPort( 'Incr' , 'long' ) + IInitGate = Init.GetInPort( 'Gate' ) + OInitDoLoop = Init.GetOutPort( 'DoLoop' ) + OInitIndex = Init.GetOutPort( 'Index' ) + OInitMin = Init.GetOutPort( 'Min' ) + OInitMax = Init.GetOutPort( 'Max' ) + OInitIncr = Init.GetOutPort( 'Incr' ) + IEndInitDoLoop = EndInit.GetInPort( 'DoLoop' ) + IEndInitIndex = EndInit.GetInPort( 'Index' ) + IEndInitMin = EndInit.GetInPort( 'Min' ) + IEndInitMax = EndInit.GetInPort( 'Max' ) + IEndInitIncr = EndInit.GetInPort( 'Incr' ) + IEndInitGate = EndInit.GetInPort( 'Gate' ) + OEndInitDoLoop = EndInit.GetOutPort( 'DoLoop' ) + OEndInitIndex = EndInit.GetOutPort( 'Index' ) + OEndInitMin = EndInit.GetOutPort( 'Min' ) + OEndInitMax = EndInit.GetOutPort( 'Max' ) + OEndInitIncr = EndInit.GetOutPort( 'Incr' ) + OEndInitGate = EndInit.GetOutPort( 'Gate' ) + Init.SetName( 'Init' ) + Init.SetAuthor( '' ) + Init.SetComment( 'Compute Node' ) + Init.Coords( 17 , 257 ) + + # Creation of Links + LInitIndexAddWithoutSleepx = GraphLoopPyAddAddMemory.Link( OInitIndex , IAddWithoutSleepx ) + + LInitIndexPyAdda = GraphLoopPyAddAddMemory.Link( OInitIndex , IPyAdda ) + + LInitMinEndInitMin = GraphLoopPyAddAddMemory.Link( OInitMin , IEndInitMin ) + + LInitMaxEndInitMax = GraphLoopPyAddAddMemory.Link( OInitMax , IEndInitMax ) + + LInitMaxAddWithoutSleepy = GraphLoopPyAddAddMemory.Link( OInitMax , IAddWithoutSleepy ) + + LInitMaxPyAddb = GraphLoopPyAddAddMemory.Link( OInitMax , IPyAddb ) + + LInitIncrEndInitIncr = GraphLoopPyAddAddMemory.Link( OInitIncr , IEndInitIncr ) + + LAddWithoutSleepGateEndInitGate = GraphLoopPyAddAddMemory.Link( OAddWithoutSleepGate , IEndInitGate ) + + LPyAddaEndInitIndex = GraphLoopPyAddAddMemory.Link( OPyAdda , IEndInitIndex ) + + # Input datas + IInitIndex.Input( 0 ) + IInitMin.Input( 5 ) + IInitMax.Input( 100000 ) + IInitIncr.Input( 1 ) + + # Output Ports of the graph + #OEndInitIndex = EndInit.GetOutPort( 'Index' ) + #OEndInitMin = EndInit.GetOutPort( 'Min' ) + #OEndInitMax = EndInit.GetOutPort( 'Max' ) + #OEndInitIncr = EndInit.GetOutPort( 'Incr' ) + #OAddWithoutSleepFuncValue = AddWithoutSleep.GetOutPort( 'FuncValue' ) + #OAddWithoutSleepz = AddWithoutSleep.GetOutPort( 'z' ) + #OPyAddc = PyAdd.GetOutPort( 'c' ) + return GraphLoopPyAddAddMemory + + +GraphLoopPyAddAddMemory = DefGraphLoopPyAddAddMemory() diff --git a/examples/GraphLoopPyAddAddMemory.xml b/examples/GraphLoopPyAddAddMemory.xml new file mode 100644 index 0000000..8f27281 --- /dev/null +++ b/examples/GraphLoopPyAddAddMemory.xml @@ -0,0 +1,342 @@ + + + + + +? + ? + GraphLoopPyAddAddMemory + 1 + ? + +GraphLoopPyAddAddMemory + + +long + Init__Index + +long + Init__Min + +long + Init__Max + +long + Init__Incr + + +long + EndInit__Index + +long + EndInit__Min + +long + EndInit__Max + +long + EndInit__Incr + +double + AddWithoutSleep__FuncValue + +double + AddWithoutSleep__z + +long + PyAdd__c + + + 24/3/2003 - 14:44:35 + 14/4/2005 - 16:55:59 + 1.04 + JR + ? + For solving of memory leaks + 0 + 0 + + +? + ? + Init + 4 + EndInit + +Init + + +long + Index + +long + Min + +long + Max + +long + Incr + + +long + Index + +long + Min + +long + Max + +long + Incr + + + +Init + + + + + + + +More + + + + + + + +Next + + + + 14/4/2005 - 16:43:41 + 14/4/2005 - 16:43:41 + 1.04 + ? + ? + Compute Node + 17 + 257 + +? + ? + EndInit + 5 + Init + +EndInit + + +long + Index + +long + Min + +long + Max + +long + Incr + + +long + Index + +long + Min + +long + Max + +long + Incr + + + +? + + 14/4/2005 - 16:43:41 + 14/4/2005 - 16:43:41 + 1.04 + ? + ? + Compute Node + 495 + 262 + +AddComponent + AddComponent + AddWithoutSleep + 0 + ? + +AddWithoutSleep + + +double + x + +double + y + + +double + FuncValue + +double + z + + + 14/4/2005 - 16:44:22 + 14/4/2005 - 16:44:22 + 2.0 + ? + localhost/FactoryServer + AddWithoutSleep from AddComponent + 255 + 352 + +? + ? + PyAdd + 3 + ? + +PyAdd + + +long + a + +long + b + + +long + a + +long + c + + + +PyAdd + + + 14/4/2005 - 16:54:44 + 14/4/2005 - 16:54:44 + 2.0 + ? + ? + Compute Node + 266 + 188 + + +Init + DoLoop + EndInit + DoLoop + + +Init + Index + AddWithoutSleep + x + + +Init + Index + PyAdd + a + + +Init + Min + EndInit + Min + + +Init + Max + EndInit + Max + + +Init + Max + AddWithoutSleep + y + + +Init + Max + PyAdd + b + + +Init + Incr + EndInit + Incr + + +EndInit + DoLoop + Init + DoLoop + + +AddWithoutSleep + Gate + EndInit + Gate + + +PyAdd + a + EndInit + Index + + + +GraphLoopPyAddAddMemory + Init__Index + Init + Index + +3 + 0 + + +GraphLoopPyAddAddMemory + Init__Min + Init + Min + +3 + 5 + + +GraphLoopPyAddAddMemory + Init__Max + Init + Max + +3 + 100000 + + +GraphLoopPyAddAddMemory + Init__Incr + Init + Incr + +3 + 1 + diff --git a/examples/GraphLoopsStupidCoupledSwitchs.py b/examples/GraphLoopsStupidCoupledSwitchs.py new file mode 100644 index 0000000..6119a43 --- /dev/null +++ b/examples/GraphLoopsStupidCoupledSwitchs.py @@ -0,0 +1,273 @@ + +# Generated python file of Graph GraphLoopsStupidCoupledSwitchs + +from SuperV import * + +# Graph creation of GraphLoopsStupidCoupledSwitchs +def DefGraphLoopsStupidCoupledSwitchs() : + GraphLoopsStupidCoupledSwitchs = Graph( 'GraphLoopsStupidCoupledSwitchs' ) + GraphLoopsStupidCoupledSwitchs.SetName( 'GraphLoopsStupidCoupledSwitchs' ) + GraphLoopsStupidCoupledSwitchs.SetAuthor( '' ) + GraphLoopsStupidCoupledSwitchs.SetComment( '' ) + GraphLoopsStupidCoupledSwitchs.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 = GraphLoopsStupidCoupledSwitchs.INode( 'IsOdd' , PyIsOdd ) + IsOdd.SetName( 'IsOdd' ) + IsOdd.SetAuthor( '' ) + IsOdd.SetComment( 'Python function' ) + IsOdd.Coords( 458 , 52 ) + 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 = GraphLoopsStupidCoupledSwitchs.INode( 'IsOdd' , PyIsOdd_1 ) + IsOdd_1.SetName( 'IsOdd_1' ) + IsOdd_1.SetAuthor( '' ) + IsOdd_1.SetComment( 'Python function' ) + IsOdd_1.Coords( 487 , 321 ) + 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 = GraphLoopsStupidCoupledSwitchs.LNode( 'InitLoop' , PyInitLoopSwitch , 'MoreLoop' , PyMoreInitLoopSwitch , 'NextLoop' , PyNextInitLoopSwitch ) + EndOfInitLoopSwitch.SetName( 'EndOfInitLoopSwitch' ) + EndOfInitLoopSwitch.SetAuthor( '' ) + EndOfInitLoopSwitch.SetComment( 'Compute Node' ) + EndOfInitLoopSwitch.Coords( 955 , 122 ) + 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( 14 , 136 ) + + 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 = GraphLoopsStupidCoupledSwitchs.LNode( 'InitLoop' , PyInitLoop , 'MoreLoop' , PyMoreInitLoop , 'NextLoop' , PyNextInitLoop ) + EndOfInitLoop.SetName( 'EndOfInitLoop' ) + EndOfInitLoop.SetAuthor( '' ) + EndOfInitLoop.SetComment( 'Compute Node' ) + EndOfInitLoop.Coords( 961 , 369 ) + 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 , 391 ) + + # 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 = GraphLoopsStupidCoupledSwitchs.SNode( 'Switch' , PySwitch ) + EndOfSwitch.SetName( 'EndOfSwitch' ) + EndOfSwitch.SetAuthor( '' ) + EndOfSwitch.SetComment( 'Compute Node' ) + EndOfSwitch.Coords( 690 , 129 ) + 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( 245 , 136 ) + 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 = GraphLoopsStupidCoupledSwitchs.SNode( 'Switch' , PySwitch_1 ) + EndSwitch.SetName( 'EndSwitch' ) + EndSwitch.SetAuthor( '' ) + EndSwitch.SetComment( 'Compute Node' ) + EndSwitch.Coords( 695 , 387 ) + 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( 258 , 391 ) + 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 = GraphLoopsStupidCoupledSwitchs.Link( OIsOdda , IEndOfSwitcha ) + + LIsOddGateEndOfSwitchDefault = GraphLoopsStupidCoupledSwitchs.Link( OIsOddGate , IEndOfSwitchDefault ) + + LInitLoopSwitchIndexSwitcha = GraphLoopsStupidCoupledSwitchs.Link( OInitLoopSwitchIndex , ISwitcha ) + + LInitLoopSwitchMinEndOfInitLoopSwitchMin = GraphLoopsStupidCoupledSwitchs.Link( OInitLoopSwitchMin , IEndOfInitLoopSwitchMin ) + + LInitLoopSwitchMaxEndOfInitLoopSwitchMax = GraphLoopsStupidCoupledSwitchs.Link( OInitLoopSwitchMax , IEndOfInitLoopSwitchMax ) + + LInitLoopSwitchGateEndSwitchDefault = GraphLoopsStupidCoupledSwitchs.Link( OInitLoopSwitchGate , IEndSwitchDefault ) + + LSwitchaIsOdda = GraphLoopsStupidCoupledSwitchs.Link( OSwitcha , IIsOdda ) + + LSwitchDefaultEndSwitchDefault = GraphLoopsStupidCoupledSwitchs.Link( OSwitchDefault , IEndSwitchDefault ) + + LEndOfSwitchaEndOfInitLoopSwitchIndex = GraphLoopsStupidCoupledSwitchs.Link( OEndOfSwitcha , IEndOfInitLoopSwitchIndex ) + + LIsOdd_1aEndSwitcha = GraphLoopsStupidCoupledSwitchs.Link( OIsOdd_1a , IEndSwitcha ) + + LIsOdd_1GateEndSwitchDefault = GraphLoopsStupidCoupledSwitchs.Link( OIsOdd_1Gate , IEndSwitchDefault ) + + LIsOdd_1GateEndOfSwitchDefault = GraphLoopsStupidCoupledSwitchs.Link( OIsOdd_1Gate , IEndOfSwitchDefault ) + + LInitLoopIndexSwitch_1a = GraphLoopsStupidCoupledSwitchs.Link( OInitLoopIndex , ISwitch_1a ) + + LInitLoopMinEndOfInitLoopMin = GraphLoopsStupidCoupledSwitchs.Link( OInitLoopMin , IEndOfInitLoopMin ) + + LInitLoopMaxEndOfInitLoopMax = GraphLoopsStupidCoupledSwitchs.Link( OInitLoopMax , IEndOfInitLoopMax ) + + LInitLoopGateSwitchGate = GraphLoopsStupidCoupledSwitchs.Link( OInitLoopGate , ISwitchGate ) + + LInitLoopGateSwitch_1Gate = GraphLoopsStupidCoupledSwitchs.Link( OInitLoopGate , ISwitch_1Gate ) + + LInitLoopGateIsOdd_1Gate = GraphLoopsStupidCoupledSwitchs.Link( OInitLoopGate , IIsOdd_1Gate ) + + LInitLoopGateEndOfSwitchDefault = GraphLoopsStupidCoupledSwitchs.Link( OInitLoopGate , IEndOfSwitchDefault ) + + LSwitch_1EvenEndSwitchDefault = GraphLoopsStupidCoupledSwitchs.Link( OSwitch_1Even , IEndSwitchDefault ) + + LSwitch_1aIsOdd_1a = GraphLoopsStupidCoupledSwitchs.Link( OSwitch_1a , IIsOdd_1a ) + + LSwitch_1DefaultIsOddGate = GraphLoopsStupidCoupledSwitchs.Link( OSwitch_1Default , IIsOddGate ) + + LSwitch_1DefaultEndOfSwitchDefault = GraphLoopsStupidCoupledSwitchs.Link( OSwitch_1Default , IEndOfSwitchDefault ) + + LSwitch_1DefaultEndOfInitLoopSwitchGate = GraphLoopsStupidCoupledSwitchs.Link( OSwitch_1Default , IEndOfInitLoopSwitchGate ) + + LSwitch_1DefaultEndOfInitLoopGate = GraphLoopsStupidCoupledSwitchs.Link( OSwitch_1Default , IEndOfInitLoopGate ) + + LSwitch_1DefaultEndSwitchDefault = GraphLoopsStupidCoupledSwitchs.Link( OSwitch_1Default , IEndSwitchDefault ) + + LEndSwitchaEndOfInitLoopIndex = GraphLoopsStupidCoupledSwitchs.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' ) + #OSwitchOdd = Switch.GetOutPort( 'Odd' ) + #OSwitchEven = Switch.GetOutPort( 'Even' ) + #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' ) + #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' ) + #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' ) + #OSwitch_1Odd = Switch_1.GetOutPort( 'Odd' ) + return GraphLoopsStupidCoupledSwitchs + + +GraphLoopsStupidCoupledSwitchs = DefGraphLoopsStupidCoupledSwitchs() diff --git a/examples/GraphLoopsStupidCoupledSwitchs.xml b/examples/GraphLoopsStupidCoupledSwitchs.xml new file mode 100644 index 0000000..1a90e1e --- /dev/null +++ b/examples/GraphLoopsStupidCoupledSwitchs.xml @@ -0,0 +1,706 @@ + + + + + +? + ? + GraphLoopsStupidCoupledSwitchs + 1 + ? + +GraphLoopsStupidCoupledSwitchs + + +long + InitLoopSwitch__Index + +long + InitLoopSwitch__Min + +long + InitLoopSwitch__Max + +long + InitLoop__Index + +long + InitLoop__Min + +long + InitLoop__Max + + +long + EndOfInitLoopSwitch__Index + +long + EndOfInitLoopSwitch__Min + +long + EndOfInitLoopSwitch__Max + +long + Switch__Odd + +int + Switch__Even + +long + EndOfInitLoop__Index + +long + EndOfInitLoop__Min + +long + EndOfInitLoop__Max + +long + Switch_1__Odd + + + 14/10/2003 - 10:29:4 + 29/4/2005 - 17:18:4 + 1.05 + ? + ? + ? + 0 + 0 + + +? + ? + IsOdd + 3 + ? + +IsOdd + + +long + a + + +long + a + + + +IsOdd + + + + + + 29/4/2005 - 17:8:53 + 29/4/2005 - 17:8:53 + 1.05 + ? + ? + Python function + 458 + 52 + +? + ? + InitLoopSwitch + 4 + EndOfInitLoopSwitch + +InitLoopSwitch + + +long + Index + +long + Min + +long + Max + + +long + Index + +long + Min + +long + Max + + + +InitLoop + + + +MoreLoop + + + + + + + +NextLoop + + + + 29/4/2005 - 17:8:53 + 29/4/2005 - 17:8:53 + 1.05 + ? + ? + Compute Node + 14 + 136 + +? + ? + EndOfInitLoopSwitch + 5 + InitLoopSwitch + +EndOfInitLoopSwitch + + +long + Index + +long + Min + +long + Max + + +long + Index + +long + Min + +long + Max + + + +? + + 29/4/2005 - 17:8:53 + 29/4/2005 - 17:8:53 + 1.05 + ? + ? + Compute Node + 955 + 122 + +? + ? + Switch + 6 + EndOfSwitch + +Switch + + +long + a + + +long + Odd + +int + Even + +int + a + + + +Switch + + + + + + 29/4/2005 - 17:8:53 + 29/4/2005 - 17:8:53 + 1.05 + ? + ? + Compute Node + 245 + 136 + +? + ? + EndOfSwitch + 7 + Switch + +EndOfSwitch + + +long + a + + +long + a + + + +? + + 29/4/2005 - 17:8:53 + 29/4/2005 - 17:8:53 + 1.05 + ? + ? + Compute Node + 690 + 129 + +? + ? + IsOdd_1 + 3 + ? + +IsOdd_1 + + +long + a + + +long + a + + + +IsOdd + + + + + + 29/4/2005 - 17:8:53 + 29/4/2005 - 17:8:53 + 1.05 + ? + ? + Python function + 487 + 321 + +? + ? + InitLoop + 4 + EndOfInitLoop + +InitLoop + + +long + Index + +long + Min + +long + Max + + +long + Index + +long + Min + +long + Max + + + +InitLoop + + + +MoreLoop + + + + + + + +NextLoop + + + + 29/4/2005 - 17:8:53 + 29/4/2005 - 17:8:53 + 1.05 + ? + ? + Compute Node + 10 + 391 + +? + ? + EndOfInitLoop + 5 + InitLoop + +EndOfInitLoop + + +long + Index + +long + Min + +long + Max + + +long + Index + +long + Min + +long + Max + + + +? + + 29/4/2005 - 17:8:53 + 29/4/2005 - 17:8:53 + 1.05 + ? + ? + Compute Node + 961 + 369 + +? + ? + Switch_1 + 6 + EndSwitch + +Switch_1 + + +long + a + + +long + Odd + +int + Even + +int + a + + + +Switch + + + + + + 29/4/2005 - 17:8:53 + 29/4/2005 - 17:8:53 + 1.05 + ? + ? + Compute Node + 258 + 391 + +? + ? + EndSwitch + 7 + Switch_1 + +EndSwitch + + +long + a + + +long + a + + + +? + + 29/4/2005 - 17:8:53 + 29/4/2005 - 17:8:53 + 1.05 + ? + ? + Compute Node + 695 + 387 + + +IsOdd + a + EndOfSwitch + a + + +IsOdd + Gate + EndOfSwitch + Default + + +InitLoopSwitch + DoLoop + EndOfInitLoopSwitch + DoLoop + + +InitLoopSwitch + Index + Switch + a + + +InitLoopSwitch + Min + EndOfInitLoopSwitch + Min + + +InitLoopSwitch + Max + EndOfInitLoopSwitch + Max + + +InitLoopSwitch + Gate + EndSwitch + Default + + +EndOfInitLoopSwitch + DoLoop + InitLoopSwitch + DoLoop + + +Switch + a + IsOdd + a + + +Switch + Default + EndSwitch + Default + + +EndOfSwitch + a + EndOfInitLoopSwitch + Index + + +IsOdd_1 + a + EndSwitch + a + + +IsOdd_1 + Gate + EndSwitch + Default + + +IsOdd_1 + Gate + EndOfSwitch + Default + + +InitLoop + DoLoop + EndOfInitLoop + DoLoop + + +InitLoop + Index + Switch_1 + a + + +InitLoop + Min + EndOfInitLoop + Min + + +InitLoop + Max + EndOfInitLoop + Max + + +InitLoop + Gate + Switch + Gate + + +InitLoop + Gate + Switch_1 + Gate + + +InitLoop + Gate + IsOdd_1 + Gate + + +InitLoop + Gate + EndOfSwitch + Default + + +EndOfInitLoop + DoLoop + InitLoop + DoLoop + + +Switch_1 + Even + EndSwitch + Default + + +Switch_1 + a + IsOdd_1 + a + + +Switch_1 + Default + IsOdd + Gate + + +Switch_1 + Default + EndOfSwitch + Default + + +Switch_1 + Default + EndOfInitLoopSwitch + Gate + + +Switch_1 + Default + EndOfInitLoop + Gate + + +Switch_1 + Default + EndSwitch + Default + + +EndSwitch + a + EndOfInitLoop + Index + + + +GraphLoopsStupidCoupledSwitchs + InitLoopSwitch__Index + InitLoopSwitch + Index + +3 + 0 + + +GraphLoopsStupidCoupledSwitchs + InitLoopSwitch__Min + InitLoopSwitch + Min + +3 + 0 + + +GraphLoopsStupidCoupledSwitchs + InitLoopSwitch__Max + InitLoopSwitch + Max + +3 + 20 + + +GraphLoopsStupidCoupledSwitchs + InitLoop__Index + InitLoop + Index + +3 + 0 + + +GraphLoopsStupidCoupledSwitchs + InitLoop__Min + InitLoop + Min + +3 + 0 + + +GraphLoopsStupidCoupledSwitchs + InitLoop__Max + InitLoop + Max + +3 + 20 + diff --git a/examples/GraphMacroNodes.py b/examples/GraphMacroNodes.py index 75fdfe0..a270184 100644 --- a/examples/GraphMacroNodes.py +++ b/examples/GraphMacroNodes.py @@ -17,8 +17,8 @@ def DefGraphMacroNodes() : Add.SetName( 'Add' ) Add.SetAuthor( '' ) Add.SetContainer( 'FactoryServer' ) - Add.SetComment( '' ) - Add.Coords( 15 , 241 ) + Add.SetComment( 'Add from AddComponent' ) + Add.Coords( 9 , 293 ) IAddx = Add.GetInPort( 'x' ) IAddy = Add.GetInPort( 'y' ) IAddGate = Add.GetInPort( 'Gate' ) @@ -30,7 +30,7 @@ def DefGraphMacroNodes() : Sub.SetName( 'Sub' ) Sub.SetAuthor( '' ) Sub.SetContainer( 'FactoryServer' ) - Sub.SetComment( '' ) + Sub.SetComment( 'Sub from SubComponent' ) Sub.Coords( 227 , 99 ) ISubx = Sub.GetInPort( 'x' ) ISuby = Sub.GetInPort( 'y' ) @@ -42,7 +42,7 @@ def DefGraphMacroNodes() : Mul.SetName( 'Mul' ) Mul.SetAuthor( '' ) Mul.SetContainer( 'FactoryServer' ) - Mul.SetComment( '' ) + Mul.SetComment( 'Mul from MulComponent' ) Mul.Coords( 443 , 278 ) IMulx = Mul.GetInPort( 'x' ) IMuly = Mul.GetInPort( 'y' ) @@ -54,7 +54,7 @@ def DefGraphMacroNodes() : Div.SetName( 'Div' ) Div.SetAuthor( '' ) Div.SetContainer( 'FactoryServer' ) - Div.SetComment( '' ) + Div.SetComment( 'Div from DivComponent' ) Div.Coords( 634 , 97 ) IDivx = Div.GetInPort( 'x' ) IDivy = Div.GetInPort( 'y' ) @@ -65,10 +65,11 @@ def DefGraphMacroNodes() : # Creation of Macro Nodes SyrStruct_1 = DefSyrStruct_1() Macro_SyrStruct = GraphMacroNodes.GraphMNode( SyrStruct_1 ) + Macro_SyrStruct.SetCoupled( 'SyrStruct_1' ) Macro_SyrStruct.SetName( 'Macro_SyrStruct' ) Macro_SyrStruct.SetAuthor( '' ) - Macro_SyrStruct.SetComment( '' ) - Macro_SyrStruct.Coords( 0 , 0 ) + Macro_SyrStruct.SetComment( 'Macro Node' ) + Macro_SyrStruct.Coords( 13 , 6 ) IMacro_SyrStructSyrComponent__aContainer = Macro_SyrStruct.GetInPort( 'SyrComponent__aContainer' ) IMacro_SyrStructSyrComponent__aComponent = Macro_SyrStruct.GetInPort( 'SyrComponent__aComponent' ) IMacro_SyrStructforN__N = Macro_SyrStruct.GetInPort( 'forN__N' ) @@ -90,10 +91,11 @@ def DefGraphMacroNodes() : SyrStruct_1_1 = DefSyrStruct_1_1() Macro_SyrStruct_1 = GraphMacroNodes.GraphMNode( SyrStruct_1_1 ) + Macro_SyrStruct_1.SetCoupled( 'SyrStruct_1_1' ) Macro_SyrStruct_1.SetName( 'Macro_SyrStruct_1' ) Macro_SyrStruct_1.SetAuthor( '' ) - Macro_SyrStruct_1.SetComment( '' ) - Macro_SyrStruct_1.Coords( 0 , 0 ) + Macro_SyrStruct_1.SetComment( 'Macro Node' ) + Macro_SyrStruct_1.Coords( 8 , 441 ) IMacro_SyrStruct_1SyrComponent__aContainer = Macro_SyrStruct_1.GetInPort( 'SyrComponent__aContainer' ) IMacro_SyrStruct_1SyrComponent__aComponent = Macro_SyrStruct_1.GetInPort( 'SyrComponent__aComponent' ) IMacro_SyrStruct_1forN__N = Macro_SyrStruct_1.GetInPort( 'forN__N' ) @@ -143,7 +145,7 @@ def DefGraphMacroNodes() : IMacro_SyrStruct_1forN__max.Input( 9 ) IMacro_SyrStruct_1fori__i.Input( 0 ) -# Output Ports of the graph + # Output Ports of the graph #OAddFuncValue = Add.GetOutPort( 'FuncValue' ) #ODivz = Div.GetOutPort( 'z' ) #OMacro_SyrStructEndOfforN__N = Macro_SyrStruct.GetOutPort( 'EndOfforN__N' ) @@ -169,6 +171,7 @@ def DefGraphMacroNodes() : # Graph creation of SyrStruct_1 def DefSyrStruct_1() : SyrStruct_1 = Graph( 'SyrStruct_1' ) + SyrStruct_1.SetCoupled( 'Macro_SyrStruct' ) SyrStruct_1.SetName( 'SyrStruct_1' ) SyrStruct_1.SetAuthor( 'JR' ) SyrStruct_1.SetComment( 'Syracuse algorithm' ) @@ -277,7 +280,7 @@ def DefSyrStruct_1() : EndOfforN.Coords( 1535 , 332 ) PyEndOfforN = [] EndOfforN.SetPyFunction( '' , PyEndOfforN ) - IforNInitLoop = forN.GetInPort( 'DoLoop' ) + IforNDoLoop = forN.GetInPort( 'DoLoop' ) IforNN = forN.InPort( 'N' , 'long' ) IforNK = forN.InPort( 'K' , 'long' ) IforNSyrComponent = forN.InPort( 'SyrComponent' , 'objref' ) @@ -303,6 +306,7 @@ def DefSyrStruct_1() : OEndOfforNSyrComponent = EndOfforN.GetOutPort( 'SyrComponent' ) OEndOfforNmin = EndOfforN.GetOutPort( 'min' ) OEndOfforNmax = EndOfforN.GetOutPort( 'max' ) + OEndOfforNGate = EndOfforN.GetOutPort( 'Gate' ) forN.SetName( 'forN' ) forN.SetAuthor( '' ) forN.SetComment( 'InitN , MoreN , NextN' ) @@ -329,7 +333,7 @@ def DefSyrStruct_1() : EndOfwhileNotOne.Coords( 1366 , 303 ) PyEndOfwhileNotOne = [] EndOfwhileNotOne.SetPyFunction( '' , PyEndOfwhileNotOne ) - IwhileNotOneInitLoop = whileNotOne.GetInPort( 'DoLoop' ) + IwhileNotOneDoLoop = whileNotOne.GetInPort( 'DoLoop' ) IwhileNotOneSyrComponent = whileNotOne.InPort( 'SyrComponent' , 'objref' ) IwhileNotOneN = whileNotOne.InPort( 'N' , 'long' ) IwhileNotOneK = whileNotOne.InPort( 'K' , 'long' ) @@ -347,6 +351,7 @@ def DefSyrStruct_1() : OEndOfwhileNotOneSyrComponent = EndOfwhileNotOne.GetOutPort( 'SyrComponent' ) OEndOfwhileNotOneN = EndOfwhileNotOne.GetOutPort( 'N' ) OEndOfwhileNotOneK = EndOfwhileNotOne.GetOutPort( 'K' ) + OEndOfwhileNotOneGate = EndOfwhileNotOne.GetOutPort( 'Gate' ) whileNotOne.SetName( 'whileNotOne' ) whileNotOne.SetAuthor( '' ) whileNotOne.SetComment( 'InitNotOne , MoreNotOne , NextNotOne' ) @@ -372,7 +377,7 @@ def DefSyrStruct_1() : EndOffori.Coords( 976 , 212 ) PyEndOffori = [] EndOffori.SetPyFunction( '' , PyEndOffori ) - IforiInitLoop = fori.GetInPort( 'DoLoop' ) + IforiDoLoop = fori.GetInPort( 'DoLoop' ) Iforii = fori.InPort( 'i' , 'long' ) IforiK = fori.InPort( 'K' , 'long' ) IforiGate = fori.GetInPort( 'Gate' ) @@ -386,6 +391,7 @@ def DefSyrStruct_1() : OEndOfforiDoLoop = EndOffori.GetOutPort( 'DoLoop' ) OEndOfforii = EndOffori.GetOutPort( 'i' ) OEndOfforiK = EndOffori.GetOutPort( 'K' ) + OEndOfforiGate = EndOffori.GetOutPort( 'Gate' ) fori.SetName( 'fori' ) fori.SetAuthor( '' ) fori.SetComment( 'Initfori, Morefori, Nextfori' ) @@ -411,7 +417,7 @@ def DefSyrStruct_1() : EndOfwhileEven.Coords( 988 , 451 ) PyEndOfwhileEven = [] EndOfwhileEven.SetPyFunction( '' , PyEndOfwhileEven ) - IwhileEvenInitLoop = whileEven.GetInPort( 'DoLoop' ) + IwhileEvenDoLoop = whileEven.GetInPort( 'DoLoop' ) IwhileEvenSyrComponent = whileEven.InPort( 'SyrComponent' , 'objref' ) IwhileEvenN = whileEven.InPort( 'N' , 'long' ) IwhileEvenK = whileEven.InPort( 'K' , 'long' ) @@ -429,6 +435,7 @@ def DefSyrStruct_1() : OEndOfwhileEvenSyrComponent = EndOfwhileEven.GetOutPort( 'SyrComponent' ) OEndOfwhileEvenN = EndOfwhileEven.GetOutPort( 'N' ) OEndOfwhileEvenK = EndOfwhileEven.GetOutPort( 'K' ) + OEndOfwhileEvenGate = EndOfwhileEven.GetOutPort( 'Gate' ) whileEven.SetName( 'whileEven' ) whileEven.SetAuthor( '' ) whileEven.SetComment( 'InitEven, MoreEven, NextEven' ) @@ -589,7 +596,7 @@ def DefSyrStruct_1() : #IforNmax = forN.GetInPort( 'max' ) #Iforii = fori.GetInPort( 'i' ) -# Output Ports of the graph + # Output Ports of the graph #OEndOfforNN = EndOfforN.GetOutPort( 'N' ) #OEndOfforNK = EndOfforN.GetOutPort( 'K' ) #OEndOfforNSyrComponent = EndOfforN.GetOutPort( 'SyrComponent' ) @@ -604,6 +611,7 @@ def DefSyrStruct_1() : # Graph creation of SyrStruct_1_1 def DefSyrStruct_1_1() : SyrStruct_1_1 = Graph( 'SyrStruct_1_1' ) + SyrStruct_1_1.SetCoupled( 'Macro_SyrStruct_1' ) SyrStruct_1_1.SetName( 'SyrStruct_1_1' ) SyrStruct_1_1.SetAuthor( 'JR' ) SyrStruct_1_1.SetComment( 'Syracuse algorithm' ) @@ -712,7 +720,7 @@ def DefSyrStruct_1_1() : EndOfforN.Coords( 1535 , 332 ) PyEndOfforN = [] EndOfforN.SetPyFunction( '' , PyEndOfforN ) - IforNInitLoop = forN.GetInPort( 'DoLoop' ) + IforNDoLoop = forN.GetInPort( 'DoLoop' ) IforNN = forN.InPort( 'N' , 'long' ) IforNK = forN.InPort( 'K' , 'long' ) IforNSyrComponent = forN.InPort( 'SyrComponent' , 'objref' ) @@ -738,6 +746,7 @@ def DefSyrStruct_1_1() : OEndOfforNSyrComponent = EndOfforN.GetOutPort( 'SyrComponent' ) OEndOfforNmin = EndOfforN.GetOutPort( 'min' ) OEndOfforNmax = EndOfforN.GetOutPort( 'max' ) + OEndOfforNGate = EndOfforN.GetOutPort( 'Gate' ) forN.SetName( 'forN' ) forN.SetAuthor( '' ) forN.SetComment( 'InitN , MoreN , NextN' ) @@ -764,7 +773,7 @@ def DefSyrStruct_1_1() : EndOfwhileNotOne.Coords( 1366 , 303 ) PyEndOfwhileNotOne = [] EndOfwhileNotOne.SetPyFunction( '' , PyEndOfwhileNotOne ) - IwhileNotOneInitLoop = whileNotOne.GetInPort( 'DoLoop' ) + IwhileNotOneDoLoop = whileNotOne.GetInPort( 'DoLoop' ) IwhileNotOneSyrComponent = whileNotOne.InPort( 'SyrComponent' , 'objref' ) IwhileNotOneN = whileNotOne.InPort( 'N' , 'long' ) IwhileNotOneK = whileNotOne.InPort( 'K' , 'long' ) @@ -782,6 +791,7 @@ def DefSyrStruct_1_1() : OEndOfwhileNotOneSyrComponent = EndOfwhileNotOne.GetOutPort( 'SyrComponent' ) OEndOfwhileNotOneN = EndOfwhileNotOne.GetOutPort( 'N' ) OEndOfwhileNotOneK = EndOfwhileNotOne.GetOutPort( 'K' ) + OEndOfwhileNotOneGate = EndOfwhileNotOne.GetOutPort( 'Gate' ) whileNotOne.SetName( 'whileNotOne' ) whileNotOne.SetAuthor( '' ) whileNotOne.SetComment( 'InitNotOne , MoreNotOne , NextNotOne' ) @@ -807,7 +817,7 @@ def DefSyrStruct_1_1() : EndOffori.Coords( 976 , 212 ) PyEndOffori = [] EndOffori.SetPyFunction( '' , PyEndOffori ) - IforiInitLoop = fori.GetInPort( 'DoLoop' ) + IforiDoLoop = fori.GetInPort( 'DoLoop' ) Iforii = fori.InPort( 'i' , 'long' ) IforiK = fori.InPort( 'K' , 'long' ) IforiGate = fori.GetInPort( 'Gate' ) @@ -821,6 +831,7 @@ def DefSyrStruct_1_1() : OEndOfforiDoLoop = EndOffori.GetOutPort( 'DoLoop' ) OEndOfforii = EndOffori.GetOutPort( 'i' ) OEndOfforiK = EndOffori.GetOutPort( 'K' ) + OEndOfforiGate = EndOffori.GetOutPort( 'Gate' ) fori.SetName( 'fori' ) fori.SetAuthor( '' ) fori.SetComment( 'Initfori, Morefori, Nextfori' ) @@ -846,7 +857,7 @@ def DefSyrStruct_1_1() : EndOfwhileEven.Coords( 988 , 451 ) PyEndOfwhileEven = [] EndOfwhileEven.SetPyFunction( '' , PyEndOfwhileEven ) - IwhileEvenInitLoop = whileEven.GetInPort( 'DoLoop' ) + IwhileEvenDoLoop = whileEven.GetInPort( 'DoLoop' ) IwhileEvenSyrComponent = whileEven.InPort( 'SyrComponent' , 'objref' ) IwhileEvenN = whileEven.InPort( 'N' , 'long' ) IwhileEvenK = whileEven.InPort( 'K' , 'long' ) @@ -864,6 +875,7 @@ def DefSyrStruct_1_1() : OEndOfwhileEvenSyrComponent = EndOfwhileEven.GetOutPort( 'SyrComponent' ) OEndOfwhileEvenN = EndOfwhileEven.GetOutPort( 'N' ) OEndOfwhileEvenK = EndOfwhileEven.GetOutPort( 'K' ) + OEndOfwhileEvenGate = EndOfwhileEven.GetOutPort( 'Gate' ) whileEven.SetName( 'whileEven' ) whileEven.SetAuthor( '' ) whileEven.SetComment( 'InitEven, MoreEven, NextEven' ) @@ -1024,7 +1036,7 @@ def DefSyrStruct_1_1() : #IforNmax = forN.GetInPort( 'max' ) #Iforii = fori.GetInPort( 'i' ) -# Output Ports of the graph + # Output Ports of the graph #OEndOfforNN = EndOfforN.GetOutPort( 'N' ) #OEndOfforNK = EndOfforN.GetOutPort( 'K' ) #OEndOfforNSyrComponent = EndOfforN.GetOutPort( 'SyrComponent' ) diff --git a/examples/GraphMacroNodes.xml b/examples/GraphMacroNodes.xml index 584f9f3..f02edb5 100644 --- a/examples/GraphMacroNodes.xml +++ b/examples/GraphMacroNodes.xml @@ -126,7 +126,7 @@ 15/6/2004 - 10:28:51 - 15/6/2004 - 10:28:54 + 4/5/2005 - 14:6:2 2.0 ? ? @@ -158,14 +158,14 @@ z - 15/6/2004 - 10:28:51 - 15/6/2004 - 10:28:51 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? FactoryServer - ? - 15 - 241 + Add from AddComponent + 9 + 293 SubComponent SubComponent @@ -187,12 +187,12 @@ z - 15/6/2004 - 10:28:51 - 15/6/2004 - 10:28:51 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? FactoryServer - ? + Sub from SubComponent 227 99 @@ -216,12 +216,12 @@ z - 15/6/2004 - 10:28:51 - 15/6/2004 - 10:28:51 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? FactoryServer - ? + Mul from MulComponent 443 278 @@ -245,12 +245,12 @@ z - 15/6/2004 - 10:28:51 - 15/6/2004 - 10:28:51 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? FactoryServer - ? + Div from DivComponent 634 97 @@ -316,14 +316,14 @@ ? - 15/6/2004 - 10:28:52 - 15/6/2004 - 10:28:52 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? ? - ? - 0 - 0 + Macro Node + 13 + 6 ? ? @@ -387,14 +387,14 @@ ? - 15/6/2004 - 10:28:54 - 15/6/2004 - 10:28:54 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? ? - ? - 0 - 0 + Macro Node + 8 + 441 Add @@ -643,7 +643,7 @@ 15/6/2004 - 10:28:51 - 15/6/2004 - 10:28:52 + 4/5/2005 - 14:6:2 2.0 JR ? @@ -669,8 +669,8 @@ anInteger - 15/6/2004 - 10:28:51 - 15/6/2004 - 10:28:51 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? localhost/FactoryServer @@ -695,8 +695,8 @@ aNewCount - 15/6/2004 - 10:28:51 - 15/6/2004 - 10:28:51 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? localhost/FactoryServer @@ -721,8 +721,8 @@ aNewCount - 15/6/2004 - 10:28:51 - 15/6/2004 - 10:28:51 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? localhost/FactoryServer @@ -747,8 +747,8 @@ anInteger - 15/6/2004 - 10:28:51 - 15/6/2004 - 10:28:51 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? localhost/FactoryServer @@ -773,8 +773,8 @@ aNewCount - 15/6/2004 - 10:28:51 - 15/6/2004 - 10:28:51 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? localhost/FactoryServer @@ -810,8 +810,8 @@ - 15/6/2004 - 10:28:51 - 15/6/2004 - 10:28:51 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? ? @@ -825,7 +825,7 @@ 4 EndOfforN -InitN +forN long @@ -882,8 +882,8 @@ - 15/6/2004 - 10:28:51 - 15/6/2004 - 10:28:51 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? ? @@ -897,7 +897,7 @@ 5 forN -EndInitN +EndOfforN long @@ -935,8 +935,8 @@ ? - 15/6/2004 - 10:28:51 - 15/6/2004 - 10:28:51 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? ? @@ -950,7 +950,7 @@ 4 EndOfwhileNotOne -InitNotOne +whileNotOne objref @@ -990,8 +990,8 @@ - 15/6/2004 - 10:28:52 - 15/6/2004 - 10:28:52 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? ? @@ -1005,7 +1005,7 @@ 5 whileNotOne -EndInitNotOne +EndOfwhileNotOne objref @@ -1031,8 +1031,8 @@ ? - 15/6/2004 - 10:28:52 - 15/6/2004 - 10:28:52 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? ? @@ -1046,7 +1046,7 @@ 4 EndOffori -Initfori +fori long @@ -1079,8 +1079,8 @@ - 15/6/2004 - 10:28:52 - 15/6/2004 - 10:28:52 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? ? @@ -1094,7 +1094,7 @@ 5 fori -EndInitfori +EndOffori long @@ -1114,8 +1114,8 @@ ? - 15/6/2004 - 10:28:52 - 15/6/2004 - 10:28:52 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? ? @@ -1129,7 +1129,7 @@ 4 EndOfwhileEven -InitEven +whileEven objref @@ -1168,8 +1168,8 @@ - 15/6/2004 - 10:28:52 - 15/6/2004 - 10:28:52 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? ? @@ -1183,7 +1183,7 @@ 5 whileEven -EndInitEven +EndOfwhileEven objref @@ -1209,8 +1209,8 @@ ? - 15/6/2004 - 10:28:52 - 15/6/2004 - 10:28:52 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? ? @@ -1260,8 +1260,8 @@ - 15/6/2004 - 10:28:52 - 15/6/2004 - 10:28:52 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? ? @@ -1275,7 +1275,7 @@ 7 ifNotEven -EndifNotEven +EndOfifNotEven long @@ -1295,8 +1295,8 @@ ? - 15/6/2004 - 10:28:52 - 15/6/2004 - 10:28:52 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? ? @@ -1746,7 +1746,7 @@ 15/6/2004 - 10:28:52 - 15/6/2004 - 10:28:54 + 4/5/2005 - 14:6:2 2.0 JR ? @@ -1772,8 +1772,8 @@ anInteger - 15/6/2004 - 10:28:53 - 15/6/2004 - 10:28:53 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? localhost/FactoryServer @@ -1798,8 +1798,8 @@ aNewCount - 15/6/2004 - 10:28:53 - 15/6/2004 - 10:28:53 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? localhost/FactoryServer @@ -1824,8 +1824,8 @@ aNewCount - 15/6/2004 - 10:28:53 - 15/6/2004 - 10:28:53 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? localhost/FactoryServer @@ -1850,8 +1850,8 @@ anInteger - 15/6/2004 - 10:28:53 - 15/6/2004 - 10:28:53 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? localhost/FactoryServer @@ -1876,8 +1876,8 @@ aNewCount - 15/6/2004 - 10:28:53 - 15/6/2004 - 10:28:53 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? localhost/FactoryServer @@ -1913,8 +1913,8 @@ - 15/6/2004 - 10:28:53 - 15/6/2004 - 10:28:53 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? ? @@ -1928,7 +1928,7 @@ 4 EndOfforN -InitN +forN long @@ -1985,8 +1985,8 @@ - 15/6/2004 - 10:28:53 - 15/6/2004 - 10:28:53 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? ? @@ -2000,7 +2000,7 @@ 5 forN -EndInitN +EndOfforN long @@ -2038,8 +2038,8 @@ ? - 15/6/2004 - 10:28:53 - 15/6/2004 - 10:28:53 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? ? @@ -2053,7 +2053,7 @@ 4 EndOfwhileNotOne -InitNotOne +whileNotOne objref @@ -2093,8 +2093,8 @@ - 15/6/2004 - 10:28:53 - 15/6/2004 - 10:28:53 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? ? @@ -2108,7 +2108,7 @@ 5 whileNotOne -EndInitNotOne +EndOfwhileNotOne objref @@ -2134,8 +2134,8 @@ ? - 15/6/2004 - 10:28:53 - 15/6/2004 - 10:28:53 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? ? @@ -2149,7 +2149,7 @@ 4 EndOffori -Initfori +fori long @@ -2182,8 +2182,8 @@ - 15/6/2004 - 10:28:53 - 15/6/2004 - 10:28:53 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? ? @@ -2197,7 +2197,7 @@ 5 fori -EndInitfori +EndOffori long @@ -2217,8 +2217,8 @@ ? - 15/6/2004 - 10:28:53 - 15/6/2004 - 10:28:53 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? ? @@ -2232,7 +2232,7 @@ 4 EndOfwhileEven -InitEven +whileEven objref @@ -2271,8 +2271,8 @@ - 15/6/2004 - 10:28:53 - 15/6/2004 - 10:28:53 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? ? @@ -2286,7 +2286,7 @@ 5 whileEven -EndInitEven +EndOfwhileEven objref @@ -2312,8 +2312,8 @@ ? - 15/6/2004 - 10:28:53 - 15/6/2004 - 10:28:53 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? ? @@ -2363,8 +2363,8 @@ - 15/6/2004 - 10:28:54 - 15/6/2004 - 10:28:54 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? ? @@ -2378,7 +2378,7 @@ 7 ifNotEven -EndifNotEven +EndOfifNotEven long @@ -2398,8 +2398,8 @@ ? - 15/6/2004 - 10:28:54 - 15/6/2004 - 10:28:54 + 4/5/2005 - 14:6:2 + 4/5/2005 - 14:6:2 2.0 ? ? diff --git a/examples/PAL8512.py b/examples/PAL8512.py new file mode 100644 index 0000000..2343e30 --- /dev/null +++ b/examples/PAL8512.py @@ -0,0 +1,41 @@ + +# Generated python file of Graph PAL8512 + +from SuperV import * + +# Graph creation of PAL8512 +def DefPAL8512() : + PAL8512 = Graph( 'PAL8512' ) + PAL8512.SetName( 'PAL8512' ) + PAL8512.SetAuthor( '' ) + PAL8512.SetComment( '' ) + PAL8512.Coords( 0 , 0 ) + + # Creation of Factory Nodes + + # Creation of InLine Nodes + PyPAL8512 = [] + PyPAL8512.append( ' ' ) + PAL8512 = PAL8512.INode( '' , PyPAL8512 ) + PAL8512.SetName( 'PAL8512' ) + PAL8512.SetAuthor( '' ) + PAL8512.SetComment( 'Compute Node' ) + PAL8512.Coords( 264 , 123 ) + IPAL8512a = PAL8512.InPort( 'a' , 'string' ) + IPAL8512b = PAL8512.InPort( 'b' , 'string' ) + IPAL8512Gate = PAL8512.GetInPort( 'Gate' ) + OPAL8512a = PAL8512.OutPort( 'a' , 'string' ) + OPAL8512b = PAL8512.OutPort( 'b' , 'string' ) + OPAL8512Gate = PAL8512.GetOutPort( 'Gate' ) + + # Input datas + IPAL8512a.Input( '1' ) + IPAL8512b.Input( '2' ) + + # Output Ports of the graph + #OPAL8512a = PAL8512.GetOutPort( 'a' ) + #OPAL8512b = PAL8512.GetOutPort( 'b' ) + return PAL8512 + + +PAL8512 = DefPAL8512() diff --git a/examples/PAL8512.xml b/examples/PAL8512.xml new file mode 100644 index 0000000..9d4b423 --- /dev/null +++ b/examples/PAL8512.xml @@ -0,0 +1,92 @@ + + + + + +? + ? + PAL8512 + 1 + ? + +aNewDataFlow + + +string + PAL8512__a + +string + PAL8512__b + + +string + PAL8512__a + +string + PAL8512__b + + + 13/4/2005 - 16:23:8 + 13/4/2005 - 16:23:38 + 2.0 + ? + ? + ? + 0 + 0 + + +? + ? + PAL8512 + 3 + ? + +InLine + + +string + a + +string + b + + +string + a + +string + b + + + +? + + 13/4/2005 - 16:23:13 + 13/4/2005 - 16:23:13 + 2.0 + ? + ? + Compute Node + 264 + 123 + + + +PAL8512 + PAL8512__a + PAL8512 + a + +18 + 1 + + +PAL8512 + PAL8512__b + PAL8512 + b + +18 + 2 + diff --git a/examples/PAL8512Ok.py b/examples/PAL8512Ok.py new file mode 100644 index 0000000..f5c615a --- /dev/null +++ b/examples/PAL8512Ok.py @@ -0,0 +1,40 @@ + +# Generated python file of Graph GraphPAL8512Ok + +from SuperV import * + +# Graph creation of GraphPAL8512Ok +def DefGraphPAL8512Ok() : + GraphPAL8512Ok = Graph( 'GraphPAL8512Ok' ) + GraphPAL8512Ok.SetName( 'GraphPAL8512Ok' ) + GraphPAL8512Ok.SetAuthor( '' ) + GraphPAL8512Ok.SetComment( '' ) + GraphPAL8512Ok.Coords( 0 , 0 ) + + # Creation of Factory Nodes + + # Creation of InLine Nodes + PyPAL8512 = [] + PAL8512 = GraphPAL8512Ok.INode( '' , PyPAL8512 ) + PAL8512.SetName( 'PAL8512' ) + PAL8512.SetAuthor( '' ) + PAL8512.SetComment( 'Compute Node' ) + PAL8512.Coords( 264 , 123 ) + IPAL8512a = PAL8512.InPort( 'a' , 'string' ) + IPAL8512b = PAL8512.InPort( 'b' , 'string' ) + IPAL8512Gate = PAL8512.GetInPort( 'Gate' ) + OPAL8512a = PAL8512.OutPort( 'a' , 'string' ) + OPAL8512b = PAL8512.OutPort( 'b' , 'string' ) + OPAL8512Gate = PAL8512.GetOutPort( 'Gate' ) + + # Input datas + IPAL8512a.Input( '1' ) + IPAL8512b.Input( '2' ) + + # Output Ports of the graph + #OPAL8512a = PAL8512.GetOutPort( 'a' ) + #OPAL8512b = PAL8512.GetOutPort( 'b' ) + return GraphPAL8512Ok + + +GraphPAL8512Ok = DefGraphPAL8512Ok() diff --git a/examples/PAL8512Ok.xml b/examples/PAL8512Ok.xml new file mode 100644 index 0000000..1bdc765 --- /dev/null +++ b/examples/PAL8512Ok.xml @@ -0,0 +1,90 @@ + + + + + +? + ? + GraphPAL8512Ok + 1 + ? + +aNewDataFlow_1 + + +string + PAL8512__a + +string + PAL8512__b + + +string + PAL8512__a + +string + PAL8512__b + + + 13/4/2005 - 16:23:8 + 9/6/2005 - 15:1:21 + 2.0 + ? + ? + ? + 0 + 0 + + +? + ? + PAL8512 + 3 + ? + +PAL8512 + + +string + a + +string + b + + +string + a + +string + b + + + +? + + 9/6/2005 - 15:1:21 + 9/6/2005 - 15:1:21 + 2.0 + ? + ? + Compute Node + 264 + 123 + + + +GraphPAL8512Ok + PAL8512__a + PAL8512 + a + +18 + + +GraphPAL8512Ok + PAL8512__b + PAL8512 + b + +18 + diff --git a/examples/PAL8512a.py b/examples/PAL8512a.py new file mode 100644 index 0000000..049e468 --- /dev/null +++ b/examples/PAL8512a.py @@ -0,0 +1,39 @@ + +# Generated python file of Graph aNewDataFlow + +from SuperV import * + +# Graph creation of aNewDataFlow +def DefaNewDataFlow() : + aNewDataFlow = Graph( 'aNewDataFlow' ) + aNewDataFlow.SetName( 'aNewDataFlow' ) + aNewDataFlow.SetAuthor( '' ) + aNewDataFlow.SetComment( '' ) + aNewDataFlow.Coords( 0 , 0 ) + + # Creation of Factory Nodes + + # Creation of InLine Nodes + PyPAL8512 = [] + PyPAL8512.append( ' ' ) + PAL8512 = aNewDataFlow.INode( '' , PyPAL8512 ) + PAL8512.SetName( 'PAL8512' ) + PAL8512.SetAuthor( '' ) + PAL8512.SetComment( 'Compute Node' ) + PAL8512.Coords( 264 , 123 ) + IPAL8512a = PAL8512.InPort( 'a' , 'string' ) + IPAL8512b = PAL8512.InPort( 'b' , 'string' ) + IPAL8512Gate = PAL8512.GetInPort( 'Gate' ) + OPAL8512a = PAL8512.OutPort( 'a' , 'string' ) + OPAL8512Gate = PAL8512.GetOutPort( 'Gate' ) + + # Input datas + IPAL8512a.Input( '1' ) + IPAL8512b.Input( '2' ) + + # Output Ports of the graph + #OPAL8512a = PAL8512.GetOutPort( 'a' ) + return aNewDataFlow + + +aNewDataFlow = DefaNewDataFlow() diff --git a/examples/PAL8512a.xml b/examples/PAL8512a.xml new file mode 100644 index 0000000..b565be6 --- /dev/null +++ b/examples/PAL8512a.xml @@ -0,0 +1,86 @@ + + + + + +? + ? + aNewDataFlow + 1 + ? + +aNewDataFlow + + +string + PAL8512__a + +string + PAL8512__b + + +string + PAL8512__a + + + 13/4/2005 - 16:23:8 + 13/4/2005 - 16:23:38 + 2.0 + ? + ? + ? + 0 + 0 + + +? + ? + PAL8512 + 3 + ? + +InLine + + +string + a + +string + b + + +string + a + + + +? + + 13/4/2005 - 16:23:13 + 13/4/2005 - 16:23:13 + 2.0 + ? + ? + Compute Node + 264 + 123 + + + +aNewDataFlow + PAL8512__a + PAL8512 + a + +18 + 1 + + +aNewDataFlow + PAL8512__b + PAL8512 + b + +18 + 2 + diff --git a/examples/PAL8516.py b/examples/PAL8516.py new file mode 100644 index 0000000..05871b1 --- /dev/null +++ b/examples/PAL8516.py @@ -0,0 +1,54 @@ + +# Generated python file of Graph PAL8516 + +from SuperV import * + +# Graph creation of PAL8516 +def DefPAL8516() : + PAL8516 = Graph( 'PAL8516' ) + PAL8516.SetName( 'PAL8516' ) + PAL8516.SetAuthor( 'JR' ) + PAL8516.SetComment( 'The node named InLine will be aborted : there is no python function and input/output arguments are different' ) + PAL8516.Coords( 0 , 0 ) + + # Creation of Factory Nodes + + # Creation of InLine Nodes + PyInLine = [] + InLine = PAL8516.INode( '' , PyInLine ) + InLine.SetName( 'InLine' ) + InLine.SetAuthor( '' ) + InLine.SetComment( 'Compute Node' ) + InLine.Coords( 48 , 102 ) + IInLinea = InLine.InPort( 'a' , 'string' ) + IInLineb = InLine.InPort( 'b' , 'string' ) + IInLineGate = InLine.GetInPort( 'Gate' ) + OInLinea = InLine.OutPort( 'a' , 'string' ) + OInLineGate = InLine.GetOutPort( 'Gate' ) + + # Creation of GOTO Nodes + PyGoTo = [] + GoTo = PAL8516.GNode( '' , PyGoTo , 'InLine' ) + GoTo.SetName( 'GoTo' ) + GoTo.SetAuthor( '' ) + GoTo.SetComment( 'Compute Node' ) + GoTo.Coords( 306 , 143 ) + IGoToa = GoTo.InPort( 'a' , 'string' ) + IGoToGate = GoTo.GetInPort( 'Gate' ) + OGoToa = GoTo.OutPort( 'a' , 'string' ) + OGoToGate = GoTo.GetOutPort( 'Gate' ) + + # Creation of Links + LInLineaGoToa = PAL8516.Link( OInLinea , IGoToa ) + + LGoToGateInLineGate = PAL8516.Link( OGoToGate , IInLineGate ) + + # Input datas + IInLinea.Input( '1' ) + IInLineb.Input( '2' ) + + # Output Ports of the graph + return PAL8516 + + +PAL8516 = DefPAL8516() diff --git a/examples/PAL8516.xml b/examples/PAL8516.xml new file mode 100644 index 0000000..d2d380c --- /dev/null +++ b/examples/PAL8516.xml @@ -0,0 +1,122 @@ + + + + + +? + ? + PAL8516 + 1 + ? + +PAL8516 + + +string + InLine__a + +string + InLine__b + + + + 31/3/2005 - 15:15:59 + 9/6/2005 - 15:2:14 + 2.0 + JR + ? + The node named InLine will be aborted : there is no python function and input/output arguments are different + 0 + 0 + + +? + ? + InLine + 3 + ? + +InLine + + +string + a + +string + b + + +string + a + + + +? + + 9/6/2005 - 15:2:14 + 9/6/2005 - 15:2:14 + 2.0 + ? + ? + Compute Node + 48 + 102 + +? + ? + GoTo + 8 + InLine + +GoTo + + +string + a + + +string + a + + + +? + + 9/6/2005 - 15:2:14 + 9/6/2005 - 15:2:14 + 2.0 + ? + ? + Compute Node + 306 + 143 + + +InLine + a + GoTo + a + + +GoTo + Gate + InLine + Gate + + + +PAL8516 + InLine__a + InLine + a + +18 + + +PAL8516 + InLine__b + InLine + b + +18 + diff --git a/examples/PAL9048.py b/examples/PAL9048.py new file mode 100644 index 0000000..34d2a67 --- /dev/null +++ b/examples/PAL9048.py @@ -0,0 +1,31 @@ + +# Generated python file of Graph PAL9048 + +from SuperV import * + +# Graph creation of PAL9048 +def DefPAL9048() : + PAL9048 = Graph( 'PAL9048' ) + PAL9048.SetName( 'PAL9048' ) + PAL9048.SetAuthor( 'JR' ) + PAL9048.SetComment( 'Graph and Node with the same name' ) + PAL9048.Coords( 0 , 0 ) + + # Creation of Factory Nodes + + # Creation of InLine Nodes + PyPAL9048 = [] + PyPAL9048.append( ' ' ) + PAL9048 = PAL9048.INode( '' , PyPAL9048 ) + PAL9048.SetName( 'PAL9048' ) + PAL9048.SetAuthor( '' ) + PAL9048.SetComment( 'Compute Node' ) + PAL9048.Coords( 192 , 161 ) + IPAL9048Gate = PAL9048.GetInPort( 'Gate' ) + OPAL9048Gate = PAL9048.GetOutPort( 'Gate' ) + + # Output Ports of the graph + return PAL9048 + + +PAL9048 = DefPAL9048() diff --git a/examples/PAL9048.xml b/examples/PAL9048.xml new file mode 100644 index 0000000..0256d61 --- /dev/null +++ b/examples/PAL9048.xml @@ -0,0 +1,50 @@ + + + + + +? + ? + PAL9048 + 1 + ? + +PAL9048 + + + + + 2/6/2005 - 14:30:59 + 2/6/2005 - 14:34:17 + 2.0 + JR + ? + Graph and Node with the same name + 0 + 0 + + +? + ? + PAL9048 + 3 + ? + +InLine + + + + + +? + + 2/6/2005 - 14:31:6 + 2/6/2005 - 14:31:6 + 2.0 + ? + ? + Compute Node + 192 + 161 + + diff --git a/examples/PAL9133.py b/examples/PAL9133.py new file mode 100644 index 0000000..218d1e4 --- /dev/null +++ b/examples/PAL9133.py @@ -0,0 +1,40 @@ + +# Generated python file of Graph PAL9133 + +from SuperV import * + +# Graph creation of PAL9133 +def DefPAL9133() : + PAL9133 = Graph( 'PAL9133' ) + PAL9133.SetName( 'PAL9133' ) + PAL9133.SetAuthor( 'JR' ) + PAL9133.SetComment( 'Void strings as Input was not possible' ) + PAL9133.Coords( 0 , 0 ) + + # Creation of Factory Nodes + + # Creation of InLine Nodes + PyVoidString = [] + PyVoidString.append( 'def VoidString(aString) : ' ) + PyVoidString.append( ' print "VoidString(" + aString + ")" ' ) + PyVoidString.append( ' return aString ' ) + PyVoidString.append( ' ' ) + VoidString = PAL9133.INode( 'VoidString' , PyVoidString ) + VoidString.SetName( 'VoidString' ) + VoidString.SetAuthor( '' ) + VoidString.SetComment( 'Compute Node' ) + VoidString.Coords( 226 , 176 ) + IVoidStringaString = VoidString.InPort( 'aString' , 'string' ) + IVoidStringGate = VoidString.GetInPort( 'Gate' ) + OVoidStringaString = VoidString.OutPort( 'aString' , 'string' ) + OVoidStringGate = VoidString.GetOutPort( 'Gate' ) + + # Input Ports of the graph + #IVoidStringaString = VoidString.GetInPort( 'aString' ) + + # Output Ports of the graph + #OVoidStringaString = VoidString.GetOutPort( 'aString' ) + return PAL9133 + + +PAL9133 = DefPAL9133() diff --git a/examples/PAL9133.xml b/examples/PAL9133.xml new file mode 100644 index 0000000..d0f3011 --- /dev/null +++ b/examples/PAL9133.xml @@ -0,0 +1,65 @@ + + + + + +? + ? + PAL9133 + 1 + ? + +PAL9133 + + +string + VoidString__aString + + +string + VoidString__aString + + + 9/6/2005 - 11:16:54 + 9/6/2005 - 15:6:54 + 2.0 + JR + ? + Void strings as Input was not possible + 0 + 0 + + +? + ? + VoidString + 3 + ? + +VoidString + + +string + aString + + +string + aString + + + +VoidString + + + + + 9/6/2005 - 15:6:54 + 9/6/2005 - 15:6:54 + 2.0 + ? + ? + Compute Node + 226 + 176 + + diff --git a/examples/PAL9133_Input.py b/examples/PAL9133_Input.py new file mode 100644 index 0000000..7c8ac2a --- /dev/null +++ b/examples/PAL9133_Input.py @@ -0,0 +1,39 @@ + +# Generated python file of Graph PAL9133_Input + +from SuperV import * + +# Graph creation of PAL9133_Input +def DefPAL9133_Input() : + PAL9133_Input = Graph( 'PAL9133_Input' ) + PAL9133_Input.SetName( 'PAL9133_Input' ) + PAL9133_Input.SetAuthor( 'JR' ) + PAL9133_Input.SetComment( 'Void strings as Input is now allowed' ) + PAL9133_Input.Coords( 0 , 0 ) + + # Creation of Factory Nodes + + # Creation of InLine Nodes + PyVoidString = [] + PyVoidString.append( 'def VoidString(aString) : ' ) + PyVoidString.append( ' print "VoidString("+aString+")" ' ) + PyVoidString.append( ' return aString ' ) + VoidString = PAL9133_Input.INode( 'VoidString' , PyVoidString ) + VoidString.SetName( 'VoidString' ) + VoidString.SetAuthor( '' ) + VoidString.SetComment( 'Compute Node' ) + VoidString.Coords( 311 , 190 ) + IVoidStringaString = VoidString.InPort( 'aString' , 'string' ) + IVoidStringGate = VoidString.GetInPort( 'Gate' ) + OVoidStringaString = VoidString.OutPort( 'aString' , 'string' ) + OVoidStringGate = VoidString.GetOutPort( 'Gate' ) + + # Input datas + IVoidStringaString.Input( '' ) + + # Output Ports of the graph + #OVoidStringaString = VoidString.GetOutPort( 'aString' ) + return PAL9133_Input + + +PAL9133_Input = DefPAL9133_Input() diff --git a/examples/PAL9133_Input.xml b/examples/PAL9133_Input.xml new file mode 100644 index 0000000..96356fe --- /dev/null +++ b/examples/PAL9133_Input.xml @@ -0,0 +1,72 @@ + + + + + +? + ? + PAL9133_Input + 1 + ? + +PAL9133_Input_2 + + +string + VoidString__aString + + +string + VoidString__aString + + + 9/6/2005 - 11:16:54 + 9/6/2005 - 15:8:7 + 2.0 + JR + ? + Void strings as Input is now allowed + 0 + 0 + + +? + ? + VoidString + 3 + ? + +VoidString + + +string + aString + + +string + aString + + + +VoidString + + + + 9/6/2005 - 15:8:7 + 9/6/2005 - 15:8:7 + 2.0 + ? + ? + Compute Node + 311 + 190 + + + +PAL9133_Input + VoidString__aString + VoidString + aString + +18 + -- 2.30.2