public class Population<I extends Individual>
extends java.lang.Object
implements java.lang.Runnable
UnifiedPopulation
Modifier and Type | Method and Description |
---|---|
I |
getChampion()
Method to find the best individual and return it
|
I |
getRandomOne() |
void |
insert(I immigrant)
Method to overwrite the genome of the individual at the end of the array
with an immigrant's genome.
|
void |
run() |
void |
setProgress(double p) |
public void setProgress(double p)
public void insert(I immigrant)
immigrant
- The Individual to be inserted.public I getChampion()
public I getRandomOne()
public void run()
run
in interface java.lang.Runnable