|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Transition
The interface implemented by classes which need to react on transitions between states.
Method Summary | |
---|---|
boolean |
execute(Event event)
Executes this Transition . |
State |
getNextState()
Returns the State which the StateMachine should move to
if this Transition is taken and execute(Event) returns
true . |
Method Detail |
---|
boolean execute(Event event)
Transition
. It is the responsibility of this
Transition
to determine whether it actually applies for the
specified Event
. If this Transition
doesn't apply
nothing should be executed and false
must be returned.
event
- the current Event
.
true
if the Transition
was executed,
false
otherwise.State getNextState()
State
which the StateMachine
should move to
if this Transition
is taken and execute(Event)
returns
true
.
State
or null
if this
Transition
is a loopback Transition
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |