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

java.lang.Object
  上位を拡張 org.omg.PortableServer.Servant
      上位を拡張 RTC.ExtTrigExecutionContextServicePOA
          上位を拡張 jp.go.aist.rtm.RTC.executionContext.ExecutionContextBase
              上位を拡張 jp.go.aist.rtm.RTC.executionContext.PeriodicExecutionContext
すべての実装されたインタフェース:
SDOServiceOperations, java.lang.Runnable, ECNewDeleteFunc, org.omg.CORBA.portable.InvokeHandler, ExecutionContextOperations, ExecutionContextServiceOperations, ExtTrigExecutionContextServiceOperations
直系の既知のサブクラス:
ExtTrigExecutionContext

public class PeriodicExecutionContext
extends ExecutionContextBase
implements java.lang.Runnable

Periodic Sampled Data Processing(周期実行用)ExecutionContextクラスです。


コンストラクタの概要
PeriodicExecutionContext()
          デフォルト・コンストラクタです。
PeriodicExecutionContext(DataFlowComponent owner)
          コンストラクタです。
PeriodicExecutionContext(DataFlowComponent owner, double rate)
          コンストラクタです。
 
メソッドの概要
 ReturnCode_t activate_component(LightweightRTObject comp)
          コンポーネントをアクティブ化します。
 ReturnCode_t add(LightweightRTObject comp)
          コンポーネントを追加します。
 int close(long flags)
          スレッド終了関数です。
 ReturnCode_t deactivate_component(LightweightRTObject comp)
          コンポーネントを非アクティブ化します。
 void 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)を取得します。
 ExecutionContextService getRef()
          本オブジェクトのExecutionContextServiceとしてのCORBAオブジェクト参照を設定します。
 boolean is_running()
          ExecutionContextが実行中かどうかを取得します。
 int open()
          ExecutionContext用のスレッドを生成します。
static void PeriodicExecutionContextInit(Manager manager)
          このExecutionContextを生成するFactoryクラスを ExecutionContext用ObjectManagerに登録します。
 ReturnCode_t remove(LightweightRTObject comp)
          コンポーネントをコンポーネントリストから削除します。
 ReturnCode_t reset_component(LightweightRTObject comp)
          コンポーネントをリセットします。
 void run()
          スレッド実行関数です。
 ReturnCode_t set_rate(double rate)
          ExecutionContextの実行周期(Hz)を設定します。
 void setObjRef(ExecutionContextService ref)
          本オブジェクトのExecutionContextServiceとしてのCORBAオブジェクト参照を設定します。
 ReturnCode_t start()
          ExecutionContext をスタートします。
 ReturnCode_t stop()
          ExecutionContext をストップします。
 int svc()
          ExecutionContext用のスレッドの実行関数です。
 
クラス jp.go.aist.rtm.RTC.executionContext.ExecutionContextBase から継承されたメソッド
tick
 
クラス RTC.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 から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

PeriodicExecutionContext

public PeriodicExecutionContext()

デフォルト・コンストラクタです。


PeriodicExecutionContext

public PeriodicExecutionContext(DataFlowComponent owner)

コンストラクタです。

パラメータ:
owner - ExecutionContextのowner

PeriodicExecutionContext

public PeriodicExecutionContext(DataFlowComponent owner,
                                double rate)

コンストラクタです。

パラメータ:
owner - ExecutionContextのowner
rate - 動作周期
メソッドの詳細

setObjRef

public void setObjRef(ExecutionContextService ref)

本オブジェクトのExecutionContextServiceとしてのCORBAオブジェクト参照を設定します。

オーバーライド:
クラス ExecutionContextBase 内の setObjRef
パラメータ:
ref - CORBAオブジェクト参照

getRef

public ExecutionContextService getRef()

本オブジェクトのExecutionContextServiceとしてのCORBAオブジェクト参照を設定します。

パラメータ:
ref - CORBAオブジェクト参照

open

public int open()

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


svc

public int svc()

ExecutionContext用のスレッドの実行関数です。 登録されたコンポーネントの処理を呼び出します。


run

public void run()

スレッド実行関数です。

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

close

public int close(long flags)

スレッド終了関数です。


is_running

public boolean is_running()

ExecutionContextが実行中かどうかを取得します。

定義:
インタフェース ExecutionContextOperations 内の is_running
戻り値:
実行判定結果

start

public ReturnCode_t start()

ExecutionContext をスタートします。

定義:
インタフェース ExecutionContextOperations 内の start
戻り値:
実行結果

stop

public ReturnCode_t stop()

ExecutionContext をストップします。

定義:
インタフェース ExecutionContextOperations 内の stop
戻り値:
実行結果

get_rate

public double get_rate()

ExecutionContextの実行周期(Hz)を取得します。

定義:
インタフェース ExecutionContextOperations 内の get_rate
戻り値:
実行周期(Hz)

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 - アクティブ化対象コンポーネント
戻り値:
実行結果

deactivate_component

public ReturnCode_t deactivate_component(LightweightRTObject comp)

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

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

reset_component

public ReturnCode_t reset_component(LightweightRTObject comp)

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

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

get_component_state

public LifeCycleState get_component_state(LightweightRTObject comp)

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

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

get_kind

public ExecutionKind get_kind()

ExecutionKindを取得します。

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

add

public ReturnCode_t add(LightweightRTObject comp)

コンポーネントを追加します。

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

remove

public ReturnCode_t remove(LightweightRTObject comp)

コンポーネントをコンポーネントリストから削除します。

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

get_profile

public ExecutionContextProfile get_profile()

ExecutionContextProfile を取得します。

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

PeriodicExecutionContextInit

public static void PeriodicExecutionContextInit(Manager manager)

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

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

ECNewFunc

public ExecutionContextBase ECNewFunc()

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

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

ECDeleteFunc

public void ECDeleteFunc(ExecutionContextBase comp)

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

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