public interface Transition
Modifier and Type | Method and Description |
---|---|
boolean |
execute(Event event)
Executes this
Transition . |
State |
getNextState() |
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.
The method will accept any Event
if it is registered with the
wild card event ID ('*'), and the event ID it is declared for (ie,
the event ID that has been passed as a parameter to this transition
constructor.)event
- the current Event
.Transition
was executed,
false otherwise.State getNextState()
State
which the StateMachine
should move to
if this Transition
is taken and execute(Event)
returns
true. null
if this Transition
is a loopback
Transition
.Copyright © 2004–2018 Apache MINA Project. All rights reserved.