Package adams.event
Interface GeneticFitnessChangeNotifier
-
- All Known Implementing Classes:
AbstractClassifierBasedGeneticAlgorithm
,AbstractClassifierBasedGeneticAlgorithmWithSecondEvaluation
,DarkLord
,Hermione
public interface GeneticFitnessChangeNotifier
Interface for genetic algorithms that notify other objects about changes of their fitness.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addFitnessChangeListener(GeneticFitnessChangeListener l)
Adds the given listener to its internal list of listeners.double
getCurrentFitness()
Returns the best currently best fitness.void
removeFitnessChangeListener(GeneticFitnessChangeListener l)
Removes the given listener from its internal list of listeners.
-
-
-
Method Detail
-
getCurrentFitness
double getCurrentFitness()
Returns the best currently best fitness.- Returns:
- the fitness
-
addFitnessChangeListener
void addFitnessChangeListener(GeneticFitnessChangeListener l)
Adds the given listener to its internal list of listeners.- Parameters:
l
- the listener to add
-
removeFitnessChangeListener
void removeFitnessChangeListener(GeneticFitnessChangeListener l)
Removes the given listener from its internal list of listeners.- Parameters:
l
- the listener to remove
-
-