Class MooreBuilderImpl<S,​I,​T,​O,​A extends MutableMooreMachine<S,​? super I,​T,​? super O>>


  • public class MooreBuilderImpl<S,​I,​T,​O,​A extends MutableMooreMachine<S,​? super I,​T,​? super O>>
    extends Object
    • Field Detail

      • automaton

        protected final A extends MutableAutomaton<S,​? super I,​T,​? super SP,​? super TP> automaton
      • currentStates

        protected List<S> currentStates
      • currentInputs

        protected List<I> currentInputs
      • currentTransProp

        protected TP currentTransProp
    • Method Detail

      • withInitial

        public void withInitial​(Object stateId)
      • withInitial

        public void withInitial​(Object stateId,
                                O output)
      • withOutput

        public void withOutput​(Object stateId,
                               O output)
      • from

        public void from​(Object stateId)
      • from

        public void from​(Object firstStateId,
                         Object... otherStateIds)
      • getStates

        protected List<S> getStates​(Object firstStateId,
                                    Object... otherStateIds)
      • getState

        protected S getState​(Object stateId)
      • on

        public void on​(I input)
      • on

        @SafeVarargs
        public final void on​(I firstInput,
                             I... otherInputs)
      • withProperty

        public void withProperty​(TP transProp)
      • to

        public void to​(Object stateId)
      • loop

        public void loop()
      • create

        public A create()
      • withStateProperty

        public void withStateProperty​(SP stateProperty,
                                      Object stateId)