15 return corbaClass.narrow(corbaObject)
19 props = System.getProperties()
20 s = System.getenv(
"NS_OPT")
22 s = System.getenv(
"NS_OPT")
27 args = string.split(s)
29 return CORBA.ORB.init(args, props)
35 exec(
'import Simulator.'+name+
'Helper as localImport')
58 tmp = corbaObject._narrow(corbaClass)
62 print(
'narrow exception:', corbaObject,
'to', corbaClass)
68 return CORBA.ORB_init(argv, CORBA.ORB_ID)
73 print(
'getPluginObject2NarrowPython('+name+
')')
75 exec(
'from _GlobalIDL import '+name+
' as localImport')
86 import java.lang.System
as System
87 print(
'platform is probably Jython')
101 PluginManager = IDLBase.PluginManagerHelper
104 CommandReceiver = IDLBase.CommandReceiverHelper
107 Plugin = IDLBase.PluginHelper
110 LoggerPlugin = IDLBase.LoggerPluginHelper
113 SequencePlayer = IDLBase.SequencePlayerHelper
115 stateProvider = IDLBase.stateProviderHelper
116 IoControPlugin = IDLBase.IoControlPluginHelper
118 doNarrow = doNarrow4Jython
119 getORB = getORBJython
120 getPluginObject2Narrow = getPluginObject2NarrowJython
123 print(
'platform is probably CPython')
124 import omniORB.CORBA
as CORBA
126 import _GlobalIDL
as IDLBase
128 NameComponent = CosNaming.NameComponent
129 NotFound = CosNaming.NamingContext.NotFound
134 NamingContext = CosNaming.NamingContext
137 PluginManager = IDLBase.PluginManager
140 CommandReceiver = IDLBase.CommandReceiver
143 Plugin = IDLBase.Plugin
146 LoggerPlugin = IDLBase.LoggerPlugin
149 SequencePlayer = IDLBase.SequencePlayer
151 stateProvider = IDLBase.stateProvider
152 IoControPlugin = IDLBase.IoControlPlugin
154 doNarrow = doNarrow4Python
155 getORB = getORBPython
156 getPluginObject2Narrow = getPluginObject2NarrowPython
161 return NotFound, NamingContext, NameComponent, \
def getPluginObject2NarrowPython(name)
def getPluginObject2NarrowJython(name)
def doNarrow4Python(corbaClass, corbaObject)
Functions for Python+omniORB.
def doNarrow4Jython(corbaClass, corbaObject)
Functions for Jython.