eaLib API Docs
Last Modified : January 7 2002

mss.ea.trm
Class Termination

java.lang.Object
  |
  +--mss.ea.trm.Termination
All Implemented Interfaces:
Condition
Direct Known Subclasses:
DoubleScoreTermination, FloatScoreTermination, IntegerScoreTermination, LongScoreTermination, MaxGenTermination

public abstract class Termination
extends java.lang.Object
implements Condition

Abstract base class for termination operator of an algorithm. Subclasses must implement the method breakCondition(), to test whether the algorithm should break or not.

Since:
0.1
Version:
0.1 (06-04-2001)
Author:
Andreas Rummler

Field Summary
protected  AbstractPopulation pop
          Population this operator works with.
 
Constructor Summary
Termination(AbstractPopulation p)
          Constructor with population.
 
Method Summary
 AbstractPopulation getPopulation()
          Gets the current stats operator.
abstract  boolean isTrue()
          Test of the break condition.
 void setPopulation(AbstractPopulation p)
          Sets a new statistics operator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pop

protected AbstractPopulation pop
Population this operator works with.
Constructor Detail

Termination

public Termination(AbstractPopulation p)
Constructor with population.
Parameters:
p - population this operator works with
Method Detail

isTrue

public abstract boolean isTrue()
Test of the break condition. Every subclass must implement this method. This method tests the break condition and returns true if the condition is fulfilled.
Specified by:
isTrue in interface Condition
Returns:
result of the test of the break condition

getPopulation

public AbstractPopulation getPopulation()
Gets the current stats operator.
Returns:
statistics operator

setPopulation

public void setPopulation(AbstractPopulation p)
Sets a new statistics operator.
Parameters:
p -  

eaLib API Docs
Last Modified : January 7 2002

Copyright © 2000-2001 Technical University of Ilmenau, Department ESS