Package org.biojavax.ga.functions
Class SelectionFunction.SelectAll
java.lang.Object
org.biojavax.ga.functions.SelectionFunction.SelectAll
- All Implemented Interfaces:
SelectionFunction
- Enclosing interface:
SelectionFunction
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionselect
(Population pop, GeneticAlgorithm genAlg) Selects aPopulation
ofOrganisms
for replication based on their fitness.void
-
Constructor Details
-
SelectAll
public SelectAll()
-
-
Method Details
-
select
Description copied from interface:SelectionFunction
Selects aPopulation
ofOrganisms
for replication based on their fitness.- Specified by:
select
in interfaceSelectionFunction
- Parameters:
pop
- thePopulation
to select from.genAlg
- the parentGeneticAlgorithm
.- Returns:
- the
Organism
s selected
-
getFitnessFunction
- Returns:
- you won't get this far, trust me!
- Throws:
UnsupportedOperationException
- as there is noFitnessFunction
for this class
-
setFitnessFunction
- Parameters:
func
- you could try this but it will throw aChangeVetoException
- Throws:
ChangeVetoException
- you Cannot set theFitnessFunction
of aSelectAll
SelectionFunction
"
-