From 08dcaf137a7ac7893c70bdc74ae657c1c188fbc2 Mon Sep 17 00:00:00 2001 From: rahuel Date: Tue, 15 Feb 2005 12:27:57 +0000 Subject: [PATCH] *** empty log message *** --- examples/GraphSwitch1.py | 131 -------------- examples/GraphSwitch1.xml | 348 -------------------------------------- 2 files changed, 479 deletions(-) delete mode 100755 examples/GraphSwitch1.py delete mode 100755 examples/GraphSwitch1.xml diff --git a/examples/GraphSwitch1.py b/examples/GraphSwitch1.py deleted file mode 100755 index 0af4722..0000000 --- a/examples/GraphSwitch1.py +++ /dev/null @@ -1,131 +0,0 @@ - -# Generated python file of Graph GraphSwitch1 - -from SuperV import * -# Graph creation -GraphSwitch1 = Graph( 'GraphSwitch1' ) -GraphSwitch1.SetName( 'GraphSwitch1' ) -GraphSwitch1.SetAuthor( '' ) -GraphSwitch1.SetComment( '' ) -GraphSwitch1.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 (GraphSwitch1)" ' ) -PyIsOdd.append( ' sleep( 1 ) ' ) -PyIsOdd.append( ' return a ' ) -IsOdd = GraphSwitch1.INode( 'IsOdd' , PyIsOdd ) -IsOdd.SetName( 'IsOdd' ) -IsOdd.SetAuthor( '' ) -IsOdd.SetComment( 'Python function' ) -IsOdd.Coords( 388 , 50 ) -IsOdd.InPort( 'a' , 'long' ) -IsOdd.OutPort( 'a' , 'long' ) - -# Creation of Loop Nodes -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 = GraphSwitch1.LNode( 'InitLoop' , PyInitLoop , 'MoreLoop' , PyMoreInitLoop , 'NextLoop' , PyNextInitLoop ) -EndOfInitLoop.SetName( 'EndOfInitLoop' ) -EndOfInitLoop.SetAuthor( '' ) -EndOfInitLoop.SetComment( '' ) -EndOfInitLoop.Coords( 766 , 127 ) -InitLoop.SetName( 'InitLoop' ) -InitLoop.SetAuthor( '' ) -InitLoop.SetComment( '' ) -InitLoop.Coords( 10 , 129 ) -InitLoop.InPort( 'Index' , 'long' ) -InitLoop.InPort( 'Min' , 'long' ) -InitLoop.InPort( 'Max' , 'long' ) -InitLoop.OutPort( 'Index' , 'long' ) -InitLoop.OutPort( 'Min' , 'long' ) -InitLoop.OutPort( 'Max' , 'long' ) - -# Creation of Switch Nodes -PySwitch = [] -PySwitch.append( 'from time import * ' ) -PySwitch.append( 'def Switch(a) : ' ) -PySwitch.append( ' if ( a & 1 ) == 0 : ' ) -PySwitch.append( ' sleep(1) ' ) -PySwitch.append( ' return a & 1,1-(a&1),a ' ) -Switch,EndOfSwitch = GraphSwitch1.SNode( 'Switch' , PySwitch ) -EndOfSwitch.SetName( 'EndOfSwitch' ) -EndOfSwitch.SetAuthor( '' ) -EndOfSwitch.SetComment( '' ) -EndOfSwitch.Coords( 587 , 126 ) -PyEndOfSwitch = [] -EndOfSwitch.SetPyFunction( 'EndSwitch' , PyEndOfSwitch ) -EndOfSwitch.InPort( 'a' , 'long' ) -EndOfSwitch.OutPort( 'a' , 'long' ) -Switch.SetName( 'Switch' ) -Switch.SetAuthor( '' ) -Switch.SetComment( '' ) -Switch.Coords( 186 , 130 ) -Switch.InPort( 'a' , 'long' ) -Switch.OutPort( 'Odd' , 'long' ) -Switch.OutPort( 'Even' , 'int' ) -Switch.OutPort( 'a' , 'int' ) - -# Creation of Links -IsOdda = IsOdd.Port( 'a' ) -EndOfSwitcha = GraphSwitch1.Link( IsOdda , EndOfSwitch.Port( 'a' ) ) -EndOfSwitcha.AddCoord( 1 , 571 , 161 ) -EndOfSwitcha.AddCoord( 2 , 571 , 131 ) - -InitLoopIndex = InitLoop.Port( 'Index' ) -Switcha = GraphSwitch1.Link( InitLoopIndex , Switch.Port( 'a' ) ) - -InitLoopMin = InitLoop.Port( 'Min' ) -EndOfInitLoopMin = GraphSwitch1.Link( InitLoopMin , EndOfInitLoop.Port( 'Min' ) ) - -InitLoopMax = InitLoop.Port( 'Max' ) -EndOfInitLoopMax = GraphSwitch1.Link( InitLoopMax , EndOfInitLoop.Port( 'Max' ) ) - -SwitchOdd = Switch.Port( 'Odd' ) -IsOddInGate = GraphSwitch1.Link( SwitchOdd , IsOdd.Port( 'InGate' ) ) - -SwitchEven = Switch.Port( 'Even' ) -EndOfSwitchDefault = GraphSwitch1.Link( SwitchEven , EndOfSwitch.Port( 'Default' ) ) - -Switcha = Switch.Port( 'a' ) -IsOdda = GraphSwitch1.Link( Switcha , IsOdd.Port( 'a' ) ) -IsOdda.AddCoord( 1 , 372 , 129 ) -IsOdda.AddCoord( 2 , 371 , 223 ) - -EndOfSwitcha = GraphSwitch1.Link( Switcha , EndOfSwitch.Port( 'a' ) ) -EndOfSwitcha.AddCoord( 1 , 571 , 161 ) -EndOfSwitcha.AddCoord( 2 , 570 , 221 ) - -EndOfSwitcha = EndOfSwitch.Port( 'a' ) -EndOfInitLoopIndex = GraphSwitch1.Link( EndOfSwitcha , EndOfInitLoop.Port( 'Index' ) ) - -# Creation of Input datas -InitLoopIndex = InitLoop.Input( 'Index' , 0) -InitLoopMin = InitLoop.Input( 'Min' , 0) -InitLoopMax = InitLoop.Input( 'Max' , 100) - -# Creation of Output variables -EndOfInitLoopIndex = EndOfInitLoop.Port( 'Index' ) -EndOfInitLoopMin = EndOfInitLoop.Port( 'Min' ) -EndOfInitLoopMax = EndOfInitLoop.Port( 'Max' ) - -GraphSwitch1.Run() -GraphSwitch1.DoneW() -print GraphSwitch1.State() -GraphSwitch1.PrintPorts() diff --git a/examples/GraphSwitch1.xml b/examples/GraphSwitch1.xml deleted file mode 100755 index bff16b1..0000000 --- a/examples/GraphSwitch1.xml +++ /dev/null @@ -1,348 +0,0 @@ - - - - -? - ? - GraphSwitch1 - 1 - ? - -GraphSwitch1 - - -long - InitLoop\Index - -long - InitLoop\Min - -long - InitLoop\Max - - -long - EndOfInitLoop\Index - -long - EndOfInitLoop\Min - -long - EndOfInitLoop\Max - - - 1/10/2003 - 17:12:48 - 13/10/2003 - 10:54:20 - 1.05 - ? - ? - ? - 0 - 0 - - -? - ? - IsOdd - 3 - ? - -IsOdd - - -long - a - - -long - a - - - -IsOdd - - - - - - 13/10/2003 - 10:54:20 - 13/10/2003 - 10:54:20 - 1.05 - ? - ? - Python function - 388 - 50 - -? - ? - InitLoop - 4 - EndOfInitLoop - -InitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - -InitLoop - - - -MoreLoop - - - - - - - -NextLoop - - - - 13/10/2003 - 10:54:20 - 13/10/2003 - 10:54:20 - 1.05 - ? - ? - ? - 10 - 129 - -? - ? - EndOfInitLoop - 5 - InitLoop - -EndOfInitLoop - - -long - Index - -long - Min - -long - Max - - -long - Index - -long - Min - -long - Max - - - - 13/10/2003 - 10:54:20 - 13/10/2003 - 10:54:20 - 1.05 - ? - ? - ? - 766 - 127 - -? - ? - Switch - 6 - EndOfSwitch - -Switch - - -long - a - - -long - Odd - -int - Even - -int - a - - - -Switch - - - - - - 13/10/2003 - 10:54:20 - 13/10/2003 - 10:54:20 - 1.05 - ? - ? - ? - 186 - 130 - -? - ? - EndOfSwitch - 7 - Switch - -EndOfSwitch - - -long - a - - -long - a - - - - 13/10/2003 - 10:54:20 - 13/10/2003 - 10:54:20 - 1.05 - ? - ? - ? - 587 - 126 - - -IsOdd - a - EndOfSwitch - a - - -571 - 161 - -571 - 131 - -InitLoop - DoLoop - EndOfInitLoop - DoLoop - - -InitLoop - Index - Switch - a - - -InitLoop - Min - EndOfInitLoop - Min - - -InitLoop - Max - EndOfInitLoop - Max - - -EndOfInitLoop - DoLoop - InitLoop - DoLoop - - -Switch - Odd - IsOdd - InGate - - -Switch - Even - EndOfSwitch - Default - - -Switch - a - IsOdd - a - - -372 - 129 - -371 - 223 - -Switch - a - EndOfSwitch - a - - -571 - 161 - -570 - 221 - -EndOfSwitch - a - EndOfInitLoop - Index - - - -GraphSwitch1 - InitLoop\Index - InitLoop - Index - -3 - 0 - - -GraphSwitch1 - InitLoop\Min - InitLoop - Min - -3 - 0 - - -GraphSwitch1 - InitLoop\Max - InitLoop - Max - -3 - 100 - -- 2.39.2