Class Transition
-
- All Implemented Interfaces:
public final class TransitionRepresents a state transition in a state machine.
-
-
Constructor Summary
Constructors Constructor Description Transition(Integer from, Integer event, Integer to, Function0<Unit> action)
-
Method Summary
Modifier and Type Method Description final IntegergetFrom()The initial state before the transition final IntegergetEvent()The event that triggers this transition final IntegergetTo()The resulting state after the transition final Function0<Unit>getAction()Optional action to be executed during the transition
-