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 TypeMethodDescriptionbooleanlongReturn the generation of the start population.inthashCode()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 givenpopulationisnull.IllegalArgumentException- if the givengenerationis smaller then one
-