G
- the gene typepublic final class EvolutionInit<G extends Gene<?,G>> extends Object
EvolutionStart
,
EvolutionStreamable.stream(EvolutionInit)
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
long |
getGeneration()
Return the generation of the start population.
|
ISeq<Genotype<G>> |
getPopulation()
Return the initial population.
|
int |
hashCode() |
static <G extends Gene<?,G>> |
of(ISeq<Genotype<G>> population,
long generation)
Create a new evolution start object with the given population and for the
given generation.
|
String |
toString() |
public ISeq<Genotype<G>> getPopulation()
public long getGeneration()
public static <G extends Gene<?,G>> EvolutionInit<G> of(ISeq<Genotype<G>> population, long generation)
G
- the gene typepopulation
- the start population.generation
- the start generation of the populationNullPointerException
- if the given population
is
null
.IllegalArgumentException
- if the given generation
is
smaller then one© 2007-2019 Franz Wilhelmstötter (2019-11-18 20:30)