Class FiniteAutomaton.State<E>

  • Type Parameters:
    E -
    Direct Known Subclasses:
    FiniteAutomaton.TerminusState
    Enclosing class:
    FiniteAutomaton

    public static class FiniteAutomaton.State<E>
    extends java.lang.Object
    Representation of a state in the automaton.
    • Constructor Detail

      • State

        public State()
    • Method Detail

      • connect

        public void connect​(FiniteAutomaton.State<E> dest)
        Add an epsilon transition between this state and dest.
        Parameters:
        dest - the state to connect
      • connect

        public void connect​(FiniteAutomaton.State<E> dest,
                            Expression<E> cost)
        Add an edge between this state and dest.
        Parameters:
        dest - the state to connect
        cost - the expression of the edge
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object