[詳解]
18 #ifndef RTC_EXECUTIONCONTEXTBASE_H
19 #define RTC_EXECUTIONCONTEXTBASE_H
23 #include <rtm/idl/RTCSkel.h>
24 #include <rtm/idl/OpenRTMSkel.h>
30 #pragma warning( disable : 4290 )
33 #define DEFAULT_EXECUTION_RATE 1000
487 RTC::ReturnCode_t
start(
void);
515 virtual RTC::ReturnCode_t
stop(
void);
573 RTC::ReturnCode_t
setRate(
double rate);
798 RTC::ExecutionKind
getKind(
void)
const;
822 RTC::ExecutionContextProfile*
getProfile(
void);
846 void setObjRef(RTC::ExecutionContextService_ptr ec_ptr);
866 RTC::ExecutionContextService_ptr
getObjRef(
void)
const;
910 RTC::ReturnCode_t
setKind(RTC::ExecutionKind kind);
947 const RTC::RTObject_ptr
getOwner()
const;
1029 const RTC::ExecutionContextProfile&
getProfile(
void)
const;
1063 virtual RTC::ReturnCode_t
onStarted() {
return RTC::RTC_OK; }
1065 virtual RTC::ReturnCode_t
onStopped() {
return RTC::RTC_OK; }
1068 virtual double onGetRate(
double rate)
const {
return rate; }
1070 virtual RTC::ReturnCode_t
onSetRate(
double rate) {
return RTC::RTC_OK; }
1073 virtual RTC::ReturnCode_t
1078 virtual RTC::ReturnCode_t
1083 virtual RTC::ReturnCode_t
1088 virtual RTC::ReturnCode_t
1095 virtual RTC::ReturnCode_t
1100 virtual RTC::ReturnCode_t
1105 virtual RTC::ReturnCode_t
1111 virtual RTC::ReturnCode_t
1116 virtual RTC::ReturnCode_t
1121 virtual RTC::ReturnCode_t
1130 virtual RTC::ReturnCode_t
1135 virtual RTC::ReturnCode_t
1141 virtual RTC::LifeCycleState
1146 virtual RTC::ExecutionKind
1151 virtual RTC::ExecutionContextProfile*
1174 const char* key,
bool& flag);
1206 #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
1212 #pragma warning( default : 4290 )
1219 #endif // RTC_EXECUTIONCONTEXTBASE_H
bool isAllNextState(RTC::LifeCycleState state)
void invokeWorkerDo()
Definition: ExecutionContextBase.h:1055
RTC::LightweightRTObject_ptr LightweightRTObject_ptr
Definition: ExecutionContextWorker.h:43
virtual RTC::ReturnCode_t onDeactivating(RTC::LightweightRTObject_ptr comp)
Definition: ExecutionContextBase.h:1112
ExecutionContextWorker クラス
Definition: ExecutionContextWorker.h:118
virtual RTC::ReturnCode_t onRemovingComponent(RTC::LightweightRTObject_ptr rtobj)
Definition: ExecutionContextBase.h:1084
virtual ~ExecutionContextBase(void)
仮想デストラクタ
coil::Properties Properties
Definition: RTC.h:83
virtual RTC::ReturnCode_t onStopped()
Definition: ExecutionContextBase.h:1065
const RTC::RTObject_ptr getOwner() const
Ownerコンポーネントの参照を取得する
RTC_impl::ExecutionContextProfile m_profile
Definition: ExecutionContextBase.h:1193
bool isOneOfNextState(RTC::LifeCycleState state)
ExecutionContextProfile class
bool isOneOfNextState(RTC::LifeCycleState state)
Definition: ExecutionContextBase.h:1048
ExecutionContextProfile クラス
Definition: ExecutionContextProfile.h:56
RTC::ReturnCode_t setKind(RTC::ExecutionKind kind)
ExecutionKind を設定する
RTC::ReturnCode_t removeComponent(RTC::LightweightRTObject_ptr comp)
RTコンポーネントを参加者リストから削除する
bool isAllNextState(RTC::LifeCycleState state)
Definition: ExecutionContextBase.h:1040
virtual bool onIsRunning(bool running)
Definition: ExecutionContextBase.h:1061
RTC::Logger rtclog
Definition: ExecutionContextBase.h:1190
const RTC::RTCList & getComponentList() const
RTコンポーネントの参加者リストを取得する
virtual RTC::ReturnCode_t onDeactivated(RTC_impl::RTObjectStateMachine *comp, long int count)
Definition: ExecutionContextBase.h:1122
virtual RTC::ReturnCode_t bindComponent(RTC::RTObject_impl *rtc)
コンポーネントをバインドする。
void invokeWorkerPostDo()
ExecutionContext用基底クラス
Definition: ExecutionContextBase.h:369
ExecutionContext's state machine worker class
const char * getStateString(RTC::LifeCycleState state)
bool m_syncActivation
Definition: ExecutionContextBase.h:1199
const coil::Properties getProperties() const
Propertiesを取得する
bool isAllCurrentState(RTC::LifeCycleState state)
Definition: ExecutionContextBase.h:1036
void invokeWorkerPostDo()
Definition: ExecutionContextBase.h:1056
bool m_syncReset
Definition: ExecutionContextBase.h:1201
RTC::ReturnCode_t start(void)
ExecutionContext の実行を開始
RTコンポーネントクラス
Definition: RTObject.h:89
virtual double onGetRate(double rate) const
Definition: ExecutionContextBase.h:1068
Singleton テンプレートクラス
Definition: Singleton.h:106
bool isOneOfCurrentState(RTC::LifeCycleState state)
bool m_syncDeactivation
Definition: ExecutionContextBase.h:1200
TimeValue クラス
Definition: TimeValue.h:40
RTC::ReturnCode_t resetComponent(RTC::LightweightRTObject_ptr comp)
RTコンポーネントをリセットする
virtual RTC::LifeCycleState onGetComponentState(RTC::LifeCycleState state)
Definition: ExecutionContextBase.h:1142
virtual RTC::ReturnCode_t onAddedComponent(RTC::LightweightRTObject_ptr rtobj)
Definition: ExecutionContextBase.h:1079
virtual RTC::ExecutionKind onGetKind(RTC::ExecutionKind kind) const
Definition: ExecutionContextBase.h:1147
bool isOneOfCurrentState(RTC::LifeCycleState state)
Definition: ExecutionContextBase.h:1044
void setProperties(coil::Properties &props)
Propertiesをセットする
#define DLL_PLUGIN
Definition: Factory.h:40
virtual RTC::ExecutionContextProfile * onGetProfile(RTC::ExecutionContextProfile *&profile)
Definition: ExecutionContextBase.h:1152
coil::TimeValue m_activationTimeout
Definition: ExecutionContextBase.h:1195
virtual RTC::ReturnCode_t onResetting(RTC::LightweightRTObject_ptr comp)
Definition: ExecutionContextBase.h:1126
virtual RTC::ReturnCode_t onActivated(RTC_impl::RTObjectStateMachine *comp, long int count)
Definition: ExecutionContextBase.h:1106
coil::TimeValue getPeriod(void) const
virtual RTC::ReturnCode_t onRemovedComponent(RTC::LightweightRTObject_ptr rtobj)
Definition: ExecutionContextBase.h:1089
coil::GlobalFactory< ExecutionContextBase > ExecutionContextFactory
Definition: ExecutionContextBase.h:1204
virtual RTC::ReturnCode_t onWaitingDeactivated(RTC_impl::RTObjectStateMachine *comp, long int count)
Definition: ExecutionContextBase.h:1117
void setObjRef(RTC::ExecutionContextService_ptr ec_ptr)
CORBA オブジェクト参照の取得
generic Factory template class
RTC::ExecutionContextService_ptr getObjRef(void) const
CORBA オブジェクト参照の取得
Logger クラス
Definition: SystemLogger.h:99
void invokeWorker()
Definition: ExecutionContextBase.h:1053
virtual void init(coil::Properties &props)
ExecutionContextの初期化を行う
GlobalFactory テンプレートクラス
Definition: Factory.h:583
RT-Component factory class
virtual RTC::ReturnCode_t onWaitingReset(RTC_impl::RTObjectStateMachine *comp, long int count)
Definition: ExecutionContextBase.h:1131
#define EXTERN
Definition: Factory.h:42
プロパティセットを表現するクラス
Definition: Properties.h:101
coil::TimeValue m_resetTimeout
Definition: ExecutionContextBase.h:1197
RTC_impl::ExecutionContextWorker m_worker
Definition: ExecutionContextBase.h:1192
const char * getKindString(RTC::ExecutionKind kind) const
ExecutionKind を文字列化する
RTC::ExecutionKind getKind(void) const
ExecutionKind を取得する
bool isAllCurrentState(RTC::LifeCycleState state)
RTC::LifeCycleState getComponentState(RTC::LightweightRTObject_ptr comp)
RTコンポーネントの状態を取得する
virtual RTC::ReturnCode_t onStarting()
Definition: ExecutionContextBase.h:1062
RTC::ReturnCode_t setOwner(RTC::LightweightRTObject_ptr comp)
Ownerコンポーネントをセットする。
RTC::ExecutionContextProfile * getProfile(void)
Profileを取得する
virtual double onSettingRate(double rate)
Definition: ExecutionContextBase.h:1069
RTC::ReturnCode_t activateComponent(RTC::LightweightRTObject_ptr comp)
RTコンポーネントをアクティブ化する
Definition: RTObjectStateMachine.h:46
virtual RTC::ReturnCode_t onAddingComponent(RTC::LightweightRTObject_ptr rtobj)
Definition: ExecutionContextBase.h:1074
virtual RTC::ReturnCode_t stop(void)
ExecutionContext の実行を停止
ExecutionContextBase(const char *name)
仮想デストラクタ
virtual RTC::ReturnCode_t onSetRate(double rate)
Definition: ExecutionContextBase.h:1070
Common Object Interface Layer
Definition: Affinity.h:28
virtual RTC::ReturnCode_t onActivating(RTC::LightweightRTObject_ptr comp)
Definition: ExecutionContextBase.h:1096
RTC::ReturnCode_t addComponent(RTC::LightweightRTObject_ptr comp)
RTコンポーネントを追加する
virtual RTC::ReturnCode_t onWaitingActivated(RTC_impl::RTObjectStateMachine *comp, long int count)
Definition: ExecutionContextBase.h:1101
RTC::ReturnCode_t setRate(double rate)
ExecutionContext の実行周期(Hz)を設定する
CORBA::Boolean isRunning()
ExecutionContext 実行状態確認関数
virtual RTC::ReturnCode_t onStopping()
Definition: ExecutionContextBase.h:1064
void invokeWorkerPreDo()
Definition: ExecutionContextBase.h:1054
coil::TimeValue m_deactivationTimeout
Definition: ExecutionContextBase.h:1196
RTC::ReturnCode_t deactivateComponent(RTC::LightweightRTObject_ptr comp)
RTコンポーネントを非アクティブ化する
double getRate(void) const
ExecutionContext の実行周期(Hz)を取得する
virtual RTC::ReturnCode_t onReset(RTC_impl::RTObjectStateMachine *comp, long int count)
Definition: ExecutionContextBase.h:1136
virtual RTC::ReturnCode_t onStarted()
Definition: ExecutionContextBase.h:1063