public class FiniteStateMachineComponentBase extends RTObject_impl
FiniteStateMachine型RTComponentの基底クラス。 データフローコンポーネントを実装する際には、 本クラスのサブクラスとして実装します。
RTObject_impl.deactivate_comps, RTObject_impl.ec_copy, RTObject_impl.ec_find, RTObject_impl.nv_name| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected Logbuf |
rtcout
ロガーストリーム
|
default_conf, ECOTHER_OFFSET, m_actionListeners, m_configsets, m_created, m_eclist, m_ecMine, m_ecOther, m_exiting, m_fsmActionListeners, m_inports, m_objref, m_outports, m_pManager, m_pORB, m_portAdmin, m_portconnListeners, m_pPOA, m_profile, m_properties, m_pSdoConfig, m_pSdoConfigImpl, m_readAll, m_readAllCompletion, m_sdoOrganizations, m_sdoOwnedOrganizations, m_sdoservice, m_sdoStatus, m_writeAll, m_writeAllCompletion| コンストラクタと説明 |
|---|
FiniteStateMachineComponentBase(Manager manager)
コンストラクタ
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
ReturnCode_t |
_finalize()
[CORBA interface] RTC を終了する。
|
int |
attach_context(ExecutionContext exec_context)
[CORBA interface] ExecutionContextをattachする。
|
ReturnCode_t |
detach_context(int ec_id)
[CORBA interface] ExecutionContextをdetachする。
|
ReturnCode_t |
exit()
[CORBA interface] RTC がオーナーである ExecutionContext を
停止させ、そのコンテンツと共に終了させる
|
ComponentProfile |
get_component_profile()
[RTObject CORBA interface] コンポーネントプロファイルを取得する。
|
int |
get_context_handle(ExecutionContext cxt)
[CORBA interface] ExecutionContext のハンドルを返す。
|
ExecutionContext |
get_context(int ec_id)
[CORBA interface] ExecutionContextを取得する。
|
ExecutionContext[] |
get_owned_contexts()
[CORBA interface] 所有する ExecutionContextListを 取得する。
|
ExecutionContext[] |
get_participating_contexts()
[CORBA interface] 参加している ExecutionContextList を取得する。
|
PortService[] |
get_ports()
[RTObject CORBA interface] ポートを取得する。
|
ReturnCode_t |
initialize()
[CORBA interface] RTCを初期化する
|
boolean |
is_alive(ExecutionContext exec_context)
[CORBA interface] RTC が Alive 状態であるかどうか確認する。
|
ReturnCode_t |
on_aborting(int ec_id)
[ComponentAction CORBA interface] RTC のエラー状態への遷移。
|
ReturnCode_t |
on_action(int ec_id) |
ReturnCode_t |
on_activated(int ec_id)
[ComponentAction CORBA interface] 当該コンポーネントの
Activate時に呼び出される。
|
ReturnCode_t |
on_deactivated(int ec_id)
[ComponentAction CORBA interface] 当該コンポーネントの
Deactivate時に呼び出される。
|
ReturnCode_t |
on_error(int ec_id)
[ComponentAction CORBA interface] RTC のエラー処理
{@.ja RTC がエラー状態にいる際に呼び出される。
|
ReturnCode_t |
on_finalize()
[ComponentAction CORBA interface] 当該コンポーネントの終了時に
呼び出される。
|
ReturnCode_t |
on_initialize()
[ComponentAction CORBA interface] RTC の初期化。
|
ReturnCode_t |
on_reset(int ec_id)
[ComponentAction CORBA interface] RTC のリセット。
|
ReturnCode_t |
on_shutdown(int ec_id)
[ComponentAction CORBA interface] 当該コンポーネントのattachされ
ているExecutionContextの実行終了時に呼び出される。
|
ReturnCode_t |
on_startup(int ec_id)
[ComponentAction CORBA interface] 当該コンポーネントの
attachされているExecutionContextの実行開始時に呼び出される。
|
_this, activate, addConfigurationParamListener, addConfigurationParamListener, addConfigurationParamListener, addConfigurationSetListener, addConfigurationSetListener, addConfigurationSetListener, addConfigurationSetNameListener, addConfigurationSetNameListener, addConfigurationSetNameListener, addExecutionContextActionListener, addExecutionContextActionListener, addExecutionContextActionListener, addFsmProfileListener, addFsmProfileListener, addFsmStructureListener, addInPort, addOutPort, addPort, addPort, addPort, addPortActionListener, addPortActionListener, addPortActionListener, addPortConnectListener, addPortConnectListener, addPortConnectListener, addPortConnectRetListener, addPortConnectRetListener, addPortConnectRetListener, addPostComponentActionListener, addPostComponentActionListener, addPostComponentActionListener, addPostFsmActionListener, addPostFsmActionListener, addPreComponentActionListener, addPreComponentActionListener, addPreComponentActionListener, addPreFsmActionListener, addPreFsmActionListener, addSdoServiceConsumer, addSdoServiceProvider, bindContext, bindParameter, createContexts, deactivate, deletePort, deletePort, deletePort, deletePortByName, finalizeContexts, finalizePorts, findExistingEC, get_configuration, get_device_profile, get_monitoring, get_organizations, get_owned_organizations, get_sdo_id, get_sdo_service, get_sdo_type, get_service_profile, get_service_profiles, get_status_list, get_status, getCategory, getConfigService, getContextOptions, getExecutionContext, getExecutionRate, getGlobalContextOptions, getInheritedECOptions, getInPorts, getInstanceName, getNamingNames, getObjRef, getOutPorts, getPrivateContextOptions, getProperties, getTypeName, isOwnExecutionContext, on_execute, on_rate_changed, on_state_update, onAborting, onActivated, onAddPort, onAttachExecutionContext, onDeactivated, onDetachExecutionContext, onError, onExecute, onFinalize, onInitialize, onRateChanged, onRemovePort, onReset, onShutdown, onStartup, onStateUpdate, postOnAborting, postOnActivated, postOnDeactivated, postOnError, postOnExecute, postOnFinalize, postOnFsmDo, postOnFsmEntry, postOnFsmExit, postOnFsmInit, postOnFsmStateChange, postOnInitialize, postOnRateChanged, postOnReset, postOnShutdown, postOnStartup, postOnStateUpdate, preOnAborting, preOnActivated, preOnDeactivated, preOnError, preOnExecute, preOnFinalize, preOnFsmDo, preOnFsmEntry, preOnFsmExit, preOnFsmInit, preOnFsmStateChange, preOnInitialize, preOnRateChanged, preOnReset, preOnShutdown, preOnStartup, preOnStateUpdate, readAll, registerInPort, registerInPort, registerOutPort, registerOutPort, registerPort, registerPort, registerPort, removeConfigurationParamListener, removeConfigurationSetListener, removeConfigurationSetNameListener, removeExecutionContextActionListener, removeFsmProfileListener, removeFsmStructureListener, removeInPort, removeOutPort, removePort, removePort, removePort, removePortActionListener, removePortConnectListener, removePortConnectRetListener, removePostComponentActionListener, removePostFsmActionListener, removePreComponentActionListener, removePreFsmActionListener, removeSdoServiceConsumer, removeSdoServiceProvider, reset, setExecutionRate, setInstanceName, setObjRef, setProperties, setReadAll, setReadAll, setReadAll, setWriteAll, setWriteAll, setWriteAll, shutdown, syncAttributesByProperties, updateParameters, writeAll_all_interfaces, _invoke, _thisprotected Logbuf rtcout
public FiniteStateMachineComponentBase(Manager manager)
public ReturnCode_t initialize()
このオペレーション呼び出しの結果として、 ComponentAction::on_initialize コールバック関数が呼ばれる。 制約
initialize インタフェース内 LightweightRTObjectOperationsinitialize クラス内 RTObject_implpublic ReturnCode_t _finalize()
このオペレーション呼び出しの結果として ComponentAction.on_finalize() を呼び出す。 制約
_finalize インタフェース内 LightweightRTObjectOperations_finalize クラス内 RTObject_implpublic ReturnCode_t exit()
この RTC がオーナーであるすべての実行コンテキストを停止する。 この RTC が他の実行コンテキストを所有する RTC に属する実行コンテキスト (i.e. 実行コンテキストを所有する RTC はすなわちその実行コンテキストの オーナーである。)に参加している場合、当該 RTC はそれらのコンテキスト上 で非活性化されなければならない。 RTC が実行中のどの ExecutionContext でも Active 状態ではなくなった後、 この RTC とこれに含まれる RTC が終了する。 制約
exit インタフェース内 LightweightRTObjectOperationsexit クラス内 RTObject_implpublic boolean is_alive(ExecutionContext exec_context)
RTC が指定した ExecutionContext に対して Alive状態であるかどうかi 確認する。 RTC の状態が Active であるか、Inactive であるか、Error であるかは実行中の ExecutionContext に依存する。すなわち、ある ExecutionContext に対しては Active 状態であっても、他の ExecutionContext に対しては Inactive 状態と なる場合もありえる。従って、このオペレーションは指定された ExecutionContext に問い合わせて、この RTC の状態が Active、Inactive、 Error の場合には Alive 状態として返す。 RTコンポーネントがAliveであるかどうかは、 ExecutionContextの状態(Inactive,Active,Error)とは独立している。 1つのRTコンポーネントが、複数のExecutionContextにattachされる場合も あるため、 ExecutionContextの状態が混在する場合 (ExecutionContext1に対してはActive、 ExecutionContext2に対してはInactiveなど) があるため。
is_alive インタフェース内 LightweightRTObjectOperationsis_alive クラス内 RTObject_implpublic ExecutionContext[] get_owned_contexts()
この RTC が所有する ExecutionContext のリストを取得する。
get_owned_contexts インタフェース内 LightweightRTObjectOperationsget_owned_contexts クラス内 RTObject_implpublic ExecutionContext get_context(int ec_id)
指定したハンドルの ExecutionContext を取得する。 ハンドルから ExecutionContext へのマッピングは、特定の RTC インスタンスに 固有である。ハンドルはこの RTC を attach_context した際に取得できる。
get_context インタフェース内 LightweightRTObjectOperationsget_context クラス内 RTObject_implec_id - ExecutionContextのID
public ExecutionContext[] get_participating_contexts()
この RTC が参加している ExecutionContext のリストを取得する。
get_participating_contexts インタフェース内 LightweightRTObjectOperationsget_participating_contexts クラス内 RTObject_implpublic int get_context_handle(ExecutionContext cxt)
与えられた実行コンテキストに関連付けられたハンドルを返す。
get_context_handle インタフェース内 LightweightRTObjectOperationsget_context_handle クラス内 RTObject_implcxt - ExecutionContext
public ComponentProfile get_component_profile()
当該コンポーネントのプロファイル情報を返す。
get_component_profile インタフェース内 RTObjectOperationsget_component_profile クラス内 RTObject_implpublic PortService[] get_ports()
当該コンポーネントが保有するポートの参照を返す。
get_ports インタフェース内 RTObjectOperationsget_ports クラス内 RTObject_implpublic int attach_context(ExecutionContext exec_context)
指定した ExecutionContext にこの RTC を所属させる。 この RTC と関連する ExecutionContext のハンドルを返す。 このオペレーションは、ExecutionContextOperations.add_component が 呼ばれた際に呼び出される。 返されたハンドルは他のクライアントで使用することを想定していない。
attach_context インタフェース内 LightweightRTObjectOperationsattach_context クラス内 RTObject_implexec_context - attach対象ExecutionContext
public ReturnCode_t detach_context(int ec_id)
指定した ExecutionContext からこの RTC の所属を解除する。 このオペレーションは、ExecutionContextOperations::remove が呼ば れた際に呼び出される。返されたハンドルは他のクライアントで使用することを 想定していない。 制約
detach_context インタフェース内 LightweightRTObjectOperationsdetach_context クラス内 RTObject_implec_id - detach対象ExecutionContextのID
public ReturnCode_t on_initialize()
RTC が初期化され、Alive 状態に遷移する。 RTC 固有の初期化処理はここで実行する。 このオペレーション呼び出しの結果として onInitialize() コールバック関数が 呼び出される。
on_initialize インタフェース内 ComponentActionOperationson_initialize クラス内 RTObject_implpublic ReturnCode_t on_finalize()
RTC が破棄される。 RTC 固有の終了処理はここで実行する。 このオペレーション呼び出しの結果として onFinalize() コールバック関数が 呼び出される。
on_finalize インタフェース内 ComponentActionOperationson_finalize クラス内 RTObject_implpublic ReturnCode_t on_startup(int ec_id)
RTC が所属する ExecutionContext が Stopped 状態から Running 状態へ遷移した場合に呼び出される。 このオペレーション呼び出しの結果として onStartup() コールバック関数が 呼び出される。
on_startup インタフェース内 ComponentActionOperationson_startup クラス内 RTObject_implec_id - 対象ExecutionContextのID
public ReturnCode_t on_shutdown(int ec_id)
RTC が所属する ExecutionContext が Running 状態から Stopped 状態へ遷移した場合に呼び出される。 このオペレーション呼び出しの結果として onShutdown() コールバック関数が 呼び出される。
on_shutdown インタフェース内 ComponentActionOperationson_shutdown クラス内 RTObject_implec_id - 対象ExecutionContextのID
public ReturnCode_t on_activated(int ec_id)
所属する ExecutionContext から RTC が活性化された際に呼び出される。 このオペレーション呼び出しの結果として onActivated() コールバック関数が 呼び出される。
on_activated インタフェース内 ComponentActionOperationson_activated クラス内 RTObject_implec_id - 対象ExecutionContextのID
public ReturnCode_t on_deactivated(int ec_id)
所属する ExecutionContext から RTC が非活性化された際に 呼び出される。 このオペレーション呼び出しの結果として onDeactivated() コールバック関数が 呼び出される。
on_deactivated インタフェース内 ComponentActionOperationson_deactivated クラス内 RTObject_implec_id - 対象ExecutionContextのID
public ReturnCode_t on_error(int ec_id)
RTC がエラー状態にいる際に呼び出される。 RTC がエラー状態の場合に、対象となる ExecutionContext のExecutionKind に 応じたタイミングで呼び出される。例えば、
on_error インタフェース内 ComponentActionOperationson_error クラス内 RTObject_implec_id - 対象ExecutionContextのID
public ReturnCode_t on_aborting(int ec_id)
RTC が所属する ExecutionContext が Active 状態から Error 状態へ遷移した場合に呼び出される。 このオペレーションは RTC が Error 状態に遷移した際に一度だけ呼び 出される。 このオペレーション呼び出しの結果として onAborting() コールバック関数が 呼び出される。
on_aborting インタフェース内 ComponentActionOperationson_aborting クラス内 RTObject_implec_id - 対象ExecutionContextのID
public ReturnCode_t on_reset(int ec_id)
Error 状態にある RTC のリカバリ処理を実行し、 Inactive 状態に復帰させる場合に呼び出される。 RTC のリカバリ処理が成功した場合は Inactive 状態に復帰するが、それ以外の 場合には Error 状態に留まる。 このオペレーション呼び出しの結果として onReset() コールバック関数が呼び 出される。
on_reset インタフェース内 ComponentActionOperationson_reset クラス内 RTObject_implec_id - 対象ExecutionContextのID
public ReturnCode_t on_action(int ec_id)
on_action クラス内 RTObject_implec_id - 対象ExecutionContextのID