public class SolutionStore
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SolutionStore.ANumberOfEnoughSolutions |
static interface |
SolutionStore.IEnoughSolutions |
static interface |
SolutionStore.ISolutionFoundHandler |
static class |
SolutionStore.LogSolutionHandler |
Constructor and Description |
---|
SolutionStore() |
SolutionStore(int numOfSolutionsToFind) |
SolutionStore(SolutionStore.IEnoughSolutions enoughSolutionsImpl) |
Modifier and Type | Method and Description |
---|---|
void |
acceptAnySolutions() |
void |
acceptGoalSolutionsOnly() |
java.util.Collection<Solution> |
getSolutions() |
void |
logSolutionsWhenFound() |
boolean |
newSolution(ThreadContext context) |
void |
registerSolutionFoundHandler(SolutionStore.ISolutionFoundHandler handler) |
public SolutionStore()
public SolutionStore(int numOfSolutionsToFind)
public SolutionStore(SolutionStore.IEnoughSolutions enoughSolutionsImpl)
public boolean newSolution(ThreadContext context)
context
- public java.util.Collection<Solution> getSolutions()
public void registerSolutionFoundHandler(SolutionStore.ISolutionFoundHandler handler)
public void logSolutionsWhenFound()
public void acceptGoalSolutionsOnly()
public void acceptAnySolutions()