|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.omg.PortableServer.Servant
RTC.ExecutionContextServicePOA
jp.go.aist.rtm.RTC.executionContext.PeriodicExecutionContext
public class PeriodicExecutionContext
Periodic Sampled Data Processing(周期実行用)ExecutionContextクラスです。
入れ子のクラスの概要 | |
---|---|
protected class |
PeriodicExecutionContext.Comp
ExecutionContextにattachされたコンポーネントのメソッド呼出用クラスです。 |
protected class |
PeriodicExecutionContext.DFP
DataFlowComponentのAction定義用抽象クラスです。 |
protected class |
PeriodicExecutionContext.DFPBase
DataFlowComponentのAction定義用抽象クラスです。 |
protected class |
PeriodicExecutionContext.find_comp
管理対象コンポーネント検索用ヘルパークラスです。 |
インタフェース jp.go.aist.rtm.RTC.executionContext.ExecutionContextBase から継承された入れ子のクラス/インタフェース |
---|
ExecutionContextBase.transitionModeHolder |
フィールドの概要 | |
---|---|
(package private) TimeValue |
m_activationTimeout
|
protected java.util.Vector<PeriodicExecutionContext.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
|
(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
ExecutionContextWorkerです。 |
protected Logbuf |
rtcout
Logging用フォーマットオブジェクト |
protected boolean |
ticked_
|
コンストラクタの概要 | |
---|---|
PeriodicExecutionContext()
デフォルトコンストラクタ {@.ja デフォルトコンストラクタ プロファイルに以下の項目を設定する。 |
メソッドの概要 | |
---|---|
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)
コンポーネントをバインドする。 |
int |
close(long flags)
スレッド終了関数です。 |
ExecutionContextBase |
creator_()
PeriodicExecutionContext を生成する |
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のインスタンスを取得します。 |
LifeCycleState |
get_component_state(LightweightRTObject comp)
コンポーネントの状態を取得します。 |
ExecutionKind |
get_kind()
ExecutionKindを取得します。 |
ExecutionContextProfile |
get_profile()
ExecutionContextProfile を取得します。 |
double |
get_rate()
ExecutionContextの実行周期(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)を取得す る。 |
ExecutionContextService |
getRef()
本オブジェクトのExecutionContextServiceとしてのCORBAオブジェクト参照を設定します。 |
java.lang.String |
getStateString(LifeCycleState state)
|
void |
init(Properties props)
ExecutionContextクラスの初期化関数 |
void |
invokeWorker()
|
void |
invokeWorkerDo()
|
void |
invokeWorkerPostDo()
|
void |
invokeWorkerPreDo()
|
boolean |
is_running()
ExecutionContextが実行中かどうかを取得します。 |
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)
|
boolean |
onIsRunning(boolean running)
|
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用のスレッドを生成します。 |
static void |
PeriodicExecutionContextInit(Manager manager)
このExecutionContextを生成するFactoryクラスを ExecutionContext用ObjectManagerに登録します。 |
ReturnCode_t |
remove_component(LightweightRTObject comp)
RTコンポーネントを参加者リストから削除する {@.ja 指定したRTコンポーネントを参加者リストから削除する。 |
ReturnCode_t |
removeComponent(LightweightRTObject comp)
|
ReturnCode_t |
reset_component(LightweightRTObject comp)
コンポーネントをリセットします。 |
ReturnCode_t |
resetComponent(LightweightRTObject comp)
|
void |
run()
スレッド実行関数です。 |
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)
本オブジェクトの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 をスタートします。 |
ReturnCode_t |
stop()
ExecutionContext をストップします。 |
int |
svc()
ExecutionContext用のスレッドの実行関数です。 |
boolean |
threadRunning()
|
ReturnCode_t |
waitForActivated(RTObjectStateMachine rtobj)
|
ReturnCode_t |
waitForDeactivated(RTObjectStateMachine rtobj)
|
ReturnCode_t |
waitForReset(RTObjectStateMachine rtobj)
|
クラス RTC.ExecutionContextServicePOA から継承されたメソッド |
---|
_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.Vector<PeriodicExecutionContext.Comp> m_comps
ExecutionContextにatttachされているコンポーネントのリストです。
protected ExecutionContextWorker m_worker
ExecutionContextWorkerです。
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 boolean ticked_
protected Logbuf rtcout
Logging用フォーマットオブジェクト
コンストラクタの詳細 |
---|
public PeriodicExecutionContext()
デフォルトコンストラクタ プロファイルに以下の項目を設定する。 - kind : PERIODIC - rate : 0.0
メソッドの詳細 |
---|
public ExecutionContextService __this()
__this()
public void setObjRef(ExecutionContextService ref)
本オブジェクトのExecutionContextServiceとしてのCORBAオブジェクト参照を設定します。
ExecutionContextBase
内の setObjRef
ref
- CORBAオブジェクト参照public ExecutionContextService getRef()
本オブジェクトのExecutionContextServiceとしてのCORBAオブジェクト参照を設定します。
public int open()
ExecutionContext用のスレッドを生成します。
public int svc()
ExecutionContext用のスレッドの実行関数です。 登録されたコンポーネントの処理を呼び出します。
public void run()
スレッド実行関数です。
java.lang.Runnable
内の run
public int close(long flags)
スレッド終了関数です。
public boolean is_running()
ExecutionContextが実行中かどうかを取得します。
ExecutionContextOperations
内の is_running
public boolean isRunning()
public boolean onIsRunning(boolean running)
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 ReturnCode_t onReset(RTObjectStateMachine comp, long count)
ExecutionContextBase
内の onReset
public boolean threadRunning()
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 をスタートします。
ExecutionContextOperations
内の start
public ReturnCode_t stop()
ExecutionContext をストップします。
ExecutionContextOperations
内の stop
public double get_rate()
ExecutionContextの実行周期(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 resetComponent(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 final java.lang.String getStateString(LifeCycleState state)
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 static void PeriodicExecutionContextInit(Manager manager)
このExecutionContextを生成するFactoryクラスを ExecutionContext用ObjectManagerに登録します。
manager
- Managerオブジェクトpublic ExecutionContextBase creator_()
ObjectCreator<ExecutionContextBase>
内の creator_
public void destructor_(java.lang.Object obj)
ObjectDestructor
内の destructor_
obj
- 破棄するインタスタンス
public ExecutionContextBase ECNewFunc()
ExecutionContextのインスタンスを取得します。
ECNewDeleteFunc
内の ECNewFunc
public java.lang.Object ECDeleteFunc(ExecutionContextBase comp)
ExecutionContextのインスタンスを破棄します。
ECNewDeleteFunc
内の ECDeleteFunc
comp
- 破棄対象ExecutionContextインスタンスpublic void init(Properties props)
ExecutionContextBase
内の init
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
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |