38 throw (CORBA::SystemException)
40 return m_rtobj->initialize();
44 throw (CORBA::SystemException)
46 return m_rtobj->finalize();
50 throw (CORBA::SystemException)
52 return m_rtobj->exit();
57 throw (CORBA::SystemException)
59 DObjectRegistry doreg;
62 if (doreg.isLocal(exec_context))
64 ExecutionContextInterface&
ec(doreg.getLocalObject(exec_context));
68 ExecutionContextInterface&
ec(exec_context);
71 return m_rtobj->is_alive(
ec);
83 throw (CORBA::SystemException)
85 ExecutionContextInterface& ecif(m_rtobj->get_context(
ec_id));
87 return Local2Corba(ecif);
98 throw (CORBA::SystemException)
100 ExecutionContextInterfaceList& eclist(m_rtobj->get_owned_contexts());
102 ExecutionContextList_var retval;
106 return retval._retn();
117 throw (CORBA::SystemException)
119 ExecutionContextInterfaceList& eclist(m_rtobj->get_participating_contexts());
120 ExecutionContextList_var retval;
124 return retval._retn();
137 throw (CORBA::SystemException)
139 ExecutionContextInterface ecif(Corba2Local(cxt));
140 return m_rtobj->get_context_handle(ecif);
152 throw (CORBA::SystemException)
154 return m_rtobj->attach_context(ExecutionContext_ptr exec_context);
165 throw (CORBA::SystemException)
182 throw (CORBA::SystemException)
184 return m_rtobj->RTObject;
195 throw (CORBA::SystemException)
197 return m_rtobj->get_ports();
211 throw (CORBA::SystemException)
213 return m_rtobj->on_initialize();
224 throw (CORBA::SystemException)
226 return m_rtobj->on_finalize();
237 throw (CORBA::SystemException)
250 throw (CORBA::SystemException)
263 throw (CORBA::SystemException)
276 throw (CORBA::SystemException)
289 throw (CORBA::SystemException)
302 throw (CORBA::SystemException)
315 throw (CORBA::SystemException)
329 throw (CORBA::SystemException)
343 throw (CORBA::SystemException)
356 throw (CORBA::SystemException)
372 throw (CORBA::SystemException,
SDOPackage::NotAvailable)
386 throw (CORBA::SystemException,
400 throw (CORBA::SystemException,
414 throw (CORBA::SystemException,
419 SDOPackage::DeviceProfile_var dprofile;
420 dprofile =
new SDOPackage::DeviceProfile();
421 dprofile->device_type = CORBA::string_dup(
m_profile.category);
422 dprofile->manufacturer = CORBA::string_dup(
m_profile.vendor);
423 dprofile->model = CORBA::string_dup(
m_profile.type_name);
424 dprofile->version = CORBA::string_dup(
m_profile.version);
425 dprofile->properties =
m_profile.properties;
426 return dprofile._retn();
430 throw SDOPackage::InternalError(
"get_device_profile()");
432 return new SDOPackage::DeviceProfile();
443 throw (CORBA::SystemException,
448 SDOPackage::ServiceProfileList_var sprofiles;
449 sprofiles =
new SDOPackage::ServiceProfileList(m_sdoSvcProfiles);
450 return sprofiles._retn();
454 throw SDOPackage::InternalError(
"get_service_profiles()");
456 return new SDOPackage::ServiceProfileList();
466 SDOPackage::ServiceProfile*
468 throw (CORBA::SystemException,
469 SDOPackage::InvalidParameter, SDOPackage::NotAvailable,
470 SDOPackage::InternalError)
473 throw SDOPackage::InvalidParameter(
"get_service_profile(): Empty name.");
480 SDOPackage::ServiceProfile_var sprofile;
481 sprofile =
new SDOPackage::ServiceProfile(m_sdoSvcProfiles[index]);
482 return sprofile._retn();
486 throw SDOPackage::InternalError(
"get_service_profile()");
488 return new SDOPackage::ServiceProfile();
499 throw (CORBA::SystemException,
500 SDOPackage::InvalidParameter, SDOPackage::NotAvailable,
501 SDOPackage::InternalError)
504 throw SDOPackage::InvalidParameter(
"get_service(): Empty name.");
511 SDOPackage::SDOService_var
service;
512 service = m_sdoSvcProfiles[
index].service;
513 return service._retn();
517 throw SDOPackage::InternalError(
"get_service()");
519 return SDOPackage::SDOService::_nil();
530 throw (CORBA::SystemException,
535 throw SDOPackage::InterfaceNotImplemented();
538 SDOPackage::Configuration_var
config;
540 return config._retn();
544 SDOPackage::InternalError(
"get_configuration()");
546 return SDOPackage::Configuration::_nil();
557 throw (CORBA::SystemException,
561 throw SDOPackage::InterfaceNotImplemented();
562 return SDOPackage::Monitoring::_nil();
573 throw (CORBA::SystemException,
578 SDOPackage::OrganizationList_var
org;
584 throw SDOPackage::InternalError(
"get_organizations()");
586 return new SDOPackage::OrganizationList(0);
597 throw (CORBA::SystemException,
604 return status._retn();
608 SDOPackage::InternalError(
"get_status_list()");
621 throw (CORBA::SystemException,
622 SDOPackage::InvalidParameter, SDOPackage::NotAvailable,
623 SDOPackage::InternalError)
628 throw SDOPackage::InvalidParameter(
"get_status(): Not found");
631 CORBA::Any_var status;
633 return status._retn();
637 throw SDOPackage::InternalError(
"get_status()");
639 return new CORBA::Any();
691 return RTC::RTObject::_duplicate(
m_objref);
802 m_pPOA->deactivate_object(*
m_pPOA->servant_to_id(
this));
ComponentProfile m_profile
ComponentProfile.
PortAdmin m_portAdmin
List of Port Object reference.
virtual ReturnCode_t on_shutdown(UniqueId exec_handle)
[ComponentAction CORBA interface] Shutdown RTC
virtual SDOPackage::ServiceProfileList * get_service_profiles()
[SDO interface] Get SDO ServiceProfile
virtual ComponentProfile * get_component_profile()
[RTObject CORBA interface] Get RTC's profile
EXECUTION_HANDLE_TYPE_NATIVE ExecutionContextHandle_t
virtual ExecutionContextHandle_t get_context_handle(ExecutionContext_ptr cxt)
[CORBA interface] Return a handle of a ExecutionContext
virtual char * get_sdo_id()
[SDO interface] Get the SDO ID
virtual SDOPackage::Monitoring_ptr get_monitoring()
[SDO interface] Get Monitoring object
void finalizePorts()
Deactivate all Ports and unregister them.
virtual ReturnCode_t initialize()
[CORBA interface] Initialize the RTC that realizes this interface.
SDOPackage::Configuration_impl * m_pSdoConfigImpl
The pointer to the SDO Configuration Object.
virtual ReturnCode_t on_activated(UniqueId exec_handle)
[ComponentAction CORBA interface] Activate RTC
virtual ReturnCode_t on_startup(UniqueId exec_handle)
[ComponentAction CORBA interface] Startup RTC
ReturnCode_t detach_context(UniqueId exec_handle)
[CORBA interface] Detach ExecutionContext.
void updateParameters(const char *config_set)
Update configuration parameters (by ID)
virtual SDOPackage::OrganizationList * get_owned_organizations()
[SDO interface] Get Organization list
SDOPackage::OrganizationList m_sdoOrganizations
SDO organization.
std::vector< std::pair< std::string, std::string > > NVList
std::vector< std::string > getNamingNames()
[local interface] Get Naming Server information
SDOPackage::Configuration_var m_pSdoConfig
The pointer to the SDO Configuration Interface.
virtual ~RTObject_impl(void)
Virtual destructor.
vstring split(const std::string &input, const std::string &delimiter, bool ignore_empty)
Split string by delimiter.
void registerPort(PortBase &port)
[local interface] Register Port
virtual ExecutionContextList * get_participating_contexts()
[CORBA interface] Get participating ExecutionContextList.
virtual PortServiceList * get_ports()
[RTObject CORBA interface] Get Ports
Manager * m_pManager
Manager object.
coil::Properties & getProperties()
[local interface] Get RTC property
virtual SDOPackage::Configuration_ptr get_configuration()
[SDO interface] Get Configuration object
static Manager & instance()
Get instance of the manager.
UniqueId attach_context(ExecutionContext_ptr exec_context)
[CORBA interface] Attach ExecutionContext
virtual ReturnCode_t on_reset(UniqueId exec_handle)
[ComponentAction CORBA interface] Resetting RTC
SDOPackage::NVList m_sdoStatus
SDO Status.
PortableServer::POA_var m_pPOA
The pointer to the POA.
virtual ReturnCode_t on_finalize()
[ComponentAction CORBA interface] Finalize RTC
virtual ReturnCode_t finalize()
[CORBA interface] Finalize the RTC for destruction
std::vector< ExecutionContext * > ExecutionContextList
void setObjRef(const RTObject_ptr rtobj)
[local interface] Set the object reference
void update(void)
Update the values of configuration parameters (Active configuration set)
ExecutionContextHandle_t UniqueId
virtual ReturnCode_t on_deactivated(UniqueId exec_handle)
[ComponentAction CORBA interface] Deactivate RTC
RTObject_impl(Manager *manager)
Constructor.
void registerPort(PortBase &port)
Regsiter the Port.
CORBA::Long find(const CorbaSequence &seq, Functor f)
Return the index of CORBA sequence element that functor matches.
virtual ExecutionContext_ptr get_context(UniqueId exec_handle)
[CORBA interface] Get ExecutionContext.
ConfigAdmin m_configsets
Configuration Administrator Object.
virtual ReturnCode_t exit()
[CORBA interface]top the RTC's execution context(s) and finalize it along with its contents...
virtual SDOPackage::NVList * get_status_list()
[SDO interface] Get SDO Status list
void deletePort(PortBase &port)
[local interface] Unregister Port
virtual SDOPackage::DeviceProfile * get_device_profile()
[SDO interface] Get SDO DeviceProfile list
prop
Organization::get_organization_property ();.
virtual ExecutionContextList * get_owned_contexts()
[CORBA interface] Get ExecutionContextList.
void shutdown()
Shutdown RTC.
std::vector< IPortService * > PortServiceList
virtual ReturnCode_t on_error(UniqueId exec_handle)
[ComponentAction CORBA interface] Error Processing of RTC
void deletePortByName(const char *port_name)
Unregister the Port's registration by its name.
virtual ReturnCode_t on_initialize()
[RTObject CORBA interface] Get ExecutionContextAdmin
void deletePortByName(const char *port_name)
[local interface] Delete Port by specifying its name
virtual SDOPackage::SDOService_ptr get_sdo_service(const char *id)
[SDO interface] Get specified SDO Service's reference
void setInstanceName(const char *instance_name)
[local interface] Set instance name
void cleanupComponent(RTObject_impl *comp)
Unregister RT-Components.
virtual ReturnCode_t on_aborting(UniqueId exec_handle)
[ComponentAction CORBA interface] Transition to Error State
virtual SDOPackage::OrganizationList * get_organizations()
[SDO interface] Get Organization list
void deletePort(PortBase &port)
Unregister the Port registration.
void finalizePorts()
Unregister All Ports.
virtual ReturnCode_t on_state_update(UniqueId exec_handle)
[DataFlowComponentAction CORBA interface] Secondary Periodic Operation of RTC
virtual CORBA::Boolean is_alive(ExecutionContext_ptr exec_context)
[CORBA interface] Confirm whether RTC is the alive state
coil::Properties m_properties
Alive Status Flag.
virtual ReturnCode_t on_execute(UniqueId exec_handle)
[DataFlowComponentAction CORBA interface] Primary Periodic Operation of RTC
RTObject_var m_objref
Object reference.
virtual char * get_sdo_type()
[SDO interface] Get SDO type
void setProperties(const coil::Properties &prop)
[local interface] Set RTC property
virtual CORBA::Any * get_status(const char *name)
[SDO interface] Get SDO Status
Functor for_each(CorbaSequence &seq, Functor f)
Apply the functor to all CORBA sequence elements.
RTObject_ptr getObjRef() const
[local interface] Get the object reference
virtual SDOPackage::ServiceProfile * get_service_profile(const char *id)
[SDO interface] Get specified ServiceProfile
virtual ReturnCode_t on_rate_changed(UniqueId exec_handle)
[DataFlowComponentAction CORBA interface] Notify rate changed