jenes.stage.operator
Class Operator.Statistics

java.lang.Object
  extended by jenes.stage.operator.Operator.Statistics
Direct Known Subclasses:
Crossover.Statistics, Mutator.Statistics, Selector.Statistics
Enclosing class:
Operator<T extends Chromosome>

public class Operator.Statistics
extends java.lang.Object

A statistics object holding the time spent to execute the operator. The statistics is available by invoking the fill(jenes.stage.operator.Operator.Statistics) method: it modifies the specified statistics stage according to that of the statistics associated at the operator.


Field Summary
protected  long executionTime
          the excecution time of the last procssing of the operator
 
Constructor Summary
Operator.Statistics()
          Constructs a new statistics operator
 
Method Summary
protected  void fill(Operator.Statistics stats)
          Fills the specified statistics with the data of the operator statistics.
 long getExecutionTime()
          Returns the execution of the last processing of the operator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

executionTime

protected long executionTime
the excecution time of the last procssing of the operator

Constructor Detail

Operator.Statistics

public Operator.Statistics()
Constructs a new statistics operator

Method Detail

getExecutionTime

public long getExecutionTime()
Returns the execution of the last processing of the operator

Returns:
the time of the last processing of the operator

fill

protected void fill(Operator.Statistics stats)
Fills the specified statistics with the data of the operator statistics. At the end, these statistics will have the same state

Parameters:
stats - the statistics to fill