2 # Generated python file of Graph GraphGOTOAddMemory
6 # Graph creation of GraphGOTOAddMemory
7 def DefGraphGOTOAddMemory() :
8 GraphGOTOAddMemory = Graph( 'GraphGOTOAddMemory' )
9 GraphGOTOAddMemory.SetName( 'GraphGOTOAddMemory' )
10 GraphGOTOAddMemory.SetAuthor( 'JR' )
11 GraphGOTOAddMemory.SetComment( 'To study memory leaks' )
12 GraphGOTOAddMemory.Coords( 0 , 0 )
14 # Creation of Factory Nodes
16 AddWithoutSleep = GraphGOTOAddMemory.FNode( 'AddComponent' , 'AddComponent' , 'AddWithoutSleep' )
17 AddWithoutSleep.SetName( 'AddWithoutSleep' )
18 AddWithoutSleep.SetAuthor( '' )
19 AddWithoutSleep.SetContainer( 'localhost/FactoryServer' )
20 AddWithoutSleep.SetComment( 'AddWithoutSleep from AddComponent' )
21 AddWithoutSleep.Coords( 297 , 138 )
22 IAddWithoutSleepx = AddWithoutSleep.GetInPort( 'x' )
23 IAddWithoutSleepy = AddWithoutSleep.GetInPort( 'y' )
24 IAddWithoutSleepGate = AddWithoutSleep.GetInPort( 'Gate' )
25 OAddWithoutSleepFuncValue = AddWithoutSleep.GetOutPort( 'FuncValue' )
26 OAddWithoutSleepz = AddWithoutSleep.GetOutPort( 'z' )
27 OAddWithoutSleepGate = AddWithoutSleep.GetOutPort( 'Gate' )
29 # Creation of InLine Nodes
31 InLine = GraphGOTOAddMemory.INode( '' , PyInLine )
32 InLine.SetName( 'InLine' )
33 InLine.SetAuthor( '' )
34 InLine.SetComment( 'Compute Node' )
35 InLine.Coords( 74 , 178 )
36 IInLineGate = InLine.GetInPort( 'Gate' )
37 OInLineGate = InLine.GetOutPort( 'Gate' )
39 # Creation of GOTO Nodes
41 GoTo = GraphGOTOAddMemory.GNode( '' , PyGoTo , 'InLine' )
42 GoTo.SetName( 'GoTo' )
44 GoTo.SetComment( 'Compute Node' )
45 GoTo.Coords( 533 , 218 )
46 IGoToGate = GoTo.GetInPort( 'Gate' )
47 OGoToGate = GoTo.GetOutPort( 'Gate' )
50 LInLineGateAddWithoutSleepGate = GraphGOTOAddMemory.Link( OInLineGate , IAddWithoutSleepGate )
52 LGoToGateInLineGate = GraphGOTOAddMemory.Link( OGoToGate , IInLineGate )
53 LGoToGateInLineGate.AddCoord( 1 , 69 , 420 )
54 LGoToGateInLineGate.AddCoord( 2 , 700 , 420 )
56 LAddWithoutSleepGateGoToGate = GraphGOTOAddMemory.Link( OAddWithoutSleepGate , IGoToGate )
59 IAddWithoutSleepx.Input( 1 )
60 IAddWithoutSleepy.Input( 2 )
62 # Output Ports of the graph
63 #OAddWithoutSleepFuncValue = AddWithoutSleep.GetOutPort( 'FuncValue' )
64 #OAddWithoutSleepz = AddWithoutSleep.GetOutPort( 'z' )
65 return GraphGOTOAddMemory
68 GraphGOTOAddMemory = DefGraphGOTOAddMemory()
70 GraphGOTOAddMemory.Run()
71 GraphGOTOAddMemory.DoneW()
72 GraphGOTOAddMemory.State()
73 GraphGOTOAddMemory.PrintPorts()