Class SinglePointArithmeticCombinationHandler<T extends Comparable<T>>
java.lang.Object
net.bmahe.genetics4j.core.combination.singlepointarithmetic.SinglePointArithmeticCombinationHandler<T>
- All Implemented Interfaces:
ChromosomeCombinatorHandler<T>
public class SinglePointArithmeticCombinationHandler<T extends Comparable<T>>
extends Object
implements ChromosomeCombinatorHandler<T>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canHandle
(ChromosomeCombinatorResolver<T> chromosomeCombinatorResolver, CombinationPolicy combinationPolicy, ChromosomeSpec chromosome) resolve
(ChromosomeCombinatorResolver<T> chromosomeCombinatorResolver, CombinationPolicy combinationPolicy, ChromosomeSpec chromosome)
-
Field Details
-
randomGenerator
-
-
Constructor Details
-
SinglePointArithmeticCombinationHandler
-
-
Method Details
-
canHandle
public boolean canHandle(ChromosomeCombinatorResolver<T> chromosomeCombinatorResolver, CombinationPolicy combinationPolicy, ChromosomeSpec chromosome) - Specified by:
canHandle
in interfaceChromosomeCombinatorHandler<T extends Comparable<T>>
-
resolve
public ChromosomeCombinator<T> resolve(ChromosomeCombinatorResolver<T> chromosomeCombinatorResolver, CombinationPolicy combinationPolicy, ChromosomeSpec chromosome) - Specified by:
resolve
in interfaceChromosomeCombinatorHandler<T extends Comparable<T>>
-