Class Automaton

  • All Implemented Interfaces:
    Serializable, Cloneable

    public class Automaton
    extends Object
    implements Serializable, Cloneable
    Finite-state automaton with regular expression operations.

    Class invariants:

    • An automaton is either represented explicitly (with State and Transition objects) or with a singleton string (expandSingleton()) in case the automaton is known to accept exactly one string. (Implicitly, all states and transitions of an automaton are reachable from its initial state.)
    • Automata are always reduced (see reduce()) and have no transitions to dead states (see removeDeadTransitions()).
    • Automata provided as input to operations are generally assumed to be disjoint.

    See Also:
    Serialized Form