Salome HOME
*** empty log message ***
[modules/superv.git] / examples / GraphGOTOMemory.py
1
2 # Generated python file of Graph GraphGOTOMemory
3
4 from SuperV import *
5
6 # Graph creation of GraphGOTOMemory
7 def DefGraphGOTOMemory() :
8     GraphGOTOMemory = Graph( 'GraphGOTOMemory' )
9     GraphGOTOMemory.SetName( 'GraphGOTOMemory' )
10     GraphGOTOMemory.SetAuthor( 'JR' )
11     GraphGOTOMemory.SetComment( 'To study memory leaks' )
12     GraphGOTOMemory.Coords( 0 , 0 )
13     
14     # Creation of Factory Nodes
15     
16     # Creation of InLine Nodes
17     PyInLine = []
18     InLine = GraphGOTOMemory.INode( '' , PyInLine )
19     InLine.SetName( 'InLine' )
20     InLine.SetAuthor( '' )
21     InLine.SetComment( 'Compute Node' )
22     InLine.Coords( 74 , 178 )
23     IInLineGate = InLine.GetInPort( 'Gate' )
24     OInLineGate = InLine.GetOutPort( 'Gate' )
25     
26     # Creation of GOTO Nodes
27     PyGoTo = []
28     GoTo = GraphGOTOMemory.GNode( '' , PyGoTo , 'InLine' )
29     GoTo.SetName( 'GoTo' )
30     GoTo.SetAuthor( '' )
31     GoTo.SetComment( 'Compute Node' )
32     GoTo.Coords( 533 , 218 )
33     IGoToGate = GoTo.GetInPort( 'Gate' )
34     OGoToGate = GoTo.GetOutPort( 'Gate' )
35     
36     # Creation of Links
37     LInLineGateGoToGate = GraphGOTOMemory.Link( OInLineGate , IGoToGate )
38     
39     LGoToGateInLineGate = GraphGOTOMemory.Link( OGoToGate , IInLineGate )
40     LGoToGateInLineGate.AddCoord( 1 , 69 , 420 )
41     LGoToGateInLineGate.AddCoord( 2 , 700 , 420 )
42     
43     # Output Ports of the graph
44     return GraphGOTOMemory
45
46
47 GraphGOTOMemory = DefGraphGOTOMemory()
48
49 GraphGOTOMemory.Run()
50 GraphGOTOMemory.DoneW()
51 GraphGOTOMemory.State()
52 GraphGOTOMemory.PrintPorts()