com.googlecode.jinahya.util.fsm
Class SimpleTask
java.lang.Object
com.googlecode.jinahya.util.fsm.Task
com.googlecode.jinahya.util.fsm.SwitchTask
com.googlecode.jinahya.util.fsm.SimpleTask
public abstract class SimpleTask
- extends SwitchTask
Task for simple conditions.
- Author:
- Jin Kwon
| 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 |
SimpleTask
public SimpleTask(String id,
TransitionMatcher[] matchers)
- Creates a new instance.
- Parameters:
id - task idmatchers - matchers; not null; not empty
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.