Salome HOME
New test of MacroNodes
[samples/datafiles.git] / Superv / Python / GraphGOTOAddMemory.py
1
2 # Generated python file of Graph GraphGOTOAddMemory
3
4 from SuperV import *
5
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 )
13     
14     # Creation of Factory Nodes
15     
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' )
28     
29     # Creation of InLine Nodes
30     PyInLine = []
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' )
38     
39     # Creation of GOTO Nodes
40     PyGoTo = []
41     GoTo = GraphGOTOAddMemory.GNode( '' , PyGoTo , 'InLine' )
42     GoTo.SetName( 'GoTo' )
43     GoTo.SetAuthor( '' )
44     GoTo.SetComment( 'Compute Node' )
45     GoTo.Coords( 533 , 218 )
46     IGoToGate = GoTo.GetInPort( 'Gate' )
47     OGoToGate = GoTo.GetOutPort( 'Gate' )
48     
49     # Creation of Links
50     LInLineGateAddWithoutSleepGate = GraphGOTOAddMemory.Link( OInLineGate , IAddWithoutSleepGate )
51     
52     LGoToGateInLineGate = GraphGOTOAddMemory.Link( OGoToGate , IInLineGate )
53     LGoToGateInLineGate.AddCoord( 1 , 69 , 420 )
54     LGoToGateInLineGate.AddCoord( 2 , 700 , 420 )
55     
56     LAddWithoutSleepGateGoToGate = GraphGOTOAddMemory.Link( OAddWithoutSleepGate , IGoToGate )
57     
58     # Input datas
59     IAddWithoutSleepx.Input( 1 )
60     IAddWithoutSleepy.Input( 2 )
61     
62     # Output Ports of the graph
63     #OAddWithoutSleepFuncValue = AddWithoutSleep.GetOutPort( 'FuncValue' )
64     #OAddWithoutSleepz = AddWithoutSleep.GetOutPort( 'z' )
65     return GraphGOTOAddMemory
66
67
68 GraphGOTOAddMemory = DefGraphGOTOAddMemory()
69
70 GraphGOTOAddMemory.Run()
71 GraphGOTOAddMemory.DoneW()
72 GraphGOTOAddMemory.State()
73 GraphGOTOAddMemory.PrintPorts()