public class SolutionStore
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SolutionStore.ANumberOfEnoughSolutions |
static class |
SolutionStore.BestSolutionSaver |
static interface |
SolutionStore.IEnoughSolutions |
static interface |
SolutionStore.ISolutionSaver |
static class |
SolutionStore.SimpleSolutionSaver |
Modifier and Type | Field and Description |
---|---|
protected boolean |
acceptOnlyGoalSolutions |
protected SolutionStore.IEnoughSolutions |
enoughSolutions |
protected java.util.List<ISolutionFoundHandler> |
solutionFoundHandlers |
protected java.util.Map<java.lang.Object,Solution> |
solutions |
protected SolutionStore.ISolutionSaver |
solutionSaver |
Constructor and Description |
---|
SolutionStore() |
SolutionStore(int numOfSolutionsToFind) |
SolutionStore(SolutionStore.IEnoughSolutions enoughSolutionsImpl) |
Modifier and Type | Method and Description |
---|---|
SolutionStore |
acceptAnySolutions() |
SolutionStore |
acceptGoalSolutionsOnly() |
java.util.Collection<Solution> |
getSolutions() |
SolutionStore |
logSolutionsWhenFound() |
void |
newSolution(ThreadContext context) |
void |
registerSolutionFoundHandler(ISolutionFoundHandler handler) |
void |
saveModels(org.eclipse.emf.common.notify.Notifier model,
ISolutionNameProvider solutionNameProvider) |
SolutionStore |
saveModelWhenFound() |
SolutionStore |
saveModelWhenFound(ISolutionNameProvider solutionNameProvider) |
SolutionStore |
saveModelWhenFound(java.lang.String extension) |
SolutionStore |
saveModelWhenFound(java.lang.String prefix,
java.lang.String extension) |
SolutionStore |
storeBestSolutionsOnly() |
SolutionStore |
withSolutionSaver(SolutionStore.ISolutionSaver solutionSaver) |
protected boolean acceptOnlyGoalSolutions
protected final java.util.Map<java.lang.Object,Solution> solutions
protected SolutionStore.ISolutionSaver solutionSaver
protected java.util.List<ISolutionFoundHandler> solutionFoundHandlers
protected final SolutionStore.IEnoughSolutions enoughSolutions
public SolutionStore()
public SolutionStore(int numOfSolutionsToFind)
public SolutionStore(SolutionStore.IEnoughSolutions enoughSolutionsImpl)
public void newSolution(ThreadContext context)
public java.util.Collection<Solution> getSolutions()
public void registerSolutionFoundHandler(ISolutionFoundHandler handler)
public SolutionStore logSolutionsWhenFound()
public SolutionStore saveModelWhenFound()
public SolutionStore saveModelWhenFound(java.lang.String extension)
public SolutionStore saveModelWhenFound(java.lang.String prefix, java.lang.String extension)
public SolutionStore saveModelWhenFound(ISolutionNameProvider solutionNameProvider)
public SolutionStore acceptGoalSolutionsOnly()
public SolutionStore acceptAnySolutions()
public SolutionStore withSolutionSaver(SolutionStore.ISolutionSaver solutionSaver)
public SolutionStore storeBestSolutionsOnly()
public void saveModels(org.eclipse.emf.common.notify.Notifier model, ISolutionNameProvider solutionNameProvider)