Class NeatSelectionPolicyHandler<T extends Number & Comparable<T>>
java.lang.Object
net.bmahe.genetics4j.neat.selection.NeatSelectionPolicyHandler<T>
- All Implemented Interfaces:
SelectionPolicyHandler<T>
public class NeatSelectionPolicyHandler<T extends Number & Comparable<T>>
extends Object
implements SelectionPolicyHandler<T>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.apache.logging.log4j.Logger
private final RandomGenerator
private final SpeciesIdGenerator
-
Constructor Summary
ConstructorDescriptionNeatSelectionPolicyHandler
(RandomGenerator _randomGenerator, SpeciesIdGenerator _speciesIdGenerator) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canHandle
(SelectionPolicy selectionPolicy) resolve
(AbstractEAExecutionContext<T> eaExecutionContext, AbstractEAConfiguration<T> eaConfiguration, SelectionPolicyHandlerResolver<T> selectionPolicyHandlerResolver, SelectionPolicy selectionPolicy)
-
Field Details
-
logger
public static final org.apache.logging.log4j.Logger logger -
randomGenerator
-
speciesIdGenerator
-
-
Constructor Details
-
NeatSelectionPolicyHandler
public NeatSelectionPolicyHandler(RandomGenerator _randomGenerator, SpeciesIdGenerator _speciesIdGenerator)
-
-
Method Details
-
canHandle
- Specified by:
canHandle
in interfaceSelectionPolicyHandler<T extends Number & Comparable<T>>
-
resolve
public Selector<T> resolve(AbstractEAExecutionContext<T> eaExecutionContext, AbstractEAConfiguration<T> eaConfiguration, SelectionPolicyHandlerResolver<T> selectionPolicyHandlerResolver, SelectionPolicy selectionPolicy) - Specified by:
resolve
in interfaceSelectionPolicyHandler<T extends Number & Comparable<T>>
-