AbstractEndState
abstract class AbstractEndState(val solution: Solution, val context: ClassicExecutionContext) : AbstractState, EndState
Common base of the two terminal EndStates (StateEnd and StateHalt). By default there is no further transition from here (computeNext throws); StateEnd overrides this to loop back into StateBacktracking when ClassicExecutionContext.hasOpenAlternatives is true, which is what makes it a resumable terminal, unlike StateHalt, the one true sink of the machine.
Inheritors
Properties
Link copied to clipboard
The execution context this state operates on.
Link copied to clipboard
Whether asking for another solution after this one would resume resolution (via backtracking) rather than truly stop.
Link copied to clipboard
Whether this state is a terminal one for the current resolution step, i.e. an EndState.
Functions
Link copied to clipboard
This state as an EndState, or null if isEndState is false.
Link copied to clipboard
This state as an EndState.