T
- The class of chromosomes to work with.public abstract class Operator<T extends Chromosome> extends AbstractStage<T>
Population
in order to obtain the output one.
To implement an operator it is necessary to subclass this abstract class.
Individual
,
Population
Modifier and Type | Class and Description |
---|---|
class |
Operator.Statistics
A statistics object holding the time spent to execute the operator.
|
Modifier and Type | Field and Description |
---|---|
protected Random |
random
the random used by the operator
|
protected Operator.Statistics |
statistics
the operator statistics
|
biggerIsBetter, fitness, ga
Modifier | Constructor and Description |
---|---|
protected |
Operator()
Constructs a new operator
|
Modifier and Type | Method and Description |
---|---|
Operator.Statistics |
getStatistics()
Returns the operator statistics
|
void |
updateStatistics(Operator.Statistics stats)
Updates the specified statistics at the statistics operator state
|
dispose, getFitness, init, isBiggerBetter, isFitnessChanged, process, setBiggerIsBetter, setBiggerIsBetter, setFitness, setFitness
protected Operator.Statistics statistics
protected Random random
public Operator.Statistics getStatistics()
public void updateStatistics(Operator.Statistics stats)
stats
-