com.googlecode.jinahya.util.fsm
Class SimpleTask

java.lang.Object
  extended by com.googlecode.jinahya.util.fsm.Task
      extended by com.googlecode.jinahya.util.fsm.SwitchTask
          extended by com.googlecode.jinahya.util.fsm.SimpleTask

public abstract class SimpleTask
extends SwitchTask

Task for simple conditions.

Author:
Jin Kwon

Constructor Summary
SimpleTask(String id, TransitionMatcher[] matchers)
          Creates a new instance.
 
Method Summary
protected  void performOff(TransitionContext context)
          Performs for switching off.
protected  void prepareOff(TransitionContext context)
          Prepares for switching off.
 
Methods inherited from class com.googlecode.jinahya.util.fsm.SwitchTask
perform, performOn, prepare, prepareOn
 
Methods inherited from class com.googlecode.jinahya.util.fsm.Task
getId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTask

public SimpleTask(String id,
                  TransitionMatcher[] matchers)
Creates a new instance.

Parameters:
id - task id
matchers - matchers; not null; not empty
Method Detail

prepareOff

protected void prepareOff(TransitionContext context)
                   throws FSMException
Description copied from class: SwitchTask
Prepares for switching off.

Specified by:
prepareOff in class SwitchTask
Parameters:
context - context
Throws:
FSMException - if an error occurs.

performOff

protected void performOff(TransitionContext context)
                   throws FSMException
Description copied from class: SwitchTask
Performs for switching off.

Specified by:
performOff in class SwitchTask
Parameters:
context - context
Throws:
FSMException - if an error occurs.


Copyright © 2011. All Rights Reserved.