RTC::RTObject Interface Reference

RTObject. More...

import "RTC.idl";

Inheritance diagram for RTC::RTObject:
RTC::LightweightRTObject SDOPackage::SDO RTC::ComponentAction SDOPackage::SDOSystemElement OpenRTM::DataFlowComponent

List of all members.

Public Member Functions

ComponentProfile get_component_profile ()
 get_component_profile
PortServiceList get_ports ()
 get_ports
ReturnCode_t initialize ()
 initialize
ReturnCode_t finalize ()
 finalize
boolean is_alive (in ExecutionContext exec_context)
 is_alive
ReturnCode_t exit ()
 exit
ExecutionContextHandle_t attach_context (in ExecutionContext exec_context)
 attach_context
ReturnCode_t detach_context (in ExecutionContextHandle_t exec_handle)
 detach_context
ExecutionContext get_context (in ExecutionContextHandle_t exec_handle)
 get_context
ExecutionContextList get_owned_contexts ()
 get_owned_contexts
ExecutionContextList get_participating_contexts ()
 * get_participating_contexts
ExecutionContextHandle_t get_context_handle (in ExecutionContext cxt)
 get_context_handle
ReturnCode_t on_initialize ()
 on_initialize
ReturnCode_t on_finalize ()
 on_finalize
ReturnCode_t on_startup (in ExecutionContextHandle_t exec_handle)
 on_startup
ReturnCode_t on_shutdown (in ExecutionContextHandle_t exec_handle)
 on_shutdown
ReturnCode_t on_activated (in ExecutionContextHandle_t exec_handle)
 on_activated
ReturnCode_t on_deactivated (in ExecutionContextHandle_t exec_handle)
 on_deactivated
ReturnCode_t on_aborting (in ExecutionContextHandle_t exec_handle)
 on_aborting
ReturnCode_t on_error (in ExecutionContextHandle_t exec_handle)
 on_error
ReturnCode_t on_reset (in ExecutionContextHandle_t exec_handle)
 on_reset
UniqueIdentifier get_sdo_id () raises (NotAvailable, InternalError)
string get_sdo_type () raises (NotAvailable, InternalError)
DeviceProfile get_device_profile () raises (NotAvailable, InternalError)
ServiceProfileList get_service_profiles () raises (NotAvailable, InternalError)
ServiceProfile get_service_profile (in UniqueIdentifier id) raises (InvalidParameter, NotAvailable, InternalError)
SDOService get_sdo_service (in UniqueIdentifier id) raises (InvalidParameter, NotAvailable, InternalError)
Configuration get_configuration () raises (InterfaceNotImplemented, NotAvailable, InternalError)
Monitoring get_monitoring () raises (InterfaceNotImplemented, NotAvailable, InternalError)
OrganizationList get_organizations () raises (NotAvailable, InternalError)
NVList get_status_list () raises (NotAvailable, InternalError)
any get_status (in string nme) raises (InvalidParameter, NotAvailable, InternalError)
OrganizationList get_owned_organizations () raises (NotAvailable,InternalError)

Detailed Description

RTObject.

Description

The RTObject interface defines the operations that all SDO-based RTCs must provide. It is required by the rtComponent stereotype.


Member Function Documentation

ExecutionContextHandle_t RTC::LightweightRTObject::attach_context ( in ExecutionContext  exec_context  )  [inherited]

attach_context

Description

Inform this RTC that it is participating in the given execution context. Return a handle that represents the association of this RTC with the context.

Semantics

This operation is intended to be invoked by ExecutionContextOperations::add_component (see Section 5.2.2.6.6). It is not intended for use by other clients.

ReturnCode_t RTC::LightweightRTObject::detach_context ( in ExecutionContextHandle_t  exec_handle  )  [inherited]

detach_context

Description

Inform this RTC that it is no longer participating in the given execution context.

Semantics

This operation is intended to be invoked by ExecutionContextOperations::remove_component (see Section 5.2.2.6.7). It is not intended for use by other clients.

Constraints

  • This operation may not be invoked if this RTC is not already participating in the execution context. Such a call shall fail with ReturnCode_t::PRECONDITION_NOT_MET.
  • This operation may not be invoked if this RTC is Active in the indicated execution context. Otherwise, it shall fail with ReturnCode_t::PRECONDITION_NOT_MET.
ReturnCode_t RTC::LightweightRTObject::exit (  )  [inherited]

exit

Description

Stop the RTC¡Çs execution context(s) and finalize it along with its contents.

Semantics

Any execution contexts for which the RTC is the owner shall be stopped. If the RTC participates in any execution contexts belonging to another RTC that contains it, directly or indirectly (i.e., the containing RTC is the owner of the ExecutionContext), it shall be deactivated in those contexts. After the RTC is no longer Active in any Running execution context, it and any RTCs contained transitively within it shall be finalized.

Constraints

An RTC cannot be exited if it has not yet been initialized. Any attempt to exit an RTC that is in the Created state shall fail with ReturnCode_t::PRECONDITION_NOT_MET.

ReturnCode_t RTC::LightweightRTObject::finalize (  )  [inherited]

finalize

Description

Finalize the RTC that realizes this interface, preparing it for destruction.

Semantics

This invocation of this operation shall result in the invocation of the callback ComponentAction::on_finalize

Constraints

  • An RTC may not be finalized while it is participating in any execution context. It must first be removed with ExecutionContextOperations::remove_component. Otherwise, this operation shall fail with ReturnCode_t::PRECONDITION_NOT_MET. See Figure 5.9.
  • An RTC may not be finalized while it is in the Created state. Any attempt to invoke this operation while in that state shall fail with ReturnCode_t::PRECONDITION_NOT_MET.
  • Application developers are not expected to call this operation directly; it exists for use by the RTC infrastructure.
ComponentProfile RTC::RTObject::get_component_profile (  ) 

get_component_profile

Description

This operation returns the ComponentProfile of the RTC.

Configuration SDOPackage::SDO::get_configuration (  )  raises (InterfaceNotImplemented, NotAvailable, InternalError) [inherited]
ExecutionContext RTC::LightweightRTObject::get_context ( in ExecutionContextHandle_t  exec_handle  )  [inherited]

get_context

Description

Obtain a reference to the execution context represented by the given handle.

Semantics

The mapping from handle to context is specific to a particular RTC instance. The given handle must have been obtained by a previous call to attach_context on this RTC.

ExecutionContextHandle_t RTC::LightweightRTObject::get_context_handle ( in ExecutionContext  cxt  )  [inherited]

get_context_handle

Description

This operation returns a handle that is associated with the given execution context.

DeviceProfile SDOPackage::SDO::get_device_profile (  )  raises (NotAvailable, InternalError) [inherited]
Monitoring SDOPackage::SDO::get_monitoring (  )  raises (InterfaceNotImplemented, NotAvailable, InternalError) [inherited]
OrganizationList SDOPackage::SDO::get_organizations (  )  raises (NotAvailable, InternalError) [inherited]
ExecutionContextList RTC::LightweightRTObject::get_owned_contexts (  )  [inherited]

get_owned_contexts

Description

This operation returns a list of all execution contexts owned by this RTC.

OrganizationList SDOPackage::SDOSystemElement::get_owned_organizations (  )  raises (NotAvailable,InternalError) [inherited]
ExecutionContextList RTC::LightweightRTObject::get_participating_contexts (  )  [inherited]

* get_participating_contexts

Description

This operation returns a list of all execution contexts in which this RTC participates.

Semantics

Each call to attach_context causes the provided context to be added to this list. Each call to detach_context causes the provided context to be removed from this list.

PortServiceList RTC::RTObject::get_ports (  ) 

get_ports

Description

This operation returns a list of the RTCs ports.

UniqueIdentifier SDOPackage::SDO::get_sdo_id (  )  raises (NotAvailable, InternalError) [inherited]
SDOService SDOPackage::SDO::get_sdo_service ( in UniqueIdentifier  id  )  raises (InvalidParameter, NotAvailable, InternalError) [inherited]
string SDOPackage::SDO::get_sdo_type (  )  raises (NotAvailable, InternalError) [inherited]
ServiceProfile SDOPackage::SDO::get_service_profile ( in UniqueIdentifier  id  )  raises (InvalidParameter, NotAvailable, InternalError) [inherited]
ServiceProfileList SDOPackage::SDO::get_service_profiles (  )  raises (NotAvailable, InternalError) [inherited]
any SDOPackage::SDO::get_status ( in string  nme  )  raises (InvalidParameter, NotAvailable, InternalError) [inherited]
NVList SDOPackage::SDO::get_status_list (  )  raises (NotAvailable, InternalError) [inherited]
ReturnCode_t RTC::LightweightRTObject::initialize (  )  [inherited]

initialize

Description

Initialize the RTC that realizes this interface.

Semantics

The invocation of this operation shall result in the invocation of the callback ComponentAction::on_initialize.

Constraints

  • An RTC may be initialized only while it is in the Created state. Any attempt to invoke this operation while in another state shall fail with ReturnCode_t::PRECONDITION_NOT_MET.
  • Application developers are not expected to call this operation directly; it exists for use by the RTC infrastructure.
boolean RTC::LightweightRTObject::is_alive ( in ExecutionContext  exec_context  )  [inherited]

is_alive

Description

A component is alive or not regardless of the execution context from which it is observed. However, whether or not it is Active, Inactive, or in Error is dependent on the execution context(s) (see Figure 5.7) in which it is running. That is, it may be Active in one context but Inactive in another. Therefore, this operation shall report whether this RTC is either Active, Inactive, or in Error; which of those states a component is in with respect to a particular context may be queried from the context itself.

ReturnCode_t RTC::ComponentAction::on_aborting ( in ExecutionContextHandle_t  exec_handle  )  [inherited]

on_aborting

Description

The RTC is transitioning from the Active state to the Error state in some execution context.

Semantics

This callback is invoked only a single time for time that the RTC transitions into the Error state from another state. This behavior is in contrast to that of on_error.

ReturnCode_t RTC::ComponentAction::on_activated ( in ExecutionContextHandle_t  exec_handle  )  [inherited]

on_activated

Description

The RTC has been activated in the given execution context.

ReturnCode_t RTC::ComponentAction::on_deactivated ( in ExecutionContextHandle_t  exec_handle  )  [inherited]

on_deactivated

Description

The RTC has been deactivated in the given execution context.

ReturnCode_t RTC::ComponentAction::on_error ( in ExecutionContextHandle_t  exec_handle  )  [inherited]

on_error

Description

The RTC remains in the Error state.

Semantics

If the RTC is in the Error state relative to some execution context when it would otherwise be invoked from that context (according to the context¡Çs ExecutionKind), this callback shall be invoked instead. For example,

  • If the ExecutionKind is PERIODIC, this operation shall be invoked in sorted order at the rate of the context instead of DataFlowComponentAction::on_execute and on_state_update.
ReturnCode_t RTC::ComponentAction::on_finalize (  )  [inherited]

on_finalize

Description

The RTC is being destroyed.

Semantics

Any final RTC-specific tear-down logic should be performed here.

ReturnCode_t RTC::ComponentAction::on_initialize (  )  [inherited]

on_initialize

Description

The RTC has been initialized and entered the Alive state.

Semantics

Any RTC-specific initialization logic should be performed here.

ReturnCode_t RTC::ComponentAction::on_reset ( in ExecutionContextHandle_t  exec_handle  )  [inherited]

on_reset

Description

The RTC is in the Error state. An attempt is being made to recover it such that it can return to the Inactive state.

Semantics

If the RTC was successfully recovered and can safely return to the Inactive state, this method shall complete with ReturnCode_t::OK. Any other result shall indicate that the RTC should remain in the Error state.

ReturnCode_t RTC::ComponentAction::on_shutdown ( in ExecutionContextHandle_t  exec_handle  )  [inherited]

on_shutdown

Description

The given execution context, in which the RTC is participating, has transitioned from Running to Stopped.

ReturnCode_t RTC::ComponentAction::on_startup ( in ExecutionContextHandle_t  exec_handle  )  [inherited]

on_startup

Description

The given execution context, in which the RTC is participating, has transitioned from Stopped to Running.


The documentation for this interface was generated from the following file:
Generated on Fri Oct 28 18:31:20 2016 for OpenRTM-aist IDL by  doxygen 1.6.3