Package evo.search
Class Evolution.EvolutionBuilder
- java.lang.Object
-
- evo.search.Evolution.EvolutionBuilder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Evolution.EvolutionBuilder
aborted(boolean aborted)
Evolution abort flag.Evolution.EvolutionBuilder
bestConsumer(Consumer<io.jenetics.Phenotype<DiscreteGene,Double>> bestConsumer)
Consumer of the evolution progress.Evolution
build()
Evolution.EvolutionBuilder
configuration(Configuration configuration)
Configuration to use during the evolution.Evolution.EvolutionBuilder
history(List<io.jenetics.engine.EvolutionResult<DiscreteGene,Double>> history)
History of individuals with the best phenotype in each generation.Evolution.EvolutionBuilder
progressConsumer(Consumer<Integer> progressConsumer)
Consumer of the progress generation.String
toString()
-
-
-
Method Detail
-
progressConsumer
public Evolution.EvolutionBuilder progressConsumer(Consumer<Integer> progressConsumer)
Consumer of the progress generation. Mainly used to monitor the progress in a progress bar.- Returns:
this
.
-
bestConsumer
public Evolution.EvolutionBuilder bestConsumer(Consumer<io.jenetics.Phenotype<DiscreteGene,Double>> bestConsumer)
Consumer of the evolution progress. Consumes an evolution result.- Returns:
this
.
-
configuration
public Evolution.EvolutionBuilder configuration(Configuration configuration)
Configuration to use during the evolution.- Returns:
this
.
-
history
public Evolution.EvolutionBuilder history(List<io.jenetics.engine.EvolutionResult<DiscreteGene,Double>> history)
History of individuals with the best phenotype in each generation.- Returns:
this
.
-
aborted
public Evolution.EvolutionBuilder aborted(boolean aborted)
Evolution abort flag.- Returns:
this
.
-
build
public Evolution build()
-
-