jp.go.aist.rtm.RTC.executionContext
Class ExtTrigExecutionContext

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by OpenRTM.ExtTrigExecutionContextServicePOA
          extended by jp.go.aist.rtm.RTC.executionContext.ExtTrigExecutionContext
All Implemented Interfaces:
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 class that enables one step execution

ExecutionContext class that can execute every one cycle for Periodic Sampled Data Processing. Time(Tick) advances one cycle by invoking method externally.


Nested Class Summary
protected  class ExtTrigExecutionContext.Comp
          ExecutionContextにattachされたコンポーネントのメソッド呼出用クラスです。
protected  class ExtTrigExecutionContext.DFP
          DataFlowComponentのAction定義用抽象クラスです。
protected  class ExtTrigExecutionContext.DFPBase
          DataFlowComponentのAction定義用抽象クラスです。
protected  class ExtTrigExecutionContext.find_comp
          管理対象コンポーネント検索用ヘルパークラスです。
 
Nested classes/interfaces inherited from interface jp.go.aist.rtm.RTC.executionContext.ExecutionContextBase
ExecutionContextBase.transitionModeHolder
 
Field Summary
(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用フォーマットオブジェクト
 
Constructor Summary
ExtTrigExecutionContext()
           Constructor
 
Method Summary
 ExecutionContextService __this()
           __this()
 ReturnCode_t activate_component(LightweightRTObject comp)
          コンポーネントをアクティブ化します。
 ReturnCode_t activateComponent(LightweightRTObject comp)
           
 ReturnCode_t add_component(LightweightRTObject comp)
           Add an RT-component
 ReturnCode_t addComponent(LightweightRTObject comp)
           
 ReturnCode_t bindComponent(RTObject_impl rtc)
           Bind the component.
 ExecutionContextBase creator_()
           Creats OpenHRPExecutionContext
 ReturnCode_t deactivate_component(LightweightRTObject comp)
          コンポーネントを非アクティブ化します。
 ReturnCode_t deactivateComponent(LightweightRTObject comp)
           
 void destructor_(java.lang.Object obj)
           Destructs 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()
           Get execution rate(Hz) of ExecutionContext
 RTObject[] getComponentList()
           @brief Getting participant RTC list
 LifeCycleState getComponentState(LightweightRTObject comp)
           
 ExecutionKind getKind()
           
 java.lang.String getKindString(ExecutionKind kind)
           Converting ExecutionKind enum to string
 ExecutionContextService getObjRef()
           Get the reference to the CORBA object
 RTObject getOwner()
           Getting a reference of the owner component
 TimeValue getPeriod()
           
 ExecutionContextProfile getProfile()
           Getting Profile
 Properties getProperties()
           Setting Properties
 double getRate()
           Get execution rate(Hz) of ExecutionContext
 void init(Properties props)
           Initialization function of ExecutionContext class
 void invokeWorker()
           
 void invokeWorkerDo()
           
 void invokeWorkerPostDo()
           
 void invokeWorkerPreDo()
           
 boolean is_running()
           heck for ExecutionContext running state
 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)
           Remove the RT-Component from participant list
 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)
           Setting execution rate from given properties.
 ReturnCode_t setKind(ExecutionKind kind)
           Set the ExecutionKind
 void setObjRef(ExecutionContextService ref)
           Get the reference to the CORBA object
 ReturnCode_t setOwner(LightweightRTObject comp)
           Setting owner component of the execution context
 void setProperties(Properties props)
           Setting Properties
 ReturnCode_t setRate(double rate)
           Set execution rate(Hz) of ExecutionContext
 boolean setTimeout(Properties props, java.lang.String key, TimeValue timevalue)
           Setting state transition timeout from given properties.
 boolean setTransitionMode(Properties props, java.lang.String key, ExecutionContextBase.transitionModeHolder tmhldr)
           Setting state transition mode from given properties.
 ReturnCode_t start()
           Start the ExecutionContext
 ReturnCode_t stop()
           Stop the ExecutionContext
 int svc()
          ExecutionContextにattachされている各Componentの処理を呼び出します。 全Componentの処理を呼び出した後、次のイベントが発生するまで休止します。
 boolean threadRunning()
           
 void tick()
           Proceed with tick of ExecutionContext
 ReturnCode_t waitForActivated(RTObjectStateMachine rtobj)
           
 ReturnCode_t waitForDeactivated(RTObjectStateMachine rtobj)
           
 ReturnCode_t waitForReset(RTObjectStateMachine rtobj)
           
 
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

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用フォーマットオブジェクト

Constructor Detail

ExtTrigExecutionContext

public ExtTrigExecutionContext()
Constructor

Method Detail

__this

public ExecutionContextService __this()

__this()

Returns:
ExecutionContextService

tick

public void tick()
          throws org.omg.CORBA.SystemException
Proceed with tick of ExecutionContext

Proceed with tick of ExecutionContext for one period.

Specified by:
tick in interface ExtTrigExecutionContextServiceOperations
Throws:
org.omg.CORBA.SystemException

open

public int open()

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


svc

public int svc()

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


run

public void run()

ExecutionContextを起動します。

Specified by:
run in interface java.lang.Runnable

is_running

public boolean is_running()
heck for ExecutionContext running state

This operation shall return true if the context is in the Running state. While the context is Running, all Active RTCs participating in the context shall be executed according to the context’s execution kind.

Specified by:
is_running in interface ExecutionContextOperations
Returns:
Check state function (Running:true、Stopping:false)

isRunning

public boolean isRunning()

onStarting

public ReturnCode_t onStarting()

onStarted

public ReturnCode_t onStarted()
Specified by:
onStarted in interface ExecutionContextBase

onStopping

public ReturnCode_t onStopping()
Specified by:
onStopping in interface ExecutionContextBase

onStopped

public ReturnCode_t onStopped()
Specified by:
onStopped in interface ExecutionContextBase

onGetRate

public double onGetRate(double rate)
Specified by:
onGetRate in interface ExecutionContextBase

onSettingRate

public double onSettingRate(double rate)
Specified by:
onSettingRate in interface ExecutionContextBase

onSetRate

public ReturnCode_t onSetRate(double rate)
Specified by:
onSetRate in interface ExecutionContextBase

onAddingComponent

public ReturnCode_t onAddingComponent(LightweightRTObject rtobj)
Specified by:
onAddingComponent in interface ExecutionContextBase

onAddedComponent

public ReturnCode_t onAddedComponent(LightweightRTObject rtobj)
Specified by:
onAddedComponent in interface ExecutionContextBase

onRemovingComponent

public ReturnCode_t onRemovingComponent(LightweightRTObject rtobj)
Specified by:
onRemovingComponent in interface ExecutionContextBase

onRemovedComponent

public ReturnCode_t onRemovedComponent(LightweightRTObject rtobj)
Specified by:
onRemovedComponent in interface ExecutionContextBase

onActivating

public ReturnCode_t onActivating(LightweightRTObject comp)
Specified by:
onActivating in interface ExecutionContextBase

onActivated

public ReturnCode_t onActivated(RTObjectStateMachine comp,
                                long count)
Specified by:
onActivated in interface ExecutionContextBase

onDeactivating

public ReturnCode_t onDeactivating(LightweightRTObject comp)
Specified by:
onDeactivating in interface ExecutionContextBase

onDeactivated

public ReturnCode_t onDeactivated(RTObjectStateMachine comp,
                                  long count)
Specified by:
onDeactivated in interface ExecutionContextBase

onResetting

public ReturnCode_t onResetting(LightweightRTObject comp)
Specified by:
onResetting in interface ExecutionContextBase

threadRunning

public boolean threadRunning()

onReset

public ReturnCode_t onReset(RTObjectStateMachine comp,
                            long count)
Specified by:
onReset in interface ExecutionContextBase

onGetComponentState

public LifeCycleState onGetComponentState(LifeCycleState state)
Specified by:
onGetComponentState in interface ExecutionContextBase

onGetKind

public ExecutionKind onGetKind(ExecutionKind kind)
Specified by:
onGetKind in interface ExecutionContextBase

onGetProfile

public ExecutionContextProfile onGetProfile(ExecutionContextProfile profile)
Specified by:
onGetProfile in interface ExecutionContextBase

onWaitingActivated

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

Specified by:
onWaitingActivated in interface ExecutionContextBase

onWaitingDeactivated

public ReturnCode_t onWaitingDeactivated(RTObjectStateMachine comp,
                                         long count)
Description copied from interface: ExecutionContextBase
onWaitingDeactivated() template function

Specified by:
onWaitingDeactivated in interface ExecutionContextBase

onWaitingReset

public ReturnCode_t onWaitingReset(RTObjectStateMachine comp,
                                   long count)
Description copied from interface: ExecutionContextBase
onWaitingReset() template function

Specified by:
onWaitingReset in interface ExecutionContextBase

start

public ReturnCode_t start()
Start the ExecutionContext

Request that the context enter the Running state. Once the state transition occurs, the ComponentAction::on_startup operation will be invoked. An execution context may not be started until the RT-Components that participate in it have been initialized. An execution context may be started and stopped multiple times.

Specified by:
start in interface ExecutionContextOperations
Returns:
The return code of ReturnCode_t type

stop

public ReturnCode_t stop()
Stop the ExecutionContext

Request that the context enter the Stopped state. Once the transition occurs, the ComponentAction::on_shutdown operation will be invoked. An execution context must be stopped before the RT components that participate in it are finalized. An execution context may be started and stopped multiple times.

Specified by:
stop in interface ExecutionContextOperations
Returns:
The return code of ReturnCode_t type

get_rate

public double get_rate()
Get execution rate(Hz) of ExecutionContext

This operation shall return the rate (in hertz) at which its Active participating RTCs are being invoked.

Specified by:
get_rate in interface ExecutionContextOperations
Returns:
Execution cycle(Unit:Hz)

getPeriod

public TimeValue getPeriod()

set_rate

public ReturnCode_t set_rate(double rate)

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

Specified by:
set_rate in interface ExecutionContextOperations
Parameters:
rate - 実行周期(Hz)

activate_component

public ReturnCode_t activate_component(LightweightRTObject comp)

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

Specified by:
activate_component in interface ExecutionContextOperations
Parameters:
comp - アクティブ化対象コンポーネント
Returns:
実行結果

activateComponent

public ReturnCode_t activateComponent(LightweightRTObject comp)

waitForActivated

public ReturnCode_t waitForActivated(RTObjectStateMachine rtobj)

deactivate_component

public ReturnCode_t deactivate_component(LightweightRTObject comp)

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

Specified by:
deactivate_component in interface ExecutionContextOperations
Parameters:
comp - 非アクティブ化対象コンポーネント
Returns:
実行結果

deactivateComponent

public ReturnCode_t deactivateComponent(LightweightRTObject comp)

waitForDeactivated

public ReturnCode_t waitForDeactivated(RTObjectStateMachine rtobj)

reset_component

public ReturnCode_t reset_component(LightweightRTObject comp)

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

Specified by:
reset_component in interface ExecutionContextOperations
Parameters:
comp - リセット対象コンポーネント
Returns:
実行結果

resetCcomponent

public ReturnCode_t resetCcomponent(LightweightRTObject comp)

waitForReset

public ReturnCode_t waitForReset(RTObjectStateMachine rtobj)

get_component_state

public LifeCycleState get_component_state(LightweightRTObject comp)

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

Specified by:
get_component_state in interface ExecutionContextOperations
Parameters:
comp - 状態取得対象コンポーネント
Returns:
コンポーネント状態

getComponentState

public LifeCycleState getComponentState(LightweightRTObject comp)

get_kind

public ExecutionKind get_kind()

ExecutionKindを取得します。

Specified by:
get_kind in interface ExecutionContextOperations
Returns:
ExecutionKind

getKind

public ExecutionKind getKind()

add_component

public ReturnCode_t add_component(LightweightRTObject comp)
Add an RT-component

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.

Specified by:
add_component in interface ExecutionContextOperations
Parameters:
comp - The target RT-Component for add
Returns:
The return code of ReturnCode_t type

addComponent

public ReturnCode_t addComponent(LightweightRTObject comp)

bindComponent

public ReturnCode_t bindComponent(RTObject_impl rtc)
Bind the component.

Bind the component.

Specified by:
bindComponent in interface ExecutionContextBase
Parameters:
rtc - RT-Component's instances
Returns:
The return code of ReturnCode_t type

remove_component

public ReturnCode_t remove_component(LightweightRTObject comp)
Remove the RT-Component from participant list

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.

Specified by:
remove_component in interface ExecutionContextOperations
Parameters:
comp - The target RT-Component for delete
Returns:
The return code of ReturnCode_t type

removeComponent

public ReturnCode_t removeComponent(LightweightRTObject comp)

get_profile

public ExecutionContextProfile get_profile()

ExecutionContextProfile を取得します。

Specified by:
get_profile in interface ExecutionContextServiceOperations
Returns:
ExecutionContextProfile

creator_

public ExecutionContextBase creator_()
Creats OpenHRPExecutionContext

Specified by:
creator_ in interface ObjectCreator<ExecutionContextBase>
Returns:
Object Created instances

destructor_

public void destructor_(java.lang.Object obj)
Destructs Object

Specified by:
destructor_ in interface ObjectDestructor
Parameters:
obj - The target instances for destruction

ExtTrigExecutionContextInit

public static void ExtTrigExecutionContextInit(Manager manager)

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

Parameters:
manager - Managerオブジェクト

ECDeleteFunc

public java.lang.Object ECDeleteFunc(ExecutionContextBase comp)

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

Specified by:
ECDeleteFunc in interface ECNewDeleteFunc
Parameters:
comp - 破棄対象ExecutionContextインスタンス

ECNewFunc

public ExecutionContextBase ECNewFunc()

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

Specified by:
ECNewFunc in interface ECNewDeleteFunc
Returns:
ExecutionContextインスタンス

init

public void init(Properties props)
Initialization function of ExecutionContext class

Specified by:
init in interface ExecutionContextBase

setObjRef

public void setObjRef(ExecutionContextService ref)
Get the reference to the CORBA object

Get the reference to the CORBA object as ExecutioncontextService of this object.

Specified by:
setObjRef in interface ExecutionContextBase
Parameters:
ref - The reference to CORBA object

getObjRef

public ExecutionContextService getObjRef()
Get the reference to the CORBA object

Get the reference to the CORBA object as ExecutioncontextService of this object.

Specified by:
getObjRef in interface ExecutionContextBase
Returns:
The reference to CORBA object

setRate

public ReturnCode_t setRate(double rate)
Set execution rate(Hz) of ExecutionContext

This operation shall set the rate (in hertz) at which this context’s Active participating RTCs are being called. If the execution kind of the context is PERIODIC, a rate change shall result in the invocation of on_rate_changed on any RTCs realizing DataFlowComponentAction that are registered with any RTCs participating in the context.

Specified by:
setRate in interface ExecutionContextBase
Parameters:
rate - Execution cycle(Unit:Hz)
Returns:
The return code of ReturnCode_t type RTC_OK: Succeed BAD_PARAMETER: Invalid value. The value might be negative.

getRate

public double getRate()
Get execution rate(Hz) of ExecutionContext

This operation shall return the rate (in hertz) at which its Active participating RTCs are being invoked.

Specified by:
getRate in interface ExecutionContextBase
Returns:
Execution cycle(Unit:Hz)

getKindString

public final java.lang.String getKindString(ExecutionKind kind)
Converting ExecutionKind enum to string

This function converts enumeration (PERIODIC, EVENT_DRIVEN, OTHER) defined in RTC::ExecutionKind to string.

Specified by:
getKindString in interface ExecutionContextBase
Parameters:
kind - ExecutionKind
Returns:
String of ExecutionKind

setKind

public ReturnCode_t setKind(ExecutionKind kind)
Set the ExecutionKind

This operation sets the kind of the execution context.

Specified by:
setKind in interface ExecutionContextBase
Parameters:
kind - kind ExecutionKind

setOwner

public ReturnCode_t setOwner(LightweightRTObject comp)
Setting owner component of the execution context

This function sets an RT-Component to be owner of the execution context.

Specified by:
setOwner in interface ExecutionContextBase
Parameters:
comp - an owner RT-Component of this execution context
Returns:
The return code of ReturnCode_t type

getOwner

public RTObject getOwner()
Getting a reference of the owner component

This function returns a reference of the owner RT-Component of this execution context

Specified by:
getOwner in interface ExecutionContextBase
Returns:
a reference of the owner RT-Component

getComponentList

public RTObject[] getComponentList()
@brief Getting participant RTC list

This function returns a list of participant RTC of the execution context.

Specified by:
getComponentList in interface ExecutionContextBase
Returns:
Participants RTC list

setProperties

public void setProperties(Properties props)
Setting Properties

This function sets ExecutionContextProfile::properties by Properties.

Specified by:
setProperties in interface ExecutionContextBase
Parameters:
props - Properties to be set to ExecutionContextProfile::properties.

getProperties

public Properties getProperties()
Setting Properties

This function sets ExecutionContextProfile::properties by Properties.

Specified by:
getProperties in interface ExecutionContextBase
Returns:
Properties to be set to ExecutionContextProfile::properties.

getProfile

public ExecutionContextProfile getProfile()
Getting Profile

This function gets ExecutionContextProfile.

Specified by:
getProfile in interface ExecutionContextBase
Returns:
ExecutionContextProfile

setTimeout

public boolean setTimeout(Properties props,
                          java.lang.String key,
                          TimeValue timevalue)
Description copied from interface: ExecutionContextBase
Setting state transition timeout from given properties.

Specified by:
setTimeout in interface ExecutionContextBase
Parameters:
props - Properties to be set to ExecutionContextProfile::properties.

setExecutionRate

public boolean setExecutionRate(Properties props)
Description copied from interface: ExecutionContextBase
Setting execution rate from given properties.

Specified by:
setExecutionRate in interface ExecutionContextBase
Parameters:
props - Properties to be set to ExecutionContextProfile::properties.

setTransitionMode

public boolean setTransitionMode(Properties props,
                                 java.lang.String key,
                                 ExecutionContextBase.transitionModeHolder tmhldr)
Description copied from interface: ExecutionContextBase
Setting state transition mode from given properties.

Specified by:
setTransitionMode in interface ExecutionContextBase
Parameters:
props - Properties to be set to ExecutionContextProfile::properties.

isAllCurrentState

public boolean isAllCurrentState(LifeCycleState state)
Specified by:
isAllCurrentState in interface ExecutionContextBase

isAllNextState

public boolean isAllNextState(LifeCycleState state)
Specified by:
isAllNextState in interface ExecutionContextBase

isOneOfCurrentState

public boolean isOneOfCurrentState(LifeCycleState state)
Specified by:
isOneOfCurrentState in interface ExecutionContextBase

isOneOfNextState

public boolean isOneOfNextState(LifeCycleState state)
Specified by:
isOneOfNextState in interface ExecutionContextBase

invokeWorker

public void invokeWorker()
Specified by:
invokeWorker in interface ExecutionContextBase

invokeWorkerPreDo

public void invokeWorkerPreDo()
Specified by:
invokeWorkerPreDo in interface ExecutionContextBase

invokeWorkerDo

public void invokeWorkerDo()
Specified by:
invokeWorkerDo in interface ExecutionContextBase

invokeWorkerPostDo

public void invokeWorkerPostDo()
Specified by:
invokeWorkerPostDo in interface ExecutionContextBase