public interface Population extends java.io.Serializable, MLMethod
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear all genomes from this population.
|
Species |
createSpecies()
Create a species.
|
Species |
determineBestSpecies()
Determine which species has the top genome.
|
java.util.List<Genome> |
flatten()
Flatten the species into a single list of genomes.
|
Genome |
getBestGenome() |
GenomeFactory |
getGenomeFactory() |
int |
getMaxIndividualSize() |
int |
getPopulationSize() |
RuleHolder |
getRules() |
java.util.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.
|
void |
setRules(RuleHolder rules)
Set the rules holder to use.
|
int |
size() |
void clear()
Species createSpecies()
Species determineBestSpecies()
java.util.List<Genome> flatten()
Genome getBestGenome()
GenomeFactory getGenomeFactory()
int getMaxIndividualSize()
int getPopulationSize()
java.util.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()
RuleHolder getRules()
void setRules(RuleHolder rules)
rules - The rules holder.