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 GraphConvertObjRefCheckNotCompatible
27 # Graph creation of GraphConvertObjRefCheckNotCompatible
28 def DefGraphConvertObjRefCheckNotCompatible() :
29 GraphConvertObjRefCheckNotCompatible = Graph( 'GraphConvertObjRefCheckNotCompatible' )
30 GraphConvertObjRefCheckNotCompatible.SetName( 'GraphConvertObjRefCheckNotCompatible' )
31 GraphConvertObjRefCheckNotCompatible.SetAuthor( 'JR' )
32 GraphConvertObjRefCheckNotCompatible.SetComment( 'Check conversions of ObjRef' )
33 GraphConvertObjRefCheckNotCompatible.Coords( 0 , 0 )
35 # Creation of Factory Nodes
37 MiscTypes = GraphConvertObjRefCheckNotCompatible.FNode( 'TypesCheck' , 'TypesCheck' , 'MiscTypes' )
38 MiscTypes.SetName( 'MiscTypes' )
39 MiscTypes.SetAuthor( '' )
40 MiscTypes.SetContainer( 'localhost/FactoryServer' )
41 MiscTypes.SetComment( 'MiscTypes from TypesCheck' )
42 MiscTypes.Coords( 284 , 28 )
43 IMiscTypesInString = MiscTypes.GetInPort( 'InString' )
44 IMiscTypesInBool = MiscTypes.GetInPort( 'InBool' )
45 IMiscTypesInChar = MiscTypes.GetInPort( 'InChar' )
46 IMiscTypesInShort = MiscTypes.GetInPort( 'InShort' )
47 IMiscTypesInLong = MiscTypes.GetInPort( 'InLong' )
48 IMiscTypesInFloat = MiscTypes.GetInPort( 'InFloat' )
49 IMiscTypesInDouble = MiscTypes.GetInPort( 'InDouble' )
50 IMiscTypesInObjRef = MiscTypes.GetInPort( 'InObjRef' )
51 IMiscTypesGate = MiscTypes.GetInPort( 'Gate' )
52 OMiscTypesOutString = MiscTypes.GetOutPort( 'OutString' )
53 OMiscTypesOutBool = MiscTypes.GetOutPort( 'OutBool' )
54 OMiscTypesOutChar = MiscTypes.GetOutPort( 'OutChar' )
55 OMiscTypesOutShort = MiscTypes.GetOutPort( 'OutShort' )
56 OMiscTypesOutLong = MiscTypes.GetOutPort( 'OutLong' )
57 OMiscTypesOutFloat = MiscTypes.GetOutPort( 'OutFloat' )
58 OMiscTypesOutDouble = MiscTypes.GetOutPort( 'OutDouble' )
59 OMiscTypesOutObjRef = MiscTypes.GetOutPort( 'OutObjRef' )
60 OMiscTypesGate = MiscTypes.GetOutPort( 'Gate' )
62 # Creation of InLine Nodes
64 PySyrComponent.append( 'from LifeCycleCORBA import * ' )
65 PySyrComponent.append( 'def SyrComponent( aContainer , aComponent ) : ' )
66 PySyrComponent.append( ' print "SyrComponent(",aContainer,",",aComponent,")" ' )
67 PySyrComponent.append( ' orb = CORBA.ORB_init([], CORBA.ORB_ID) ' )
68 PySyrComponent.append( ' print "SyrComponent orb",orb ' )
69 PySyrComponent.append( ' lcc = LifeCycleCORBA(orb) ' )
70 PySyrComponent.append( ' print "SyrComponent lcc",lcc ' )
71 PySyrComponent.append( ' print "SyrComponent(",aContainer,",",aComponent,")" ' )
72 PySyrComponent.append( ' ComponentRef = lcc.FindOrLoadComponent( aContainer , aComponent ) ' )
73 PySyrComponent.append( ' print "SyrComponent(",aContainer,",",aComponent,") --> ",ComponentRef ' )
74 PySyrComponent.append( ' return ComponentRef ' )
75 PySyrComponent.append( '' )
76 SyrComponent = GraphConvertObjRefCheckNotCompatible.INode( 'SyrComponent' , PySyrComponent )
77 SyrComponent.SetName( 'SyrComponent' )
78 SyrComponent.SetAuthor( 'JR' )
79 SyrComponent.SetComment( 'InLine Node' )
80 SyrComponent.Coords( 14 , 114 )
81 ISyrComponentaContainer = SyrComponent.InPort( 'aContainer' , 'string' )
82 ISyrComponentaComponent = SyrComponent.InPort( 'aComponent' , 'string' )
83 ISyrComponentGate = SyrComponent.GetInPort( 'Gate' )
84 OSyrComponentanObjRef = SyrComponent.OutPort( 'anObjRef' , 'objref' )
85 OSyrComponentGate = SyrComponent.GetOutPort( 'Gate' )
88 PyObjRefToInline.append( 'def ObjRefToInline(objRef): ' )
89 PyObjRefToInline.append( ' return objRef ' )
90 ObjRefToInline = GraphConvertObjRefCheckNotCompatible.INode( 'ObjRefToInline' , PyObjRefToInline )
91 ObjRefToInline.SetName( 'ObjRefToInline' )
92 ObjRefToInline.SetAuthor( '' )
93 ObjRefToInline.SetComment( 'Compute Node' )
94 ObjRefToInline.Coords( 496 , 168 )
95 IObjRefToInlinetoInLine = ObjRefToInline.InPort( 'toInLine' , 'int' )
96 IObjRefToInlineGate = ObjRefToInline.GetInPort( 'Gate' )
97 OObjRefToInlineGate = ObjRefToInline.GetOutPort( 'Gate' )
100 LSyrComponentanObjRefMiscTypesInObjRef = GraphConvertObjRefCheckNotCompatible.Link( OSyrComponentanObjRef , IMiscTypesInObjRef )
102 LSyrComponentanObjRefMiscTypesInString = GraphConvertObjRefCheckNotCompatible.Link( OSyrComponentanObjRef , IMiscTypesInString )
104 LSyrComponentanObjRefMiscTypesInBool = GraphConvertObjRefCheckNotCompatible.Link( OSyrComponentanObjRef , IMiscTypesInBool )
106 LSyrComponentanObjRefMiscTypesInChar = GraphConvertObjRefCheckNotCompatible.Link( OSyrComponentanObjRef , IMiscTypesInChar )
108 LSyrComponentanObjRefMiscTypesInShort = GraphConvertObjRefCheckNotCompatible.Link( OSyrComponentanObjRef , IMiscTypesInShort )
110 LSyrComponentanObjRefMiscTypesInLong = GraphConvertObjRefCheckNotCompatible.Link( OSyrComponentanObjRef , IMiscTypesInLong )
112 LSyrComponentanObjRefMiscTypesInFloat = GraphConvertObjRefCheckNotCompatible.Link( OSyrComponentanObjRef , IMiscTypesInFloat )
114 LSyrComponentanObjRefMiscTypesInDouble = GraphConvertObjRefCheckNotCompatible.Link( OSyrComponentanObjRef , IMiscTypesInDouble )
116 LMiscTypesOutObjRefObjRefToInlinetoInLine = GraphConvertObjRefCheckNotCompatible.Link( OMiscTypesOutObjRef , IObjRefToInlinetoInLine )
119 ISyrComponentaContainer.Input( 'FactoryServerPy' )
120 ISyrComponentaComponent.Input( 'SyrControlComponent' )
122 # Output Ports of the graph
123 #OMiscTypesOutString = MiscTypes.GetOutPort( 'OutString' )
124 #OMiscTypesOutBool = MiscTypes.GetOutPort( 'OutBool' )
125 #OMiscTypesOutChar = MiscTypes.GetOutPort( 'OutChar' )
126 #OMiscTypesOutShort = MiscTypes.GetOutPort( 'OutShort' )
127 #OMiscTypesOutLong = MiscTypes.GetOutPort( 'OutLong' )
128 #OMiscTypesOutFloat = MiscTypes.GetOutPort( 'OutFloat' )
129 #OMiscTypesOutDouble = MiscTypes.GetOutPort( 'OutDouble' )
130 return GraphConvertObjRefCheckNotCompatible
133 GraphConvertObjRefCheckNotCompatible = DefGraphConvertObjRefCheckNotCompatible()