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.Type
public StateAdapter(StateListener.Type type)
type
- the type of the listenerpublic StateListener.Type getType()
StateListener
getType
in interface StateListener
public void onStateEnter(State previous, Event event, State current)
StateListener
onStateEnter
in interface StateListener
previous
- the previous stateevent
- the eventcurrent
- the current statepublic void onStateExit(State current, Event event, State next)
StateListener
onStateExit
in interface StateListener
current
- the current stateevent
- the eventnext
- the next stateCopyright 2012-2013 Michal Turek, AnotherFSM.