2 # Generated python file of Graph GraphConvertObjRefCheck
6 GraphConvertObjRefCheck = Graph( 'GraphConvertObjRefCheck' )
7 GraphConvertObjRefCheck.SetName( 'GraphConvertObjRefCheck' )
8 GraphConvertObjRefCheck.SetAuthor( 'JR' )
9 GraphConvertObjRefCheck.SetComment( 'Check conversions of ObjRef' )
10 GraphConvertObjRefCheck.Coords( 0 , 0 )
12 # Creation of Factory Nodes
14 MiscTypes = GraphConvertObjRefCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'MiscTypes' )
15 MiscTypes.SetName( 'MiscTypes' )
16 MiscTypes.SetAuthor( '' )
17 MiscTypes.SetContainer( 'localhost/FactoryServer' )
18 MiscTypes.SetComment( 'MiscTypes from TypesCheck' )
19 MiscTypes.Coords( 284 , 28 )
21 # Creation of InLine Nodes
23 PySyrComponent.append( 'from LifeCycleCORBA import * ' )
24 PySyrComponent.append( 'def SyrComponent( aContainer , aComponent ) : ' )
25 PySyrComponent.append( ' print "SyrComponent(",aContainer,",",aComponent,")" ' )
26 PySyrComponent.append( ' orb = CORBA.ORB_init([], CORBA.ORB_ID) ' )
27 PySyrComponent.append( ' print "SyrComponent orb",orb ' )
28 PySyrComponent.append( ' lcc = LifeCycleCORBA(orb) ' )
29 PySyrComponent.append( ' print "SyrComponent lcc",lcc ' )
30 PySyrComponent.append( ' print "SyrComponent(",aContainer,",",aComponent,")" ' )
31 PySyrComponent.append( ' ComponentRef = lcc.FindOrLoadComponent( aContainer , aComponent ) ' )
32 PySyrComponent.append( ' print "SyrComponent(",aContainer,",",aComponent,") --> ",ComponentRef ' )
33 PySyrComponent.append( ' return ComponentRef ' )
34 PySyrComponent.append( '' )
35 SyrComponent = GraphConvertObjRefCheck.INode( 'SyrComponent' , PySyrComponent )
36 SyrComponent.InPort( 'aContainer' , 'string' )
37 SyrComponent.InPort( 'aComponent' , 'string' )
38 SyrComponent.OutPort( 'anObjRef' , 'objref' )
39 SyrComponent.SetName( 'SyrComponent' )
40 SyrComponent.SetAuthor( 'JR' )
41 SyrComponent.SetComment( 'InLine Node' )
42 SyrComponent.Coords( 14 , 114 )
45 SyrComponentanObjRef = SyrComponent.Port( 'anObjRef' )
46 MiscTypesInShort = GraphConvertObjRefCheck.Link( SyrComponentanObjRef , MiscTypes.Port( 'InShort' ) )
48 MiscTypesInString = GraphConvertObjRefCheck.Link( SyrComponentanObjRef , MiscTypes.Port( 'InString' ) )
50 MiscTypesInBool = GraphConvertObjRefCheck.Link( SyrComponentanObjRef , MiscTypes.Port( 'InBool' ) )
52 MiscTypesInChar = GraphConvertObjRefCheck.Link( SyrComponentanObjRef , MiscTypes.Port( 'InChar' ) )
54 MiscTypesInLong = GraphConvertObjRefCheck.Link( SyrComponentanObjRef , MiscTypes.Port( 'InLong' ) )
56 MiscTypesInFloat = GraphConvertObjRefCheck.Link( SyrComponentanObjRef , MiscTypes.Port( 'InFloat' ) )
58 MiscTypesInDouble = GraphConvertObjRefCheck.Link( SyrComponentanObjRef , MiscTypes.Port( 'InDouble' ) )
60 MiscTypesInObjRef = GraphConvertObjRefCheck.Link( SyrComponentanObjRef , MiscTypes.Port( 'InObjRef' ) )
62 # Creation of Input datas
63 SyrComponentaContainer = SyrComponent.Input( 'aContainer' , 'FactoryServerPy')
64 SyrComponentaComponent = SyrComponent.Input( 'aComponent' , 'SyrControlComponent')
66 # Creation of Output variables
67 MiscTypesOutString = MiscTypes.Port( 'OutString' )
68 MiscTypesOutBool = MiscTypes.Port( 'OutBool' )
69 MiscTypesOutChar = MiscTypes.Port( 'OutChar' )
70 MiscTypesOutShort = MiscTypes.Port( 'OutShort' )
71 MiscTypesOutLong = MiscTypes.Port( 'OutLong' )
72 MiscTypesOutFloat = MiscTypes.Port( 'OutFloat' )
73 MiscTypesOutDouble = MiscTypes.Port( 'OutDouble' )
74 MiscTypesOutObjRef = MiscTypes.Port( 'OutObjRef' )
76 GraphConvertObjRefCheck.Run()
77 GraphConvertObjRefCheck.DoneW()
78 GraphConvertObjRefCheck.PrintPorts()