19 from omniORB
import CORBA
59 self.
_name = factory.getProfile().name
62 name_ = obj.getProfile().name
63 return self.
_name == name_
77 prof = p.get_port_profile()
79 return self.
_name == name_
94 self._pa.deletePort(p)
104 return self._port._is_equivalent(p)
133 self.
_rtcout = OpenRTM_aist.Manager.instance().getLogbuf(
"PortAdmin")
183 ret.append(p.get_port_profile())
248 return self._portServants.find(port_name)
278 self._rtcout.RTC_ERROR(
"registerPort() failed.")
289 if isinstance(port, RTC._objref_PortService):
294 self._portRefs.append(port)
301 self._portRefs.append(port.getPortRef())
302 return self._portServants.registerObject(port)
336 self._rtcout.RTC_ERROR(
"deletePort(PortBase&) failed.")
342 if isinstance(port,RTC._objref_PortService):
346 port.disconnect_all()
347 tmp = port.getProfile().name
350 self._poa.deactivate_object(self._poa.servant_to_id(port))
351 port.setPortRef(RTC.PortService._nil)
353 if not self._portServants.unregisterObject(tmp):
357 self._rtcout.RTC_ERROR(OpenRTM_aist.Logger.print_exception())
388 p = self._portServants.find(port_name)
401 ports = self._portServants.getObjects()
403 port.activateInterfaces()
416 ports = self._portServants.getObjects()
418 port.deactivateInterfaces()
444 ports = self._portServants.getObjects()
446 for i
in range(len_):
def deletePortByName(self, port_name)
Delete the Port' registration.
def deletePort(self, port)
Delete the Port's registration.
def deactivatePorts(self)
Deactivate all Port interfaces void PortAdmin::deactivatePorts()
def finalizePorts(self)
Unregister the Port.
def getPortRef(self, port_name)
Get PortServiceList.
def getPortServiceList(self)
Get PortServiceList.
def __init__(self, orb, poa)
Constructor.
def __init__(self, name=None, factory=None)
def registerPort(self, port)
Regsiter Port.
def removePort(self, port)
def find(seq, f)
Return the index of CORBA sequence element that functor matches.
Functor to delete the Port.
def getPort(self, port_name)
Getpointer to the Port's servant.
def getPortProfileList(self)
Get PorProfileList.
def activatePorts(self)
Activate all Port interfaces void PortAdmin::activatePorts()