|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biojavax.ga.functions.SelectionFunction.SelectAll
public static final class SelectionFunction.SelectAll
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.biojavax.ga.functions.SelectionFunction |
---|
SelectionFunction.SelectAll, SelectionFunction.Threshold |
Field Summary |
---|
Fields inherited from interface org.biojavax.ga.functions.SelectionFunction |
---|
DEFAULT |
Constructor Summary | |
---|---|
SelectionFunction.SelectAll()
|
Method Summary | |
---|---|
FitnessFunction |
getFitnessFunction()
|
Population |
select(Population pop,
GeneticAlgorithm genAlg)
Selects a Population of Organisms for
replication based on their fitness. |
void |
setFitnessFunction(FitnessFunction func)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SelectionFunction.SelectAll()
Method Detail |
---|
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()
java.lang.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
"
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |