Class ENFA
java.lang.Object
org.eu.autogex.core.AbstractAutomaton
org.eu.autogex.models.ENFA
- All Implemented Interfaces:
Automaton
Non-Deterministic Finite Automaton with Epsilon Transitions (ε-NFA).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder pattern to construct the ENFA fluently. -
Method Summary
Modifier and TypeMethodDescriptionbooleanFast-path evaluation of an input string bypassing ExecutionTrace generation.epsilonClosure(Set<State> startStates) Computes the ε-closure of a set of states.Processes the input string and returns a detailed execution trace.Retrieves the internal transition table of the ENFA.Methods inherited from class AbstractAutomaton
getFinalStates, getInitialState, getStates
-
Method Details
-
epsilonClosure
-
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
-