G
- the gene typeC
- the fitness typepublic final class EvolutionStart<G extends Gene<?,G>,C extends Comparable<? super C>> extends Object
EvolutionResult
,
EvolutionInit
,
EvolutionStreamable.stream(EvolutionStart)
,
EvolutionIterable.iterator(EvolutionStart)
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
long |
getGeneration()
Return the generation of the start population.
|
ISeq<Phenotype<G,C>> |
getPopulation()
Return the population before the evolution step.
|
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.
|
String |
toString() |
public ISeq<Phenotype<G,C>> getPopulation()
public long getGeneration()
public 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 one© 2007-2019 Franz Wilhelmstötter (2019-02-19 21:44)