LocalSearchStrategyBase
abstract class.@Deprecated
public interface ISolutionStore
Modifier and Type | Interface and Description |
---|---|
static class |
ISolutionStore.StopExecutionType
Deprecated.
The types of responses that an object implementing
ISolutionStore can give. |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Solution> |
getSolutions()
Deprecated.
Returns the currently stored solutions.
|
boolean |
isStrategyDependent()
Deprecated.
If an
ISolutionStore is exploration strategy dependent the framework passes the responsibility of calling
the newSolution(ThreadContext) method to the LocalSearchStrategyBase implementation. |
ISolutionStore.StopExecutionType |
newSolution(ThreadContext context)
Deprecated.
Notifies the solution store of a potential solution trajectory.
|
void |
registerSolutionFoundHandler(ISolutionFoundHandler handler)
Deprecated.
Registers a handler for executing custom code after a solution is found.
|
ISolutionStore.StopExecutionType newSolution(ThreadContext context)
objectives
will never be
null and the implementation should be thread safe.
Also it determines whether the execution should stop or not, if a solution is found. It can have three different responses:
ISolutionStore.StopExecutionType.CONTINUE
: the execution should continue.ISolutionStore.StopExecutionType.STOP_THREAD
: this execution thread should be stopped while the others can continue.
ISolutionStore.StopExecutionType.STOP_ALL
: the whole design space exploration process should exit.context
- Context with the actual state of the exploration process.ISolutionStore.StopExecutionType
based on it's internal reasoning.java.util.Collection<Solution> getSolutions()
Solution
s.void registerSolutionFoundHandler(ISolutionFoundHandler handler)
handler
- The handler.boolean isStrategyDependent()
ISolutionStore
is exploration strategy dependent the framework passes the responsibility of calling
the newSolution(ThreadContext)
method to the LocalSearchStrategyBase
implementation.