Class ExecutionTrace
java.lang.Object
it.tugamer89.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
- Returns:
- The original input string.
-
getSteps
- Returns:
- An immutable list containing all evaluation steps.
-
isAccepted
public boolean isAccepted()- 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.
-