|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opt4j.core.common.completer.SequentialIndividualCompleter
public class SequentialIndividualCompleter
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.
| Field Summary | |
|---|---|
protected Control |
control
|
protected Decoder<Genotype,java.lang.Object> |
decoder
|
protected Evaluator<java.lang.Object> |
evaluator
|
| Constructor Summary | |
|---|---|
SequentialIndividualCompleter(Control control,
Decoder<Genotype,java.lang.Object> decoder,
Evaluator<java.lang.Object> evaluator)
Constructs a SequentialIndividualCompleter. |
|
| Method Summary | |
|---|---|
void |
complete(Individual... individuals)
Decodes and evaluates all given Individuals if they are not
already evaluated. |
void |
complete(java.lang.Iterable<? extends Individual> iterable)
Decodes and evaluates all Individuals in the Iterable if
they are not already evaluated. |
protected void |
decode(Individual individual)
|
protected void |
evaluate(Individual individual)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Decoder<Genotype,java.lang.Object> decoder
protected final Evaluator<java.lang.Object> evaluator
protected final Control control
| Constructor Detail |
|---|
@Inject
public SequentialIndividualCompleter(Control control,
Decoder<Genotype,java.lang.Object> decoder,
Evaluator<java.lang.Object> evaluator)
SequentialIndividualCompleter.
control - the optimization controldecoder - the decoderevaluator - the evaluator| Method Detail |
|---|
public void complete(java.lang.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 completed
TerminationException - if the optimization is terminated
public void complete(Individual... individuals)
throws TerminationException
IndividualCompleterIndividuals if they are not
already evaluated.
complete in interface IndividualCompleterindividuals - the individuals to be completed
TerminationException - if the optimization is terminatedprotected void evaluate(Individual individual)
protected void decode(Individual individual)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||