1 # Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
3 # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 # Generated python file of Graph GraphGOTOMemory
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 )
34 # Creation of Factory Nodes
36 # Creation of InLine Nodes
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' )
46 # Creation of GOTO Nodes
48 GoTo = GraphGOTOMemory.GNode( '' , PyGoTo , 'InLine' )
49 GoTo.SetName( 'GoTo' )
51 GoTo.SetComment( 'Compute Node' )
52 GoTo.Coords( 533 , 218 )
53 IGoToGate = GoTo.GetInPort( 'Gate' )
54 OGoToGate = GoTo.GetOutPort( 'Gate' )
57 LInLineGateGoToGate = GraphGOTOMemory.Link( OInLineGate , IGoToGate )
59 LGoToGateInLineGate = GraphGOTOMemory.Link( OGoToGate , IInLineGate )
60 LGoToGateInLineGate.AddCoord( 1 , 69 , 420 )
61 LGoToGateInLineGate.AddCoord( 2 , 700 , 420 )
63 # Output Ports of the graph
64 return GraphGOTOMemory
67 GraphGOTOMemory = DefGraphGOTOMemory()
70 GraphGOTOMemory.DoneW()
71 GraphGOTOMemory.State()
72 GraphGOTOMemory.PrintPorts()