19 from omniORB
import CORBA
23 import SDOPackage, SDOPackage__POA
62 self.
_pId = str(OpenRTM_aist.uuid1())
70 self.
__rtcout = OpenRTM_aist.Manager.instance().getLogbuf(
"rtobject.sdo_organization")
111 self.
__rtcout.RTC_TRACE(
"get_organization_id() = %s", self.
_pId)
151 self.
__rtcout.RTC_TRACE(
"get_organization_property()")
153 prop = SDOPackage.OrganizationProperty(self.
_orgProperty.properties)
198 self.
__rtcout.RTC_TRACE(
"get_organization_property_value(%s)", name)
200 raise SDOPackage.InvalidParameter(
"Empty name.")
205 raise SDOPackage.InvalidParameter(
"Not found.")
208 value = omniORB.any.to_any(self.
_orgProperty.properties[index].value)
211 self.
__rtcout.RTC_ERROR(OpenRTM_aist.Logger.print_exception())
212 raise SDOPackage.InternalError(
"get_organization_property_value()")
259 self.
__rtcout.RTC_TRACE(
"add_organization_property()")
260 if org_property
is None:
261 raise SDOPackage.InvalidParameter(
"org_property is Empty.")
268 self.
__rtcout.RTC_ERROR(OpenRTM_aist.Logger.print_exception())
269 raise SDOPackage.InternalError(
"add_organization_property()")
320 self.
__rtcout.RTC_TRACE(
"set_organization_property_value(name=%s)", name)
322 raise SDOPackage.InvalidParameter(
"set_organization_property_value(): Enpty name.")
327 nv = SDOPackage.NameValue(name, value)
377 self.
__rtcout.RTC_TRACE(
"remove_organization_property(%s)", name)
379 raise SDOPackage.InvalidParameter(
"remove_organization_property_value(): Enpty name.")
384 raise SDOPackage.InvalidParameter(
"remove_organization_property_value(): Not found.")
390 self.
__rtcout.RTC_ERROR(OpenRTM_aist.Logger.print_exception())
391 raise SDOPackage.InternalError(
"remove_organization_property_value()")
430 self.
__rtcout.RTC_TRACE(
"get_owner()")
476 self.
__rtcout.RTC_TRACE(
"set_owner()")
477 if CORBA.is_nil(sdo):
478 raise SDOPackage.InvalidParameter(
"set_owner()")
484 self.
__rtcout.RTC_ERROR(OpenRTM_aist.Logger.print_exception())
485 raise SDOPackage.InternalError(
"set_owner()")
526 self.
__rtcout.RTC_TRACE(
"get_members()")
530 self.
__rtcout.RTC_ERROR(OpenRTM_aist.Logger.print_exception())
531 raise SDOPackage.InternalError(
"get_members()")
579 self.
__rtcout.RTC_TRACE(
"set_members()")
581 raise SDOPackage.InvalidParameter(
"set_members(): SDOList is empty.")
587 self.
__rtcout.RTC_ERROR(OpenRTM_aist.Logger.print_exception())
588 raise SDOPackage.InternalError(
"set_members()")
632 self.
__rtcout.RTC_TRACE(
"add_members()")
634 raise SDOPackage.InvalidParameter(
"add_members(): SDOList is empty.")
640 self.
__rtcout.RTC_ERROR(OpenRTM_aist.Logger.print_exception())
641 raise SDOPackage.InternalError(
"add_members()")
684 self.
__rtcout.RTC_TRACE(
"remove_member(%s)", id)
686 self.
__rtcout.RTC_ERROR(
"remove_member(): Enpty name.")
687 raise SDOPackage.InvalidParameter(
"remove_member(): Empty name.")
692 self.
__rtcout.RTC_ERROR(
"remove_member(): Not found.")
693 raise SDOPackage.InvalidParameter(
"remove_member(): Not found.")
699 self.
__rtcout.RTC_ERROR(
"unknown exception")
700 raise SDOPackage.InternalError(
"remove_member(): Not found.")
744 self.
__rtcout.RTC_TRACE(
"get_dependency()")
792 self.
__rtcout.RTC_TRACE(
"set_dependency()")
793 if dependency
is None:
794 raise SDOPackage.InvalidParameter(
"set_dependency(): Empty dependency.")
800 self.
__rtcout.RTC_ERROR(OpenRTM_aist.Logger.print_exception())
801 raise SDOPackage.InternalError(
"set_dependency(): Unknown.")
827 return str(self.
_name) == str(nv.name)
841 id_ = sdo.get_sdo_id()
842 return str(self.
_id) == str(id_)
def erase(seq, index)
Erase the element of the specified index.
def push_back_list(seq1, seq2)
def push_back(seq, elem)
Push the new element back to the CORBA sequence.
def set_organization_property_value(self, name, value)
[CORBA interface] Set specified value of OrganizationProperty
def set_members(self, sdos)
[CORBA interface] Set SDO's ServiceProfile
def remove_member(self, id)
[CORBA interface] Remove menber SDO from Organization
def add_members(self, sdo_list)
[CORBA interface] Add the menebr SDOs
def get_dependency(self)
[CORBA interface] Get the DependencyType of the Organization
def add_organization_property(self, org_property)
[CORBA interface] Set OrganizationProperty
def get_organization_id(self)
[CORBA interface] Get Organization Id
def set_owner(self, sdo)
[CORBA interface] Set the orner of the Organization
def get_members(self)
[CORBA interface] Get a menber list of the Organization
def set_dependency(self, dependency)
[CORBA interface] Set the DependencyType of the Organization
Organization implementation class.
def get_organization_property(self)
[CORBA interface] Get OrganizationProperty
def find(seq, f)
Return the index of CORBA sequence element that functor matches.
def get_owner(self)
[CORBA interface] Get the owner of the SDO
def get_organization_property_value(self, name)
[CORBA interface] Get specified value of OrganizationProperty
def remove_organization_property(self, name)
[CORBA interface] Remove specified OrganizationProperty