net.sf.amiba.evolve.population
Interface Population<T>

All Known Implementing Classes:
DefaultPopulation

public interface Population<T>

Population is a collection of Indiaviduals. Population is mutable. It is passed around so that various genetic operations can change it. In general, changing a passed argument would be a bad programming practice but it suits our purpose, reflects what we want to do and saves a lot of CPU time by not creating a copy of the population at every generation. The process of selection and replication remains with Population. An EvolutionResult can be obtained from Population at any time that stores the snapshot of the population at that time.

Author:
juber patel

Method Summary
 EvolutionResult<T> getEvolutionResult()
          get the result of the evolution
 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
 

Method Detail

getIndividuals

List<Individual<T>> getIndividuals()
required to change and manipulate the population


getEvolutionResult

EvolutionResult<T> getEvolutionResult()
get the result of the evolution


getGenerationNumber

int getGenerationNumber()

nextGeneration

void nextGeneration()
                    throws AmibaException
this performs selection and replication so that this population is at the next generation once this method completes

Throws:
AmibaException