java.lang.Object
io.jenetics.engine.EvolutionInit<G>
- Type Parameters:
G
- the gene type
- All Implemented Interfaces:
Serializable
Represents the initialization value of an evolution stream/iterator.
- Since:
- 4.1
- Version:
- 6.0
- See Also:
- Implementation Note:
- This class is immutable and thread-safe.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
long
Return the generation of the start population.int
hashCode()
static <G extends Gene<?,
G>>
EvolutionInit<G> Create a new evolution start object with the given population and for the given generation.Return the initial population.toString()
-
Method Details
-
population
Return the initial population.- Returns:
- the initial population
-
generation
Return the generation of the start population.- Returns:
- the start generation
-
hashCode
-
equals
-
toString
-
of
public static <G extends Gene<?,G>> EvolutionInit<G> of(ISeq<Genotype<G>> population, long generation) Create a new evolution start object with the given population and for the given generation.- Type Parameters:
G
- the gene type- Parameters:
population
- the start population.generation
- the start generation of the population- Returns:
- a new evolution start object
- Throws:
NullPointerException
- if the givenpopulation
isnull
.IllegalArgumentException
- if the givengeneration
is smaller then one
-