|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.omg.PortableServer.Servant
OpenRTM.DataFlowComponentPOA
jp.go.aist.rtm.RTC.RTObject_impl
public class RTObject_impl
RTコンポーネントクラス。
DataFlowComponentのベースクラス。
ユーザが新たなRTコンポーネントを作成する場合は、このクラスを拡張する。
各RTコンポーネントのベースとなるクラス。
Robotic Technology Component 仕様中の lightweightRTComponentの実装クラス。
コンポーネントの機能を提供する ComponentAction インターフェースと
コンポーネントのライフサイクル管理を行うための LightweightRTObject の実装を
提供する。
実際にユーザがコンポーネントを作成する場合には、Execution Semantics に対応
した各サブクラスを利用する。
(現状の実装では Periodic Sampled Data Processing のみサポートしているため、
dataFlowComponent を直接継承している)
入れ子のクラスの概要 | |
---|---|
(package private) class |
RTObject_impl.deactivate_comps
RTC 非活性化用ファンクタ |
(package private) class |
RTObject_impl.ec_copy
ExecutionContext コピー用ファンクタ |
(package private) class |
RTObject_impl.ec_find
ExecutionContext 検索用ファンクタ |
(package private) class |
RTObject_impl.nv_name
RTコンポーネント検索用ヘルパークラス |
フィールドの概要 | |
---|---|
(package private) static java.lang.String[] |
default_conf
RTコンポーネントのデフォルト・コンポーネント・プロファイル。 |
static int |
ECOTHER_OFFSET
|
protected ComponentActionListeners |
m_actionListeners
ComponentActionListenerホルダ ComponentActionListenrを保持するホルダ |
protected ConfigAdmin |
m_configsets
コンフィギュレーション情報管理オブジェクト |
protected boolean |
m_created
Created 状態フラグ |
protected java.util.Vector<ExecutionContextBase> |
m_eclist
ExecutionContextBase のリスト |
protected ExecutionContextServiceListHolder |
m_ecMine
自分がownerのExecutionContextService のリスト |
protected ExecutionContextServiceListHolder |
m_ecOther
参加しているExecutionContextService のリスト |
protected java.util.Vector<InPortBase> |
m_inports
InPortBase のリスト. |
protected RTObject |
m_objref
オブジェクトリファレンス |
protected java.util.Vector<OutPortBase> |
m_outports
OutPortBase のリスト. |
protected Manager |
m_pManager
マネージャオブジェクト |
protected org.omg.CORBA.ORB |
m_pORB
ORB |
protected PortAdmin |
m_portAdmin
Port のオブジェクトリファレンスのリスト |
protected org.omg.PortableServer.POA |
m_pPOA
POA |
protected ComponentProfile |
m_profile
コンポーネントプロファイル |
protected Properties |
m_properties
RTC のプロパティ |
protected Configuration |
m_pSdoConfig
SDO Configuration Interface |
protected Configuration_impl |
m_pSdoConfigImpl
SDO Configuration オブジェクト |
protected boolean |
m_readAll
readAll()呼出用のフラグ |
protected boolean |
m_readAllCompletion
readAll()用のフラグ true:readAll()の途中ででエラーが発生しても最後まで実施する。 |
protected OrganizationListHolder |
m_sdoOrganizations
SDO organization |
protected OrganizationListHolder |
m_sdoOwnedOrganizations
SDO が保持する organization のリスト |
protected NVListHolder |
m_sdoStatus
SDO Status |
protected ServiceProfileListHolder |
m_sdoSvcProfiles
SDOService のプロファイルリスト |
protected boolean |
m_writeAll
writeAll()呼出用のフラグ |
protected boolean |
m_writeAllCompletion
writeAll()用のフラグ |
protected Logbuf |
rtcout
ロガーストリーム |
コンストラクタの概要 | |
---|---|
RTObject_impl(Manager manager)
コンストラクタ。 |
|
RTObject_impl(org.omg.CORBA.ORB orb,
org.omg.PortableServer.POA poa)
コンストラクタ。 |
メソッドの概要 | ||
---|---|---|
ReturnCode_t |
_finalize()
[CORBA interface] RTC を終了する。 |
|
DataFlowComponent |
_this()
DataFlowComponentオブジェクトの取得。 |
|
void |
addExecutionContextActionListener(int listener_type,
ExecutionContextActionListener listener)
|
|
void |
addExecutionContextActionListener(int listener_type,
ExecutionContextActionListener listener,
boolean autoclean)
ExecutionContextActionListener リスナを追加する {@.ja ExecutionContextの追加、削除時にコールバックされる各種リスナを設定する。 |
|
boolean |
addInPort(java.lang.String name,
InPortBase inport)
[local interface] DataInPort を登録する. |
|
boolean |
addOutPort(java.lang.String name,
OutPortBase outport)
[local interface] DataOutPort を登録する. |
|
boolean |
addPort(CorbaPort port)
[local interface] Port を登録する。 |
|
boolean |
addPort(PortBase port)
[local interface] Port を登録する。 |
|
boolean |
addPort(PortService port)
[local interface] Port を登録する。 |
|
void |
addPortActionListener(int listener_type,
PortActionListener listener)
|
|
void |
addPortActionListener(int listener_type,
PortActionListener listener,
boolean autoclean)
PortActionListener リスナを追加する {@.ja Portの追加、削除時にコールバックされる各種リスナを設定する。 |
|
void |
addPostComponentActionListener(int listener_type,
PostComponentActionListener listener)
|
|
void |
addPostComponentActionListener(int listener_type,
PostComponentActionListener listener,
boolean autoclean)
PostComponentActionListener リスナを追加する {@.ja ComponentAction 実装関数の呼び出し直後のイベントに関連する各種リ スナを設定する。 |
|
void |
addPreComponentActionListener(int listener_type,
PreComponentActionListener listener)
|
|
void |
addPreComponentActionListener(int listener_type,
PreComponentActionListener listener,
boolean autoclean)
PreComponentActionListener リスナを追加する {@.ja ComponentAction 実装関数の呼び出し直前のイベントに関連する各種リ スナを設定する。 |
|
int |
attach_context(ExecutionContext exec_context)
[CORBA interface] ExecutionContextをattachする。 |
|
int |
bindContext(ExecutionContext exec_context)
ECをバインドする。 |
|
boolean |
bindParameter(java.lang.String param_name,
ValueHolder var,
java.lang.String def_val)
コンフィギュレーションパラメータの設定。 |
|
void |
deletePort(CorbaPort port)
[local interface] Port の登録を削除します。 |
|
void |
deletePort(PortBase port)
[local interface] Port の登録を削除します。 |
|
void |
deletePort(PortService port)
[local interface] Port の登録を削除します。 |
|
void |
deletePortByName(java.lang.String port_name)
[local interface] 名前指定により Port の登録を削除する。 |
|
ReturnCode_t |
detach_context(int ec_id)
[CORBA interface] ExecutionContextをdetachする。 |
|
ReturnCode_t |
exit()
[CORBA interface] RTC がオーナーである ExecutionContext を 停止させ、そのコンテンツと共に終了させる |
|
void |
finalizeContexts()
ExecutionContextBaseリストの登録を削除する |
|
void |
finalizePorts()
登録されているすべてのPortの登録を削除します。 |
|
ComponentProfile |
get_component_profile()
[RTObject CORBA interface] コンポーネントプロファイルを取得する。 |
|
Configuration |
get_configuration()
[SDO interface] Configuration オブジェクトの取得。 |
|
int |
get_context_handle(ExecutionContext cxt)
[CORBA interface] ExecutionContext のハンドルを返す。 |
|
ExecutionContext |
get_context(int ec_id)
[CORBA interface] ExecutionContextを取得する。 |
|
DeviceProfile |
get_device_profile()
[SDO interface] SDO DeviceProfile リストの取得。 |
|
Monitoring |
get_monitoring()
[SDO interface] Monitoring オブジェクトの取得。 |
|
Organization[] |
get_organizations()
[SDO interface] Organization リストの取得。 |
|
ExecutionContext[] |
get_owned_contexts()
[CORBA interface] 所有する ExecutionContextListを 取得する。 |
|
Organization[] |
get_owned_organizations()
[SDO interface] Organization リストの取得。 |
|
ExecutionContext[] |
get_participating_contexts()
[CORBA interface] 参加している ExecutionContextList を取得する。 |
|
PortService[] |
get_ports()
[RTObject CORBA interface] ポートを取得する。 |
|
java.lang.String |
get_sdo_id()
[SDO interface] SDO ID の取得。 |
|
SDOService |
get_sdo_service(java.lang.String id)
[SDO interface] 指定された SDO Service の取得。 |
|
java.lang.String |
get_sdo_type()
[SDO interface] SDO タイプの取得。 |
|
ServiceProfile |
get_service_profile(java.lang.String id)
[SDO interface] 特定のServiceProfileの取得。 |
|
ServiceProfile[] |
get_service_profiles()
[SDO interface] SDO ServiceProfile の取得。 |
|
NameValue[] |
get_status_list()
[SDO interface] SDO Status リストの取得。 |
|
org.omg.CORBA.Any |
get_status(java.lang.String name)
[SDO interface] SDO Status の取得。 |
|
java.lang.String |
getCategory()
[local interface] カテゴリ情報の取得。 |
|
java.lang.String |
getInstanceName()
[local interface] インスタンス名の取得。 |
|
java.lang.String[] |
getNamingNames()
[local interface] Naming Server 情報の取得。 |
|
RTObject |
getObjRef()
[local interface] オブジェクトリファレンスの取得。 |
|
Properties |
getProperties()
[local interface] RTC のプロパティを取得する。 |
|
java.lang.String |
getTypeName()
[local 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_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_execute(int ec_id)
[DataFlowComponentAction CORBA interface] RTC の定常処理(第一周期) 当該コンポーネントがAvtive状態の間、呼び出されます。 |
|
ReturnCode_t |
on_finalize()
[ComponentAction CORBA interface] 当該コンポーネントの終了時に 呼び出される。 |
|
ReturnCode_t |
on_initialize()
[ComponentAction CORBA interface] RTC の初期化。 |
|
ReturnCode_t |
on_rate_changed(int ec_id)
[DataFlowComponentAction CORBA interface] 実行周期変更通知。 |
|
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の実行開始時に呼び出される。 |
|
ReturnCode_t |
on_state_update(int ec_id)
[DataFlowComponentAction CORBA interface] RTC の定常処理(第二周期)。 |
|
protected ReturnCode_t |
onAborting(int ec_id)
中断処理用コールバック関数。 |
|
protected ReturnCode_t |
onActivated(int ec_id)
活性化処理用コールバック関数。 |
|
protected void |
onAddPort(PortProfile pprof)
|
|
protected void |
onAttachExecutionContext(int ec_id)
|
|
protected ReturnCode_t |
onDeactivated(int ec_id)
非活性化処理用コールバック関数。 |
|
protected void |
onDetachExecutionContext(int ec_id)
|
|
protected ReturnCode_t |
onError(int ec_id)
エラー処理用コールバック関数。 |
|
protected ReturnCode_t |
onExecute(int ec_id)
周期処理用コールバック関数。 |
|
protected ReturnCode_t |
onFinalize()
終了処理用コールバック関数。 |
|
protected ReturnCode_t |
onInitialize()
初期化処理用コールバック関数。 |
|
protected ReturnCode_t |
onRateChanged(int ec_id)
動作周期変更通知用コールバック関数。 |
|
protected void |
onRemovePort(PortProfile pprof)
|
|
protected ReturnCode_t |
onReset(int ec_id)
リセット処理用コールバック関数。 |
|
protected ReturnCode_t |
onShutdown(int ec_id)
停止処理用コールバック関数。 |
|
protected ReturnCode_t |
onStartup(int ec_id)
開始処理用コールバック関数。 |
|
protected ReturnCode_t |
onStateUpdate(int ec_id)
状態変更処理用コールバック関数。 |
|
protected void |
postOnAborting(int ec_id,
ReturnCode_t ret)
|
|
protected void |
postOnActivated(int ec_id,
ReturnCode_t ret)
|
|
protected void |
postOnDeactivated(int ec_id,
ReturnCode_t ret)
|
|
protected void |
postOnError(int ec_id,
ReturnCode_t ret)
|
|
protected void |
postOnExecute(int ec_id,
ReturnCode_t ret)
|
|
protected void |
postOnFinalize(int ec_id,
ReturnCode_t ret)
|
|
protected void |
postOnInitialize(int ec_id,
ReturnCode_t ret)
|
|
protected void |
postOnRateChanged(int ec_id,
ReturnCode_t ret)
|
|
protected void |
postOnReset(int ec_id,
ReturnCode_t ret)
|
|
protected void |
postOnShutdown(int ec_id,
ReturnCode_t ret)
|
|
protected void |
postOnStartup(int ec_id,
ReturnCode_t ret)
|
|
protected void |
postOnStateUpdate(int ec_id,
ReturnCode_t ret)
|
|
protected void |
preOnAborting(int ec_id)
|
|
protected void |
preOnActivated(int ec_id)
|
|
protected void |
preOnDeactivated(int ec_id)
|
|
protected void |
preOnError(int ec_id)
|
|
protected void |
preOnExecute(int ec_id)
|
|
protected void |
preOnFinalize(int ec_id)
|
|
protected void |
preOnInitialize(int ec_id)
|
|
protected void |
preOnRateChanged(int ec_id)
|
|
protected void |
preOnReset(int ec_id)
|
|
protected void |
preOnShutdown(int ec_id)
|
|
protected void |
preOnStartup(int ec_id)
|
|
protected void |
preOnStateUpdate(int ec_id)
|
|
boolean |
readAll()
全 InPort のデータを読み込む。 |
|
|
registerInPort(java.lang.Class<DataType> DATA_TYPE_CLASS,
java.lang.String name,
InPort<DataType> inport)
[local interface] DataInPort を登録する. |
|
void |
registerInPort(java.lang.String name,
InPortBase inport)
[local interface] DataInPort を登録します。 |
|
|
registerOutPort(java.lang.Class<DataType> DATA_TYPE_CLASS,
java.lang.String name,
OutPort<DataType> outport)
[local interface] DataOutPort を登録する. RTC が保持する DataOutPortを登録する。 |
|
void |
registerOutPort(java.lang.String name,
OutPortBase outport)
[local interface] DataOutPort を登録します。 |
|
void |
registerPort(CorbaPort port)
[local interface] Port を登録する。 |
|
void |
registerPort(PortBase port)
[local interface] Port を登録する。 |
|
void |
registerPort(PortService port)
[local interface] Port を登録する。 |
|
void |
removeExecutionContextActionListener(int listener_type,
ExecutionContextActionListener listener)
ExecutionContextActionListener リスナを削除する 設定した各種リスナを削除する。 |
|
boolean |
removeInPort(InPortBase port)
[local interface] InPort の登録を削除する RTC が保持するInPortの登録を削除する。 |
|
boolean |
removeOutPort(OutPortBase port)
[local interface] OutPort の登録を削除する |
|
boolean |
removePort(CorbaPort port)
[local interface] Port の登録を削除する RTC が保持するPortの登録を削除する。 |
|
boolean |
removePort(PortBase port)
[local interface] Port の登録を削除する RTC が保持するPortの登録を削除する。 |
|
boolean |
removePort(PortService port)
[local interface] Port の登録を削除する RTC が保持するPortの登録を削除する。 |
|
void |
removePortActionListener(int listener_type,
PortActionListener listener)
PortActionListener リスナを削除する 設定した各種リスナを削除する。 |
|
void |
removePostComponentActionListener(int listener_type,
PostComponentActionListener listener)
PostComponentActionListener リスナを削除する 設定した各種リスナを削除する。 |
|
void |
removePreComponentActionListener(int listener_type,
PreComponentActionListener listener)
PreComponentActionListener リスナを削除する 設定した各種リスナを削除する。 |
|
void |
setInstanceName(java.lang.String instance_name)
[local interface] インスタンス名の設定。 |
|
void |
setObjRef(RTObject rtobj)
[local interface] オブジェクトリファレンスの設定。 |
|
void |
setProperties(Properties prop)
[local interface] RTC のプロパティを設定する。 |
|
void |
setReadAll()
onExecute()実行前でのreadAll()メソッドの呼出を有効または 無効にする。 |
|
void |
setReadAll(boolean read)
onExecute()実行前でのreadAll()メソッドの呼出を有効または 無効にする。 |
|
void |
setReadAll(boolean read,
boolean completion)
onExecute()実行前でのreadAll()メソッドの呼出を有効または 無効にする。 |
|
void |
setWriteAll()
onExecute()実行後にwriteAll()メソッドの呼出を有効または 無効にする。 |
|
void |
setWriteAll(boolean write)
onExecute()実行後にwriteAll()メソッドの呼出を有効または 無効にする。 |
|
void |
setWriteAll(boolean write,
boolean completion)
onExecute()実行後にwriteAll()メソッドの呼出を有効または 無効にする。 |
|
protected void |
shutdown()
RTC を終了する。 |
|
protected void |
syncAttributesByProperties()
プロパティを設定する |
|
void |
updateParameters(java.lang.String config_set)
コンフィギュレーションパラメータの更新。 |
|
boolean |
writeAll()
全 OutPort のwrite()メソッドをコールする。 |
クラス OpenRTM.DataFlowComponentPOA から継承されたメソッド |
---|
_all_interfaces, _invoke, _this |
クラス org.omg.PortableServer.Servant から継承されたメソッド |
---|
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
static final java.lang.String[] default_conf
public static final int ECOTHER_OFFSET
protected Manager m_pManager
protected org.omg.CORBA.ORB m_pORB
protected org.omg.PortableServer.POA m_pPOA
protected OrganizationListHolder m_sdoOwnedOrganizations
protected ServiceProfileListHolder m_sdoSvcProfiles
protected Configuration_impl m_pSdoConfigImpl
protected Configuration m_pSdoConfig
protected OrganizationListHolder m_sdoOrganizations
protected NVListHolder m_sdoStatus
protected ComponentProfile m_profile
protected RTObject m_objref
protected PortAdmin m_portAdmin
protected ExecutionContextServiceListHolder m_ecMine
protected java.util.Vector<ExecutionContextBase> m_eclist
protected ExecutionContextServiceListHolder m_ecOther
protected boolean m_created
protected Properties m_properties
protected ConfigAdmin m_configsets
protected Logbuf rtcout
protected java.util.Vector<InPortBase> m_inports
protected java.util.Vector<OutPortBase> m_outports
protected boolean m_readAll
protected boolean m_writeAll
protected boolean m_readAllCompletion
true:readAll()の途中ででエラーが発生しても最後まで実施する。 false:readAll()の途中ででエラーが発生した場合終了。
protected boolean m_writeAllCompletion
true:writeAll()の途中ででエラーが発生しても最後まで実施する。 false:writeAll()の途中ででエラーが発生した場合終了。
protected ComponentActionListeners m_actionListeners
ComponentActionListenrを保持するホルダ
コンストラクタの詳細 |
---|
public RTObject_impl(Manager manager)
manager
- Managerオブジェクト
public RTObject_impl(org.omg.CORBA.ORB orb, org.omg.PortableServer.POA poa)
orb
- ORB
poa
- POA
メソッドの詳細 |
---|
public DataFlowComponent _this()
DataFlowComponentオブジェクト参照を取得する。
DataFlowComponentPOA
内の _this
protected ReturnCode_t onInitialize()
コンポーネント生成時(Created->Alive)に呼び出されるアクション。
ComponentAction.on_initialize が呼ばれた際に実行されるコールバック
関数。
本関数は無条件に ReturnCode_t.RTC_OK を返すようにダミー実装されている
ので、
各コンポーネントの実際の初期化処理は、本関数をオーバーライドして実装する
必要がある。
protected ReturnCode_t onFinalize()
コンポーネント破棄時(Alive->Exit)に呼び出されるアクション。 ComponentAction.on_finalize が呼ばれた際に実行されるコールバック関数。 本関数は無条件に ReturnCode_t.RTC_OK を返すようにダミー実装されている ので、 各コンポーネントの実際の終了処理は、本関数をオーバーライドして実装する 必要がある。
protected ReturnCode_t onStartup(int ec_id)
ExecutionContextの動作開始時(Stopped->Started)に呼び出される
アクション。
ComponentAction.on_startup が呼ばれた際に実行されるコールバック
関数。
本関数は無条件に ReturnCode_t.RTC_OK を返すようにダミー実装されている
ので、
各コンポーネントの実際の開始処理は、本関数をオーバーライドして実装する
必要がある。
ec_id
- 対象ExecutionContext ID
protected ReturnCode_t onShutdown(int ec_id)
ExecutionContextの動作終了時(Started->Stopped)に呼び出される
アクション。
ComponentAction::on_shutdown が呼ばれた際に実行されるコールバック
関数。
本関数は無条件に RTC::RTC_OK を返すようにダミー実装されているので、
各コンポーネントの実際の停止処理は、本関数をオーバーライドして実装する
必要がある。
ec_id
- 対象ExecutionContext ID
protected ReturnCode_t onActivated(int ec_id)
RTコンポーネントのActivate時(Inactive->Active)に呼び出される
アクション。
ComponentAction.on_activated が呼ばれた際に実行されるコールバック
関数。
本関数は無条件に RTC::RTC_OK を返すようにダミー実装されているので、
各コンポーネントの実際の活性化処理は、本関数をオーバーライドして実装する
必要がある。
ec_id
- 対象ExecutionContext ID
protected ReturnCode_t onDeactivated(int ec_id)
RTコンポーネントのDeactivate時(Active->Inactive)に呼び出される
アクション。
ComponentAction.on_deactivated が呼ばれた際に実行されるコールバック
関数。
本関数は無条件に ReturnCode_t.RTC_OK を返すようにダミー実装されている
ので、
各コンポーネントの実際の非活性化処理は、本関数をオーバーライドして
実装する必要がある。
ec_id
- 対象ExecutionContext ID
protected ReturnCode_t onExecute(int ec_id)
RTコンポーネントがActivate状態の間呼び出されるアクション。
DataFlowComponentAction::on_execute が呼ばれた際に実行される
コールバック関数。
本関数は無条件に RTC::RTC_OK を返すようにダミー実装されているので、
各コンポーネントの実際の周期処理は、本関数をオーバーライドして実装する
必要がある。
本関数は Periodic Sampled Data Processing における Two-Pass Executionの
1回目の実行パスとして定期的に呼び出される。
ec_id
- 対象ExecutionContext ID
protected ReturnCode_t onAborting(int ec_id)
RTコンポーネントにエラーが発生した時(Active->Error)に呼び出される
アクション。
ComponentAction::on_aborting が呼ばれた際に実行されるコールバック
関数。
本関数は無条件に RTC::RTC_OK を返すようにダミー実装されているので、
各コンポーネントの実際の中断処理は、本関数をオーバーライドして実装する
必要がある。
ec_id
- 対象ExecutionContext ID
protected ReturnCode_t onError(int ec_id)
RTコンポーネントがError状態の間呼び出されるアクション。
ComponentAction::on_error が呼ばれた際に実行されるコールバック関数。
本関数は無条件に RTC::RTC_OK を返すようにダミー実装されているので、
各コンポーネントの実際のエラー処理は、本関数をオーバーライドして実装する
必要がある。
ec_id
- 対象ExecutionContext ID
protected ReturnCode_t onReset(int ec_id)
RTコンポーネントをresetする際(Error->Inactive)に呼び出される
アクション。
ComponentAction.on_reset が呼ばれた際に実行されるコールバック関数。
本関数は無条件に ReturnCode_t.RTC_OK を返すようにダミー実装されている
ので、
各コンポーネントの実際のリセット処理は、本関数をオーバーライドして実装
する必要がある。
ec_id
- 対象ExecutionContext ID
protected ReturnCode_t onStateUpdate(int ec_id)
RTコンポーネントがActivate状態の間、
on_executeの続いて呼び出されるアクション。
DataFlowComponentAction::on_state_update が呼ばれた際に実行される
コールバック関数。
本関数は無条件に RTC::RTC_OK を返すようにダミー実装されているので、
各コンポーネントの実際の状態変更処理は、本関数をオーバーライドして
実装する必要がある。
本関数は Periodic Sampled Data Processing における Two-Pass Executionの
2回目の実行パスとして定期的に呼び出される。
ec_id
- 対象ExecutionContext ID
protected ReturnCode_t onRateChanged(int ec_id)
ExecutionContextの実行周期が変更になった時に呼び出される
アクション。
DataFlowComponentAction::on_rate_changed が呼ばれた際に実行される
コールバック関数。
本関数は無条件に RTC::RTC_OK を返すようにダミー実装されているので、
各コンポーネントの実際の状態変更処理は、本関数をオーバーライドして
実装する必要がある。
本関数は Periodic Sampled Data Processing において ExecutionContext の
実行が更新された際に呼び出される。
ec_id
- 対象ExecutionContext ID
public ReturnCode_t initialize()
このオペレーション呼び出しの結果として、 ComponentAction::on_initialize コールバック関数が呼ばれる。 制約
public ReturnCode_t _finalize() throws org.omg.CORBA.SystemException
このオペレーション呼び出しの結果として ComponentAction.on_finalize() を呼び出す。 制約
org.omg.CORBA.SystemException
public ReturnCode_t exit() throws org.omg.CORBA.SystemException
この RTC がオーナーであるすべての実行コンテキストを停止する。 この RTC が他の実行コンテキストを所有する RTC に属する実行コンテキスト (i.e. 実行コンテキストを所有する RTC はすなわちその実行コンテキストの オーナーである。)に参加している場合、当該 RTC はそれらのコンテキスト上 で非活性化されなければならない。 RTC が実行中のどの ExecutionContext でも Active 状態ではなくなった後、 この RTC とこれに含まれる RTC が終了する。 制約
org.omg.CORBA.SystemException
public boolean is_alive(ExecutionContext exec_context) throws org.omg.CORBA.SystemException
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など) があるため。
org.omg.CORBA.SystemException
public ExecutionContext[] get_owned_contexts() throws org.omg.CORBA.SystemException
この RTC が所有する ExecutionContext のリストを取得する。
org.omg.CORBA.SystemException
public ExecutionContext get_context(int ec_id)
指定したハンドルの ExecutionContext を取得する。 ハンドルから ExecutionContext へのマッピングは、特定の RTC インスタンスに 固有である。ハンドルはこの RTC を attach_context した際に取得できる。
ec_id
- ExecutionContextのID
public ExecutionContext[] get_participating_contexts() throws org.omg.CORBA.SystemException
この RTC が参加している ExecutionContext のリストを取得する。
org.omg.CORBA.SystemException
public int get_context_handle(ExecutionContext cxt) throws org.omg.CORBA.SystemException
与えられた実行コンテキストに関連付けられたハンドルを返す。
cxt
- ExecutionContext
org.omg.CORBA.SystemException
public int bindContext(ExecutionContext exec_context)
exec_context
- ExecutionContext
public ComponentProfile get_component_profile()
当該コンポーネントのプロファイル情報を返す。
public PortService[] get_ports()
当該コンポーネントが保有するポートの参照を返す。
public int attach_context(ExecutionContext exec_context) throws org.omg.CORBA.SystemException
指定した ExecutionContext にこの RTC を所属させる。 この RTC と関連する ExecutionContext のハンドルを返す。 このオペレーションは、ExecutionContextOperations.add_component が 呼ばれた際に呼び出される。 返されたハンドルは他のクライアントで使用することを想定していない。
exec_context
- attach対象ExecutionContext
org.omg.CORBA.SystemException
public ReturnCode_t detach_context(int ec_id) throws org.omg.CORBA.SystemException
指定した ExecutionContext からこの RTC の所属を解除する。 このオペレーションは、ExecutionContextOperations::remove が呼ば れた際に呼び出される。返されたハンドルは他のクライアントで使用することを 想定していない。 制約
ec_id
- detach対象ExecutionContextのID
org.omg.CORBA.SystemException
public ReturnCode_t on_initialize()
RTC が初期化され、Alive 状態に遷移する。 RTC 固有の初期化処理はここで実行する。 このオペレーション呼び出しの結果として onInitialize() コールバック関数が 呼び出される。
public ReturnCode_t on_finalize()
RTC が破棄される。 RTC 固有の終了処理はここで実行する。 このオペレーション呼び出しの結果として onFinalize() コールバック関数が 呼び出される。
public ReturnCode_t on_startup(int ec_id)
RTC が所属する ExecutionContext が Stopped 状態から Running 状態へ遷移した場合に呼び出される。 このオペレーション呼び出しの結果として onStartup() コールバック関数が 呼び出される。
ec_id
- 対象ExecutionContextのID
public ReturnCode_t on_shutdown(int ec_id)
RTC が所属する ExecutionContext が Running 状態から Stopped 状態へ遷移した場合に呼び出される。 このオペレーション呼び出しの結果として onShutdown() コールバック関数が 呼び出される。
ec_id
- 対象ExecutionContextのID
public ReturnCode_t on_activated(int ec_id)
所属する ExecutionContext から RTC が活性化された際に呼び出される。 このオペレーション呼び出しの結果として onActivated() コールバック関数が 呼び出される。
ec_id
- 対象ExecutionContextのID
public ReturnCode_t on_deactivated(int ec_id)
所属する ExecutionContext から RTC が非活性化された際に 呼び出される。 このオペレーション呼び出しの結果として onDeactivated() コールバック関数が 呼び出される。
ec_id
- 対象ExecutionContextのID
public ReturnCode_t on_aborting(int ec_id)
RTC が所属する ExecutionContext が Active 状態から Error 状態へ遷移した場合に呼び出される。 このオペレーションは RTC が Error 状態に遷移した際に一度だけ呼び 出される。 このオペレーション呼び出しの結果として onAborting() コールバック関数が 呼び出される。
ec_id
- 対象ExecutionContextのID
public ReturnCode_t on_error(int ec_id)
RTC がエラー状態にいる際に呼び出される。 RTC がエラー状態の場合に、対象となる ExecutionContext のExecutionKind に 応じたタイミングで呼び出される。例えば、
ec_id
- 対象ExecutionContextのID
public ReturnCode_t on_reset(int ec_id)
Error 状態にある RTC のリカバリ処理を実行し、 Inactive 状態に復帰させる場合に呼び出される。 RTC のリカバリ処理が成功した場合は Inactive 状態に復帰するが、それ以外の 場合には Error 状態に留まる。 このオペレーション呼び出しの結果として onReset() コールバック関数が呼び 出される。
ec_id
- 対象ExecutionContextのID
public ReturnCode_t on_execute(int ec_id)
当該コンポーネントがAvtive状態の間、呼び出されます。
ec_id
- 対象ExecutionContextのID
public ReturnCode_t on_state_update(int ec_id)
以下の状態が保持されている場合に、 設定された周期で定期的に呼び出される。
ec_id
- 対象ExecutionContextのID
public ReturnCode_t on_rate_changed(int ec_id)
本オペレーションは、ExecutionContext の実行周期が変更されたことを 通知する際に呼び出される。 このオペレーション呼び出しの結果として onRateChanged() コールバック関数が 呼び出される。 制約
ec_id
- 対象ExecutionContextのID
public Organization[] get_owned_organizations() throws NotAvailable
SDOSystemElement は0個もしくはそれ以上の Organization を所有することが出来る。 SDOSystemElement が1つ以上の Organization を所有している場合 には、このオペレーションは所有する Organization のリストを返す。 もしOrganizationを一つも所有していないければ空のリストを返す。
SDONotExists
- ターゲットのSDOが存在しない。(本例外は、CORBA標準
システム例外のOBJECT_NOT_EXISTにマッピングされる)
NotAvailable
- SDOは存在するが応答がない。
InternalError
- 内部的エラーが発生した。
public java.lang.String get_sdo_id() throws NotAvailable, InternalError
SDO ID を返すオペレーション。 このオペレーションは以下の型の例外を発生させる。
SDONotExists
- ターゲットのSDOが存在しない。(本例外は、CORBA標準
システム例外のOBJECT_NOT_EXISTにマッピングされる)
NotAvailable
- SDOは存在するが応答がない。
InternalError
- 内部的エラーが発生した。
public java.lang.String get_sdo_type() throws NotAvailable, InternalError
SDO Type を返すオペレーション。 このオペレーションは以下の型の例外を発生させる。
SDONotExists
- ターゲットのSDOが存在しない。(本例外は、CORBA標準
システム例外のOBJECT_NOT_EXISTにマッピングされる)
NotAvailable
- SDOは存在するが応答がない。
InternalError
- 内部的エラーが発生した。
public DeviceProfile get_device_profile() throws NotAvailable, InternalError
SDO の DeviceProfile を返すオペレーション。 SDO がハードウエアデバイス に関連付けられていない場合には、空の DeviceProfile が返される。 このオペレーションは以下の型の例外を発生させる。
SDONotExists
- ターゲットのSDOが存在しない。(本例外は、CORBA標準
システム例外のOBJECT_NOT_EXISTにマッピングされる)
NotAvailable
- SDOは存在するが応答がない。
InternalError
- 内部的エラーが発生した。
public ServiceProfile[] get_service_profiles() throws NotAvailable, InternalError
SDO が所有している Service の ServiceProfile を返すオペレーション。 SDO がサービスを一つも所有していない場合には、空のリストを返す。 このオペレーションは以下の型の例外を発生させる。
SDONotExists
- ターゲットのSDOが存在しない。(本例外は、CORBA標準
システム例外のOBJECT_NOT_EXISTにマッピングされる)
NotAvailable
- SDOは存在するが応答がない。
InternalError
- 内部的エラーが発生した。
public ServiceProfile get_service_profile(java.lang.String id) throws InvalidParameter, NotAvailable, InternalError
引数 "id" で指定された名前のサービスの ServiceProfile を返す。
id
- SDO Service の ServiceProfile に関連付けられた識別子。
InvalidParameter
- "id" で指定した ServiceProfile が存在しない。
"id" が null。
SDONotExists
- ターゲットのSDOが存在しない。(本例外は、CORBA標準
システム例外のOBJECT_NOT_EXISTにマッピングされる)
NotAvailable
- SDOは存在するが応答がない。
InternalError
- 内部的エラーが発生した。
public SDOService get_sdo_service(java.lang.String id) throws InvalidParameter, NotAvailable, InternalError
このオペレーションは引数 "id" で指定された名前によって区別される SDO の Service へのオブジェクト参照を返す。 SDO により提供される Service はそれぞれ一意の識別子により区別される。
id
- SDO Service に関連付けられた識別子。
InvalidParameter
- "id" で指定した ServiceProfile が存在しない。
"id" が null。
SDONotExists
- ターゲットのSDOが存在しない。(本例外は、CORBA標準
システム例外のOBJECT_NOT_EXISTにマッピングされる)
NotAvailable
- SDOは存在するが応答がない。
InternalError
- 内部的エラーが発生した。
public Configuration get_configuration() throws InterfaceNotImplemented, NotAvailable, InternalError
このオペレーションは Configuration interface への参照を返す。 Configuration interface は各 SDO を管理するためのインターフェースの ひとつである。このインターフェースは DeviceProfile, ServiceProfile, Organization で定義された SDO の属性値を設定するために使用される。 Configuration インターフェースの詳細については、OMG SDO specification の 2.3.5節, p.2-24 を参照のこと。
InterfaceNotImplemented
- SDOはConfigurationインターフェースを
持たない。
SDONotExists
- ターゲットのSDOが存在しない。(本例外は、CORBA標準
システム例外のOBJECT_NOT_EXISTにマッピングされる)
NotAvailable
- SDOは存在するが応答がない。
InternalError
- 内部的エラーが発生した。
public Monitoring get_monitoring() throws InterfaceNotImplemented, NotAvailable, InternalError
このオペレーションは Monitoring interface への参照を返す。 Monitoring interface は SDO が管理するインターフェースの一つである。 このインターフェースは SDO のプロパティをモニタリングするために 使用される。 Monitoring interface の詳細については OMG SDO specification の 2.3.7節 "Monitoring Interface" p.2-35 を参照のこと。
InterfaceNotImplemented
- SDOはConfigurationインターフェースを
持たない。
SDONotExists
- ターゲットのSDOが存在しない。(本例外は、CORBA標準
システム例外のOBJECT_NOT_EXISTにマッピングされる)
NotAvailable
- SDOは存在するが応答がない。
InternalError
- 内部的エラーが発生した。
public Organization[] get_organizations() throws NotAvailable, InternalError
SDO は0個以上の Organization (組織)に所属することができる。 もし SDO が1個以上の Organization に所属している場合、 このオペレーションは所属する Organization のリストを返す。SDO が どの Organization にも所属していない 場合には、空のリストが返される。
SDONotExists
- ターゲットのSDOが存在しない。(本例外は、CORBA標準
システム例外のOBJECT_NOT_EXISTにマッピングされる)
NotAvailable
- SDOは存在するが応答がない。
InternalError
- 内部的エラーが発生した。
public NameValue[] get_status_list() throws NotAvailable, InternalError
このオペレーションは SDO のステータスを表す NVList を返す。
SDONotExists
- ターゲットのSDOが存在しない。(本例外は、CORBA標準
システム例外のOBJECT_NOT_EXISTにマッピングされる)
NotAvailable
- SDOは存在するが応答がない。
InternalError
- 内部的エラーが発生した。
public org.omg.CORBA.Any get_status(java.lang.String name) throws InvalidParameter, NotAvailable, InternalError
このオペレーションは 引数で指定された SDO のステータスを返す
name
- SDO のステータスを定義するパラメータ。
SDONotExists
- ターゲットのSDOが存在しない。(本例外は、CORBA標準
システム例外のOBJECT_NOT_EXISTにマッピングされる)
NotAvailable
- SDOは存在するが応答がない。
InvalidParameter
- 引数 "name" が null あるいは存在しない。
InternalError
- 内部的エラーが発生した。
public final java.lang.String getInstanceName()
ComponentProfile に設定されたインスタンス名を返す。
public void setInstanceName(java.lang.String instance_name)
ComponentProfile に指定されたインスタンス名を設定する。
instance_name
- インスタンス名
public final java.lang.String getTypeName()
ComponentProfile に設定された型名を返す。
public final java.lang.String getCategory()
ComponentProfile に設定されたカテゴリ情報を返す。
public java.lang.String[] getNamingNames()
設定された Naming Server 情報を返す。
public void setObjRef(RTObject rtobj)
RTC の CORBA オブジェクトリファレンスを設定する。
rtobj
- オブジェクトリファレンス
public final RTObject getObjRef()
設定された CORBA オブジェクトリファレンスを取得する。
public void setProperties(Properties prop)
RTC が保持すべきプロパティを設定する。与えられるプロパティは、 ComponentProfile 等に設定されるべき情報を持たなければならない。 このオペレーションは通常 RTC が初期化される際に Manager から 呼ばれることを意図している。
prop
- RTC のプロパティ
protected void syncAttributesByProperties() throws java.lang.Exception
java.lang.Exception
public Properties getProperties()
RTC が保持しているプロパティを返す。 RTCがプロパティを持たない場合は空のプロパティが返される。
public boolean bindParameter(java.lang.String param_name, ValueHolder var, java.lang.String def_val)
コンフィギュレーションパラメータと変数をバインドする
\
param_name
- コンフィギュレーションパラメータ名
var
- コンフィギュレーションパラメータ格納用変数
def_val
- コンフィギュレーションパラメータデフォルト値
public void updateParameters(java.lang.String config_set)
指定したIDのコンフィギュレーションセットに設定した値で、 コンフィギュレーションパラメータの値を更新する
config_set
- 更新対象値
public void registerPort(PortBase port)
RTC が保持するPortを登録する。 Port を外部からアクセス可能にするためには、このオペレーションにより 登録されていなければならない。登録される Port はこの RTC 内部において PortProfile.name により区別される。したがって、Port は RTC 内において、 ユニークな PortProfile.name を持たなければならない。 登録された Port は内部で適切にアクティブ化された後、その参照と オブジェクト参照がリスト内に保存される。
port
- RTC に登録する Port
public boolean addPort(PortBase port)
RTC が保持するPortを登録する。 Port を外部からアクセス可能にするためには、このオペレーションにより 登録されていなければならない。登録される Port はこの RTC 内部において PortProfile.name により区別される。したがって、Port は RTC 内において、 ユニークな PortProfile.name を持たなければならない。 登録された Port は内部で適切にアクティブ化された後、その参照と オブジェクト参照がリスト内に保存される。
port
- RTC に登録する Port
public void registerPort(PortService port)
RTC が保持するPortを登録する。 Port を外部からアクセス可能にするためには、このオペレーションにより 登録されていなければならない。登録される Port はこの RTC 内部において PortProfile.name により区別される。したがって、Port は RTC 内において、 ユニークな PortProfile.name を持たなければならない。 登録された Port は内部で適切にアクティブ化された後、その参照と オブジェクト参照がリスト内に保存される。
port
- RTC に登録する Port
public boolean addPort(PortService port)
RTC が保持するPortを登録する。 Port を外部からアクセス可能にするためには、このオペレーションにより 登録されていなければならない。登録される Port はこの RTC 内部において PortProfile.name により区別される。したがって、Port は RTC 内において、 ユニークな PortProfile.name を持たなければならない。 登録された Port は内部で適切にアクティブ化された後、その参照と オブジェクト参照がリスト内に保存される。
port
- RTC に登録する Port
public void registerPort(CorbaPort port)
RTC が保持するPortを登録する。 Port を外部からアクセス可能にするためには、このオペレーションにより 登録されていなければならない。登録される Port はこの RTC 内部において PortProfile.name により区別される。したがって、Port は RTC 内において、 ユニークな PortProfile.name を持たなければならない。 登録された Port は内部で適切にアクティブ化された後、その参照と オブジェクト参照がリスト内に保存される。
port
- RTC に登録する Port
public boolean addPort(CorbaPort port)
RTC が保持するPortを登録する。 Port を外部からアクセス可能にするためには、このオペレーションにより 登録されていなければならない。登録される Port はこの RTC 内部において PortProfile.name により区別される。したがって、Port は RTC 内において、 ユニークな PortProfile.name を持たなければならない。 登録された Port は内部で適切にアクティブ化された後、その参照と オブジェクト参照がリスト内に保存される。
port
- RTC に登録する Port
public <DataType,Buffer> void registerInPort(java.lang.Class<DataType> DATA_TYPE_CLASS, java.lang.String name, InPort<DataType> inport) throws java.lang.Exception
RTC が保持するDataInPortを登録する。
DATA_TYPE_CLASS
- DataInPortがやりとりするデータ型
name
- InPortの名称
inport
- InPortへの参照
java.lang.Exception
public boolean addInPort(java.lang.String name, InPortBase inport)
RTC が保持する DataInPort を登録する。 Port のプロパティにデータポートであること("port.dataport")、 TCPを使用すること("tcp_any")を設定するとともに、 DataInPort の インスタンスを生成し、登録する。
name
- port 名称
inport
- 登録対象 DataInPort
public void registerInPort(java.lang.String name, InPortBase inport) throws java.lang.Exception
RTC が保持する DataInPort を登録する。 Port のプロパティにデータポートであること("port.dataport")、 TCPを使用すること("tcp_any")を設定するとともに、 DataInPort の インスタンスを生成し、登録する。
name
- port 名称
inport
- 登録対象 DataInPort
java.lang.Exception
public boolean addOutPort(java.lang.String name, OutPortBase outport)
RTC が保持する DataOutPortを登録する。 Port のプロパティにデータポートであること("port.dataport")、 TCPを使用すること("tcp_any")を設定するとともに、 DataOutPort の インスタンスを生成し、登録する。
name
- i
port 名称
outport
- 登録対象 DataOutPort
public <DataType,Buffer> void registerOutPort(java.lang.Class<DataType> DATA_TYPE_CLASS, java.lang.String name, OutPort<DataType> outport) throws java.lang.Exception
DATA_TYPE_CLASS
- DataOutPortがやりとりするデータ型
name
- DataOutPortの名称
outport
- OutPortへの参照
java.lang.Exception
public void registerOutPort(java.lang.String name, OutPortBase outport) throws java.lang.Exception
RTC が保持する DataOutPortを登録する。 Port のプロパティにデータポートであること("port.dataport")、 TCPを使用すること("tcp_any")を設定するとともに、 DataOutPort の インスタンスを生成し、登録する。
name
- port 名称
outport
- 登録対象 DataOutPort
java.lang.Exception
public boolean removeInPort(InPortBase port)
RTC が保持するInPortの登録を削除する。
port
- 削除対象 Port
public boolean removeOutPort(OutPortBase port)
RTC が保持するOutPortの登録を削除する。
port
- 削除対象 Port
public boolean removePort(PortBase port)
RTC が保持するPortの登録を削除する。
port
- 削除対象 Port
public boolean removePort(PortService port)
RTC が保持するPortの登録を削除する。
port
- 削除対象 Port
public boolean removePort(CorbaPort port)
RTC が保持するPortの登録を削除する。
port
- 削除対象 Port
public void deletePort(PortBase port)
RTC が保持するPortの登録を削除します。
port
- 削除対象 Port
public void deletePort(PortService port)
RTC が保持するPortの登録を削除します。
port
- 削除対象 Port
public void deletePort(CorbaPort port)
RTC が保持するPortの登録を削除します。
port
- 削除対象 Port
public void deletePortByName(java.lang.String port_name)
名称を指定して RTC が保持するPortの登録を削除する。
port_name
- 削除対象 Port 名
public boolean readAll()
RTC が保持する全ての InPort のデータを読み込む。
public boolean writeAll()
RTC が保持する全ての OutPort のwrite()メソッドをコールする。
public void setReadAll(boolean read, boolean completion)
このメソッドをパラメータをtrueとして呼ぶ事により、 onExecute()実行前に readAll()が呼出されるようになる。 パラメータがfalseの場合は、readAll()呼出を無効にする。
read
- (default:true)
(readAll()メソッド呼出あり:true,
readAll()メソッド呼出なし:false)
completion
- (default:false)
readAll()にて、どれかの一つのInPortのread()が失敗しても
全てのInPortのread()を呼び出す:true,
readAll()にて、どれかの一つのInPortのread()が失敗した場合、
すぐにfalseで抜ける:false
public void setReadAll()
readAll()メソッド呼出あり、 readAll()にて、どれかの一つのInPortのread()が失敗した場合、 すぐにfalseで抜ける
public void setReadAll(boolean read)
readAll()にて、どれかの一つのInPortのread()が失敗した場合、 すぐにfalseで抜ける
read
- (default:true)
(readAll()メソッド呼出あり:true,
readAll()メソッド呼出なし:false)
public void setWriteAll(boolean write, boolean completion)
このメソッドをパラメータをtrueとして呼ぶ事により、 onExecute()実行後にwriteAll()が呼出されるようになる。 パラメータがfalseの場合は、writeAll()呼出を無効にする。
write
- (default:true)
(writeAll()メソッド呼出あり:true,
writeAll()メソッド呼出なし:false)
completion
- (default:false)
writeAll()にて、どれかの一つのOutPortのwrite()が失敗しても
全てのOutPortのwrite()を呼び出しを行う:true,
writeAll()にて、どれかの一つのOutPortのwrite()が失敗した場合、
すぐにfalseで抜ける:false
public void setWriteAll()
writeAll()メソッド呼出あり、 writeAll()にて、どれかの一つのOutPortのwrite()が失敗した場合、 すぐにfalseで抜ける
public void setWriteAll(boolean write)
writeAll()にて、どれかの一つのOutPortのwrite()が失敗した場合、 すぐにfalseで抜ける
write
- (default:true)
(writeAll()メソッド呼出あり:true,
writeAll()メソッド呼出なし:false)
public void finalizePorts()
RTC が保持する全ての Port を削除する。
public void finalizeContexts()
public void addPreComponentActionListener(int listener_type, PreComponentActionListener listener, boolean autoclean)
ComponentAction 実装関数の呼び出し直前のイベントに関連する各種リ スナを設定する。 設定できるリスナのタイプとコールバックイベントは以下の通り
listener_type
- リスナタイプ
listener
- リスナオブジェクトへのポインタ
autoclean
- リスナオブジェクトの自動的解体を行うかどうかのフラグ
public void addPreComponentActionListener(int listener_type, PreComponentActionListener listener)
public void removePreComponentActionListener(int listener_type, PreComponentActionListener listener)
設定した各種リスナを削除する。
listener_type
- リスナタイプ
listener
- リスナオブジェクトへのポインタ
public void addPostComponentActionListener(int listener_type, PostComponentActionListener listener, boolean autoclean)
ComponentAction 実装関数の呼び出し直後のイベントに関連する各種リ スナを設定する。 設定できるリスナのタイプとコールバックイベントは以下の通り
listener_type
- リスナタイプ
listener
- リスナオブジェクトへのポインタ
autoclean
- リスナオブジェクトの自動的解体を行うかどうかのフラグ
public void addPostComponentActionListener(int listener_type, PostComponentActionListener listener)
public void removePostComponentActionListener(int listener_type, PostComponentActionListener listener)
設定した各種リスナを削除する。
listener_type
- リスナタイプ
listener
- リスナオブジェクトへのポインタ
public void addPortActionListener(int listener_type, PortActionListener listener, boolean autoclean)
Portの追加、削除時にコールバックされる各種リスナを設定する。 設定できるリスナのタイプとコールバックイベントは以下の通り
listener_type
- リスナタイプ
listener
- リスナオブジェクトへのポインタ
autoclean
- リスナオブジェクトの自動的解体を行うかどうかのフラグ
public void addPortActionListener(int listener_type, PortActionListener listener)
public void removePortActionListener(int listener_type, PortActionListener listener)
設定した各種リスナを削除する。
listener_type
- リスナタイプ
listener
- リスナオブジェクトへのポインタ
public void addExecutionContextActionListener(int listener_type, ExecutionContextActionListener listener, boolean autoclean)
ExecutionContextの追加、削除時にコールバックされる各種リスナを設定する。 設定できるリスナのタイプとコールバックイベントは以下の通り
listener_type
- リスナタイプ
listener
- リスナオブジェクトへのポインタ
autoclean
- リスナオブジェクトの自動的解体を行うかどうかのフラグ
public void addExecutionContextActionListener(int listener_type, ExecutionContextActionListener listener)
public void removeExecutionContextActionListener(int listener_type, ExecutionContextActionListener listener)
設定した各種リスナを削除する。
listener_type
- リスナタイプ
listener
- リスナオブジェクトへのポインタ
protected void shutdown()
RTC の終了処理を実行する。 保持している全 Port の登録を解除するとともに、該当する CORBA オブジェクト を非活性化し、RTC を終了する。
protected void preOnInitialize(int ec_id)
protected void preOnFinalize(int ec_id)
protected void preOnStartup(int ec_id)
protected void preOnShutdown(int ec_id)
protected void preOnActivated(int ec_id)
protected void preOnDeactivated(int ec_id)
protected void preOnAborting(int ec_id)
protected void preOnError(int ec_id)
protected void preOnReset(int ec_id)
protected void preOnExecute(int ec_id)
protected void preOnStateUpdate(int ec_id)
protected void preOnRateChanged(int ec_id)
protected void postOnInitialize(int ec_id, ReturnCode_t ret)
protected void postOnFinalize(int ec_id, ReturnCode_t ret)
protected void postOnStartup(int ec_id, ReturnCode_t ret)
protected void postOnShutdown(int ec_id, ReturnCode_t ret)
protected void postOnActivated(int ec_id, ReturnCode_t ret)
protected void postOnDeactivated(int ec_id, ReturnCode_t ret)
protected void postOnAborting(int ec_id, ReturnCode_t ret)
protected void postOnError(int ec_id, ReturnCode_t ret)
protected void postOnReset(int ec_id, ReturnCode_t ret)
protected void postOnExecute(int ec_id, ReturnCode_t ret)
protected void postOnStateUpdate(int ec_id, ReturnCode_t ret)
protected void postOnRateChanged(int ec_id, ReturnCode_t ret)
protected void onAddPort(PortProfile pprof)
protected void onRemovePort(PortProfile pprof)
protected void onAttachExecutionContext(int ec_id)
protected void onDetachExecutionContext(int ec_id)
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |