public final class Crossover.Statistics extends Operator.Statistics
Operator.getStatistics()
to have a new statistics setted according to the crossover state or
Operator.updateStatistics(jenes.stage.operator.Operator.Statistics)
to modify an existing statistics according
to the crossover state.
Esamples of use are showed below.
Crossover.Statistics stat = a_crossover.getStatistics();
returns a new statistics object setted according to the specified crossover state.
Crossover.Statistics stat = new Crossover.Statistics(); a_crossover.updateStatistics(stat);
modifies the existing statistics according to the specified crossover state.
Modifier and Type | Field and Description |
---|---|
protected long |
crossovers
Number of crossovers performed.
|
executionTime
Constructor and Description |
---|
Crossover.Statistics() |
Modifier and Type | Method and Description |
---|---|
protected void |
fill(Operator.Statistics stats)
Fills the specified statistics with the data of
the operator statistics.
|
long |
getCrossovers()
Returns the number of crossovers performed.
|
getExecutionTime
public final long getCrossovers()
protected final void fill(Operator.Statistics stats)
Operator.Statistics
fill
in class Operator.Statistics
stats
- the statistics to fill