Interface Automaton
- All Known Implementing Classes:
AbstractAutomaton, DFA, ENFA, NFA
public interface Automaton
Base interface for all types of Automata (DFA, NFA, ENFA).
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanThe main method that checks whether the input string belongs to the language recognized by the automaton L(M).Processes the input string and returns a detailed execution trace.Retrieves all the accepting (final) states of the automaton.Retrieves the starting state of the automaton.Retrieves all the states within the automaton.
-
Method Details
-
getStates
-
getInitialState
-
getFinalStates
-
execute
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.
-
accepts
The main method that checks whether the input string belongs to the language recognized by the automaton L(M).- Parameters:
input- The string to be evaluated.- Returns:
- true if the string is accepted, false otherwise.
-