#include <RtcSyncComposite.h>
Inheritance diagram for RTM::RtcSyncComposite:
Public Member Functions | |
RtcSyncComposite (RtcManager *manager) | |
virtual int | svc (void) |
virtual RtmRes | rtc_ready_entry () |
This method will be called once when component enter to Ready state. | |
virtual RtmRes | rtc_ready_do () |
This method will be called repeatedly when component state is Ready. | |
virtual RtmRes | rtc_ready_exit () |
This method will be called once when component exit from Ready state. | |
virtual RtmRes | rtc_active_entry () |
This method will be called once when component enter to Active state. | |
virtual RtmRes | rtc_active_do () |
This method will be called repeatedly when component state is Active. | |
virtual RtmRes | rtc_active_exit () |
This method will be called once when component exit from Active state. | |
virtual RtmRes | rtc_error_entry () |
This method will be called once when component enter to Error state. | |
virtual RtmRes | rtc_error_do () |
This method will be called repeatedly when component state is Error. | |
virtual RtmRes | rtc_error_exit () |
This method will be called once when component exit from Error state. | |
virtual RtmRes | rtc_fatal_entry () |
This method will be called once when component enter to FatalError state. | |
virtual RtmRes | rtc_fatal_do () |
This method will be called repeatedly when component state is FatalError. | |
virtual RtmRes | rtc_fatal_exit () |
This method will be called once when component exit from FatalError state. | |
virtual RtmRes | rtc_init_entry () |
Initializing state This method will be called and move to Ready/Error state immediately. | |
virtual RtmRes | rtc_starting_entry () |
This method will be called and move to Active state immediately. | |
virtual RtmRes | rtc_stopping_entry () |
This method will be called and move to Ready state immediately. | |
virtual RtmRes | rtc_aborting_entry () |
This method will be called and move to Error state immediately. | |
virtual RtmRes | rtc_exiting_entry () |
This method will be called and terminate component. | |
virtual RTCProfile * | profile () |
[CORBA interface] Return output port object reference list | |
virtual RTCConfiguration * | configuration () |
virtual RtmRes | rtc_add_component (RTCBase_ptr comp) |
virtual RtmRes | rtc_delete_component (RTCBase_ptr comp) |
virtual RtmRes | rtc_replace_component (RTCBase_ptr comp1, RTCBase_ptr comp2) |
virtual RtmRes | rtc_replace_component_by_name (const char *name1, const char *name2) |
virtual RTCBaseList * | rtc_components () |
virtual RTCBase_ptr | rtc_get_component (const char *name) |
virtual RtmRes | rtc_attach_inport (InPort_ptr in_port) |
virtual RtmRes | rtc_attach_inport_by_name (RTCBase_ptr comp, const char *name) |
virtual RtmRes | rtc_detatch_inport (InPort_ptr in_port) |
virtual RtmRes | rtc_detatch_inport_by_name (const char *name) |
virtual RtmRes | rtc_attach_outport (OutPort_ptr out_port) |
virtual RtmRes | rtc_attach_outport_by_name (RTCBase_ptr comp, const char *name) |
virtual RtmRes | rtc_detatch_outport (OutPort_ptr out_port) |
virtual RtmRes | rtc_detatch_outport_by_name (const char *name) |
virtual int | open (void *args) |
bool | deleteInPortByName (const char *ch_name) |
Deletion of input channel by channel name. | |
bool | deleteOutPortByName (const char *ch_name) |
Deletion of output channel by channel name. | |
virtual RtmRes | rtc_start () throw (CORBA::SystemException, RTM::RTComponent::IllegalTransition) |
[CORBA interface] Activate this components' activity | |
virtual RtmRes | rtc_stop () throw (CORBA::SystemException, RTM::RTComponent::IllegalTransition) |
[CORBA interface] Stop this component's activity | |
virtual RtmRes | rtc_reset () throw (CORBA::SystemException, RTM::RTComponent::IllegalTransition) |
[CORBA interface] Go to init() state from error() state | |
virtual RtmRes | rtc_exit () throw (CORBA::SystemException, RTM::RTComponent::IllegalTransition) |
[CORBA interface] Go to term() state from anywhere | |
virtual RtmRes | rtc_kill () |
[CORBA interface] Go to exiting() state from active() state | |
virtual RtmRes | rtc_worker () |
[CORBA interface] Main activity function. | |
virtual OutPort_ptr | rtc_state () |
[CORBA interface] Get activity status OutPort | |
virtual InPortList * | inports () |
[CORBA interface] Return input port object reference list | |
virtual InPort_ptr | get_inport (const char *name) throw (CORBA::SystemException, RTM::RTComponent::NoSuchName) |
[CORBA interface] Return input port object reference | |
virtual OutPortList * | outports () |
[CORBA interface] Return output port object reference list | |
virtual OutPort_ptr | get_outport (const char *name) throw (CORBA::SystemException, RTM::RTComponent::NoSuchName) |
[CORBA interface] Return output port object reference | |
virtual char * | instance_id () |
[CORBA interface] get instance_id | |
virtual char * | implementation_id () |
[CORBA interface] get implementation_id | |
virtual char * | description () |
[CORBA interface] get description | |
virtual char * | version () |
[CORBA interface] get version | |
virtual char * | maker () |
[CORBA interface] get maker | |
virtual char * | category () |
[CORBA interface] get category | |
virtual RtmRes | rtc_start_thread () |
[CORBA interface] Start activity internal thread | |
virtual RtmRes | rtc_suspend_thread () |
[CORBA interface] Suspend activity internal thread | |
virtual RtmRes | rtc_stop_thread () |
[CORBA interface] Stop activity internal thread | |
virtual RtmRes | rtc_set_parent (RTCBase_ptr comp) |
[CORBA interface] Set parent component | |
virtual void | init_orb (CORBA::ORB_ptr orb, PortableServer::POA_ptr poa) |
Initialize this component with ORB and POA pointer. | |
virtual int | close (unsigned long flags) |
Close activity thread. | |
virtual RTM::RTComponent::ComponentState | getState () |
Get current component state. | |
virtual void | initModuleProfile (RtcModuleProfile prof) |
Initialize RtcModuleProfile. | |
virtual RtcModuleProfile & | getModuleProfile () |
Get RtcModuleProfile. | |
virtual string | setComponentName (int num) |
Set component name. | |
bool | registerInPort (InPortBase &in_ch) |
Registration of input channel. | |
bool | deleteInPort (InPortBase &in_ch) |
Deletion of InPort. | |
void | readAllInPorts () |
Read all data to InPorts and bound variable. | |
void | finalizeInPorts () |
Finalize all InPorts. | |
bool | registerOutPort (OutPortBase &out_ch) |
Registration of output channel. | |
bool | deleteOutPort (OutPortBase &out_ch) |
Deletion of output channel. | |
void | writeAllOutPorts () |
Write all data to OutPorts from bound variables. | |
void | finalizeOutPorts () |
Finalize all OutPorts. | |
void | appendAlias (const char *alias) |
Register alias of component name. | |
void | appendAlias (const std::string alias) |
Register alias of component name. | |
std::list< string > | getAliases () |
Get registered aliases of component name. | |
void | setNamingPolicy (NamingPolicy policy) |
NamingPolicy | getNamingPolicy () |
bool | isLongNameEnable () |
bool | isAliasEnable () |
void | forceExit () |
void | finalize () |
Get registered aliases of component name. | |
bool | isThreadRunning () |
Protected Types | |
typedef list< RTCBase_ptr >::iterator | Components_it |
typedef list< InPort_ptr >::iterator | InPorts_it |
Input channel list iterator. | |
typedef list< OutPort_ptr >::iterator | OutPorts_it |
Output channel list iterator. | |
typedef RtmRes(RtcBase::* | StateFunc )() |
activity function pointer definition | |
enum | ThreadStates { UNKNOWN, RUNNING, SUSPEND, STOP } |
activity thread state structure More... | |
Protected Member Functions | |
bool | registerPort (InPortBase &in_ch) |
Registration of input channel. | |
bool | registerPort (OutPortBase &out_ch) |
Registration of output channel. | |
bool | deletePort (InPortBase &in_ch) |
Deletion of input channel. | |
bool | deletePort (OutPortBase &out_ch) |
Deletion of output channel. | |
bool | deleteInPortByName (char *ch_name) |
Deletion of input channel by channel name. | |
bool | deleteOutPortByName (char *ch_name) |
Deletion of output channel by channel name. | |
RtmRes | _check_error (RtmRes result) |
activity error check function | |
RtmRes | _nop () |
dummy function for activity | |
RtmRes | _rtc_initializing () |
rtc_init_entry execution function for activity | |
RtmRes | _rtc_ready_entry () |
rtc_ready_entry execution function for activity | |
RtmRes | _rtc_starting () |
rtc_starting_entry execution function for activity | |
RtmRes | _rtc_active_entry () |
rtc_active_entry execution function for activity | |
RtmRes | _rtc_stopping () |
rtc_stopping_entry execution function for activity | |
RtmRes | _rtc_aborting () |
rtc_aborting_entry execution function for activity | |
RtmRes | _rtc_error_entry () |
rtc_error_entry execution function for activity | |
RtmRes | _rtc_fatal_entry () |
rtc_fatal_entry execution function for activity | |
RtmRes | _rtc_exiting () |
rtc_exiting_entry execution function for activity | |
RtmRes | _rtc_ready () |
rtc_ready_do execution function for activity | |
RtmRes | _rtc_active () |
rtc_active_do execution function for activity | |
RtmRes | _rtc_error () |
rtc_error_do execution function for activity | |
RtmRes | _rtc_fatal () |
rtc_fatal_do execution function for activity | |
RtmRes | _rtc_ready_exit () |
rtc_ready_exit execution function for activity | |
RtmRes | _rtc_active_exit () |
rtc_active_exit execution function for activity | |
RtmRes | _rtc_error_exit () |
rtc_error_exit execution function for activity | |
RtmRes | _rtc_fatal_exit () |
rtc_fatal_exit execution function for activity | |
void | init_state_func_table () |
initialize activity function table | |
Protected Attributes | |
RTCProfile | m_Profile |
component profile | |
RTCConfiguration | m_Configuration |
Components | m_Components |
InPorts | m_InPorts |
InPort list with mutex. | |
OutPorts | m_OutPorts |
OutPort list with mutex. | |
CORBA::ORB_ptr | m_pORB |
pointer to ORB | |
PortableServer::POA_ptr | m_pPOA |
pointer to POA | |
RtcManager * | m_pManager |
pointer to Manager | |
RTCBase_var | m_Parent |
object reference to parent component | |
ThreadState | m_ThreadState |
activity thread state variable | |
ComponentStateMtx | m_CurrentState |
activity current state varible | |
ComponentStateMtx | m_NextState |
activity next state varible | |
StateFunc | _exit_func [11] |
exit function table of activity | |
StateFunc | _entry_func [11] |
entry function table of activity | |
StateFunc | _do_func [11] |
do function table of activity | |
TimedState | m_TimedState |
Input port flag list activity state variable. | |
OutPortAny< TimedState > | m_StatePort |
activity state OutPort | |
std::list< string > | m_Alias |
Aliases of component name. | |
NamingPolicy | m_NamingPolicy |
RtcMedLogbuf | m_MedLogbuf |
Logger mediation buffer. | |
RtcLogStream | rtcout |
Logger stream. | |
Static Protected Attributes | |
const ComponentState | RTC_UNKNOWN = RTM::RTComponent::RTC_UNKNOWN |
Set component category name. | |
const ComponentState | RTC_BORN = RTM::RTComponent::RTC_BORN |
const ComponentState | RTC_INITIALIZING = RTM::RTComponent::RTC_INITIALIZING |
const ComponentState | RTC_READY = RTM::RTComponent::RTC_READY |
const ComponentState | RTC_STARTING = RTM::RTComponent::RTC_STARTING |
const ComponentState | RTC_ACTIVE = RTM::RTComponent::RTC_ACTIVE |
const ComponentState | RTC_STOPPING = RTM::RTComponent::RTC_STOPPING |
const ComponentState | RTC_ABORTING = RTM::RTComponent::RTC_ABORTING |
const ComponentState | RTC_ERROR = RTM::RTComponent::RTC_ERROR |
const ComponentState | RTC_FATAL_ERROR = RTM::RTComponent::RTC_FATAL_ERROR |
const ComponentState | RTC_EXITING = RTM::RTComponent::RTC_EXITING |
|
|
|
Input channel list iterator.
Reimplemented from RTM::RtcBase. |
|
Output channel list iterator.
Reimplemented from RTM::RtcBase. |
|
activity function pointer definition
|
|
activity thread state structure
|
|
|
|
activity error check function
|
|
dummy function for activity
|
|
rtc_aborting_entry execution function for activity
|
|
rtc_active_do execution function for activity
|
|
rtc_active_entry execution function for activity
|
|
rtc_active_exit execution function for activity
|
|
rtc_error_do execution function for activity
|
|
rtc_error_entry execution function for activity
|
|
rtc_error_exit execution function for activity
|
|
rtc_exiting_entry execution function for activity
|
|
rtc_fatal_do execution function for activity
|
|
rtc_fatal_entry execution function for activity
|
|
rtc_fatal_exit execution function for activity
|
|
rtc_init_entry execution function for activity
|
|
rtc_ready_do execution function for activity
|
|
rtc_ready_entry execution function for activity
|
|
rtc_ready_exit execution function for activity
|
|
rtc_starting_entry execution function for activity
|
|
rtc_stopping_entry execution function for activity
|
|
Register alias of component name. This method register alias of component name. Registered alias will bind to naming server. Context delimiter is "/", id/kind delimiter is "|". If you want to bind your component "MyManipulator0" under a context "Manipulator", you should give an char* argument like "/Manipulator/MyManipulator|rtc". This component will be bound to naming server on this alias.
|
|
Register alias of component name. This method register alias of component name. Registered alias will bind to naming server. Context delimiter is "/", id/kind delimiter is "|". If you want to bind your component "MyManipulator0" under a context "Manipulator", you should give an char* argument like "/Manipulator/MyManipulator|rtc". This component will be bound to naming server on this alias.
|
|
[CORBA interface] get category
|
|
Close activity thread. close() method is called when activity thread svc() is returned. This method deactivate this object and notify it to manager. ACE_Task class method override. |
|
|
|
Deletion of InPort. "false" is returned when the object of the argument is not registered.
|
|
Deletion of input channel by channel name. "false" is returned when the object of the argument is not registered.
|
|
Deletion of input channel by channel name. "false" is returned when the object of the argument is not registered.
|
|
Deletion of output channel. "false" is returned when the object of the argument is not registered.
|
|
Deletion of output channel by channel name. "false" is returned when the object of the argument is not registered.
|
|
Deletion of output channel by channel name. "false" is returned when the object of the argument is not registered.
|
|
Deletion of output channel. "false" is returned when the object of the argument is not registered.
Reimplemented from RTM::RtcBase. |
|
Deletion of input channel. "false" is returned when the object of the argument is not registered.
Reimplemented from RTM::RtcBase. |
|
[CORBA interface] get description
|
|
Get registered aliases of component name.
|
|
Finalize all InPorts. Finalize all registered InPorts and deactivate as a CORBA objects. |
|
Finalize all OutPorts. Finalize all registered OutPorts and deactivate as a CORBA objects. |
|
|
|
[CORBA interface] Return input port object reference
|
|
[CORBA interface] Return output port object reference
|
|
Get registered aliases of component name.
|
|
Get RtcModuleProfile. Get RtcModuleProfile |
|
|
|
Get current component state.
|
|
[CORBA interface] get implementation_id
|
|
Initialize this component with ORB and POA pointer.
|
|
initialize activity function table
|
|
Initialize RtcModuleProfile.
|
|
[CORBA interface] Return input port object reference list
|
|
[CORBA interface] get instance_id
|
|
|
|
|
|
|
|
[CORBA interface] get maker
|
|
------------------------------------------------------------ Start activity ACE_Task class method over ride. ------------------------------------------------------------ Reimplemented from RTM::RtcBase. |
|
[CORBA interface] Return output port object reference list
|
|
[CORBA interface] Return output port object reference list
Reimplemented from RTM::RtcBase. |
|
Read all data to InPorts and bound variable. Invoke InPort::read() to all registered InPorts. |
|
Registration of input channel. Duplication of a name of input channel is not allowed. "false" will be returned when there is duplication of a name.
|
|
Registration of output channel. Duplication of a name of output channel is not allowed. "false" will be returned when there is duplication of a name.
|
|
Registration of output channel. Duplication of a name of output channel is not allowed. "false" will be returned when there is duplication of a name.
Reimplemented from RTM::RtcBase. |
|
Registration of input channel. Duplication of a name of input channel is not allowed. "false" will be returned when there is duplication of a name.
Reimplemented from RTM::RtcBase. |
|
This method will be called and move to Error state immediately. Aborting state. entry: aborting() method. Reimplemented from RTM::RtcCompositeBase. |
|
This method will be called repeatedly when component state is Active. do: active() method. Reimplemented from RTM::RtcCompositeBase. |
|
This method will be called once when component enter to Active state. entry: active() method. Reimplemented from RTM::RtcCompositeBase. |
|
This method will be called once when component exit from Active state. exit: active method. Reimplemented from RTM::RtcCompositeBase. |
|
------------------------------------------------------------ [CORBA interface] Add child component. ------------------------------------------------------------ Reimplemented from RTM::RtcBase. |
|
------------------------------------------------------------ [CORBA interface] Attach a InPort to composit component's InPort ------------------------------------------------------------ Reimplemented from RTM::RtcBase. |
|
------------------------------------------------------------ [CORBA interface] Attach a InPort to composit component's InPort by owner component's object reference and its port name. ------------------------------------------------------------ Reimplemented from RTM::RtcBase. |
|
------------------------------------------------------------ [CORBA interface] Attach a OutPort to composit component's OutPort ------------------------------------------------------------ Reimplemented from RTM::RtcBase. |
|
------------------------------------------------------------ [CORBA interface] Attach a OutPort to composit component's OutPort by owner component's object reference and its port name. ------------------------------------------------------------ Reimplemented from RTM::RtcBase. |
|
------------------------------------------------------------ [CORBA interface] Get registered child components list. ------------------------------------------------------------ Reimplemented from RTM::RtcBase. |
|
------------------------------------------------------------ [CORBA interface] Delete child component. ------------------------------------------------------------ Reimplemented from RTM::RtcBase. |
|
------------------------------------------------------------ [CORBA interface] Detatch a InPort by InPort's object reference. ------------------------------------------------------------ Reimplemented from RTM::RtcBase. |
|
------------------------------------------------------------ [CORBA interface] Detach a InPort by InPort's name ------------------------------------------------------------ Reimplemented from RTM::RtcBase. |
|
------------------------------------------------------------ [CORBA interface] Detatch a OutPort by OutPort's object reference. ------------------------------------------------------------ Reimplemented from RTM::RtcBase. |
|
------------------------------------------------------------ [CORBA interface] Detach a OutPort by OutPort's name ------------------------------------------------------------ Reimplemented from RTM::RtcBase. |
|
This method will be called repeatedly when component state is Error. do: error() method. Reimplemented from RTM::RtcCompositeBase. |
|
This method will be called once when component enter to Error state. entry: error() method. Reimplemented from RTM::RtcCompositeBase. |
|
This method will be called once when component exit from Error state. exit: error() method. Reimplemented from RTM::RtcCompositeBase. |
|
[CORBA interface] Go to term() state from anywhere
|
|
This method will be called and terminate component. Exiting state. entry: exiting() method. Reimplemented from RTM::RtcCompositeBase. |
|
This method will be called repeatedly when component state is FatalError. do: fatal() method. Reimplemented from RTM::RtcCompositeBase. |
|
This method will be called once when component enter to FatalError state. entry: fatal() method. Reimplemented from RTM::RtcCompositeBase. |
|
This method will be called once when component exit from FatalError state. exit: fatal() method. Reimplemented from RTM::RtcCompositeBase. |
|
------------------------------------------------------------ [CORBA interface] Get a registered child component. ------------------------------------------------------------ Reimplemented from RTM::RtcBase. |
|
Initializing state This method will be called and move to Ready/Error state immediately. Initializing state. entry: initializing() method. Reimplemented from RTM::RtcCompositeBase. |
|
[CORBA interface] Go to exiting() state from active() state
|
|
This method will be called repeatedly when component state is Ready. do: ready() method. Reimplemented from RTM::RtcCompositeBase. |
|
This method will be called once when component enter to Ready state. entry: ready() method. Reimplemented from RTM::RtcCompositeBase. |
|
This method will be called once when component exit from Ready state. exit: ready method. Reimplemented from RTM::RtcCompositeBase. |
|
------------------------------------------------------------ [CORBA interface] Replace child components ------------------------------------------------------------ Reimplemented from RTM::RtcBase. |
|
------------------------------------------------------------ [CORBA interface] Replace child components by component name ------------------------------------------------------------ Reimplemented from RTM::RtcBase. |
|
[CORBA interface] Go to init() state from error() state
|
|
[CORBA interface] Set parent component
|
|
[CORBA interface] Activate this components' activity
|
|
[CORBA interface] Start activity internal thread
|
|
This method will be called and move to Active state immediately. Starting state. entry: starting() method. Reimplemented from RTM::RtcCompositeBase. |
|
[CORBA interface] Get activity status OutPort
|
|
[CORBA interface] Stop this component's activity
|
|
[CORBA interface] Stop activity internal thread
|
|
This method will be called and move to Ready state immediately. Stopping state. entry: stopping() method. Reimplemented from RTM::RtcCompositeBase. |
|
[CORBA interface] Suspend activity internal thread
|
|
[CORBA interface] Main activity function. Called from activity thread periodically. |
|
Set component name.
|
|
|
|
------------------------------------------------------------ Run by a daemon thread to handle deferred processing ACE_Task class method over ride. ------------------------------------------------------------ Reimplemented from RTM::RtcCompositeBase. |
|
[CORBA interface] get version
|
|
Write all data to OutPorts from bound variables. Invoke OutPort::write() to all registered OutPorts. |
|
do function table of activity
|
|
entry function table of activity
|
|
exit function table of activity
|
|
Aliases of component name.
|
|
|
|
|
|
activity current state varible
|
|
InPort list with mutex.
Reimplemented from RTM::RtcBase. |
|
Logger mediation buffer.
|
|
|
|
activity next state varible
|
|
OutPort list with mutex.
Reimplemented from RTM::RtcBase. |
|
object reference to parent component
|
|
pointer to Manager
|
|
pointer to ORB
|
|
pointer to POA
|
|
component profile
Reimplemented from RTM::RtcBase. |
|
activity state OutPort
|
|
activity thread state variable
|
|
Input port flag list activity state variable.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Set component category name.
|
|
Logger stream.
|