I - O - public abstract class ASolutionCandidateIterator<I,O> extends AAlgorithm<I,O> implements ISolutionCandidateIterator<I,O>
| Modifier | Constructor and Description |
|---|---|
|
ASolutionCandidateIterator(I input) |
protected |
ASolutionCandidateIterator(IAlgorithmConfig config,
I input) |
| Modifier and Type | Method and Description |
|---|---|
O |
call()
Overrides the call of Callable to restrict the set of allowed exceptions
|
java.util.List<O> |
collectAllSolutions()
Gathers all solutions that exist
|
O |
nextSolutionCandidate() |
SolutionCandidateFoundEvent<O> |
nextSolutionCandidateEvent() |
activate, announceTimeoutDetected, avoidReinterruptionOnShutdownOnCurrentThread, cancel, checkAndConductTermination, checkTermination, computeTimeoutAware, getActivationTime, getConfig, getId, getInput, getLoggerName, getNumCPUs, getRemainingTimeToDeadline, getState, getTimeout, getTimeoutPrecautionOffset, hasNext, hasThreadBeenInterruptedDuringShutdown, interruptThreadAsPartOfShutdown, isCanceled, isShutdownInitialized, isStopCriterionSatisfied, isTimeouted, iterator, next, post, registerActiveThread, registerListener, resolveShutdownInterruptOnCurrentThread, setConfig, setLoggerName, setMaxNumThreads, setNumCPUs, setState, setTimeout, setTimeout, setTimeoutPrecautionOffset, shutdown, terminate, unregisterActiveThread, unregisterThreadAndShutdownclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfig, getId, getInput, getNumCPUs, getTimeout, nextWithException, registerListener, setMaxNumThreads, setNumCPUs, setTimeout, setTimeoutcancelpublic ASolutionCandidateIterator(I input)
protected ASolutionCandidateIterator(IAlgorithmConfig config, I input)
public O nextSolutionCandidate() throws java.lang.InterruptedException, AlgorithmExecutionCanceledException, AlgorithmTimeoutedException, AlgorithmException
nextSolutionCandidate in interface ISolutionCandidateIterator<I,O>java.lang.InterruptedExceptionAlgorithmExecutionCanceledExceptionAlgorithmTimeoutedExceptionAlgorithmExceptionpublic SolutionCandidateFoundEvent<O> nextSolutionCandidateEvent() throws java.lang.InterruptedException, AlgorithmExecutionCanceledException, AlgorithmTimeoutedException, AlgorithmException
nextSolutionCandidateEvent in interface ISolutionCandidateIterator<I,O>java.lang.InterruptedExceptionAlgorithmExecutionCanceledExceptionAlgorithmTimeoutedExceptionAlgorithmExceptionpublic O call() throws java.lang.InterruptedException, AlgorithmExecutionCanceledException, AlgorithmTimeoutedException, AlgorithmException
IAlgorithmcall in interface IAlgorithm<I,O>call in interface java.util.concurrent.Callable<O>java.lang.InterruptedExceptionAlgorithmExecutionCanceledExceptionAlgorithmTimeoutedExceptionAlgorithmExceptionpublic java.util.List<O> collectAllSolutions() throws java.lang.InterruptedException, AlgorithmExecutionCanceledException, java.util.concurrent.TimeoutException, AlgorithmException
java.lang.InterruptedExceptionAlgorithmExecutionCanceledExceptionjava.util.concurrent.TimeoutExceptionAlgorithmException