public class RTObject_impl extends DataFlowComponentPOA
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 boolean |
m_exiting
RTCの終了状態フラグ
|
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 PortConnectListeners |
m_portconnListeners
PortConnectListenerホルダ
PortConnectListenrを保持するホルダ
|
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 SdoServiceAdmin |
m_sdoservice
SDO Service 管理オブジェクト
|
protected NVListHolder |
m_sdoStatus
SDO Status
|
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オブジェクトの取得。
|
ReturnCode_t |
activate(int ec_id)
[local interface] 状態を Active に遷移させる
{@.ja 状態を Inactive から Active に遷移させる。
|
void |
addConfigurationParamListener(int type,
ConfigurationParamListener listener)
ConfigurationParamListener を追加する
{@.ja update(const char* config_set, const char* config_param) が呼ばれた際に
コールされるリスナ ConfigurationParamListener を追加する。
|
void |
addConfigurationParamListener(int type,
ConfigurationParamListener listener,
boolean autoclean)
ConfigurationParamListener を追加する
{@.ja update(const char* config_set, const char* config_param) が呼ばれた際に
コールされるリスナ ConfigurationParamListener を追加する。
|
<DataType> ConfigurationParamListener |
addConfigurationParamListener(int listener_type,
DataType obj,
java.lang.String memfunc)
ConfigurationParamListener を追加する
{@.ja update(const char* config_set, const char* config_param) が呼ばれた際に
コールされるリスナ ConfigurationParamListener を追加する。
|
void |
addConfigurationSetListener(int type,
ConfigurationSetListener listener)
ConfigurationSetListener を追加する
{@.ja ConfigurationSet が更新されたときなどに呼ばれるリスナ
ConfigurationSetListener を追加する。
|
void |
addConfigurationSetListener(int type,
ConfigurationSetListener listener,
boolean autoclean)
ConfigurationSetListener を追加する
{@.ja ConfigurationSet が更新されたときなどに呼ばれるリスナ
ConfigurationSetListener を追加する。
|
<DataType> ConfigurationSetListener |
addConfigurationSetListener(int listener_type,
DataType obj,
java.lang.String memfunc)
ConfigurationSetListener を追加する
{@.ja ConfigurationSet が更新されたときなどに呼ばれるリスナ
ConfigurationSetListener を追加する。
|
void |
addConfigurationSetNameListener(int type,
ConfigurationSetNameListener listener)
ConfigurationSetNameListener を追加する
{@.ja ConfigurationSetName が更新されたときなどに呼ばれるリスナ
ConfigurationSetNameListener を追加する。
|
void |
addConfigurationSetNameListener(int type,
ConfigurationSetNameListener listener,
boolean autoclean)
ConfigurationSetNameListener を追加する
{@.ja ConfigurationSetName が更新されたときなどに呼ばれるリスナ
ConfigurationSetNameListener を追加する。
|
<DataType> ConfigurationSetNameListener |
addConfigurationSetNameListener(int listener_type,
DataType obj,
java.lang.String memfunc)
ConfigurationSetNameListener を追加する
{@.ja ConfigurationSetName が更新されたときなどに呼ばれるリスナ
ConfigurationSetNameListener を追加する。
|
<DataType> ExecutionContextActionListener |
addExecutionContextActionListener(int listener_type,
DataType obj,
java.lang.String memfunc)
ExecutionContextActionListener リスナを追加する
{@.ja ExecutionContextの追加、削除時にコールバックされる各種リスナを設定する。
|
void |
addExecutionContextActionListener(int listener_type,
ExecutionContextActionListener listener)
ExecutionContextActionListener リスナを追加する
{@.ja ExecutionContextの追加、削除時にコールバックされる各種リスナを設定する。
|
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 を登録する。
|
<DataType> PortActionListener |
addPortActionListener(int listener_type,
DataType obj,
java.lang.String memfunc)
PortActionListener リスナを追加する
{@.ja Portの追加、削除時にコールバックされる各種リスナを設定する。
|
void |
addPortActionListener(int listener_type,
PortActionListener listener)
PortActionListener リスナを追加する
{@.ja Portの追加、削除時にコールバックされる各種リスナを設定する。
|
void |
addPortActionListener(int listener_type,
PortActionListener listener,
boolean autoclean)
PortActionListener リスナを追加する
{@.ja Portの追加、削除時にコールバックされる各種リスナを設定する。
|
<DataType> PortConnectListener |
addPortConnectListener(int listener_type,
DataType obj,
java.lang.String memfunc)
PortConnectListener リスナを追加する
{@.ja Portの接続時や接続解除時に呼び出される各種リスナを設定する。
|
void |
addPortConnectListener(int listener_type,
PortConnectListener listener)
PortConnectListener リスナを追加する
{@.ja Portの接続時や接続解除時に呼び出される各種リスナを設定する。
|
void |
addPortConnectListener(int listener_type,
PortConnectListener listener,
boolean autoclean)
PortConnectListener リスナを追加する
{@.ja Portの接続時や接続解除時に呼び出される各種リスナを設定する。
|
<DataType> PortConnectRetListener |
addPortConnectRetListener(int listener_type,
DataType obj,
java.lang.String memfunc)
PortConnectRetListener リスナを追加する
{@.ja Portの接続時や接続解除時に呼び出される各種リスナを設定する。
|
void |
addPortConnectRetListener(int listener_type,
PortConnectRetListener listener)
PortConnectRetListener リスナを追加する
{@.ja Portの接続時や接続解除時に呼び出される各種リスナを設定する。
|
void |
addPortConnectRetListener(int listener_type,
PortConnectRetListener listener,
boolean autoclean)
PortConnectRetListener リスナを追加する
{@.ja Portの接続時や接続解除時に呼び出される各種リスナを設定する。
|
<DataType> PostComponentActionListener |
addPostComponentActionListener(int listener_type,
DataType obj,
java.lang.String memfunc)
PostComponentActionListener リスナを追加する
{@.ja ComponentAction 実装関数の呼び出し直後のイベントに関連する各種リ
スナを設定する。
|
void |
addPostComponentActionListener(int listener_type,
PostComponentActionListener listener)
PostComponentActionListener リスナを追加する
{@.ja ComponentAction 実装関数の呼び出し直後のイベントに関連する各種リ
スナを設定する。
|
void |
addPostComponentActionListener(int listener_type,
PostComponentActionListener listener,
boolean autoclean)
PostComponentActionListener リスナを追加する
{@.ja ComponentAction 実装関数の呼び出し直後のイベントに関連する各種リ
スナを設定する。
|
<DataType> PreComponentActionListener |
addPreComponentActionListener(int listener_type,
DataType obj,
java.lang.String memfunc)
PreComponentActionListener リスナを追加する
{@.ja ComponentAction 実装関数の呼び出し直前のイベントに関連する各種リ
スナを設定する。
|
void |
addPreComponentActionListener(int listener_type,
PreComponentActionListener listener)
PreComponentActionListener リスナを追加する
{@.ja ComponentAction 実装関数の呼び出し直前のイベントに関連する各種リ
スナを設定する。
|
void |
addPreComponentActionListener(int listener_type,
PreComponentActionListener listener,
boolean autoclean)
PreComponentActionListener リスナを追加する
{@.ja ComponentAction 実装関数の呼び出し直前のイベントに関連する各種リ
スナを設定する。
|
boolean |
addSdoServiceConsumer(ServiceProfile prof)
[local interface] SDO service provider をセットする
|
boolean |
addSdoServiceProvider(ServiceProfile prof,
SdoServiceProviderBase provider)
[local interface] SDO service provider をセットする
|
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)
コンフィギュレーションパラメータの設定。
|
protected ReturnCode_t |
createContexts(java.util.ArrayList<Properties> ec_args)
creating, initializing and binding context
|
ReturnCode_t |
deactivate(int ec_id)
[local interface] 状態を Inactive に遷移させる
{@.ja 状態を Active から Inactive に遷移させる。
|
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の登録を削除します。
|
protected ReturnCode_t |
findExistingEC(Properties ec_arg,
ExecutionContextBase ec)
fiding existing EC from the factory
|
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] カテゴリ情報の取得。
|
ConfigAdmin |
getConfigService()
コンフィギュレーションサービスを取得する
{@.ja コンフィギュレーションサービスオブジェクトを取得する。
|
protected ReturnCode_t |
getContextOptions(java.util.ArrayList<Properties> ec_args)
getting EC options
|
ExecutionContext |
getExecutionContext(int ec_id)
[local interface] 実行コンテキストを取得する
{@.ja get_context() と同じ機能のローカル版。
|
double |
getExecutionRate(int ec_id)
[local interface] 実行コンテキストの実行レートを取得する
{@.ja 現在実行中の実行コンテキストの実行レートを取得する。
|
protected ReturnCode_t |
getGlobalContextOptions(Properties global_ec_props)
getting global EC options from rtc.conf
|
protected ReturnCode_t |
getInheritedECOptions(Properties default_opts) |
java.lang.String |
getInstanceName()
[local interface] インスタンス名の取得。
|
java.lang.String[] |
getNamingNames()
[local interface] Naming Server 情報の取得。
|
RTObject |
getObjRef()
[local interface] オブジェクトリファレンスの取得。
|
protected ReturnCode_t |
getPrivateContextOptions(java.util.ArrayList<Properties> ec_args)
getting individual EC options from RTC's configuration file
|
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 状態であるかどうか確認する。
|
boolean |
isOwnExecutionContext(int ec_id)
[local interface] 実行コンテキストの所有権を調べる
{@.ja 現在実行中の実行コンテキストの所有権を調べる。
|
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 のデータを読み込む。
|
<DataType,Buffer> |
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 を登録します。
|
<DataType,Buffer> |
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 |
removeConfigurationParamListener(int type,
ConfigurationParamListener listener)
ConfigurationParamListener を削除する
addConfigurationParamListener で追加されたリスナオブジェクトを削除する。
|
void |
removeConfigurationSetListener(int type,
ConfigurationSetListener listener)
ConfigurationSetListener を削除する
addConfigurationSetListener で追加されたリスナオブジェクトを削除する。
|
void |
removeConfigurationSetNameListener(int type,
ConfigurationSetNameListener listener)
ConfigurationSetNameListener を削除する
addConfigurationSetNameListener で追加されたリスナオブジェクトを
削除する。
|
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 |
removePortConnectListener(int listener_type,
PortConnectListener listener)
PortConnectListener リスナを削除する
設定した各種リスナを削除する。
|
void |
removePortConnectRetListener(int listener_type,
PortConnectRetListener listener)
PortConnectRetListener リスナを削除する
設定した各種リスナを削除する。
|
void |
removePostComponentActionListener(int listener_type,
PostComponentActionListener listener)
PostComponentActionListener リスナを削除する
設定した各種リスナを削除する。
|
void |
removePreComponentActionListener(int listener_type,
PreComponentActionListener listener)
PreComponentActionListener リスナを削除する
設定した各種リスナを削除する。
|
boolean |
removeSdoServiceConsumer(java.lang.String id)
[local interface] SDO service provider を削除する
|
boolean |
removeSdoServiceProvider(java.lang.String id)
[local interface] SDO service provider を削除する
|
ReturnCode_t |
reset(int ec_id)
[local interface] 状態をリセットし Inactive に遷移させる
{@.ja 状態を Error から Inactive に遷移させる。
|
ReturnCode_t |
setExecutionRate(int ec_id,
double rate)
[local interface] 実行コンテキストの実行レートを設定する
{@.ja 現在実行中の実行コンテキストの実行レートを設定する。
|
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()メソッドをコールする。
|
_all_interfaces, _invoke, _this
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 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 boolean m_exiting
protected Properties m_properties
protected ConfigAdmin m_configsets
protected SdoServiceAdmin m_sdoservice
protected boolean m_readAll
protected boolean m_writeAll
protected PortConnectListeners m_portconnListeners
PortConnectListenrを保持するホルダ
protected Logbuf rtcout
protected java.util.Vector<InPortBase> m_inports
protected java.util.Vector<OutPortBase> m_outports
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オブジェクト参照を取得する。
_this
クラス内 DataFlowComponentPOA
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 ConfigAdmin getConfigService()
コンフィギュレーションサービスオブジェクトを取得する。このサービ スオブジェクトを利用して、コンフィギュレーションパラメータの操作 を行うことができる。主な操作としては、 - unbindParameter(): パラメータのアンバインド - update(): パラメータの更新 - update(set_name): 特定のセットの更新 - update(set_name, param_name): 特定のセットのパラメータの更新 - isExist(): パラメータの存在確認 - isChanged(): パラメータが変更されたかの確認 - changedParameters(): 変更されたパラメータのリスト - getActiveId(): アクティブセット名の取得 - haveConfig(config_id): コンフィグセットを持っているかどうか - getConfigurationSets(): 全コンフィギュレーションセットの取得 - getConfigurationSet(set_id): 特定セットを取得 コールバック関連 - addConfigurationParamListener(): リスナの追加 - removeConfigurationParamListener(): リスナの削除 - addConfigurationSetListener(): リスナの追加 - removeConfigurationSetListener(): リスナの削除 - addConfigurationSetNameListener(): リスナの追加 - removeConfigurationSetNameListener(): リスナの削除 詳細はConfigAdminクラスリファレンスを参照のこと。
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 ExecutionContext getExecutionContext(int ec_id)
get_context() と同じ機能のローカル版。違いはない。 この関数は以下の関数内で呼ばれることを前提としている。 - onStartup() - onShutdown() - onActivated() - onDeactivated() - onExecute() - onAborting() - onError() - onReset() - onStateUpdate() - onRateChanged() この関数の引数はこれらの関数の引数 UniquieID exec_handle でなけ ればならない。
ec_id
- 上記関数の第1引数 exec_handle を渡す必要がある。
public double getExecutionRate(int ec_id)
現在実行中の実行コンテキストの実行レートを取得する。実行コンテキ ストのKindがPERIODIC以外の場合の動作は未定義である。この関数は以 下の関数内で呼ばれることを前提としている。 - onStartup() - onShutdown() - onActivated() - onDeactivated() - onExecute() - onAborting() - onError() - onReset() - onStateUpdate() - onRateChanged() この関数の引数はこれらの関数の引数 UniquieID exec_handle でなけ ればならない。
ec_id
- 上記関数の第1引数 exec_handle を渡す必要がある。
public ReturnCode_t setExecutionRate(int ec_id, double rate)
現在実行中の実行コンテキストの実行レートを設定する。実行コンテキ ストのKindがPERIODIC以外の場合の動作は未定義である。この関数は以 下の関数内で呼ばれることを前提としている。 - onStartup() - onShutdown() - onActivated() - onDeactivated() - onExecute() - onAborting() - onError() - onReset() - onStateUpdate() - onRateChanged() この関数の引数はこれらの関数の引数 UniquieID exec_handle でなけ ればならない。
ec_id
- 上記関数の第1引数 exec_handle を渡す必要がある。
rate
- 実行レートを [Hz] で与える
public boolean isOwnExecutionContext(int ec_id)
現在実行中の実行コンテキストの所有権を調べる。この関数は以下の関 数内で呼ばれることを前提としている。 - onStartup() - onShutdown() - onActivated() - onDeactivated() - onExecute() - onAborting() - onError() - onReset() - onStateUpdate() - onRateChanged() この関数の引数はこれらの関数の引数 UniquieID exec_handle でなけ ればならない。
ec_id
- 上記関数の第1引数 exec_handle を渡す必要がある。
public ReturnCode_t deactivate(int ec_id)
状態を Active から Inactive に遷移させる。この関数は以下の関 数内で呼ばれることを前提としている。 - onActivated() - onExecute() - onStateUpdate() この関数の引数は上記の関数の引数 UniquieID exec_handle でなけ ればならない。
ec_id
- 上記関数の第1引数 exec_handle を渡す必要がある。
public ReturnCode_t activate(int ec_id)
状態を Inactive から Active に遷移させる。この関数は以下の関 数内で呼ばれることを前提としている。 - onStartup() - onDeactivated() この関数の引数は上記の関数の引数 UniquieID exec_handle でなけ ればならない。
ec_id
- 上記関数の第1引数 exec_handle を渡す必要がある。
public ReturnCode_t reset(int ec_id)
状態を Error から Inactive に遷移させる。この関数は以下の関 数内で呼ばれることを前提としている。 - onError() この関数の引数は上記の関数の引数 UniquieID exec_handle でなけ ればならない。
ec_id
- 上記関数の第1引数 exec_handle を渡す必要がある。
public boolean addSdoServiceProvider(ServiceProfile prof, SdoServiceProviderBase provider)
public boolean removeSdoServiceProvider(java.lang.String id)
public boolean addSdoServiceConsumer(ServiceProfile prof)
public boolean removeSdoServiceConsumer(java.lang.String id)
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)
ComponentAction 実装関数の呼び出し直前のイベントに関連する各種リ スナを設定する。 設定できるリスナのタイプとコールバックイベントは以下の通り
listener_type
- リスナタイプ
listener
- リスナオブジェクトへのポインタ
public <DataType> PreComponentActionListener addPreComponentActionListener(int listener_type, DataType obj, java.lang.String memfunc)
ComponentAction 実装関数の呼び出し直前のイベントに関連する各種リ スナを設定する。 設定できるリスナのタイプとコールバックイベントは以下の通り
listener_type
- リスナタイプ
obj
- リスナオブジェクト
memfunc
- リスナのmethod名
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)
ComponentAction 実装関数の呼び出し直後のイベントに関連する各種リ スナを設定する。 設定できるリスナのタイプとコールバックイベントは以下の通り
listener_type
- リスナタイプ
listener
- リスナオブジェクトへのポインタ
public <DataType> PostComponentActionListener addPostComponentActionListener(int listener_type, DataType obj, java.lang.String memfunc)
ComponentAction 実装関数の呼び出し直後のイベントに関連する各種リ スナを設定する。 設定できるリスナのタイプとコールバックイベントは以下の通り
listener_type
- リスナタイプ
obj
- リスナオブジェクト
memfunc
- リスナのmethod名
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)
Portの追加、削除時にコールバックされる各種リスナを設定する。 設定できるリスナのタイプとコールバックイベントは以下の通り
listener_type
- リスナタイプ
listener
- リスナオブジェクトへのポインタ
public <DataType> PortActionListener addPortActionListener(int listener_type, DataType obj, java.lang.String memfunc)
Portの追加、削除時にコールバックされる各種リスナを設定する。 設定できるリスナのタイプとコールバックイベントは以下の通り
listener_type
- リスナタイプ
obj
- リスナオブジェクト
memfunc
- リスナのmethod名
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)
ExecutionContextの追加、削除時にコールバックされる各種リスナを設定する。 設定できるリスナのタイプとコールバックイベントは以下の通り
listener_type
- リスナタイプ
listener
- リスナオブジェクトへのポインタ
public <DataType> ExecutionContextActionListener addExecutionContextActionListener(int listener_type, DataType obj, java.lang.String memfunc)
ExecutionContextの追加、削除時にコールバックされる各種リスナを設定する。 設定できるリスナのタイプとコールバックイベントは以下の通り
listener_type
- リスナタイプ
obj
- リスナオブジェクト
memfunc
- リスナのmethod名
public void removeExecutionContextActionListener(int listener_type, ExecutionContextActionListener listener)
設定した各種リスナを削除する。
listener_type
- リスナタイプ
listener
- リスナオブジェクトへのポインタ
public void addPortConnectListener(int listener_type, PortConnectListener listener)
Portの接続時や接続解除時に呼び出される各種リスナを設定する。 設定できるリスナのタイプとコールバックイベントは以下の通り - ON_NOTIFY_CONNECT: notify_connect() 関数内呼び出し直後 - ON_NOTIFY_DISCONNECT: notify_disconnect() 呼び出し直後 - ON_UNSUBSCRIBE_INTERFACES: notify_disconnect() 内のIF購読解除時 リスナは PortConnectListener を継承し、以下のシグニチャを持つ operator() を実装している必要がある。 PortConnectListener::operator()(const char*, ConnectorProfile) デフォルトでは、この関数に与えたリスナオブジェクトの所有権は RTObjectに移り、RTObject解体時もしくは、 removePortConnectListener() により削除時に自動的に解体される。 リスナオブジェクトの所有権を呼び出し側で維持したい場合は、第3引 数に false を指定し、自動的な解体を抑制することができる。
listener_type
- リスナタイプ
listener
- リスナオブジェクトへのポインタ
public void addPortConnectListener(int listener_type, PortConnectListener listener, boolean autoclean)
Portの接続時や接続解除時に呼び出される各種リスナを設定する。 設定できるリスナのタイプとコールバックイベントは以下の通り - ON_NOTIFY_CONNECT: notify_connect() 関数内呼び出し直後 - ON_NOTIFY_DISCONNECT: notify_disconnect() 呼び出し直後 - ON_UNSUBSCRIBE_INTERFACES: notify_disconnect() 内のIF購読解除時 リスナは PortConnectListener を継承し、以下のシグニチャを持つ operator() を実装している必要がある。 PortConnectListener::operator()(const char*, ConnectorProfile) デフォルトでは、この関数に与えたリスナオブジェクトの所有権は RTObjectに移り、RTObject解体時もしくは、 removePortConnectListener() により削除時に自動的に解体される。 リスナオブジェクトの所有権を呼び出し側で維持したい場合は、第3引 数に false を指定し、自動的な解体を抑制することができる。
listener_type
- リスナタイプ
listener
- リスナオブジェクトへのポインタ
autoclean
- リスナオブジェクトの自動的解体を行うかどうかのフラグ
public <DataType> PortConnectListener addPortConnectListener(int listener_type, DataType obj, java.lang.String memfunc)
Portの接続時や接続解除時に呼び出される各種リスナを設定する。 設定できるリスナのタイプとコールバックイベントは以下の通り - ON_NOTIFY_CONNECT: notify_connect() 関数内呼び出し直後 - ON_NOTIFY_DISCONNECT: notify_disconnect() 呼び出し直後 - ON_UNSUBSCRIBE_INTERFACES: notify_disconnect() 内のIF購読解除時 リスナは PortConnectListener を継承し、以下のシグニチャを持つ operator() を実装している必要がある。 PortConnectListener::operator()(const char*, ConnectorProfile) デフォルトでは、この関数に与えたリスナオブジェクトの所有権は RTObjectに移り、RTObject解体時もしくは、 removePortConnectListener() により削除時に自動的に解体される。 リスナオブジェクトの所有権を呼び出し側で維持したい場合は、第3引 数に false を指定し、自動的な解体を抑制することができる。
listener_type
- リスナタイプ
obj
- リスナオブジェクト
memfunc
- リスナのmethod名
public void removePortConnectListener(int listener_type, PortConnectListener listener)
設定した各種リスナを削除する。
listener_type
- リスナタイプ
listener
- リスナオブジェクトへのポインタ
public void addPortConnectRetListener(int listener_type, PortConnectRetListener listener)
Portの接続時や接続解除時に呼び出される各種リスナを設定する。 設定できるリスナのタイプとコールバックイベントは以下の通り - ON_CONNECT_NEXTPORT: notify_connect() 中のカスケード呼び出し直後 - ON_SUBSCRIBE_INTERFACES: notify_connect() 中のインターフェース購読直後 - ON_CONNECTED: nofity_connect() 接続処理完了時に呼び出される - ON_DISCONNECT_NEXT: notify_disconnect() 中にカスケード呼び出し直後 - ON_DISCONNECTED: notify_disconnect() リターン時 リスナは PortConnectRetListener を継承し、以下のシグニチャを持つ operator() を実装している必要がある。 PortConnectRetListener::operator()(const char*, ConnectorProfile) デフォルトでは、この関数に与えたリスナオブジェクトの所有権は RTObjectに移り、RTObject解体時もしくは、 removePortConnectRetListener() により削除時に自動的に解体される。 リスナオブジェクトの所有権を呼び出し側で維持したい場合は、第3引 数に false を指定し、自動的な解体を抑制することができる。
listener_type
- リスナタイプ
listener
- リスナオブジェクトへのポインタ
public void addPortConnectRetListener(int listener_type, PortConnectRetListener listener, boolean autoclean)
Portの接続時や接続解除時に呼び出される各種リスナを設定する。 設定できるリスナのタイプとコールバックイベントは以下の通り - ON_CONNECT_NEXTPORT: notify_connect() 中のカスケード呼び出し直後 - ON_SUBSCRIBE_INTERFACES: notify_connect() 中のインターフェース購読直後 - ON_CONNECTED: nofity_connect() 接続処理完了時に呼び出される - ON_DISCONNECT_NEXT: notify_disconnect() 中にカスケード呼び出し直後 - ON_DISCONNECTED: notify_disconnect() リターン時 リスナは PortConnectRetListener を継承し、以下のシグニチャを持つ operator() を実装している必要がある。 PortConnectRetListener::operator()(const char*, ConnectorProfile) デフォルトでは、この関数に与えたリスナオブジェクトの所有権は RTObjectに移り、RTObject解体時もしくは、 removePortConnectRetListener() により削除時に自動的に解体される。 リスナオブジェクトの所有権を呼び出し側で維持したい場合は、第3引 数に false を指定し、自動的な解体を抑制することができる。
listener_type
- リスナタイプ
listener
- リスナオブジェクトへのポインタ
autoclean
- リスナオブジェクトの自動的解体を行うかどうかのフラグ
public <DataType> PortConnectRetListener addPortConnectRetListener(int listener_type, DataType obj, java.lang.String memfunc)
Portの接続時や接続解除時に呼び出される各種リスナを設定する。 設定できるリスナのタイプとコールバックイベントは以下の通り - ON_CONNECT_NEXTPORT: notify_connect() 中のカスケード呼び出し直後 - ON_SUBSCRIBE_INTERFACES: notify_connect() 中のインターフェース購読直後 - ON_CONNECTED: nofity_connect() 接続処理完了時に呼び出される - ON_DISCONNECT_NEXT: notify_disconnect() 中にカスケード呼び出し直後 - ON_DISCONNECTED: notify_disconnect() リターン時 リスナは PortConnectRetListener を継承し、以下のシグニチャを持つ operator() を実装している必要がある。 PortConnectRetListener::operator()(const char*, ConnectorProfile) デフォルトでは、この関数に与えたリスナオブジェクトの所有権は RTObjectに移り、RTObject解体時もしくは、 removePortConnectRetListener() により削除時に自動的に解体される。 リスナオブジェクトの所有権を呼び出し側で維持したい場合は、第3引 数に false を指定し、自動的な解体を抑制することができる。
listener_type
- リスナタイプ
obj
- リスナオブジェクト
memfunc
- リスナのmethod名
public void removePortConnectRetListener(int listener_type, PortConnectRetListener listener)
設定した各種リスナを削除する。
listener_type
- リスナタイプ
listener
- リスナオブジェクトへのポインタ
public void addConfigurationParamListener(int type, ConfigurationParamListener listener, boolean autoclean)
update(const char* config_set, const char* config_param) が呼ばれた際に コールされるリスナ ConfigurationParamListener を追加する。 type には現在のところ ON_UPDATE_CONFIG_PARAM のみが入る。
type
- ConfigurationParamListenerType型の値。
ON_UPDATE_CONFIG_PARAM がある。
listener
- ConfigurationParamListener 型のリスナオブジェクト。
autoclean
- リスナオブジェクトを自動で削除するかどうかのフラグ
public void addConfigurationParamListener(int type, ConfigurationParamListener listener)
update(const char* config_set, const char* config_param) が呼ばれた際に コールされるリスナ ConfigurationParamListener を追加する。 type には現在のところ ON_UPDATE_CONFIG_PARAM のみが入る。
type
- ConfigurationParamListenerType型の値。
ON_UPDATE_CONFIG_PARAM がある。
listener
- ConfigurationParamListener 型のリスナオブジェクト。
public <DataType> ConfigurationParamListener addConfigurationParamListener(int listener_type, DataType obj, java.lang.String memfunc)
update(const char* config_set, const char* config_param) が呼ばれた際に コールされるリスナ ConfigurationParamListener を追加する。 type には現在のところ ON_UPDATE_CONFIG_PARAM のみが入る。
listener_type
- ConfigurationParamListenerType型の値。
ON_UPDATE_CONFIG_PARAM がある。
obj
- リスナオブジェクト
memfunc
- リスナのmethod名
public void removeConfigurationParamListener(int type, ConfigurationParamListener listener)
addConfigurationParamListener で追加されたリスナオブジェクトを削除する。
type
- ConfigurationParamListenerType型の値。
ON_UPDATE_CONFIG_PARAM がある。
listener
- 与えたリスナオブジェクトへのポインタ
public void addConfigurationSetListener(int type, ConfigurationSetListener listener, boolean autoclean)
ConfigurationSet が更新されたときなどに呼ばれるリスナ ConfigurationSetListener を追加する。設定可能なイベントは以下の 2種類がある。
type
- ConfigurationSetListenerType型の値。
listener
- ConfigurationSetListener 型のリスナオブジェクト。
autoclean
- リスナオブジェクトを自動で削除するかどうかのフラグ
public void addConfigurationSetListener(int type, ConfigurationSetListener listener)
ConfigurationSet が更新されたときなどに呼ばれるリスナ ConfigurationSetListener を追加する。設定可能なイベントは以下の 2種類がある。
type
- ConfigurationSetListenerType型の値。
listener
- ConfigurationSetListener 型のリスナオブジェクト。
public <DataType> ConfigurationSetListener addConfigurationSetListener(int listener_type, DataType obj, java.lang.String memfunc)
ConfigurationSet が更新されたときなどに呼ばれるリスナ ConfigurationSetListener を追加する。設定可能なイベントは以下の 2種類がある。
listener_type
- ConfigurationSetListenerType型の値。
obj
- リスナオブジェクト
memfunc
- リスナのmethod名
public void removeConfigurationSetListener(int type, ConfigurationSetListener listener)
addConfigurationSetListener で追加されたリスナオブジェクトを削除する。
type
- ConfigurationSetListenerType型の値。
listener
- 与えたリスナオブジェクトへのポインタ
public void addConfigurationSetNameListener(int type, ConfigurationSetNameListener listener, boolean autoclean)
ConfigurationSetName が更新されたときなどに呼ばれるリスナ ConfigurationSetNameListener を追加する。設定可能なイベントは以下の 3種類がある。
type
- ConfigurationSetNameListenerType型の値。
listener
- ConfigurationSetNameListener 型のリスナオブジェクト。
autoclean
- リスナオブジェクトを自動で削除するかどうかのフラグ
public void addConfigurationSetNameListener(int type, ConfigurationSetNameListener listener)
ConfigurationSetName が更新されたときなどに呼ばれるリスナ ConfigurationSetNameListener を追加する。設定可能なイベントは以下の 3種類がある。
type
- ConfigurationSetNameListenerType型の値。
listener
- ConfigurationSetNameListener 型のリスナオブジェクト。
public <DataType> ConfigurationSetNameListener addConfigurationSetNameListener(int listener_type, DataType obj, java.lang.String memfunc)
ConfigurationSetName が更新されたときなどに呼ばれるリスナ ConfigurationSetNameListener を追加する。設定可能なイベントは以下の 3種類がある。
listener_type
- ConfigurationSetNameListenerType型の値。
obj
- リスナオブジェクト
memfunc
- リスナのmethod名
public void removeConfigurationSetNameListener(int type, ConfigurationSetNameListener listener)
addConfigurationSetNameListener で追加されたリスナオブジェクトを 削除する。
type
- ConfigurationSetNameListenerType型の値。
ON_UPDATE_CONFIG_PARAM がある。
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)
protected ReturnCode_t getInheritedECOptions(Properties default_opts)
protected ReturnCode_t getPrivateContextOptions(java.util.ArrayList<Properties> ec_args)
protected ReturnCode_t getGlobalContextOptions(Properties global_ec_props)
protected ReturnCode_t getContextOptions(java.util.ArrayList<Properties> ec_args)
protected ReturnCode_t findExistingEC(Properties ec_arg, ExecutionContextBase ec)
protected ReturnCode_t createContexts(java.util.ArrayList<Properties> ec_args)