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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pop
protected AbstractPopulation pop
- Population this operator works with.
Termination
public Termination(AbstractPopulation p)
- Constructor with population.
- Parameters:
p
- population this operator works with
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
-
Copyright © 2000-2001 Technical University of Ilmenau, Department ESS