|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Population
Defines a population of genomes.
Method Summary | |
---|---|
void |
clear()
Clear all genomes from this population. |
Species |
createSpecies()
Create a species. |
Species |
determineBestSpecies()
Determine which species has the top genome. |
List<Genome> |
flatten()
Flatten the species into a single list of genomes. |
Genome |
getBestGenome()
|
GenomeFactory |
getGenomeFactory()
|
int |
getMaxIndividualSize()
|
int |
getPopulationSize()
|
List<Species> |
getSpecies()
|
void |
purgeInvalidGenomes()
Purge any invalid genomes. |
void |
setBestGenome(Genome bestGenome)
Set the best genome. |
void |
setGenomeFactory(GenomeFactory factory)
Set the gnome factory. |
void |
setPopulationSize(int populationSize)
Set the max population size. |
int |
size()
|
Method Detail |
---|
void clear()
Species createSpecies()
Species determineBestSpecies()
List<Genome> flatten()
Genome getBestGenome()
GenomeFactory getGenomeFactory()
int getMaxIndividualSize()
int getPopulationSize()
List<Species> getSpecies()
void setBestGenome(Genome bestGenome)
bestGenome
- The best genome.void setGenomeFactory(GenomeFactory factory)
factory
- The genome factory.void setPopulationSize(int populationSize)
populationSize
- The max population size.int size()
void purgeInvalidGenomes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |