Class NeatCombinationHandler<T extends Comparable<T>>
java.lang.Object
net.bmahe.genetics4j.neat.combination.NeatCombinationHandler<T>
- All Implemented Interfaces:
ChromosomeCombinatorHandler<T>
public class NeatCombinationHandler<T extends Comparable<T>>
extends Object
implements ChromosomeCombinatorHandler<T>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ParentComparisonHandlerLocator
private final RandomGenerator
-
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
-
parentComparisonHandlerLocator
-
-
Constructor Details
-
NeatCombinationHandler
-
-
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>>
-