Module io.jenetics.base
Package io.jenetics.engine
Interface Engine.Setup<G extends Gene<?,G>,C extends Comparable<? super C>>
- Type Parameters:
G
- the gene typeC
- the fitness result type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface Engine.Setup<G extends Gene<?,G>,C extends Comparable<? super C>>
This interface represents a recipe for configuring (setup) a given
Engine.Builder
. It is mainly used for grouping mutually dependent
engine configurations. The following code snippet shows a possible usage
example.
final Engine<CharacterGene, Integer> engine = Engine.builder(problem)
.setup(new WeaselProgram<>())
.build();
- Since:
- 6.0
- Version:
- 6.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(Engine.Builder<G, C> builder) Appliesthis
setup to the given enginebuilder
.
-
Method Details
-
apply
Appliesthis
setup to the given enginebuilder
.- Parameters:
builder
- the engine builder to set up (configure)
-