Class DFA

All Implemented Interfaces:
Automaton

public class DFA extends AbstractAutomaton
Deterministic Finite Automaton (DFA).
  • Method Details

    • execute

      public ExecutionTrace execute(String input)
      Description copied from interface: Automaton
      Processes the input string and returns a detailed execution trace.
      Parameters:
      input - The string to be evaluated.
      Returns:
      An ExecutionTrace detailing the entire state traversal.
    • getTransitionTable

      public Map<State, Map<Character, State>> getTransitionTable()
      Retrieves the internal transition table of the DFA.
      Returns:
      The transition table.