org.biojavax.ga.functions
Class AbstractSelectionFunction
java.lang.Object
org.biojava.utils.AbstractChangeable
org.biojavax.ga.functions.AbstractSelectionFunction
- All Implemented Interfaces:
- Changeable, SelectionFunction
- Direct Known Subclasses:
- ProportionalSelection, SelectionFunction.Threshold
public abstract class AbstractSelectionFunction
- extends AbstractChangeable
- implements SelectionFunction
Abstract implementation of FitnessFunction
.
All custom implementations should inherit from here to get access to
change support.
- Since:
- 1.5
- Version:
- 1.0
- Author:
- Mark Schreiber
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractSelectionFunction
protected AbstractSelectionFunction()
getFitnessFunction
public FitnessFunction getFitnessFunction()
- Specified by:
getFitnessFunction
in interface SelectionFunction
setFitnessFunction
public final void setFitnessFunction(FitnessFunction func)
throws ChangeVetoException
- Description copied from interface:
SelectionFunction
- The fitness function that will be used by the select method.
- Specified by:
setFitnessFunction
in interface SelectionFunction
- Parameters:
func
- the FitnessFunction
to be used
- Throws:
ChangeVetoException
- if the change is vetoed.