StateId
- The type used for referencing states.Event
- The type used for referencing events.public interface IEntryExitAction<StateId,Event>
void onEnter(IState<StateId,Event> state, Event event)
event
parameter
contains the event by which the state is entered, or null
in the following situations:
start()
.
state
- The state being entered.event
- The event triggering the transition into the state.void onExit(IState<StateId,Event> state, Event event)
event
parameter
contains the event by which the state is exited, or null
in the following situations:
stop()
.
state
- The state being exited.event
- The event triggering the transition from the state.