public static final class SelectionFunction.SelectAll extends Object implements SelectionFunction
SelectionFunction.SelectAll, SelectionFunction.Threshold
DEFAULT
Constructor and Description |
---|
SelectionFunction.SelectAll() |
Modifier and Type | Method and Description |
---|---|
FitnessFunction |
getFitnessFunction() |
Population |
select(Population pop,
GeneticAlgorithm genAlg)
Selects a
Population of Organisms for
replication based on their fitness. |
void |
setFitnessFunction(FitnessFunction func) |
public SelectionFunction.SelectAll()
public Population select(Population pop, GeneticAlgorithm genAlg)
SelectionFunction
Population
of Organisms
for
replication based on their fitness.select
in interface SelectionFunction
pop
- the Population
to select from.genAlg
- the parent GeneticAlgorithm
.Organism
s selectedpublic FitnessFunction getFitnessFunction()
UnsupportedOperationException
- as there is no FitnessFunction
for this classpublic void setFitnessFunction(FitnessFunction func) throws ChangeVetoException
func
- you could try this but it will throw a
ChangeVetoException
ChangeVetoException
- you Cannot set the FitnessFunction
of a
SelectAll
SelectionFunction
"Copyright © 2014 BioJava. All rights reserved.