1 # Copyright (C) 2007-2015 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, or (at your option) any later version.
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
23 # Generated python file of Graph GraphGOTOAddMemory
27 # Graph creation of GraphGOTOAddMemory
28 def DefGraphGOTOAddMemory() :
29 GraphGOTOAddMemory = Graph( 'GraphGOTOAddMemory' )
30 GraphGOTOAddMemory.SetName( 'GraphGOTOAddMemory' )
31 GraphGOTOAddMemory.SetAuthor( 'JR' )
32 GraphGOTOAddMemory.SetComment( 'To study memory leaks' )
33 GraphGOTOAddMemory.Coords( 0 , 0 )
35 # Creation of Factory Nodes
37 AddWithoutSleep = GraphGOTOAddMemory.FNode( 'AddComponent' , 'AddComponent' , 'AddWithoutSleep' )
38 AddWithoutSleep.SetName( 'AddWithoutSleep' )
39 AddWithoutSleep.SetAuthor( '' )
40 AddWithoutSleep.SetContainer( 'localhost/FactoryServer' )
41 AddWithoutSleep.SetComment( 'AddWithoutSleep from AddComponent' )
42 AddWithoutSleep.Coords( 297 , 138 )
43 IAddWithoutSleepx = AddWithoutSleep.GetInPort( 'x' )
44 IAddWithoutSleepy = AddWithoutSleep.GetInPort( 'y' )
45 IAddWithoutSleepGate = AddWithoutSleep.GetInPort( 'Gate' )
46 OAddWithoutSleepFuncValue = AddWithoutSleep.GetOutPort( 'FuncValue' )
47 OAddWithoutSleepz = AddWithoutSleep.GetOutPort( 'z' )
48 OAddWithoutSleepGate = AddWithoutSleep.GetOutPort( 'Gate' )
50 # Creation of InLine Nodes
52 InLine = GraphGOTOAddMemory.INode( '' , PyInLine )
53 InLine.SetName( 'InLine' )
54 InLine.SetAuthor( '' )
55 InLine.SetComment( 'Compute Node' )
56 InLine.Coords( 74 , 178 )
57 IInLineGate = InLine.GetInPort( 'Gate' )
58 OInLineGate = InLine.GetOutPort( 'Gate' )
60 # Creation of GOTO Nodes
62 GoTo = GraphGOTOAddMemory.GNode( '' , PyGoTo , 'InLine' )
63 GoTo.SetName( 'GoTo' )
65 GoTo.SetComment( 'Compute Node' )
66 GoTo.Coords( 533 , 218 )
67 IGoToGate = GoTo.GetInPort( 'Gate' )
68 OGoToGate = GoTo.GetOutPort( 'Gate' )
71 LInLineGateAddWithoutSleepGate = GraphGOTOAddMemory.Link( OInLineGate , IAddWithoutSleepGate )
73 LGoToGateInLineGate = GraphGOTOAddMemory.Link( OGoToGate , IInLineGate )
74 LGoToGateInLineGate.AddCoord( 1 , 69 , 420 )
75 LGoToGateInLineGate.AddCoord( 2 , 700 , 420 )
77 LAddWithoutSleepGateGoToGate = GraphGOTOAddMemory.Link( OAddWithoutSleepGate , IGoToGate )
80 IAddWithoutSleepx.Input( 1 )
81 IAddWithoutSleepy.Input( 2 )
83 # Output Ports of the graph
84 #OAddWithoutSleepFuncValue = AddWithoutSleep.GetOutPort( 'FuncValue' )
85 #OAddWithoutSleepz = AddWithoutSleep.GetOutPort( 'z' )
86 return GraphGOTOAddMemory
89 GraphGOTOAddMemory = DefGraphGOTOAddMemory()
91 GraphGOTOAddMemory.Run()
92 GraphGOTOAddMemory.DoneW()
93 GraphGOTOAddMemory.State()
94 GraphGOTOAddMemory.PrintPorts()