Class Transition

  • All Implemented Interfaces:

    
    public final class Transition
    
                        

    Represents a state transition in a state machine.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Integer getFrom() The initial state before the transition
      final Integer getEvent() The event that triggers this transition
      final Integer getTo() The resulting state after the transition
      final Function0<Unit> getAction() Optional action to be executed during the transition
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getFrom

         final Integer getFrom()

        The initial state before the transition

      • getEvent

         final Integer getEvent()

        The event that triggers this transition

      • getTo

         final Integer getTo()

        The resulting state after the transition

      • getAction

         final Function0<Unit> getAction()

        Optional action to be executed during the transition