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.
stateMachine - the machine notifying the state change
currentState - the current state of the machine