--- /dev/null
+
+# Generated python file of Graph GraphTwoLoops1
+
+from SuperV import *
+
+# Graph creation of GraphTwoLoops1
+def DefGraphTwoLoops1() :
+ GraphTwoLoops1 = Graph( 'GraphTwoLoops1' )
+ GraphTwoLoops1.SetName( 'GraphTwoLoops1' )
+ GraphTwoLoops1.SetAuthor( 'JR' )
+ GraphTwoLoops1.SetComment( '' )
+ GraphTwoLoops1.Coords( 0 , 0 )
+
+ # Creation of Factory Nodes
+
+ # Creation of Loop Nodes
+ PyLoop1 = []
+ PyLoop1.append( 'def Loop1(Index,Max) : ' )
+ PyLoop1.append( ' return Index,Max ' )
+ PyLoop1.append( '' )
+ PyMoreLoop1 = []
+ PyMoreLoop1.append( 'import time ' )
+ PyMoreLoop1.append( 'def More(Index,Max) : ' )
+ PyMoreLoop1.append( ' time.sleep(2) ' )
+ PyMoreLoop1.append( ' DoLoop = 0 ' )
+ PyMoreLoop1.append( ' if Index < Max : ' )
+ PyMoreLoop1.append( ' DoLoop = 1 ' )
+ PyMoreLoop1.append( ' return DoLoop,Index,Max ' )
+ PyMoreLoop1.append( '' )
+ PyNextLoop1 = []
+ PyNextLoop1.append( 'def Next(Index,Max) : ' )
+ PyNextLoop1.append( ' Index = Index + 1 ' )
+ PyNextLoop1.append( ' return Index,Max ' )
+ PyNextLoop1.append( '' )
+ Loop1,EndLoop1 = GraphTwoLoops1.LNode( 'Loop1' , PyLoop1 , 'More' , PyMoreLoop1 , 'Next' , PyNextLoop1 )
+ EndLoop1.SetName( 'EndLoop1' )
+ EndLoop1.SetAuthor( '' )
+ EndLoop1.SetComment( 'Compute Node' )
+ EndLoop1.Coords( 634 , 177 )
+ PyEndLoop1 = []
+ EndLoop1.SetPyFunction( 'EndLoop1' , PyEndLoop1 )
+ ILoop1DoLoop = Loop1.GetInPort( 'DoLoop' )
+ ILoop1Index = Loop1.InPort( 'Index' , 'long' )
+ ILoop1Max = Loop1.InPort( 'Max' , 'long' )
+ ILoop1Gate = Loop1.GetInPort( 'Gate' )
+ OLoop1DoLoop = Loop1.GetOutPort( 'DoLoop' )
+ OLoop1Index = Loop1.GetOutPort( 'Index' )
+ OLoop1Max = Loop1.GetOutPort( 'Max' )
+ IEndLoop1DoLoop = EndLoop1.GetInPort( 'DoLoop' )
+ IEndLoop1Index = EndLoop1.GetInPort( 'Index' )
+ IEndLoop1Max = EndLoop1.GetInPort( 'Max' )
+ IEndLoop1Gate = EndLoop1.GetInPort( 'Gate' )
+ OEndLoop1DoLoop = EndLoop1.GetOutPort( 'DoLoop' )
+ OEndLoop1Index = EndLoop1.GetOutPort( 'Index' )
+ OEndLoop1Max = EndLoop1.GetOutPort( 'Max' )
+ OEndLoop1Gate = EndLoop1.GetOutPort( 'Gate' )
+ Loop1.SetName( 'Loop1' )
+ Loop1.SetAuthor( '' )
+ Loop1.SetComment( 'Compute Node' )
+ Loop1.Coords( 7 , 175 )
+
+ PyLoop = []
+ PyMoreLoop = []
+ PyMoreLoop.append( '' )
+ PyNextLoop = []
+ PyNextLoop.append( 'def Next(Index,Max) : ' )
+ PyNextLoop.append( ' Index = Index + 1 ' )
+ PyNextLoop.append( ' return Index,Max ' )
+ PyNextLoop.append( '' )
+ Loop,EndLoop = GraphTwoLoops1.LNode( '' , PyLoop , '' , PyMoreLoop , 'Next' , PyNextLoop )
+ EndLoop.SetName( 'EndLoop' )
+ EndLoop.SetAuthor( '' )
+ EndLoop.SetComment( 'Compute Node' )
+ EndLoop.Coords( 426 , 180 )
+ PyEndLoop = []
+ PyEndLoop.append( 'import time ' )
+ PyEndLoop.append( 'def EndLoop(DoLoop,Index,Max) : ' )
+ PyEndLoop.append( ' time.sleep(1) ' )
+ PyEndLoop.append( ' DoLoop = 0 ' )
+ PyEndLoop.append( ' if Index < Max : ' )
+ PyEndLoop.append( ' DoLoop = 1 ' )
+ PyEndLoop.append( ' return DoLoop,Index,Max ' )
+ PyEndLoop.append( '' )
+ EndLoop.SetPyFunction( 'EndLoop' , PyEndLoop )
+ ILoopDoLoop = Loop.GetInPort( 'DoLoop' )
+ ILoopIndex = Loop.InPort( 'Index' , 'long' )
+ ILoopMax = Loop.InPort( 'Max' , 'long' )
+ ILoopGate = Loop.GetInPort( 'Gate' )
+ OLoopDoLoop = Loop.GetOutPort( 'DoLoop' )
+ OLoopIndex = Loop.GetOutPort( 'Index' )
+ OLoopMax = Loop.GetOutPort( 'Max' )
+ IEndLoopDoLoop = EndLoop.GetInPort( 'DoLoop' )
+ IEndLoopIndex = EndLoop.GetInPort( 'Index' )
+ IEndLoopMax = EndLoop.GetInPort( 'Max' )
+ IEndLoopGate = EndLoop.GetInPort( 'Gate' )
+ OEndLoopDoLoop = EndLoop.GetOutPort( 'DoLoop' )
+ OEndLoopIndex = EndLoop.GetOutPort( 'Index' )
+ OEndLoopMax = EndLoop.GetOutPort( 'Max' )
+ OEndLoopGate = EndLoop.GetOutPort( 'Gate' )
+ Loop.SetName( 'Loop' )
+ Loop.SetAuthor( '' )
+ Loop.SetComment( 'Compute Node' )
+ Loop.Coords( 208 , 179 )
+
+ # Creation of Links
+ LLoop1IndexEndLoop1Index = GraphTwoLoops1.Link( OLoop1Index , IEndLoop1Index )
+
+ LLoop1IndexLoopIndex = GraphTwoLoops1.Link( OLoop1Index , ILoopIndex )
+
+ LLoop1MaxEndLoop1Max = GraphTwoLoops1.Link( OLoop1Max , IEndLoop1Max )
+
+ LLoop1GateLoopGate = GraphTwoLoops1.Link( OLoop1Gate , ILoopGate )
+
+ LLoopIndexEndLoopIndex = GraphTwoLoops1.Link( OLoopIndex , IEndLoopIndex )
+
+ LLoopMaxEndLoopMax = GraphTwoLoops1.Link( OLoopMax , IEndLoopMax )
+
+ LEndLoopGateEndLoop1Gate = GraphTwoLoops1.Link( OEndLoopGate , IEndLoop1Gate )
+
+ # Input datas
+ ILoop1Index.Input( 5 )
+ ILoop1Max.Input( 15 )
+ ILoopMax.Input( 20 )
+
+ # Output Ports of the graph
+ #OEndLoop1Index = EndLoop1.GetOutPort( 'Index' )
+ #OEndLoop1Max = EndLoop1.GetOutPort( 'Max' )
+ #OEndLoopIndex = EndLoop.GetOutPort( 'Index' )
+ #OEndLoopMax = EndLoop.GetOutPort( 'Max' )
+ return GraphTwoLoops1
+
+
+GraphTwoLoops1 = DefGraphTwoLoops1()