|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.omg.PortableServer.Servant
OpenRTM.ExtTrigExecutionContextServicePOA
jp.go.aist.rtm.RTC.executionContext.ExtTrigExecutionContext
public class ExtTrigExecutionContext
ステップ実行が可能な ExecutionContext クラス
1周期毎の実行が可能なPeriodic Sampled Data Processing(周期実行用) ExecutionContextクラスです。 外部からのメソッド呼びだしによって時間が1周期づつ進みます。
入れ子のクラスの概要 | |
---|---|
protected class |
ExtTrigExecutionContext.Comp
ExecutionContextにattachされたコンポーネントのメソッド呼出用クラスです。 |
protected class |
ExtTrigExecutionContext.DFP
DataFlowComponentのAction定義用抽象クラスです。 |
protected class |
ExtTrigExecutionContext.DFPBase
DataFlowComponentのAction定義用抽象クラスです。 |
protected class |
ExtTrigExecutionContext.find_comp
管理対象コンポーネント検索用ヘルパークラスです。 |
インタフェース jp.go.aist.rtm.RTC.executionContext.ExecutionContextBase から継承された入れ子のクラス/インタフェース |
---|
ExecutionContextBase.transitionModeHolder |
フィールドの概要 | |
---|---|
(package private) TimeValue |
m_activationTimeout
|
protected java.util.ArrayList<ExtTrigExecutionContext.Comp> |
m_comps
ExecutionContextにatttachされているコンポーネントのリストです。 |
(package private) TimeValue |
m_deactivationTimeout
|
protected boolean |
m_nowait
|
protected ExecutionContextProfile |
m_profile
ExecutionContextProfileです。 |
protected ExecutionContextService |
m_ref
ExecutionContextServiceとしてのCORBAオブジェクト参照です。 |
(package private) TimeValue |
m_resetTimeout
|
protected boolean |
m_running
ExecutionContextの実行状態です。 |
(package private) boolean |
m_syncActivation
|
(package private) boolean |
m_syncDeactivation
|
(package private) boolean |
m_syncReset
|
protected java.lang.Thread |
m_thread
|
protected long |
m_usec
ExecutionContextの動作周期です。 |
protected ExecutionContextWorker |
m_worker
|
protected Logbuf |
rtcout
Logging用フォーマットオブジェクト |
コンストラクタの概要 | |
---|---|
ExtTrigExecutionContext()
コンストラクタ |
メソッドの概要 | |
---|---|
ExecutionContextService |
__this()
__this() |
ReturnCode_t |
activate_component(LightweightRTObject comp)
コンポーネントをアクティブ化します。 |
ReturnCode_t |
activateComponent(LightweightRTObject comp)
|
ReturnCode_t |
add_component(LightweightRTObject comp)
RTコンポーネントを追加する {@.ja 指定したRTコンポーネントを参加者リストに追加する。 |
ReturnCode_t |
addComponent(LightweightRTObject comp)
|
ReturnCode_t |
bindComponent(RTObject_impl rtc)
コンポーネントをバインドする。 |
ExecutionContextBase |
creator_()
OpenHRPExecutionContext を生成する |
ReturnCode_t |
deactivate_component(LightweightRTObject comp)
コンポーネントを非アクティブ化します。 |
ReturnCode_t |
deactivateComponent(LightweightRTObject comp)
|
void |
destructor_(java.lang.Object obj)
Object を破棄する |
java.lang.Object |
ECDeleteFunc(ExecutionContextBase comp)
ExecutionContextのインスタンスを破棄します。 |
ExecutionContextBase |
ECNewFunc()
ExecutionContextのインスタンスを取得します。 |
static void |
ExtTrigExecutionContextInit(Manager manager)
このExecutionContextを生成するFactoryクラスを ExecutionContext用ObjectManagerに登録します。 |
LifeCycleState |
get_component_state(LightweightRTObject comp)
コンポーネントの状態を取得します。 |
ExecutionKind |
get_kind()
ExecutionKindを取得します。 |
ExecutionContextProfile |
get_profile()
ExecutionContextProfile を取得します。 |
double |
get_rate()
ExecutionContext の実行周期(Hz)を取得する Active 状態にてRTコンポーネントが実行される周期(単位:Hz)を取得す る。 |
RTObject[] |
getComponentList()
RTコンポーネントの参加者リストを取得する 現在登録されている参加者RTCのリストを取得する。 |
LifeCycleState |
getComponentState(LightweightRTObject comp)
|
ExecutionKind |
getKind()
|
java.lang.String |
getKindString(ExecutionKind kind)
ExecutionKind を文字列化する RTC::ExecutionKind で定義されている PERIODIC, EVENT_DRIVEN, OTHER を文字列化する。 |
ExecutionContextService |
getObjRef()
CORBA オブジェクト参照の取得 本オブジェクトの ExecutioncontextService としての CORBA オブジェ クト参照を取得する。 |
RTObject |
getOwner()
Ownerコンポーネントの参照を取得する このECのOwnerであるRTCの参照を取得する。 |
TimeValue |
getPeriod()
|
ExecutionContextProfile |
getProfile()
rofileを取得する ExecutionContextProfile を取得する。 |
Properties |
getProperties()
Propertiesを取得する ExecutionContextProfile::properties を取得する。 |
double |
getRate()
ExecutionContext の実行周期(Hz)を取得する Active 状態にてRTコンポーネントが実行される周期(単位:Hz)を取得す る。 |
void |
init(Properties props)
ExecutionContextクラスの初期化関数 |
void |
invokeWorker()
|
void |
invokeWorkerDo()
|
void |
invokeWorkerPostDo()
|
void |
invokeWorkerPreDo()
|
boolean |
is_running()
ExecutionContext 実行状態確認関数 {@.ja この操作は ExecutionContext が Runnning 状態の場合に true を返す。 |
boolean |
isAllCurrentState(LifeCycleState state)
|
boolean |
isAllNextState(LifeCycleState state)
|
boolean |
isOneOfCurrentState(LifeCycleState state)
|
boolean |
isOneOfNextState(LifeCycleState state)
|
boolean |
isRunning()
|
ReturnCode_t |
onActivated(RTObjectStateMachine comp,
long count)
|
ReturnCode_t |
onActivating(LightweightRTObject comp)
|
ReturnCode_t |
onAddedComponent(LightweightRTObject rtobj)
|
ReturnCode_t |
onAddingComponent(LightweightRTObject rtobj)
|
ReturnCode_t |
onDeactivated(RTObjectStateMachine comp,
long count)
|
ReturnCode_t |
onDeactivating(LightweightRTObject comp)
|
LifeCycleState |
onGetComponentState(LifeCycleState state)
|
ExecutionKind |
onGetKind(ExecutionKind kind)
|
ExecutionContextProfile |
onGetProfile(ExecutionContextProfile profile)
|
double |
onGetRate(double rate)
|
ReturnCode_t |
onRemovedComponent(LightweightRTObject rtobj)
|
ReturnCode_t |
onRemovingComponent(LightweightRTObject rtobj)
|
ReturnCode_t |
onReset(RTObjectStateMachine comp,
long count)
|
ReturnCode_t |
onResetting(LightweightRTObject comp)
|
ReturnCode_t |
onSetRate(double rate)
|
double |
onSettingRate(double rate)
|
ReturnCode_t |
onStarted()
|
ReturnCode_t |
onStarting()
|
ReturnCode_t |
onStopped()
|
ReturnCode_t |
onStopping()
|
ReturnCode_t |
onWaitingActivated(RTObjectStateMachine comp,
long count)
onWaitingActivated() template function |
ReturnCode_t |
onWaitingDeactivated(RTObjectStateMachine comp,
long count)
onWaitingDeactivated() template function |
ReturnCode_t |
onWaitingReset(RTObjectStateMachine comp,
long count)
onWaitingReset() template function |
int |
open()
ExecutionContext用のスレッドを生成します。 |
ReturnCode_t |
remove_component(LightweightRTObject comp)
RTコンポーネントを参加者リストから削除する {@.ja 指定したRTコンポーネントを参加者リストから削除する。 |
ReturnCode_t |
removeComponent(LightweightRTObject comp)
|
ReturnCode_t |
reset_component(LightweightRTObject comp)
コンポーネントをリセットします。 |
ReturnCode_t |
resetCcomponent(LightweightRTObject comp)
|
void |
run()
ExecutionContextを起動します。 |
ReturnCode_t |
set_rate(double rate)
ExecutionContextの実行周期(Hz)を設定します。 |
boolean |
setExecutionRate(Properties props)
Propertiesから実行コンテキストをセットする |
ReturnCode_t |
setKind(ExecutionKind kind)
ExecutionKind を設定する この ExecutionContext の ExecutionKind を設定する |
void |
setObjRef(ExecutionContextService ref)
CORBA オブジェクト参照の取得 本オブジェクトの ExecutioncontextService としての CORBA オブジェ クト参照を取得する。 |
ReturnCode_t |
setOwner(LightweightRTObject comp)
Ownerコンポーネントをセットする。 |
void |
setProperties(Properties props)
Propertiesをセットする ExecutionContextProfile::properties をセットする。 |
ReturnCode_t |
setRate(double rate)
ExecutionContext の実行周期(Hz)を設定する {@.ja Active 状態にてRTコンポーネントが実行される周期(単位:Hz)を設定す る。 |
boolean |
setTimeout(Properties props,
java.lang.String key,
TimeValue timevalue)
Propertiesから状態遷移Timeoutをセットする |
boolean |
setTransitionMode(Properties props,
java.lang.String key,
ExecutionContextBase.transitionModeHolder tmhldr)
Propertiesから状態遷移モードをセットする |
ReturnCode_t |
start()
ExecutionContext の実行を開始 {@.ja ExecutionContext の実行状態を Runnning とするためのリクエストを 発行する。 |
ReturnCode_t |
stop()
ExecutionContext の実行を停止 {@.ja ExecutionContext の状態を Stopped とするためのリクエストを発行す る。 |
int |
svc()
ExecutionContextにattachされている各Componentの処理を呼び出します。 |
boolean |
threadRunning()
|
void |
tick()
ExecutionContextの処理を進める ExecutionContextの処理を1周期分進めます。 |
ReturnCode_t |
waitForActivated(RTObjectStateMachine rtobj)
|
ReturnCode_t |
waitForDeactivated(RTObjectStateMachine rtobj)
|
ReturnCode_t |
waitForReset(RTObjectStateMachine rtobj)
|
クラス OpenRTM.ExtTrigExecutionContextServicePOA から継承されたメソッド |
---|
_all_interfaces, _invoke, _this, _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 |
フィールドの詳細 |
---|
TimeValue m_activationTimeout
TimeValue m_deactivationTimeout
TimeValue m_resetTimeout
boolean m_syncActivation
boolean m_syncDeactivation
boolean m_syncReset
protected java.util.ArrayList<ExtTrigExecutionContext.Comp> m_comps
ExecutionContextにatttachされているコンポーネントのリストです。
protected boolean m_running
ExecutionContextの実行状態です。
protected ExecutionContextWorker m_worker
protected ExecutionContextProfile m_profile
ExecutionContextProfileです。
protected long m_usec
ExecutionContextの動作周期です。
protected ExecutionContextService m_ref
ExecutionContextServiceとしてのCORBAオブジェクト参照です。
protected boolean m_nowait
protected java.lang.Thread m_thread
protected Logbuf rtcout
Logging用フォーマットオブジェクト
コンストラクタの詳細 |
---|
public ExtTrigExecutionContext()
メソッドの詳細 |
---|
public ExecutionContextService __this()
__this()
public void tick() throws org.omg.CORBA.SystemException
ExecutionContextの処理を1周期分進めます。
ExtTrigExecutionContextServiceOperations
内の tick
org.omg.CORBA.SystemException
public int open()
ExecutionContext用のスレッドを生成します。
public int svc()
ExecutionContextにattachされている各Componentの処理を呼び出します。 全Componentの処理を呼び出した後、次のイベントが発生するまで休止します。
public void run()
ExecutionContextを起動します。
java.lang.Runnable
内の run
public boolean is_running()
この操作は ExecutionContext が Runnning 状態の場合に true を返す。 Executioncontext が Running の間、当該 Executioncontext に参加し ている全てのアクティブRTコンポーネントが、ExecutionContext の実 行種類に応じて実行される。
ExecutionContextOperations
内の is_running
public boolean isRunning()
public ReturnCode_t onStarting()
public ReturnCode_t onStarted()
ExecutionContextBase
内の onStarted
public ReturnCode_t onStopping()
ExecutionContextBase
内の onStopping
public ReturnCode_t onStopped()
ExecutionContextBase
内の onStopped
public double onGetRate(double rate)
ExecutionContextBase
内の onGetRate
public double onSettingRate(double rate)
ExecutionContextBase
内の onSettingRate
public ReturnCode_t onSetRate(double rate)
ExecutionContextBase
内の onSetRate
public ReturnCode_t onAddingComponent(LightweightRTObject rtobj)
ExecutionContextBase
内の onAddingComponent
public ReturnCode_t onAddedComponent(LightweightRTObject rtobj)
ExecutionContextBase
内の onAddedComponent
public ReturnCode_t onRemovingComponent(LightweightRTObject rtobj)
ExecutionContextBase
内の onRemovingComponent
public ReturnCode_t onRemovedComponent(LightweightRTObject rtobj)
ExecutionContextBase
内の onRemovedComponent
public ReturnCode_t onActivating(LightweightRTObject comp)
ExecutionContextBase
内の onActivating
public ReturnCode_t onActivated(RTObjectStateMachine comp, long count)
ExecutionContextBase
内の onActivated
public ReturnCode_t onDeactivating(LightweightRTObject comp)
ExecutionContextBase
内の onDeactivating
public ReturnCode_t onDeactivated(RTObjectStateMachine comp, long count)
ExecutionContextBase
内の onDeactivated
public ReturnCode_t onResetting(LightweightRTObject comp)
ExecutionContextBase
内の onResetting
public boolean threadRunning()
public ReturnCode_t onReset(RTObjectStateMachine comp, long count)
ExecutionContextBase
内の onReset
public LifeCycleState onGetComponentState(LifeCycleState state)
ExecutionContextBase
内の onGetComponentState
public ExecutionKind onGetKind(ExecutionKind kind)
ExecutionContextBase
内の onGetKind
public ExecutionContextProfile onGetProfile(ExecutionContextProfile profile)
ExecutionContextBase
内の onGetProfile
public ReturnCode_t onWaitingActivated(RTObjectStateMachine comp, long count)
ExecutionContextBase
内の onWaitingActivated
public ReturnCode_t onWaitingDeactivated(RTObjectStateMachine comp, long count)
ExecutionContextBase
の記述:
ExecutionContextBase
内の onWaitingDeactivated
public ReturnCode_t onWaitingReset(RTObjectStateMachine comp, long count)
ExecutionContextBase
の記述:
ExecutionContextBase
内の onWaitingReset
public ReturnCode_t start()
ExecutionContext の実行状態を Runnning とするためのリクエストを 発行する。ExecutionContext の状態が遷移すると ComponentAction::on_startup が呼び出される。参加しているRTコンポー ネントが、初期化されるまで ExecutionContext を開始することはでき ない。ExecutionContext は複数回開始/停止を繰り返すことができる。
ExecutionContextOperations
内の start
public ReturnCode_t stop()
ExecutionContext の状態を Stopped とするためのリクエストを発行す る。遷移が発生した場合は、ComponentAction::on_shutdown が呼び出 される。参加しているRTコンポーネントが終了する前に ExecutionContext を停止する必要がある。ExecutionContext は複数回 開始/停止を繰り返すことができる。
ExecutionContextOperations
内の stop
public double get_rate()
Active 状態にてRTコンポーネントが実行される周期(単位:Hz)を取得す る。
ExecutionContextOperations
内の get_rate
public TimeValue getPeriod()
public ReturnCode_t set_rate(double rate)
ExecutionContextの実行周期(Hz)を設定します。
ExecutionContextOperations
内の set_rate
rate
- 実行周期(Hz)public ReturnCode_t activate_component(LightweightRTObject comp)
コンポーネントをアクティブ化します。
ExecutionContextOperations
内の activate_component
comp
- アクティブ化対象コンポーネント
public ReturnCode_t activateComponent(LightweightRTObject comp)
public ReturnCode_t waitForActivated(RTObjectStateMachine rtobj)
public ReturnCode_t deactivate_component(LightweightRTObject comp)
コンポーネントを非アクティブ化します。
ExecutionContextOperations
内の deactivate_component
comp
- 非アクティブ化対象コンポーネント
public ReturnCode_t deactivateComponent(LightweightRTObject comp)
public ReturnCode_t waitForDeactivated(RTObjectStateMachine rtobj)
public ReturnCode_t reset_component(LightweightRTObject comp)
コンポーネントをリセットします。
ExecutionContextOperations
内の reset_component
comp
- リセット対象コンポーネント
public ReturnCode_t resetCcomponent(LightweightRTObject comp)
public ReturnCode_t waitForReset(RTObjectStateMachine rtobj)
public LifeCycleState get_component_state(LightweightRTObject comp)
コンポーネントの状態を取得します。
ExecutionContextOperations
内の get_component_state
comp
- 状態取得対象コンポーネント
public LifeCycleState getComponentState(LightweightRTObject comp)
public ExecutionKind get_kind()
ExecutionKindを取得します。
ExecutionContextOperations
内の get_kind
public ExecutionKind getKind()
public ReturnCode_t add_component(LightweightRTObject comp)
指定したRTコンポーネントを参加者リストに追加する。追加されたRTコ ンポーネントは attach_context が呼ばれ、Inactive 状態に遷移する。 指定されたRTコンポーネントがnullの場合は、BAD_PARAMETER が返され る。指定されたRTコンポーネントが DataFlowComponent 以外の場合は、 BAD_PARAMETER が返される。
ExecutionContextOperations
内の add_component
comp
- 追加対象RTコンポーネント
public ReturnCode_t addComponent(LightweightRTObject comp)
public ReturnCode_t bindComponent(RTObject_impl rtc)
コンポーネントをバインドする。
ExecutionContextBase
内の bindComponent
rtc
- RTコンポーネント
public ReturnCode_t remove_component(LightweightRTObject comp)
指定したRTコンポーネントを参加者リストから削除する。削除された RTコンポーネントは detach_context が呼ばれる。指定されたRTコンポー ネントが参加者リストに登録されていない場合は、BAD_PARAMETER が返 される。
ExecutionContextOperations
内の remove_component
comp
- 削除対象RTコンポーネント
public ReturnCode_t removeComponent(LightweightRTObject comp)
public ExecutionContextProfile get_profile()
ExecutionContextProfile を取得します。
ExecutionContextServiceOperations
内の get_profile
public ExecutionContextBase creator_()
ObjectCreator<ExecutionContextBase>
内の creator_
public void destructor_(java.lang.Object obj)
ObjectDestructor
内の destructor_
obj
- 破棄するインタスタンス
public static void ExtTrigExecutionContextInit(Manager manager)
このExecutionContextを生成するFactoryクラスを ExecutionContext用ObjectManagerに登録します。
manager
- Managerオブジェクトpublic java.lang.Object ECDeleteFunc(ExecutionContextBase comp)
ExecutionContextのインスタンスを破棄します。
ECNewDeleteFunc
内の ECDeleteFunc
comp
- 破棄対象ExecutionContextインスタンスpublic ExecutionContextBase ECNewFunc()
ExecutionContextのインスタンスを取得します。
ECNewDeleteFunc
内の ECNewFunc
public void init(Properties props)
ExecutionContextBase
内の init
public void setObjRef(ExecutionContextService ref)
本オブジェクトの ExecutioncontextService としての CORBA オブジェ クト参照を取得する。
ExecutionContextBase
内の setObjRef
ref
- CORBA オブジェクト参照
public ExecutionContextService getObjRef()
本オブジェクトの ExecutioncontextService としての CORBA オブジェ クト参照を取得する。
ExecutionContextBase
内の getObjRef
public ReturnCode_t setRate(double rate)
Active 状態にてRTコンポーネントが実行される周期(単位:Hz)を設定す る。実行周期の変更は、DataFlowComponentAction の on_rate_changed によって各RTコンポーネントに伝達される。
ExecutionContextBase
内の setRate
rate
- 処理周期(単位:Hz)
public double getRate()
Active 状態にてRTコンポーネントが実行される周期(単位:Hz)を取得す る。
ExecutionContextBase
内の getRate
public final java.lang.String getKindString(ExecutionKind kind)
RTC::ExecutionKind で定義されている PERIODIC, EVENT_DRIVEN, OTHER を文字列化する。
ExecutionContextBase
内の getKindString
kind
- ExecutionKind
public ReturnCode_t setKind(ExecutionKind kind)
この ExecutionContext の ExecutionKind を設定する
ExecutionContextBase
内の setKind
kind
- ExecutionKind
public ReturnCode_t setOwner(LightweightRTObject comp)
このECのOwnerとなるRTCをセットする。
ExecutionContextBase
内の setOwner
comp
- OwnerとなるRTコンポーネント
public RTObject getOwner()
このECのOwnerであるRTCの参照を取得する。
ExecutionContextBase
内の getOwner
public RTObject[] getComponentList()
現在登録されている参加者RTCのリストを取得する。
ExecutionContextBase
内の getComponentList
public void setProperties(Properties props)
ExecutionContextProfile::properties をセットする。
ExecutionContextBase
内の setProperties
props
- ExecutionContextProfile::properties にセットするプロパティー
public Properties getProperties()
ExecutionContextProfile::properties を取得する。
ExecutionContextBase
内の getProperties
public ExecutionContextProfile getProfile()
ExecutionContextProfile を取得する。
ExecutionContextBase
内の getProfile
public boolean setTimeout(Properties props, java.lang.String key, TimeValue timevalue)
ExecutionContextBase
の記述:
ExecutionContextBase
内の setTimeout
props
- ExecutionContextProfile::properties にセットするプロパティー
public boolean setExecutionRate(Properties props)
ExecutionContextBase
の記述:
ExecutionContextBase
内の setExecutionRate
props
- ExecutionContextProfile::properties にセットするプロパティー
public boolean setTransitionMode(Properties props, java.lang.String key, ExecutionContextBase.transitionModeHolder tmhldr)
ExecutionContextBase
の記述:
ExecutionContextBase
内の setTransitionMode
props
- ExecutionContextProfile::properties にセットするプロパティー
public boolean isAllCurrentState(LifeCycleState state)
ExecutionContextBase
内の isAllCurrentState
public boolean isAllNextState(LifeCycleState state)
ExecutionContextBase
内の isAllNextState
public boolean isOneOfCurrentState(LifeCycleState state)
ExecutionContextBase
内の isOneOfCurrentState
public boolean isOneOfNextState(LifeCycleState state)
ExecutionContextBase
内の isOneOfNextState
public void invokeWorker()
ExecutionContextBase
内の invokeWorker
public void invokeWorkerPreDo()
ExecutionContextBase
内の invokeWorkerPreDo
public void invokeWorkerDo()
ExecutionContextBase
内の invokeWorkerDo
public void invokeWorkerPostDo()
ExecutionContextBase
内の invokeWorkerPostDo
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |