jp.go.aist.rtm.RTC.executionContext
クラス ExtTrigExecutionContext

java.lang.Object
  上位を拡張 org.omg.PortableServer.Servant
      上位を拡張 OpenRTM.ExtTrigExecutionContextServicePOA
          上位を拡張 jp.go.aist.rtm.RTC.executionContext.ExtTrigExecutionContext
すべての実装されたインタフェース:
SDOServiceOperations, java.lang.Runnable, ECNewDeleteFunc, ExecutionContextBase, ObjectCreator<ExecutionContextBase>, ObjectDestructor, ExtTrigExecutionContextServiceOperations, org.omg.CORBA.portable.InvokeHandler, ExecutionContextOperations, ExecutionContextServiceOperations

public class ExtTrigExecutionContext
extends ExtTrigExecutionContextServicePOA
implements java.lang.Runnable, ObjectCreator<ExecutionContextBase>, ObjectDestructor, ExecutionContextBase

ステップ実行が可能な 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
 

フィールドの詳細

m_activationTimeout

TimeValue m_activationTimeout

m_deactivationTimeout

TimeValue m_deactivationTimeout

m_resetTimeout

TimeValue m_resetTimeout

m_syncActivation

boolean m_syncActivation

m_syncDeactivation

boolean m_syncDeactivation

m_syncReset

boolean m_syncReset

m_comps

protected java.util.ArrayList<ExtTrigExecutionContext.Comp> m_comps

ExecutionContextにatttachされているコンポーネントのリストです。


m_running

protected boolean m_running

ExecutionContextの実行状態です。


m_worker

protected ExecutionContextWorker m_worker

m_profile

protected ExecutionContextProfile m_profile

ExecutionContextProfileです。


m_usec

protected long m_usec

ExecutionContextの動作周期です。


m_ref

protected ExecutionContextService m_ref

ExecutionContextServiceとしてのCORBAオブジェクト参照です。


m_nowait

protected boolean m_nowait

m_thread

protected java.lang.Thread m_thread

rtcout

protected Logbuf rtcout

Logging用フォーマットオブジェクト

コンストラクタの詳細

ExtTrigExecutionContext

public ExtTrigExecutionContext()
コンストラクタ

メソッドの詳細

__this

public ExecutionContextService __this()

__this()

戻り値:
ExecutionContextService

tick

public void tick()
          throws org.omg.CORBA.SystemException
ExecutionContextの処理を進める

ExecutionContextの処理を1周期分進めます。

定義:
インタフェース ExtTrigExecutionContextServiceOperations 内の tick
例外:
org.omg.CORBA.SystemException

open

public int open()

ExecutionContext用のスレッドを生成します。


svc

public int svc()

ExecutionContextにattachされている各Componentの処理を呼び出します。 全Componentの処理を呼び出した後、次のイベントが発生するまで休止します。


run

public void run()

ExecutionContextを起動します。

定義:
インタフェース java.lang.Runnable 内の run

is_running

public boolean is_running()
ExecutionContext 実行状態確認関数

この操作は ExecutionContext が Runnning 状態の場合に true を返す。 Executioncontext が Running の間、当該 Executioncontext に参加し ている全てのアクティブRTコンポーネントが、ExecutionContext の実 行種類に応じて実行される。

定義:
インタフェース ExecutionContextOperations 内の is_running
戻り値:
状態確認関数(動作中:true、停止中:false)

isRunning

public boolean isRunning()

onStarting

public ReturnCode_t onStarting()

onStarted

public ReturnCode_t onStarted()
定義:
インタフェース ExecutionContextBase 内の onStarted

onStopping

public ReturnCode_t onStopping()
定義:
インタフェース ExecutionContextBase 内の onStopping

onStopped

public ReturnCode_t onStopped()
定義:
インタフェース ExecutionContextBase 内の onStopped

onGetRate

public double onGetRate(double rate)
定義:
インタフェース ExecutionContextBase 内の onGetRate

onSettingRate

public double onSettingRate(double rate)
定義:
インタフェース ExecutionContextBase 内の onSettingRate

onSetRate

public ReturnCode_t onSetRate(double rate)
定義:
インタフェース ExecutionContextBase 内の onSetRate

onAddingComponent

public ReturnCode_t onAddingComponent(LightweightRTObject rtobj)
定義:
インタフェース ExecutionContextBase 内の onAddingComponent

onAddedComponent

public ReturnCode_t onAddedComponent(LightweightRTObject rtobj)
定義:
インタフェース ExecutionContextBase 内の onAddedComponent

onRemovingComponent

public ReturnCode_t onRemovingComponent(LightweightRTObject rtobj)
定義:
インタフェース ExecutionContextBase 内の onRemovingComponent

onRemovedComponent

public ReturnCode_t onRemovedComponent(LightweightRTObject rtobj)
定義:
インタフェース ExecutionContextBase 内の onRemovedComponent

onActivating

public ReturnCode_t onActivating(LightweightRTObject comp)
定義:
インタフェース ExecutionContextBase 内の onActivating

onActivated

public ReturnCode_t onActivated(RTObjectStateMachine comp,
                                long count)
定義:
インタフェース ExecutionContextBase 内の onActivated

onDeactivating

public ReturnCode_t onDeactivating(LightweightRTObject comp)
定義:
インタフェース ExecutionContextBase 内の onDeactivating

onDeactivated

public ReturnCode_t onDeactivated(RTObjectStateMachine comp,
                                  long count)
定義:
インタフェース ExecutionContextBase 内の onDeactivated

onResetting

public ReturnCode_t onResetting(LightweightRTObject comp)
定義:
インタフェース ExecutionContextBase 内の onResetting

threadRunning

public boolean threadRunning()

onReset

public ReturnCode_t onReset(RTObjectStateMachine comp,
                            long count)
定義:
インタフェース ExecutionContextBase 内の onReset

onGetComponentState

public LifeCycleState onGetComponentState(LifeCycleState state)
定義:
インタフェース ExecutionContextBase 内の onGetComponentState

onGetKind

public ExecutionKind onGetKind(ExecutionKind kind)
定義:
インタフェース ExecutionContextBase 内の onGetKind

onGetProfile

public ExecutionContextProfile onGetProfile(ExecutionContextProfile profile)
定義:
インタフェース ExecutionContextBase 内の onGetProfile

onWaitingActivated

public ReturnCode_t onWaitingActivated(RTObjectStateMachine comp,
                                       long count)
onWaitingActivated() template function

定義:
インタフェース ExecutionContextBase 内の onWaitingActivated

onWaitingDeactivated

public ReturnCode_t onWaitingDeactivated(RTObjectStateMachine comp,
                                         long count)
インタフェース ExecutionContextBase の記述:
onWaitingDeactivated() template function

定義:
インタフェース ExecutionContextBase 内の onWaitingDeactivated

onWaitingReset

public ReturnCode_t onWaitingReset(RTObjectStateMachine comp,
                                   long count)
インタフェース ExecutionContextBase の記述:
onWaitingReset() template function

定義:
インタフェース ExecutionContextBase 内の onWaitingReset

start

public ReturnCode_t start()
ExecutionContext の実行を開始

ExecutionContext の実行状態を Runnning とするためのリクエストを 発行する。ExecutionContext の状態が遷移すると ComponentAction::on_startup が呼び出される。参加しているRTコンポー ネントが、初期化されるまで ExecutionContext を開始することはでき ない。ExecutionContext は複数回開始/停止を繰り返すことができる。

定義:
インタフェース ExecutionContextOperations 内の start
戻り値:
ReturnCode_t 型のリターンコード

stop

public ReturnCode_t stop()
ExecutionContext の実行を停止

ExecutionContext の状態を Stopped とするためのリクエストを発行す る。遷移が発生した場合は、ComponentAction::on_shutdown が呼び出 される。参加しているRTコンポーネントが終了する前に ExecutionContext を停止する必要がある。ExecutionContext は複数回 開始/停止を繰り返すことができる。

定義:
インタフェース ExecutionContextOperations 内の stop
戻り値:
ReturnCode_t 型のリターンコード

get_rate

public double get_rate()
ExecutionContext の実行周期(Hz)を取得する

Active 状態にてRTコンポーネントが実行される周期(単位:Hz)を取得す る。

定義:
インタフェース ExecutionContextOperations 内の get_rate
戻り値:
処理周期(単位:Hz)

getPeriod

public TimeValue getPeriod()

set_rate

public ReturnCode_t set_rate(double rate)

ExecutionContextの実行周期(Hz)を設定します。

定義:
インタフェース ExecutionContextOperations 内の set_rate
パラメータ:
rate - 実行周期(Hz)

activate_component

public ReturnCode_t activate_component(LightweightRTObject comp)

コンポーネントをアクティブ化します。

定義:
インタフェース ExecutionContextOperations 内の activate_component
パラメータ:
comp - アクティブ化対象コンポーネント
戻り値:
実行結果

activateComponent

public ReturnCode_t activateComponent(LightweightRTObject comp)

waitForActivated

public ReturnCode_t waitForActivated(RTObjectStateMachine rtobj)

deactivate_component

public ReturnCode_t deactivate_component(LightweightRTObject comp)

コンポーネントを非アクティブ化します。

定義:
インタフェース ExecutionContextOperations 内の deactivate_component
パラメータ:
comp - 非アクティブ化対象コンポーネント
戻り値:
実行結果

deactivateComponent

public ReturnCode_t deactivateComponent(LightweightRTObject comp)

waitForDeactivated

public ReturnCode_t waitForDeactivated(RTObjectStateMachine rtobj)

reset_component

public ReturnCode_t reset_component(LightweightRTObject comp)

コンポーネントをリセットします。

定義:
インタフェース ExecutionContextOperations 内の reset_component
パラメータ:
comp - リセット対象コンポーネント
戻り値:
実行結果

resetCcomponent

public ReturnCode_t resetCcomponent(LightweightRTObject comp)

waitForReset

public ReturnCode_t waitForReset(RTObjectStateMachine rtobj)

get_component_state

public LifeCycleState get_component_state(LightweightRTObject comp)

コンポーネントの状態を取得します。

定義:
インタフェース ExecutionContextOperations 内の get_component_state
パラメータ:
comp - 状態取得対象コンポーネント
戻り値:
コンポーネント状態

getComponentState

public LifeCycleState getComponentState(LightweightRTObject comp)

get_kind

public ExecutionKind get_kind()

ExecutionKindを取得します。

定義:
インタフェース ExecutionContextOperations 内の get_kind
戻り値:
ExecutionKind

getKind

public ExecutionKind getKind()

add_component

public ReturnCode_t add_component(LightweightRTObject comp)
RTコンポーネントを追加する

指定したRTコンポーネントを参加者リストに追加する。追加されたRTコ ンポーネントは attach_context が呼ばれ、Inactive 状態に遷移する。 指定されたRTコンポーネントがnullの場合は、BAD_PARAMETER が返され る。指定されたRTコンポーネントが DataFlowComponent 以外の場合は、 BAD_PARAMETER が返される。

定義:
インタフェース ExecutionContextOperations 内の add_component
パラメータ:
comp - 追加対象RTコンポーネント
戻り値:
ReturnCode_t 型のリターンコード

addComponent

public ReturnCode_t addComponent(LightweightRTObject comp)

bindComponent

public ReturnCode_t bindComponent(RTObject_impl rtc)
コンポーネントをバインドする。

コンポーネントをバインドする。

定義:
インタフェース ExecutionContextBase 内の bindComponent
パラメータ:
rtc - RTコンポーネント
戻り値:
ReturnCode_t 型のリターンコード

remove_component

public ReturnCode_t remove_component(LightweightRTObject comp)
RTコンポーネントを参加者リストから削除する

指定したRTコンポーネントを参加者リストから削除する。削除された RTコンポーネントは detach_context が呼ばれる。指定されたRTコンポー ネントが参加者リストに登録されていない場合は、BAD_PARAMETER が返 される。

定義:
インタフェース ExecutionContextOperations 内の remove_component
パラメータ:
comp - 削除対象RTコンポーネント
戻り値:
ReturnCode_t 型のリターンコード

removeComponent

public ReturnCode_t removeComponent(LightweightRTObject comp)

get_profile

public ExecutionContextProfile get_profile()

ExecutionContextProfile を取得します。

定義:
インタフェース ExecutionContextServiceOperations 内の get_profile
戻り値:
ExecutionContextProfile

creator_

public ExecutionContextBase creator_()
OpenHRPExecutionContext を生成する

定義:
インタフェース ObjectCreator<ExecutionContextBase> 内の creator_
戻り値:
生成されたExtTrigExecutionContext

destructor_

public void destructor_(java.lang.Object obj)
Object を破棄する

定義:
インタフェース ObjectDestructor 内の destructor_
パラメータ:
obj - 破棄するインタスタンス

ExtTrigExecutionContextInit

public static void ExtTrigExecutionContextInit(Manager manager)

このExecutionContextを生成するFactoryクラスを ExecutionContext用ObjectManagerに登録します。

パラメータ:
manager - Managerオブジェクト

ECDeleteFunc

public java.lang.Object ECDeleteFunc(ExecutionContextBase comp)

ExecutionContextのインスタンスを破棄します。

定義:
インタフェース ECNewDeleteFunc 内の ECDeleteFunc
パラメータ:
comp - 破棄対象ExecutionContextインスタンス

ECNewFunc

public ExecutionContextBase ECNewFunc()

ExecutionContextのインスタンスを取得します。

定義:
インタフェース ECNewDeleteFunc 内の ECNewFunc
戻り値:
ExecutionContextインスタンス

init

public void init(Properties props)
ExecutionContextクラスの初期化関数

定義:
インタフェース ExecutionContextBase 内の init

setObjRef

public void setObjRef(ExecutionContextService ref)
CORBA オブジェクト参照の取得

本オブジェクトの ExecutioncontextService としての CORBA オブジェ クト参照を取得する。

定義:
インタフェース ExecutionContextBase 内の setObjRef
パラメータ:
ref - CORBA オブジェクト参照

getObjRef

public ExecutionContextService getObjRef()
CORBA オブジェクト参照の取得

本オブジェクトの ExecutioncontextService としての CORBA オブジェ クト参照を取得する。

定義:
インタフェース ExecutionContextBase 内の getObjRef
戻り値:
CORBA オブジェクト参照

setRate

public ReturnCode_t setRate(double rate)
ExecutionContext の実行周期(Hz)を設定する

Active 状態にてRTコンポーネントが実行される周期(単位:Hz)を設定す る。実行周期の変更は、DataFlowComponentAction の on_rate_changed によって各RTコンポーネントに伝達される。

定義:
インタフェース ExecutionContextBase 内の setRate
パラメータ:
rate - 処理周期(単位:Hz)
戻り値:
ReturnCode_t 型のリターンコード RTC_OK: 正常終了 BAD_PARAMETER: 設定値が負の値

getRate

public double getRate()
ExecutionContext の実行周期(Hz)を取得する

Active 状態にてRTコンポーネントが実行される周期(単位:Hz)を取得す る。

定義:
インタフェース ExecutionContextBase 内の getRate
戻り値:
処理周期(単位:Hz)

getKindString

public final java.lang.String getKindString(ExecutionKind kind)
ExecutionKind を文字列化する

RTC::ExecutionKind で定義されている PERIODIC, EVENT_DRIVEN, OTHER を文字列化する。

定義:
インタフェース ExecutionContextBase 内の getKindString
パラメータ:
kind - ExecutionKind
戻り値:
文字列化されたExecutionKind

setKind

public ReturnCode_t setKind(ExecutionKind kind)
ExecutionKind を設定する

この ExecutionContext の ExecutionKind を設定する

定義:
インタフェース ExecutionContextBase 内の setKind
パラメータ:
kind - ExecutionKind

setOwner

public ReturnCode_t setOwner(LightweightRTObject comp)
Ownerコンポーネントをセットする。

このECのOwnerとなるRTCをセットする。

定義:
インタフェース ExecutionContextBase 内の setOwner
パラメータ:
comp - OwnerとなるRTコンポーネント
戻り値:
ReturnCode_t 型のリターンコード

getOwner

public RTObject getOwner()
Ownerコンポーネントの参照を取得する

このECのOwnerであるRTCの参照を取得する。

定義:
インタフェース ExecutionContextBase 内の getOwner
戻り値:
OwnerRTコンポーネントの参照

getComponentList

public RTObject[] getComponentList()
RTコンポーネントの参加者リストを取得する

現在登録されている参加者RTCのリストを取得する。

定義:
インタフェース ExecutionContextBase 内の getComponentList
戻り値:
参加者RTCのリスト

setProperties

public void setProperties(Properties props)
Propertiesをセットする

ExecutionContextProfile::properties をセットする。

定義:
インタフェース ExecutionContextBase 内の setProperties
パラメータ:
props - ExecutionContextProfile::properties にセットするプロパティー

getProperties

public Properties getProperties()
Propertiesを取得する

ExecutionContextProfile::properties を取得する。

定義:
インタフェース ExecutionContextBase 内の getProperties
戻り値:
Propertiesに変換された ExecutionContextProfile::properties

getProfile

public ExecutionContextProfile getProfile()
rofileを取得する

ExecutionContextProfile を取得する。

定義:
インタフェース ExecutionContextBase 内の getProfile
戻り値:
ExecutionContextProfile

setTimeout

public boolean setTimeout(Properties props,
                          java.lang.String key,
                          TimeValue timevalue)
インタフェース ExecutionContextBase の記述:
Propertiesから状態遷移Timeoutをセットする

定義:
インタフェース ExecutionContextBase 内の setTimeout
パラメータ:
props - ExecutionContextProfile::properties にセットするプロパティー

setExecutionRate

public boolean setExecutionRate(Properties props)
インタフェース ExecutionContextBase の記述:
Propertiesから実行コンテキストをセットする

定義:
インタフェース ExecutionContextBase 内の setExecutionRate
パラメータ:
props - ExecutionContextProfile::properties にセットするプロパティー

setTransitionMode

public boolean setTransitionMode(Properties props,
                                 java.lang.String key,
                                 ExecutionContextBase.transitionModeHolder tmhldr)
インタフェース ExecutionContextBase の記述:
Propertiesから状態遷移モードをセットする

定義:
インタフェース ExecutionContextBase 内の setTransitionMode
パラメータ:
props - ExecutionContextProfile::properties にセットするプロパティー

isAllCurrentState

public boolean isAllCurrentState(LifeCycleState state)
定義:
インタフェース ExecutionContextBase 内の isAllCurrentState

isAllNextState

public boolean isAllNextState(LifeCycleState state)
定義:
インタフェース ExecutionContextBase 内の isAllNextState

isOneOfCurrentState

public boolean isOneOfCurrentState(LifeCycleState state)
定義:
インタフェース ExecutionContextBase 内の isOneOfCurrentState

isOneOfNextState

public boolean isOneOfNextState(LifeCycleState state)
定義:
インタフェース ExecutionContextBase 内の isOneOfNextState

invokeWorker

public void invokeWorker()
定義:
インタフェース ExecutionContextBase 内の invokeWorker

invokeWorkerPreDo

public void invokeWorkerPreDo()
定義:
インタフェース ExecutionContextBase 内の invokeWorkerPreDo

invokeWorkerDo

public void invokeWorkerDo()
定義:
インタフェース ExecutionContextBase 内の invokeWorkerDo

invokeWorkerPostDo

public void invokeWorkerPostDo()
定義:
インタフェース ExecutionContextBase 内の invokeWorkerPostDo