public class StateAdapter extends java.lang.Object implements StateListener
StateListener.Type| Constructor and Description |
|---|
StateAdapter()
Create the object.
|
StateAdapter(StateListener.Type type)
Create the object.
|
| Modifier and Type | Method and Description |
|---|---|
StateListener.Type |
getType()
Get the listener type.
|
void |
onStateEnter(State previous,
Event event,
State current)
The state was entered.
|
void |
onStateExit(State current,
Event event,
State next)
The state was exited.
|
public StateAdapter()
StateListener.Typepublic StateAdapter(StateListener.Type type)
type - the type of the listenerpublic StateListener.Type getType()
StateListenergetType in interface StateListenerpublic void onStateEnter(State previous, Event event, State current)
StateListeneronStateEnter in interface StateListenerprevious - the previous stateevent - the eventcurrent - the current statepublic void onStateExit(State current, Event event, State next)
StateListeneronStateExit in interface StateListenercurrent - the current stateevent - the eventnext - the next stateCopyright 2012-2013 Michal Turek, AnotherFSM.