Class DFA
java.lang.Object
org.eu.autogex.core.AbstractAutomaton
org.eu.autogex.models.DFA
- All Implemented Interfaces:
Automaton
Deterministic Finite Automaton (DFA).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder pattern to construct the DFA fluently. -
Method Summary
Modifier and TypeMethodDescriptionbooleanFast-path evaluation of an input string bypassing ExecutionTrace generation.Processes the input string and returns a detailed execution trace.Retrieves the internal transition table of the DFA.Methods inherited from class AbstractAutomaton
getFinalStates, getInitialState, getStates
-
Method Details
-
accepts
Fast-path evaluation of an input string bypassing ExecutionTrace generation. Overrides the default method to minimize memory allocation and maximize performance.- Parameters:
input- The string to be evaluated.- Returns:
- true if the string is accepted, false otherwise.
-
execute
Description copied from interface:AutomatonProcesses 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
-