OpenRTM  1.0.0
Public メソッド | すべてのメンバ一覧
クラス RTC::DataFlowComponentBase

DataFlowComponentBase クラス [詳細]

#include <DataFlowComponentBase.h>

RTC::DataFlowComponentBaseに対する継承グラフ
RTC::RTObject_impl

Public メソッド

 DataFlowComponentBase (Manager *manager)
 コンストラクタ
virtual ~DataFlowComponentBase (void)
void init ()
 初期化
- Public メソッド inherited from RTC::RTObject_impl
 RTObject_impl (Manager *manager)
 コンストラクタ
 RTObject_impl (CORBA::ORB_ptr orb, PortableServer::POA_ptr poa)
 コンストラクタ
virtual ~RTObject_impl (void)
 仮想デストラクタ
virtual ReturnCode_t initialize () throw (CORBA::SystemException)
 [CORBA interface] RTCを初期化する
virtual ReturnCode_t finalize () throw (CORBA::SystemException)
 [CORBA interface] RTC を終了する
virtual ReturnCode_t exit () throw (CORBA::SystemException)
 [CORBA interface] RTC がオーナーである ExecutionContext を 停止させ、そのコンテンツと共に終了させる
virtual CORBA::Boolean is_alive (ExecutionContext_ptr exec_context) throw (CORBA::SystemException)
 [CORBA interface] RTC が Alive 状態であるかどうか確認する。
virtual ExecutionContext_ptr get_context (UniqueId exec_handle) throw (CORBA::SystemException)
 [CORBA interface] ExecutionContextを取得する
virtual ExecutionContextList * get_owned_contexts () throw (CORBA::SystemException)
 [CORBA interface] 所有する ExecutionContextListを 取得する
virtual ExecutionContextList * get_participating_contexts () throw (CORBA::SystemException)
 [CORBA interface] 参加している ExecutionContextList を取得する
virtual ExecutionContextHandle_t get_context_handle (ExecutionContext_ptr cxt) throw (CORBA::SystemException)
 [CORBA interface] ExecutionContext のハンドルを返す
UniqueId attach_context (ExecutionContext_ptr exec_context) throw (CORBA::SystemException)
 [CORBA interface] ExecutionContextをattachする
UniqueId bindContext (ExecutionContext_ptr exec_context)
ReturnCode_t detach_context (UniqueId exec_handle) throw (CORBA::SystemException)
 [CORBA interface] ExecutionContextをdetachする
virtual ComponentProfile * get_component_profile () throw (CORBA::SystemException)
 [RTObject CORBA interface] コンポーネントプロファイルを取得する
virtual PortServiceList * get_ports () throw (CORBA::SystemException)
 [RTObject CORBA interface] ポートを取得する
virtual ReturnCode_t on_initialize () throw (CORBA::SystemException)
 [RTObject CORBA interface] ExecutionContextAdmin を取得する
virtual ReturnCode_t on_finalize () throw (CORBA::SystemException)
 [ComponentAction CORBA interface] RTC の終了
virtual ReturnCode_t on_startup (UniqueId exec_handle) throw (CORBA::SystemException)
 [ComponentAction CORBA interface] RTC の開始
virtual ReturnCode_t on_shutdown (UniqueId exec_handle) throw (CORBA::SystemException)
 [ComponentAction CORBA interface] RTC の停止
virtual ReturnCode_t on_activated (UniqueId exec_handle) throw (CORBA::SystemException)
 [ComponentAction CORBA interface] RTC の活性化
virtual ReturnCode_t on_deactivated (UniqueId exec_handle) throw (CORBA::SystemException)
 [ComponentAction CORBA interface] RTC の非活性化
virtual ReturnCode_t on_aborting (UniqueId exec_handle) throw (CORBA::SystemException)
 [ComponentAction CORBA interface] RTC のエラー状態への遷移
virtual ReturnCode_t on_error (UniqueId exec_handle) throw (CORBA::SystemException)
 [ComponentAction CORBA interface] RTC のエラー処理
virtual ReturnCode_t on_reset (UniqueId exec_handle) throw (CORBA::SystemException)
 [ComponentAction CORBA interface] RTC のリセット
virtual ReturnCode_t on_execute (UniqueId exec_handle) throw (CORBA::SystemException)
 [DataFlowComponentAction CORBA interface] RTC の定常処理(第一周期)
virtual ReturnCode_t on_state_update (UniqueId exec_handle) throw (CORBA::SystemException)
 [DataFlowComponentAction CORBA interface] RTC の定常処理(第二周期)
virtual ReturnCode_t on_rate_changed (UniqueId exec_handle) throw (CORBA::SystemException)
 [DataFlowComponentAction CORBA interface] 実行周期変更通知
virtual
SDOPackage::OrganizationList * 
get_owned_organizations () throw (CORBA::SystemException, SDOPackage::NotAvailable, SDOPackage::InternalError)
 [SDO interface] Organization リストの取得
virtual char * get_sdo_id () throw (CORBA::SystemException, SDOPackage::NotAvailable, SDOPackage::InternalError)
 [SDO interface] SDO ID の取得
virtual char * get_sdo_type () throw (CORBA::SystemException, SDOPackage::NotAvailable, SDOPackage::InternalError)
 [SDO interface] SDO タイプの取得
virtual SDOPackage::DeviceProfile * get_device_profile () throw (CORBA::SystemException, SDOPackage::NotAvailable, SDOPackage::InternalError)
 [SDO interface] SDO DeviceProfile リストの取得
virtual
SDOPackage::ServiceProfileList * 
get_service_profiles () throw (CORBA::SystemException, SDOPackage::NotAvailable, SDOPackage::InternalError)
 [SDO interface] SDO ServiceProfile の取得
virtual
SDOPackage::ServiceProfile * 
get_service_profile (const char *id) throw (CORBA::SystemException, SDOPackage::InvalidParameter, SDOPackage::NotAvailable, SDOPackage::InternalError)
 [SDO interface] 特定のServiceProfileの取得
virtual SDOPackage::SDOService_ptr get_sdo_service (const char *id) throw (CORBA::SystemException, SDOPackage::InvalidParameter, SDOPackage::NotAvailable, SDOPackage::InternalError)
 [SDO interface] 指定された SDO Service の取得
virtual
SDOPackage::Configuration_ptr 
get_configuration () throw (CORBA::SystemException, SDOPackage::InterfaceNotImplemented, SDOPackage::NotAvailable, SDOPackage::InternalError)
 [SDO interface] Configuration オブジェクトの取得
virtual SDOPackage::Monitoring_ptr get_monitoring () throw (CORBA::SystemException, SDOPackage::InterfaceNotImplemented, SDOPackage::NotAvailable, SDOPackage::InternalError)
 [SDO interface] Monitoring オブジェクトの取得
virtual
SDOPackage::OrganizationList * 
get_organizations () throw (CORBA::SystemException, SDOPackage::NotAvailable, SDOPackage::InternalError)
 [SDO interface] Organization リストの取得
virtual SDOPackage::NVList * get_status_list () throw (CORBA::SystemException, SDOPackage::NotAvailable, SDOPackage::InternalError)
 [SDO interface] SDO Status リストの取得
virtual CORBA::Any * get_status (const char *name) throw (CORBA::SystemException, SDOPackage::InvalidParameter, SDOPackage::NotAvailable, SDOPackage::InternalError)
 [SDO interface] SDO Status の取得
const char * getInstanceName ()
 [local interface] インスタンス名の取得
void setInstanceName (const char *instance_name)
 [local interface] インスタンス名の設定
const char * getTypeName ()
 [local interface] 型名の取得
const char * getDescription ()
 [local interface] Description の取得
const char * getVersion ()
 [local interface] バージョン情報の取得
const char * getVendor ()
 [local interface] ベンダー情報の取得
const char * getCategory ()
 [local interface] カテゴリ情報の取得
std::vector< std::string > getNamingNames ()
 [local interface] Naming Server 情報の取得
void setObjRef (const RTObject_ptr rtobj)
 [local interface] オブジェクトリファレンスの設定
RTObject_ptr getObjRef () const
 [local interface] オブジェクトリファレンスの取得
void setProperties (const coil::Properties &prop)
 [local interface] RTC のプロパティを設定する
coil::PropertiesgetProperties ()
 [local interface] RTC のプロパティを取得する
template<typename VarType >
bool bindParameter (const char *param_name, VarType &var, const char *def_val, bool(*trans)(VarType &, const char *)=coil::stringTo)
 コンフィギュレーションパラメータの設定
void updateParameters (const char *config_set)
 コンフィギュレーションパラメータの更新(ID指定)
bool addPort (PortBase &port)
 [local interface] Port を登録する
bool addPort (PortService_ptr port)
 [local interface] Port を登録する
bool addPort (CorbaPort &port)
 [local interface] Port を登録する
void registerPort (PortBase &port)
 [local interface] Port を登録する
void registerPort (PortService_ptr port)
 [local interface] Port を登録する
void registerPort (CorbaPort &port)
 [local interface] Port を登録する
bool addInPort (const char *name, InPortBase &inport)
 [local interface] DataInPort を登録する
void registerInPort (const char *name, InPortBase &inport)
 [local interface] DataInPort を登録する
bool addOutPort (const char *name, OutPortBase &outport)
 [local interface] DataOutPort を登録する
void registerOutPort (const char *name, OutPortBase &outport)
 [local interface] DataOutPort を登録する
bool removeInPort (InPortBase &port)
 [local interface] InPort の登録を削除する
bool removeOutPort (OutPortBase &port)
 [local interface] OutPort の登録を削除する
bool removePort (PortBase &port)
 [local interface] Port の登録を削除する
bool removePort (PortService_ptr port)
 [local interface] Port の登録を削除する
bool removePort (CorbaPort &port)
 [local interface] Port の登録を削除する
void deletePort (PortBase &port)
 [local interface] Port の登録を削除する
void deletePort (PortService_ptr port)
 [local interface] Port の登録を削除する
void deletePort (CorbaPort &port)
 [local interface] Port の登録を削除する
void deletePortByName (const char *port_name)
 [local interface] 名前指定により Port の登録を削除する
ExecutionContext_ptr getExecutionContext (RTC::UniqueId ec_id)
 [local interface] 実行コンテキストを取得する
double getExecutionRate (RTC::UniqueId ec_id)
 [local interface] 実行コンテキストの実行レートを取得する
ReturnCode_t setExecutionRate (RTC::UniqueId ec_id, double rate)
 [local interface] 実行コンテキストの実行レートを設定する
bool isOwnExecutionContext (RTC::UniqueId ec_id)
 [local interface] 実行コンテキストの所有権を調べる
ReturnCode_t deactivate (RTC::UniqueId ec_id)
 [local interface] 状態を Inactive に遷移させる
ReturnCode_t activate (RTC::UniqueId ec_id)
 [local interface] 状態を Active に遷移させる
ReturnCode_t reset (RTC::UniqueId ec_id)
 [local interface] 状態をリセットし Inactive に遷移させる
bool addSdoServiceProvider (const SDOPackage::ServiceProfile &prof, SdoServiceProviderBase *provider)
 [local interface] SDO service provider をセットする
bool removeSdoServiceProvider (const char *id)
 [local interface] SDO service provider を削除する
bool addSdoServiceConsumer (const SDOPackage::ServiceProfile &prof)
 [local interface] SDO service provider をセットする
bool removeSdoServiceConsumer (const char *id)
 [local interface] SDO service provider を削除する
bool readAll ()
 InPort のデータを読み込む。
bool writeAll ()
 OutPort のwrite()メソッドをコールする。
void setReadAll (bool read=true, bool completion=false)
 onExecute()実行前でのreadAll()メソッドの呼出を有効または無効にする。
void setWriteAll (bool write=true, bool completion=false)
 onExecute()実行後にwriteAll()メソッドの呼出を有効または無効にする。
void finalizePorts ()
 全 Port の登録を削除する
void finalizeContexts ()
 ExecutionContextBaseリストの登録を削除する
void addPreComponentActionListener (PreComponentActionListenerType listener_type, PreComponentActionListener *listener, bool autoclean=true)
template<class Listener >
PreComponentActionListeneraddPreComponentActionListener (PreCompActionListenerType listener_type, Listener &obj, void(Listener::*memfunc)(UniqueId ec_id))
void removePreComponentActionListener (PreComponentActionListenerType listener_type, PreComponentActionListener *listener)
 PreComponentActionListener リスナを削除する
void addPostComponentActionListener (PostComponentActionListenerType listener_type, PostComponentActionListener *listener, bool autoclean=true)
template<class Listener >
PostComponentActionListeneraddPostComponentActionListener (PostCompActionListenerType listener_type, Listener &obj, void(Listener::*memfunc)(UniqueId ec_id, ReturnCode_t ret))
void removePostComponentActionListener (PostComponentActionListenerType listener_type, PostComponentActionListener *listener)
 PostComponentActionListener リスナを削除する
void addPortActionListener (PortActionListenerType listener_type, PortActionListener *listener, bool autoclean=true)
 PortActionListener リスナを追加する
template<class Listener >
PortActionListeneraddPortActionListener (PortActionListenerType listener_type, Listener &obj, void(Listener::*memfunc)(const RTC::PortProfile &))
void removePortActionListener (PortActionListenerType listener_type, PortActionListener *listener)
 PortActionListener リスナを削除する
void addExecutionContextActionListener (ECActionListenerType listener_type, ECActionListener *listener, bool autoclean=true)
template<class Listener >
ECActionListeneraddExecutionContextActionListener (ECActionListenerType listener_type, Listener &obj, void(Listener::*memfunc)(UniqueId))
void removeExecutionContextActionListener (ECActionListenerType listener_type, ECActionListener *listener)
 ExecutionContextActionListener リスナを削除する
void addPortConnectListener (PortConnectListenerType listener_type, PortConnectListener *listener, bool autoclean=true)
 PortConnectListener リスナを追加する
template<class Listener >
PortConnectListeneraddPortConnectListener (PortConnectListenerType listener_type, Listener &obj, void(Listener::*memfunc)(const char *, ConnectorProfile &))
void removePortConnectListener (PortConnectListenerType listener_type, PortConnectListener *listener)
 PortConnectListener リスナを削除する
void addPortConnectRetListener (PortConnectRetListenerType listener_type, PortConnectRetListener *listener, bool autoclean=true)
 PortConnectRetListener リスナを追加する
template<class Listener >
PortConnectRetListeneraddPortConnectRetListener (PortConnectRetListenerType listener_type, Listener &obj, void(Listener::*memfunc)(const char *, ConnectorProfile &, ReturnCode_t))
void removePortConnectRetListener (PortConnectRetListenerType listener_type, PortConnectRetListener *listener)
 PortConnectRetListener リスナを削除する
void addConfigurationParamListener (ConfigurationParamListenerType type, ConfigurationParamListener *listener, bool autoclean=true)
 ConfigurationParamListener を追加する
template<class Listener >
ConfigurationParamListeneraddConfigurationParamListener (ConfigurationParamListenerType listener_type, Listener &obj, void(Listener::*memfunc)(const char *, const char *))
void removeConfigurationParamListener (ConfigurationParamListenerType type, ConfigurationParamListener *listener)
 ConfigurationParamListener を削除する
void addConfigurationSetListener (ConfigurationSetListenerType type, ConfigurationSetListener *listener, bool autoclean=true)
 ConfigurationSetListener を追加する
template<class Listener >
ConfigurationSetListeneraddConfigurationSetListener (ConfigurationSetListenerType listener_type, Listener &obj, void(Listener::*memfunc)(const coil::Properties &config_set))
void removeConfigurationSetListener (ConfigurationSetListenerType type, ConfigurationSetListener *listener)
 ConfigurationSetListener を削除する
void addConfigurationSetNameListener (ConfigurationSetNameListenerType type, ConfigurationSetNameListener *listener, bool autoclean=true)
 ConfigurationSetNameListener を追加する
template<class Listener >
ConfigurationSetNameListeneraddConfigurationSetNameListener (ConfigurationSetNameListenerType type, Listener &obj, void(Listener::*memfunc)(const char *))
void removeConfigurationSetNameListener (ConfigurationSetNameListenerType type, ConfigurationSetNameListener *listener)
 ConfigurationSetNameListener を削除する

Additional Inherited Members

- Public 型 inherited from RTC::RTObject_impl
typedef PreComponentActionListener PreCompActionListener
 PreComponentActionListener リスナを追加する
typedef
PreComponentActionListenerType 
PreCompActionListenerType
typedef PostComponentActionListener PostCompActionListener
 PostComponentActionListener リスナを追加する
typedef
PostComponentActionListenerType 
PostCompActionListenerType
typedef
ExecutionContextActionListenerType 
ECActionListenerType
 ExecutionContextActionListener リスナを追加する
typedef
ExecutionContextActionListener 
ECActionListener
- Protected メソッド inherited from RTC::RTObject_impl
virtual ReturnCode_t onInitialize ()
 初期化処理用コールバック関数
virtual ReturnCode_t onFinalize ()
 終了処理用コールバック関数
virtual ReturnCode_t onStartup (RTC::UniqueId exec_handle)
 開始処理用コールバック関数
virtual ReturnCode_t onShutdown (RTC::UniqueId exec_handle)
 停止処理用コールバック関数
virtual ReturnCode_t onActivated (RTC::UniqueId exec_handle)
 活性化処理用コールバック関数
virtual ReturnCode_t onDeactivated (RTC::UniqueId exec_handle)
 非活性化処理用コールバック関数
virtual ReturnCode_t onExecute (RTC::UniqueId exec_handle)
 周期処理用コールバック関数
virtual ReturnCode_t onAborting (RTC::UniqueId exec_handle)
 中断処理用コールバック関数
virtual ReturnCode_t onError (RTC::UniqueId exec_handle)
 エラー処理用コールバック関数
virtual ReturnCode_t onReset (RTC::UniqueId exec_handle)
 リセット処理用コールバック関数
virtual ReturnCode_t onStateUpdate (RTC::UniqueId exec_handle)
 状態変更処理用コールバック関数
virtual ReturnCode_t onRateChanged (RTC::UniqueId exec_handle)
 動作周期変更通知用コールバック関数
void shutdown ()
 RTC を終了する
void preOnInitialize (UniqueId ec_id)
void preOnFinalize (UniqueId ec_id)
void preOnStartup (UniqueId ec_id)
void preOnShutdown (UniqueId ec_id)
void preOnActivated (UniqueId ec_id)
void preOnDeactivated (UniqueId ec_id)
void preOnAborting (UniqueId ec_id)
void preOnError (UniqueId ec_id)
void preOnReset (UniqueId ec_id)
void preOnExecute (UniqueId ec_id)
void preOnStateUpdate (UniqueId ec_id)
void preOnRateChanged (UniqueId ec_id)
void postOnInitialize (UniqueId ec_id, ReturnCode_t ret)
void postOnFinalize (UniqueId ec_id, ReturnCode_t ret)
void postOnStartup (UniqueId ec_id, ReturnCode_t ret)
void postOnShutdown (UniqueId ec_id, ReturnCode_t ret)
void postOnActivated (UniqueId ec_id, ReturnCode_t ret)
void postOnDeactivated (UniqueId ec_id, ReturnCode_t ret)
void postOnAborting (UniqueId ec_id, ReturnCode_t ret)
void postOnError (UniqueId ec_id, ReturnCode_t ret)
void postOnReset (UniqueId ec_id, ReturnCode_t ret)
void postOnExecute (UniqueId ec_id, ReturnCode_t ret)
void postOnStateUpdate (UniqueId ec_id, ReturnCode_t ret)
void postOnRateChanged (UniqueId ec_id, ReturnCode_t ret)
void onAddPort (const PortProfile &pprof)
void onRemovePort (const PortProfile &pprof)
void onAttachExecutionContext (UniqueId ec_id)
void onDetachExecutionContext (UniqueId ec_id)
- Protected 変数 inherited from RTC::RTObject_impl
Logger rtclog
 ロガーストリーム
Managerm_pManager
 マネージャオブジェクト
CORBA::ORB_var m_pORB
 ORB へのポインタ
PortableServer::POA_var m_pPOA
 POA へのポインタ
SDOPackage::OrganizationList m_sdoOwnedOrganizations
 SDO が保持する organization のリスト
SDOPackage::Configuration_implm_pSdoConfigImpl
 SDO Configuration オブジェクトへのポインタ
SDOPackage::Configuration_var m_pSdoConfig
 SDO Configuration Interface へのポインタ
SDOPackage::OrganizationList m_sdoOrganizations
 SDO organization.
SDOPackage::NVList m_sdoStatus
 SDO Status.
ComponentProfile m_profile
 コンポーネントプロファイル
RTObject_var m_objref
 オブジェクトリファレンス
PortAdmin m_portAdmin
 Port のオブジェクトリファレンスのリスト
std::vector< InPortBase * > m_inports
 InPortBase* のリスト
std::vector< OutPortBase * > m_outports
 OutPortBase* のリスト
ExecutionContextServiceList m_ecMine
 自分がownerのExecutionContextService のリスト
std::vector
< ExecutionContextBase * > 
m_eclist
 ExecutionContextBase のリスト
ExecutionContextServiceList m_ecOther
 参加しているExecutionContextService のリスト
bool m_created
 Created 状態フラグ
bool m_exiting
 RTCの終了状態フラグ
coil::Properties m_properties
 Alive 状態フラグ
ConfigAdmin m_configsets
 コンフィギュレーション情報管理オブジェクト
SdoServiceAdmin m_sdoservice
 SDO Service 管理オブジェクト
bool m_readAll
 readAll()呼出用のフラグ
bool m_writeAll
 writeAll()呼出用のフラグ
bool m_readAllCompletion
 readAll()用のフラグ
bool m_writeAllCompletion
 writeAll()用のフラグ
ComponentActionListeners m_actionListeners
 ComponentActionListenerホルダ
PortConnectListeners m_portconnListeners
 PortConnectListenerホルダ

説明

DataFlowComponentBase クラス

データフロー型RTComponentの基底クラス。 各種データフロー型RTComponentを実装する場合は、本クラスを継承する形で実装 する。

から
0.4.0

コンストラクタとデストラクタ

RTC::DataFlowComponentBase::DataFlowComponentBase ( Manager manager)

コンストラクタ

コンストラクタ

引数
managerマネージャオブジェクト
virtual RTC::DataFlowComponentBase::~DataFlowComponentBase ( void  )
virtual

デストラクタ

関数

void RTC::DataFlowComponentBase::init ( )

初期化

データフロー型 RTComponent の初期化を実行する。 実際の初期化処理は、各具象クラス内に記述する。