Class NeatChromosomeCombinator<T extends Comparable<T>>
java.lang.Object
net.bmahe.genetics4j.neat.combination.NeatChromosomeCombinator<T>
- All Implemented Interfaces:
ChromosomeCombinator<T>
public class NeatChromosomeCombinator<T extends Comparable<T>>
extends Object
implements ChromosomeCombinator<T>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.apache.logging.log4j.Logger
private final NeatCombination
private final ParentComparisonHandler
private final RandomGenerator
-
Constructor Summary
ConstructorDescriptionNeatChromosomeCombinator
(RandomGenerator _randomGenerator, NeatCombination _neatCombination, ParentComparisonHandler _parentComparisonHandler) -
Method Summary
Modifier and TypeMethodDescriptioncombine
(AbstractEAConfiguration<T> eaConfiguration, Chromosome firstChromosome, T firstParentFitness, Chromosome secondChromosome, T secondParentFitness) private void
insertInlinksCache
(Map<Integer, Set<Integer>> linksCache, Connection connection) private boolean
linksCacheContainsConnection
(Map<Integer, Set<Integer>> linksCache, Connection connection) protected boolean
shouldReEnable
(Connection chosenParent, Connection otherParent)
-
Field Details
-
logger
public static final org.apache.logging.log4j.Logger logger -
randomGenerator
-
neatCombination
-
parentComparisonHandler
-
-
Constructor Details
-
NeatChromosomeCombinator
public NeatChromosomeCombinator(RandomGenerator _randomGenerator, NeatCombination _neatCombination, ParentComparisonHandler _parentComparisonHandler)
-
-
Method Details
-
linksCacheContainsConnection
private boolean linksCacheContainsConnection(Map<Integer, Set<Integer>> linksCache, Connection connection) -
insertInlinksCache
-
shouldReEnable
-
combine
public List<Chromosome> combine(AbstractEAConfiguration<T> eaConfiguration, Chromosome firstChromosome, T firstParentFitness, Chromosome secondChromosome, T secondParentFitness) - Specified by:
combine
in interfaceChromosomeCombinator<T extends Comparable<T>>
-