|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object DefaultPopulation<T>
public class DefaultPopulation<T>
A population. It contains Individuals and some other population-level things. One of the prominent tasks preformed here is selection, with the help of a Selector.
Constructor Summary | |
---|---|
DefaultPopulation(int number,
IndividualFactory<T> individualFactory,
Selector<T> selector,
List<FitnessCase<T>> fitnessCases)
|
Method Summary | |
---|---|
EvolutionResult<T> |
getEvolutionResult()
get the result of the evolution at this point |
int |
getGenerationNumber()
|
List<Individual<T>> |
getIndividuals()
required to change and manipulate the population |
void |
nextGeneration()
this performs selection and replication so that this population is at the next generation once this method completes |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultPopulation(int number, IndividualFactory<T> individualFactory, Selector<T> selector, List<FitnessCase<T>> fitnessCases) throws AmibaException
AmibaException
Method Detail |
---|
public List<Individual<T>> getIndividuals()
Population
getIndividuals
in interface Population<T>
public EvolutionResult<T> getEvolutionResult()
getEvolutionResult
in interface Population<T>
public int getGenerationNumber()
getGenerationNumber
in interface Population<T>
public void nextGeneration() throws AmibaException
Population
nextGeneration
in interface Population<T>
AmibaException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |