public interface IState
StateMachine
Modifier and Type | Field and Description |
---|---|
static boolean |
HANDLED
Returned by processMessage to indicate the the message was processed.
|
static boolean |
NOT_HANDLED
Returned by processMessage to indicate the the message was NOT processed.
|
Modifier and Type | Method and Description |
---|---|
void |
enter()
Called when a state is entered.
|
void |
exit()
Called when a state is exited.
|
String |
getName()
Name of State for debugging purposes.
|
boolean |
processMessage(Message msg)
Called when a message is to be processed by the
state machine.
|
static final boolean HANDLED
static final boolean NOT_HANDLED
void enter()
void exit()
boolean processMessage(Message msg)
msg
- to processString getName()