public static class SolutionStore.ANumberOfEnoughSolutions extends java.lang.Object implements SolutionStore.IEnoughSolutions
| Constructor and Description |
|---|
ANumberOfEnoughSolutions(int number) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
enoughSolutions() |
void |
solutionFound(ThreadContext context,
SolutionTrajectory trajectory)
Called when a solution is saved by the
SolutionStore.ISolutionSaver. |
void |
solutionTriedToSave(ThreadContext context,
SolutionTrajectory trajectory)
Called when the exploration found a solution but it was not saved because of certain conditions.
|
public boolean enoughSolutions()
enoughSolutions in interface SolutionStore.IEnoughSolutionspublic void solutionFound(ThreadContext context, SolutionTrajectory trajectory)
ISolutionFoundHandlerSolutionStore.ISolutionSaver. Later, this solution can be omitted from the final
set of solutions.solutionFound in interface ISolutionFoundHandlerpublic void solutionTriedToSave(ThreadContext context, SolutionTrajectory trajectory)
ISolutionFoundHandlersolutionTriedToSave in interface ISolutionFoundHandler