|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjenes.stage.AbstractStage<T>
jenes.stage.Evaluator<T>
T
- The class chromosomes flowing across the stage.public class Evaluator<T extends Chromosome>
This stage performs a population evaluation. In general, individuals that have been alread avaluated,
do not require be evaluated again. However, in order to provide full control to the user, the class
has the property force
that if set, forces the evaluation of all individuals, despite
the fact that the some individuals cold have been already evaluated.
Field Summary | |
---|---|
protected boolean |
force
The property controlling if evaluation should be extened also to individuals already evaluated. |
Fields inherited from class jenes.stage.AbstractStage |
---|
biggerIsBetter, ga |
Constructor Summary | |
---|---|
Evaluator()
Creates a new Evaluator instance. |
|
Evaluator(boolean force)
Creates a new Evaluator instance, specifying the value of |
Method Summary | |
---|---|
boolean |
isForce()
Returns the current value of force . |
void |
process(Population<T> in,
Population<T> out)
Performs an evaluation of input population. |
void |
setForce(boolean force)
Sets the value of force . |
Methods inherited from class jenes.stage.AbstractStage |
---|
dispose, init, isBiggerBetter, setBiggerIsBetter, setBiggerIsBetter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean force
Constructor Detail |
---|
public Evaluator()
public Evaluator(boolean force)
force
- - if true, all individuals are forced to be evaluated in any case.Method Detail |
---|
public boolean isForce()
force
. By default this value is false.
force
.public void setForce(boolean force)
force
.
force
- - if true, all individuals are forced to be evaluated in any case.public void process(Population<T> in, Population<T> out) throws StageException
process
in class AbstractStage<T extends Chromosome>
in
- - the input population.out
- - equals the input population
StageException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |