Class RouletteWheelSelectionPolicyHandler<T extends Number & Comparable<T>>
java.lang.Object
net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandler<T>
- All Implemented Interfaces:
SelectionPolicyHandler<T>
public class RouletteWheelSelectionPolicyHandler<T extends Number & Comparable<T>>
extends Object
implements SelectionPolicyHandler<T>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canHandle
(SelectionPolicy selectionPolicy) resolve
(AbstractEAExecutionContext<T> eaExecutionContext, AbstractEAConfiguration<T> eaConfiguration, SelectionPolicyHandlerResolver<T> selectionPolicyHandlerResolver, SelectionPolicy selectionPolicy)
-
Field Details
-
randomGenerator
-
-
Constructor Details
-
RouletteWheelSelectionPolicyHandler
-
-
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>>
-