|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.omg.PortableServer.Servant
OpenRTM.ExtTrigExecutionContextServicePOA
jp.go.aist.rtm.RTC.executionContext.ExecutionContextBase
jp.go.aist.rtm.RTC.executionContext.PeriodicExecutionContext
public class PeriodicExecutionContext
Periodic Sampled Data Processing(周期実行用)ExecutionContextクラスです。
Nested Class Summary | |
---|---|
protected class |
PeriodicExecutionContext.Comp
ExecutionContextにattachされたコンポーネントのメソッド呼出用クラスです。 |
protected class |
PeriodicExecutionContext.DFP
DataFlowComponentのAction定義用抽象クラスです。 |
protected class |
PeriodicExecutionContext.DFPBase
DataFlowComponentのAction定義用抽象クラスです。 |
protected class |
PeriodicExecutionContext.find_comp
管理対象コンポーネント検索用ヘルパークラスです。 |
protected class |
PeriodicExecutionContext.Worker
|
Field Summary | |
---|---|
protected java.util.Vector<PeriodicExecutionContext.Comp> |
m_comps
ExecutionContextにatttachされているコンポーネントのリストです。 |
protected boolean |
m_nowait
|
protected ExecutionContextProfile |
m_profile
ExecutionContextProfileです。 |
protected ExecutionContextService |
m_ref
ExecutionContextServiceとしてのCORBAオブジェクト参照です。 |
protected boolean |
m_running
ExecutionContextの実行状態です。 |
protected java.lang.Thread |
m_thread
|
protected long |
m_usec
ExecutionContextの動作周期です。 |
protected Logbuf |
rtcout
Logging用フォーマットオブジェクト |
Constructor Summary | |
---|---|
PeriodicExecutionContext()
Default Constructor |
|
PeriodicExecutionContext(DataFlowComponent owner)
Constructor |
|
PeriodicExecutionContext(DataFlowComponent owner,
double rate)
Constructor |
Method Summary | |
---|---|
ExecutionContextService |
__this()
__this() |
ReturnCode_t |
activate_component(LightweightRTObject comp)
コンポーネントをアクティブ化します。 |
ReturnCode_t |
add_component(LightweightRTObject comp)
Add an RT-component |
ReturnCode_t |
bindComponent(RTObject_impl rtc)
Bind the component. |
int |
close(long flags)
スレッド終了関数です。 |
ReturnCode_t |
deactivate_component(LightweightRTObject comp)
コンポーネントを非アクティブ化します。 |
java.lang.Object |
ECDeleteFunc(ExecutionContextBase comp)
ExecutionContextのインスタンスを破棄します。 |
ExecutionContextBase |
ECNewFunc()
ExecutionContextのインスタンスを取得します。 |
boolean |
finalizeExecutionContext()
終了処理用関数 |
LifeCycleState |
get_component_state(LightweightRTObject comp)
コンポーネントの状態を取得します。 |
ExecutionKind |
get_kind()
ExecutionKindを取得します。 |
ExecutionContextProfile |
get_profile()
ExecutionContextProfile を取得します。 |
double |
get_rate()
ExecutionContextの実行周期(Hz)を取得します。 |
ExecutionContextService |
getObjRef()
getObjRef |
ExecutionContextService |
getRef()
本オブジェクトのExecutionContextServiceとしてのCORBAオブジェクト参照を設定します。 |
boolean |
is_running()
ExecutionContextが実行中かどうかを取得します。 |
int |
open()
ExecutionContext用のスレッドを生成します。 |
static void |
PeriodicExecutionContextInit(Manager manager)
このExecutionContextを生成するFactoryクラスを ExecutionContext用ObjectManagerに登録します。 |
ReturnCode_t |
remove_component(LightweightRTObject comp)
Remove the RT-Component from participant list |
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用のスレッドの実行関数です。 登録されたコンポーネントの処理を呼び出します。 |
Methods inherited from class jp.go.aist.rtm.RTC.executionContext.ExecutionContextBase |
---|
tick |
Methods inherited from class OpenRTM.ExtTrigExecutionContextServicePOA |
---|
_all_interfaces, _invoke, _this, _this |
Methods inherited from class 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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Vector<PeriodicExecutionContext.Comp> m_comps
ExecutionContextにatttachされているコンポーネントのリストです。
protected boolean m_running
ExecutionContextの実行状態です。
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用フォーマットオブジェクト
Constructor Detail |
---|
public PeriodicExecutionContext()
Default Constructor Set the following items to profile. - kind : PERIODIC - rate : 0.0
public PeriodicExecutionContext(DataFlowComponent owner)
Set the configuration value to profile.
owner
-
The owner of this Executioncontextpublic PeriodicExecutionContext(DataFlowComponent owner, double rate)
Set the configuration value to profile.
owner
-
The owner of this Executioncontextrate
-
Execution cycle(Hz)Method Detail |
---|
public boolean finalizeExecutionContext()
終了処理用関数
finalizeExecutionContext
in class ExecutionContextBase
public ExecutionContextService __this()
__this()
public void setObjRef(ExecutionContextService ref)
本オブジェクトのExecutionContextServiceとしてのCORBAオブジェクト参照を設定します。
setObjRef
in class ExecutionContextBase
ref
- CORBAオブジェクト参照public ExecutionContextService getObjRef()
getObjRef
getObjRef
in class ExecutionContextBase
public ExecutionContextService getRef()
本オブジェクトのExecutionContextServiceとしてのCORBAオブジェクト参照を設定します。
public int open()
ExecutionContext用のスレッドを生成します。
public int svc()
ExecutionContext用のスレッドの実行関数です。 登録されたコンポーネントの処理を呼び出します。
public void run()
スレッド実行関数です。
run
in interface java.lang.Runnable
public int close(long flags)
スレッド終了関数です。
public boolean is_running()
ExecutionContextが実行中かどうかを取得します。
is_running
in interface ExecutionContextOperations
public ReturnCode_t start()
ExecutionContext をスタートします。
start
in interface ExecutionContextOperations
public ReturnCode_t stop()
ExecutionContext をストップします。
stop
in interface ExecutionContextOperations
public double get_rate()
ExecutionContextの実行周期(Hz)を取得します。
get_rate
in interface ExecutionContextOperations
public ReturnCode_t set_rate(double rate)
ExecutionContextの実行周期(Hz)を設定します。
set_rate
in interface ExecutionContextOperations
rate
- 実行周期(Hz)public ReturnCode_t activate_component(LightweightRTObject comp)
コンポーネントをアクティブ化します。
activate_component
in interface ExecutionContextOperations
comp
- アクティブ化対象コンポーネント
public ReturnCode_t deactivate_component(LightweightRTObject comp)
コンポーネントを非アクティブ化します。
deactivate_component
in interface ExecutionContextOperations
comp
- 非アクティブ化対象コンポーネント
public ReturnCode_t reset_component(LightweightRTObject comp)
コンポーネントをリセットします。
reset_component
in interface ExecutionContextOperations
comp
- リセット対象コンポーネント
public LifeCycleState get_component_state(LightweightRTObject comp)
コンポーネントの状態を取得します。
get_component_state
in interface ExecutionContextOperations
comp
- 状態取得対象コンポーネント
public ExecutionKind get_kind()
ExecutionKindを取得します。
get_kind
in interface ExecutionContextOperations
public ReturnCode_t add_component(LightweightRTObject comp)
The operation causes the given RTC to begin participating in the execution context. The newly added RTC will receive a call to LightweightRTComponent::attach_context and then enter the Inactive state. BAD_PARAMETER will be invoked, if the given RT-Component is null or if the given RT-Component is other than DataFlowComponent.
add_component
in interface ExecutionContextOperations
comp
-
The target RT-Component for add
public ReturnCode_t bindComponent(RTObject_impl rtc)
Bind the component.
bindComponent
in class ExecutionContextBase
rtc
-
RT-Component's instances
public ReturnCode_t remove_component(LightweightRTObject comp)
This operation causes a participant RTC to stop participating in the execution context. The removed RTC will receive a call to LightweightRTComponent::detach_context. BAD_PARAMETER will be returned, if the given RT-Component is not participating in the participant list.
remove_component
in interface ExecutionContextOperations
comp
-
The target RT-Component for delete
public ExecutionContextProfile get_profile()
ExecutionContextProfile を取得します。
get_profile
in interface ExecutionContextServiceOperations
public static void PeriodicExecutionContextInit(Manager manager)
このExecutionContextを生成するFactoryクラスを ExecutionContext用ObjectManagerに登録します。
manager
- Managerオブジェクトpublic ExecutionContextBase ECNewFunc()
ExecutionContextのインスタンスを取得します。
ECNewFunc
in interface ECNewDeleteFunc
public java.lang.Object ECDeleteFunc(ExecutionContextBase comp)
ExecutionContextのインスタンスを破棄します。
ECDeleteFunc
in interface ECNewDeleteFunc
comp
- 破棄対象ExecutionContextインスタンス
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |