public class SequentialIndividualCompleter extends Object implements IndividualCompleter
The SequentialIndividualCompleter completes the Individuals
sequentially.
It updates the Individual.State of the Individual according to the state
of the completion process. It uses Control between the different
(possibly time consuming) completion steps to allow the user to control the
completion process.
| Constructor and Description |
|---|
SequentialIndividualCompleter(Control control,
Decoder decoder,
Evaluator evaluator)
Constructs a
SequentialIndividualCompleter. |
| Modifier and Type | Method and Description |
|---|---|
void |
complete(Individual... individuals)
Decodes and evaluates all given
Individuals if they are not
already evaluated. |
void |
complete(Iterable<? extends Individual> iterable)
Decodes and evaluates all
Individuals in the Iterable if
they are not already evaluated. |
@Inject public SequentialIndividualCompleter(Control control, Decoder decoder, Evaluator evaluator)
SequentialIndividualCompleter.control - the optimization controldecoder - the decoderevaluator - the evaluatorpublic void complete(Iterable<? extends Individual> iterable) throws TerminationException
IndividualCompleterIndividuals in the Iterable if
they are not already evaluated.complete in interface IndividualCompleteriterable - the set of individuals to be completedTerminationException - if the optimization is terminatedpublic void complete(Individual... individuals) throws TerminationException
IndividualCompleterIndividuals if they are not
already evaluated.complete in interface IndividualCompleterindividuals - the individuals to be completedTerminationException - if the optimization is terminated