jenes.stage.operator
Class Operator<T extends Chromosome>

java.lang.Object
  extended by jenes.stage.AbstractStage<T>
      extended by jenes.stage.operator.Operator<T>
Type Parameters:
T - The class of chromosomes to work with.
Direct Known Subclasses:
Crossover, Mutator, Selector

public abstract class Operator<T extends Chromosome>
extends AbstractStage<T>

A genetic operator used in the evolution process. It is made part of the genetic algorithm structure at the genetic algorithm set up. An operator represents the ultimate stage executing some trasformation on the input Population in order to obtain the output one.

To implement an operator it is necessary to subclass this abstract class.

Since:
1.0
Version:
1.2
Author:
Luigi Troiano, Pierpaolo Lombardi, Giuseppe Pascale, Thierry Bodhuin
See Also:
Individual, Population

Nested Class Summary
 class Operator.Statistics
          A statistics object holding the time spent to execute the operator.
 
Field Summary
protected  Random random
          the random used by the operator
protected  Operator.Statistics statistics
          the operator statistics
 
Fields inherited from class jenes.stage.AbstractStage
biggerIsBetter, ga
 
Constructor Summary
protected Operator()
          Constructs a new operator
 
Method Summary
 Operator.Statistics getStatistics()
          Returns the operator statistics
 void updateStatistics(Operator.Statistics stats)
          Updates the specified statistics at the statistics operator state
 
Methods inherited from class jenes.stage.AbstractStage
dispose, init, isBiggerBetter, process, setBiggerIsBetter, setBiggerIsBetter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

statistics

protected Operator.Statistics statistics
the operator statistics


random

protected Random random
the random used by the operator

Constructor Detail

Operator

protected Operator()
Constructs a new operator

Method Detail

getStatistics

public Operator.Statistics getStatistics()
Returns the operator statistics

Returns:
statistics

updateStatistics

public void updateStatistics(Operator.Statistics stats)
Updates the specified statistics at the statistics operator state

Parameters:
stats -