Class ExecutionTrace
java.lang.Object
org.eu.autogex.trace.ExecutionTrace
Contains the complete chronological sequence of states evaluated by an automaton when processing a specific input string.
-
Constructor Summary
ConstructorsConstructorDescriptionExecutionTrace(String input, List<ExecutionStep> steps, boolean accepted) Constructs a new ExecutionTrace. -
Method Summary
-
Constructor Details
-
ExecutionTrace
Constructs a new ExecutionTrace.- Parameters:
input- The original string evaluated.steps- The ordered list of execution steps.accepted- The final evaluation outcome.
-
-
Method Details
-
getInput
-
getSteps
Returns the list of execution steps.- Returns:
- An immutable list containing all evaluation steps.
-
isAccepted
public boolean isAccepted()Returns the final evaluation outcome.- Returns:
- True if the automaton successfully accepted the string.
-
getFormattedTrace
Generates a beautifully formatted multiline string mapping the entire execution path. Useful for debugging and console outputs.- Returns:
- The formatted trace log.
-