jenes
Class GeneticAlgorithm.Statistics

java.lang.Object
  extended by jenes.GeneticAlgorithm.Statistics
Enclosing class:
GeneticAlgorithm<T extends Chromosome>

public static final class GeneticAlgorithm.Statistics
extends java.lang.Object

} This class provides some basic statistics regarding the algorithm execution.


Method Summary
 long getExecutionTime()
          Returns the algorithm execution time.
 long getGenerationEndTime(int gen)
          Returns the generation end time of the specified generation.
 int getGenerationLimit()
          Returns the algorithm generation limit.
 int getGenerations()
          Returns the last generation counter.
 long getInitTime()
          Returns the algorithm init time.
 long getStartTime()
          Returns the algorithm starting time.
 long getStopTime()
          Returns the algorithm stoppping time.
 boolean isExceptionTerminated()
          Says if an exception terminated the evolution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getStartTime

public final long getStartTime()
Returns the algorithm starting time.

Returns:
the starting time expressed in milliseconds

getStopTime

public final long getStopTime()
Returns the algorithm stoppping time.

Returns:
the stopping time expressed in milliseconds

getInitTime

public final long getInitTime()
Returns the algorithm init time.

Returns:
the init time expressed in milliseconds

getExecutionTime

public final long getExecutionTime()
Returns the algorithm execution time.

Returns:
the algorithm execution time expressed in milliseconds

getGenerations

public final int getGenerations()
Returns the last generation counter.

Returns:
the generation counter

getGenerationLimit

public final int getGenerationLimit()
Returns the algorithm generation limit.

Returns:
the generations limit

getGenerationEndTime

public final long getGenerationEndTime(int gen)
Returns the generation end time of the specified generation.

Parameters:
gen - the generation with end time is desidered
Returns:
the end time of the generation gen

isExceptionTerminated

public final boolean isExceptionTerminated()
Says if an exception terminated the evolution.

Returns:
true if an exception terminated the evolution, false otherwise