2 # Generated python file of Graph GraphConvertIORCheck
6 GraphConvertIORCheck = Graph( 'GraphConvertIORCheck' )
7 GraphConvertIORCheck.SetName( 'GraphConvertIORCheck' )
8 GraphConvertIORCheck.SetAuthor( 'JR' )
9 GraphConvertIORCheck.SetComment( 'Check conversions of IOR' )
10 GraphConvertIORCheck.Coords( 0 , 0 )
12 # Creation of Factory Nodes
14 MiscTypes = GraphConvertIORCheck.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( ' IOR = orb.object_to_string( ComponentRef ) ' )
34 PySyrComponent.append( ' return IOR ' )
35 PySyrComponent.append( ' ' )
36 SyrComponent = GraphConvertIORCheck.INode( 'SyrComponent' , PySyrComponent )
37 SyrComponent.InPort( 'aContainer' , 'string' )
38 SyrComponent.InPort( 'aComponent' , 'string' )
39 SyrComponent.OutPort( 'anIOR' , 'string' )
40 SyrComponent.SetName( 'SyrComponent' )
41 SyrComponent.SetAuthor( 'JR' )
42 SyrComponent.SetComment( 'InLine Node' )
43 SyrComponent.Coords( 14 , 114 )
46 SyrComponentanIOR = SyrComponent.Port( 'anIOR' )
47 MiscTypesInShort = GraphConvertIORCheck.Link( SyrComponentanIOR , MiscTypes.Port( 'InShort' ) )
49 MiscTypesInString = GraphConvertIORCheck.Link( SyrComponentanIOR , MiscTypes.Port( 'InString' ) )
51 MiscTypesInBool = GraphConvertIORCheck.Link( SyrComponentanIOR , MiscTypes.Port( 'InBool' ) )
53 MiscTypesInChar = GraphConvertIORCheck.Link( SyrComponentanIOR , MiscTypes.Port( 'InChar' ) )
55 MiscTypesInLong = GraphConvertIORCheck.Link( SyrComponentanIOR , MiscTypes.Port( 'InLong' ) )
57 MiscTypesInFloat = GraphConvertIORCheck.Link( SyrComponentanIOR , MiscTypes.Port( 'InFloat' ) )
59 MiscTypesInDouble = GraphConvertIORCheck.Link( SyrComponentanIOR , MiscTypes.Port( 'InDouble' ) )
61 MiscTypesInObjRef = GraphConvertIORCheck.Link( SyrComponentanIOR , MiscTypes.Port( 'InObjRef' ) )
63 # Creation of Input datas
64 SyrComponentaContainer = SyrComponent.Input( 'aContainer' , 'FactoryServerPy')
65 SyrComponentaComponent = SyrComponent.Input( 'aComponent' , 'SyrControlComponent')
67 # Creation of Output variables
68 MiscTypesOutString = MiscTypes.Port( 'OutString' )
69 MiscTypesOutBool = MiscTypes.Port( 'OutBool' )
70 MiscTypesOutChar = MiscTypes.Port( 'OutChar' )
71 MiscTypesOutShort = MiscTypes.Port( 'OutShort' )
72 MiscTypesOutLong = MiscTypes.Port( 'OutLong' )
73 MiscTypesOutFloat = MiscTypes.Port( 'OutFloat' )
74 MiscTypesOutDouble = MiscTypes.Port( 'OutDouble' )
75 MiscTypesOutObjRef = MiscTypes.Port( 'OutObjRef' )
77 GraphConvertIORCheck.Run()
78 GraphConvertIORCheck.DoneW()
79 GraphConvertIORCheck.PrintPorts()