2 # Generated python file of Graph GraphConvertObjRefCheck
6 # Graph creation of GraphConvertObjRefCheck
7 def DefGraphConvertObjRefCheck() :
8 GraphConvertObjRefCheck = Graph( 'GraphConvertObjRefCheck' )
9 GraphConvertObjRefCheck.SetName( 'GraphConvertObjRefCheck' )
10 GraphConvertObjRefCheck.SetAuthor( 'JR' )
11 GraphConvertObjRefCheck.SetComment( 'Check conversions of ObjRef' )
12 GraphConvertObjRefCheck.Coords( 0 , 0 )
14 # Creation of Factory Nodes
16 MiscTypes = GraphConvertObjRefCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'MiscTypes' )
17 MiscTypes.SetName( 'MiscTypes' )
18 MiscTypes.SetAuthor( '' )
19 MiscTypes.SetContainer( 'localhost/FactoryServer' )
20 MiscTypes.SetComment( 'MiscTypes from TypesCheck' )
21 MiscTypes.Coords( 284 , 28 )
22 IMiscTypesInString = MiscTypes.GetInPort( 'InString' )
23 IMiscTypesInBool = MiscTypes.GetInPort( 'InBool' )
24 IMiscTypesInChar = MiscTypes.GetInPort( 'InChar' )
25 IMiscTypesInShort = MiscTypes.GetInPort( 'InShort' )
26 IMiscTypesInLong = MiscTypes.GetInPort( 'InLong' )
27 IMiscTypesInFloat = MiscTypes.GetInPort( 'InFloat' )
28 IMiscTypesInDouble = MiscTypes.GetInPort( 'InDouble' )
29 IMiscTypesInObjRef = MiscTypes.GetInPort( 'InObjRef' )
30 IMiscTypesGate = MiscTypes.GetInPort( 'Gate' )
31 OMiscTypesOutString = MiscTypes.GetOutPort( 'OutString' )
32 OMiscTypesOutBool = MiscTypes.GetOutPort( 'OutBool' )
33 OMiscTypesOutChar = MiscTypes.GetOutPort( 'OutChar' )
34 OMiscTypesOutShort = MiscTypes.GetOutPort( 'OutShort' )
35 OMiscTypesOutLong = MiscTypes.GetOutPort( 'OutLong' )
36 OMiscTypesOutFloat = MiscTypes.GetOutPort( 'OutFloat' )
37 OMiscTypesOutDouble = MiscTypes.GetOutPort( 'OutDouble' )
38 OMiscTypesOutObjRef = MiscTypes.GetOutPort( 'OutObjRef' )
39 OMiscTypesGate = MiscTypes.GetOutPort( 'Gate' )
41 # Creation of InLine Nodes
43 PySyrComponent.append( 'from LifeCycleCORBA import * ' )
44 PySyrComponent.append( 'def SyrComponent( aContainer , aComponent ) : ' )
45 PySyrComponent.append( ' print "SyrComponent(",aContainer,",",aComponent,")" ' )
46 PySyrComponent.append( ' orb = CORBA.ORB_init([], CORBA.ORB_ID) ' )
47 PySyrComponent.append( ' print "SyrComponent orb",orb ' )
48 PySyrComponent.append( ' lcc = LifeCycleCORBA(orb) ' )
49 PySyrComponent.append( ' print "SyrComponent lcc",lcc ' )
50 PySyrComponent.append( ' print "SyrComponent(",aContainer,",",aComponent,")" ' )
51 PySyrComponent.append( ' ComponentRef = lcc.FindOrLoadComponent( aContainer , aComponent ) ' )
52 PySyrComponent.append( ' print "SyrComponent(",aContainer,",",aComponent,") --> ",ComponentRef ' )
53 PySyrComponent.append( ' return ComponentRef ' )
54 PySyrComponent.append( '' )
55 SyrComponent = GraphConvertObjRefCheck.INode( 'SyrComponent' , PySyrComponent )
56 SyrComponent.SetName( 'SyrComponent' )
57 SyrComponent.SetAuthor( 'JR' )
58 SyrComponent.SetComment( 'InLine Node' )
59 SyrComponent.Coords( 14 , 114 )
60 ISyrComponentaContainer = SyrComponent.InPort( 'aContainer' , 'string' )
61 ISyrComponentaComponent = SyrComponent.InPort( 'aComponent' , 'string' )
62 ISyrComponentGate = SyrComponent.GetInPort( 'Gate' )
63 OSyrComponentanObjRef = SyrComponent.OutPort( 'anObjRef' , 'objref' )
64 OSyrComponentGate = SyrComponent.GetOutPort( 'Gate' )
67 PyObjRefToInline.append( 'def ObjRefToInline(objRef): ' )
68 PyObjRefToInline.append( ' return objRef ' )
69 ObjRefToInline = GraphConvertObjRefCheck.INode( 'ObjRefToInline' , PyObjRefToInline )
70 ObjRefToInline.SetName( 'ObjRefToInline' )
71 ObjRefToInline.SetAuthor( '' )
72 ObjRefToInline.SetComment( 'Compute Node' )
73 ObjRefToInline.Coords( 496 , 168 )
74 IObjRefToInlinetoInLine = ObjRefToInline.InPort( 'toInLine' , 'int' )
75 IObjRefToInlineGate = ObjRefToInline.GetInPort( 'Gate' )
76 OObjRefToInlineGate = ObjRefToInline.GetOutPort( 'Gate' )
79 LSyrComponentanObjRefMiscTypesInObjRef = GraphConvertObjRefCheck.Link( OSyrComponentanObjRef , IMiscTypesInObjRef )
81 LSyrComponentanObjRefMiscTypesInString = GraphConvertObjRefCheck.Link( OSyrComponentanObjRef , IMiscTypesInString )
83 LMiscTypesOutObjRefObjRefToInlinetoInLine = GraphConvertObjRefCheck.Link( OMiscTypesOutObjRef , IObjRefToInlinetoInLine )
86 ISyrComponentaContainer.Input( 'FactoryServerPy' )
87 ISyrComponentaComponent.Input( 'SyrControlComponent' )
88 IMiscTypesInBool.Input( 138492744 )
89 IMiscTypesInChar.Input( 135402800 )
90 IMiscTypesInShort.Input( 135448464 )
91 IMiscTypesInLong.Input( 135469224 )
92 IMiscTypesInFloat.Input( 65.6954 )
93 IMiscTypesInDouble.Input( 65.6954 )
95 # Output Ports of the graph
96 #OMiscTypesOutString = MiscTypes.GetOutPort( 'OutString' )
97 #OMiscTypesOutBool = MiscTypes.GetOutPort( 'OutBool' )
98 #OMiscTypesOutChar = MiscTypes.GetOutPort( 'OutChar' )
99 #OMiscTypesOutShort = MiscTypes.GetOutPort( 'OutShort' )
100 #OMiscTypesOutLong = MiscTypes.GetOutPort( 'OutLong' )
101 #OMiscTypesOutFloat = MiscTypes.GetOutPort( 'OutFloat' )
102 #OMiscTypesOutDouble = MiscTypes.GetOutPort( 'OutDouble' )
103 return GraphConvertObjRefCheck
106 GraphConvertObjRefCheck = DefGraphConvertObjRefCheck()