public abstract class Task
extends java.lang.Object
| Constructor and Description |
|---|
Task(java.lang.String id,
TransitionMatcher... matchers)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getId()
Returns identifier.
|
boolean |
matches(Transition transition)
Checks if given
transition matches to any of
matchers. |
abstract void |
perform(TransitionContext context)
Performs desired actions for given
transition. |
abstract void |
prepare(TransitionContext context)
Prepares for given
context. |
public Task(java.lang.String id,
TransitionMatcher... matchers)
id - task idmatchers - transition matcherspublic final java.lang.String getId()
public boolean matches(Transition transition)
transition matches to any of
matchers.transition - transition to match.public abstract void prepare(TransitionContext context) throws FSMException
context.context - transition contextFSMException - if an error occurs.public abstract void perform(TransitionContext context) throws FSMException
transition.context - transition contextFSMException - if an error occurs.Copyright © 2011. All Rights Reserved.