Salome HOME
Merge from BR_V5_DEV 17Feb09
[samples/datafiles.git] / Superv / Python / GraphGOTOMemory.py
1 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 #  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 #  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 #
6 #  This library is free software; you can redistribute it and/or
7 #  modify it under the terms of the GNU Lesser General Public
8 #  License as published by the Free Software Foundation; either
9 #  version 2.1 of the License.
10 #
11 #  This library is distributed in the hope that it will be useful,
12 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 #  Lesser General Public License for more details.
15 #
16 #  You should have received a copy of the GNU Lesser General Public
17 #  License along with this library; if not, write to the Free Software
18 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 #
20 #  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 #
22 # Generated python file of Graph GraphGOTOMemory
23 #
24 from SuperV import *
25
26 # Graph creation of GraphGOTOMemory
27 def DefGraphGOTOMemory() :
28     GraphGOTOMemory = Graph( 'GraphGOTOMemory' )
29     GraphGOTOMemory.SetName( 'GraphGOTOMemory' )
30     GraphGOTOMemory.SetAuthor( 'JR' )
31     GraphGOTOMemory.SetComment( 'To study memory leaks' )
32     GraphGOTOMemory.Coords( 0 , 0 )
33     
34     # Creation of Factory Nodes
35     
36     # Creation of InLine Nodes
37     PyInLine = []
38     InLine = GraphGOTOMemory.INode( '' , PyInLine )
39     InLine.SetName( 'InLine' )
40     InLine.SetAuthor( '' )
41     InLine.SetComment( 'Compute Node' )
42     InLine.Coords( 74 , 178 )
43     IInLineGate = InLine.GetInPort( 'Gate' )
44     OInLineGate = InLine.GetOutPort( 'Gate' )
45     
46     # Creation of GOTO Nodes
47     PyGoTo = []
48     GoTo = GraphGOTOMemory.GNode( '' , PyGoTo , 'InLine' )
49     GoTo.SetName( 'GoTo' )
50     GoTo.SetAuthor( '' )
51     GoTo.SetComment( 'Compute Node' )
52     GoTo.Coords( 533 , 218 )
53     IGoToGate = GoTo.GetInPort( 'Gate' )
54     OGoToGate = GoTo.GetOutPort( 'Gate' )
55     
56     # Creation of Links
57     LInLineGateGoToGate = GraphGOTOMemory.Link( OInLineGate , IGoToGate )
58     
59     LGoToGateInLineGate = GraphGOTOMemory.Link( OGoToGate , IInLineGate )
60     LGoToGateInLineGate.AddCoord( 1 , 69 , 420 )
61     LGoToGateInLineGate.AddCoord( 2 , 700 , 420 )
62     
63     # Output Ports of the graph
64     return GraphGOTOMemory
65
66
67 GraphGOTOMemory = DefGraphGOTOMemory()
68
69 GraphGOTOMemory.Run()
70 GraphGOTOMemory.DoneW()
71 GraphGOTOMemory.State()
72 GraphGOTOMemory.PrintPorts()