|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.googlecode.jinahya.util.fsm.MachineContext
public class MachineContext
The machine context which performs tasks for every transition.
| Field Summary | |
|---|---|
protected TaskContext |
taskContext
task context. |
| Constructor Summary | |
|---|---|
protected |
MachineContext(TaskContext taskContext)
Creates a new instance. |
| Method Summary | |
|---|---|
protected void |
perform(TransitionContext context,
Task... tasks)
Perform tasks. |
void |
transited(Transition transition)
Notifies a state transition. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final TaskContext taskContext
| Constructor Detail |
|---|
protected MachineContext(TaskContext taskContext)
taskContext - tasks| Method Detail |
|---|
public void transited(Transition transition)
throws FSMException
transition - transition transition.
FSMException - if an error occurs.
protected void perform(TransitionContext context,
Task... tasks)
throws FSMException
tasks. Each task can be performed concurrently.
Overriding classes must guarantee that all tasks performed before this
method returns. Default implementation performs tasks one by one.
context - transition contexttasks - tasks to be performed
FSMException - if an error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||