Class SinglePointCrossoverHandler<T extends Comparable<T>>
java.lang.Object
net.bmahe.genetics4j.core.combination.singlepointcrossover.SinglePointCrossoverHandler<T>
- All Implemented Interfaces:
ChromosomeCombinatorHandler<T>
public class SinglePointCrossoverHandler<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
-
SinglePointCrossoverHandler
-
-
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>>
-