Class StateModel.State.Transition

  • Enclosing class:
    StateModel.State

    private static class StateModel.State.Transition
    extends Object
    Inner class representing transitions.
    • Field Detail

      • cond

        private BooleanSupplier cond
        The function object for the transition condition
      • action

        private Action action
        The action of the transition
    • Constructor Detail

      • Transition

        private Transition​(BooleanSupplier cond,
                           Action action)
        Constructor initializing condition and action.
        Parameters:
        cond - the function object for the transition condition
        action - the transition action