interface TransitionCallback<S, T : Any>
abstract fun enteredState(stateMachine: StateMachine<S, T>, previousState: S, transition: T, currentState: S): Unit
After a state transition has been verified to be legal and also applied to a machine. |
|
abstract fun enteringState(stateMachine: StateMachine<S, T>, currentState: S, transition: T, targetState: S): Unit
After a state transition has been verified to be legal but has not yet been applied to the machine. |