G
- the gene typepublic final class EvolutionInit<G extends Gene<?,G>> extends Object implements Serializable
EvolutionStart
,
EvolutionStreamable.stream(EvolutionInit)
,
Serialized FormModifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
long |
generation()
Return the generation of the start population.
|
long |
getGeneration()
Deprecated.
Use
generation() instead |
ISeq<Genotype<G>> |
getPopulation()
Deprecated.
Use
population() instead |
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.
|
ISeq<Genotype<G>> |
population()
Return the initial population.
|
String |
toString() |
public ISeq<Genotype<G>> population()
@Deprecated public ISeq<Genotype<G>> getPopulation()
population()
insteadpublic long generation()
@Deprecated public long getGeneration()
generation()
insteadpublic 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-2020 Franz Wilhelmstötter (2020-02-18 20:01)