G
- the gene typeC
- the fitness typepublic final class EvolutionStart<G extends Gene<?,G>,C extends Comparable<? super C>> extends Object implements Serializable
EvolutionResult
,
EvolutionInit
,
EvolutionStreamable.stream(EvolutionStart)
,
Serialized FormModifier and Type | Method and Description |
---|---|
static <G extends Gene<?,G>,C extends Comparable<? super C>> |
empty()
An empty evolution start object, which can be used as initial evolution
value.
|
boolean |
equals(Object obj) |
long |
generation()
Return the generation of the start population.
|
long |
getGeneration()
Deprecated.
Use
generation() instead |
ISeq<Phenotype<G,C>> |
getPopulation()
Deprecated.
Use
population() instead |
int |
hashCode() |
static <G extends Gene<?,G>,C extends Comparable<? super C>> |
of(ISeq<Phenotype<G,C>> population,
long generation)
Create a new evolution start object with the given population and for the
given generation.
|
ISeq<Phenotype<G,C>> |
population()
Return the population before the evolution step.
|
String |
toString() |
public ISeq<Phenotype<G,C>> population()
@Deprecated public ISeq<Phenotype<G,C>> getPopulation()
population()
insteadpublic long generation()
@Deprecated public long getGeneration()
generation()
insteadpublic static <G extends Gene<?,G>,C extends Comparable<? super C>> EvolutionStart<G,C> of(ISeq<Phenotype<G,C>> population, long generation)
G
- the gene typeC
- the fitness 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 onepublic static <G extends Gene<?,G>,C extends Comparable<? super C>> EvolutionStart<G,C> empty()
Engine
is then responsible for creating the
proper initial population,G
- the gene typeC
- the fitness type© 2007-2020 Franz Wilhelmstötter (2020-02-18 20:01)