Class AbstractNeatChromosomeConnectionMutationHandler<T>
java.lang.Object
net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandler<T>
- All Implemented Interfaces:
ChromosomeMutationHandler<NeatChromosome>
- Direct Known Subclasses:
NeatChromosomeAddNodeMutationHandler
,NeatChromosomeCreepMutationHandler
,NeatChromosomeRandomMutationHandler
,NeatChromosomeSwitchStateHandler
public abstract class AbstractNeatChromosomeConnectionMutationHandler<T>
extends Object
implements ChromosomeMutationHandler<NeatChromosome>
-
Field Summary
Modifier and TypeFieldDescriptionfinal org.apache.logging.log4j.Logger
private final RandomGenerator
-
Constructor Summary
ConstructorDescriptionAbstractNeatChromosomeConnectionMutationHandler
(Class<T> _mutationClazz, RandomGenerator _randomGenerator) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canHandle
(MutationPolicy mutationPolicy, ChromosomeSpec chromosome) protected RandomGenerator
mutate
(MutationPolicy mutationPolicy, Chromosome chromosome) protected abstract List
<Connection> mutateConnection
(T mutationPolicy, NeatChromosome neatChromosome, Connection oldConnection, int i)
-
Field Details
-
logger
public final org.apache.logging.log4j.Logger logger -
mutationClazz
-
randomGenerator
-
-
Constructor Details
-
AbstractNeatChromosomeConnectionMutationHandler
public AbstractNeatChromosomeConnectionMutationHandler(Class<T> _mutationClazz, RandomGenerator _randomGenerator)
-
-
Method Details
-
mutateConnection
protected abstract List<Connection> mutateConnection(T mutationPolicy, NeatChromosome neatChromosome, Connection oldConnection, int i) -
getMutationClazz
-
getRandomGenerator
-
canHandle
- Specified by:
canHandle
in interfaceChromosomeMutationHandler<T>
-
mutate
- Specified by:
mutate
in interfaceChromosomeMutationHandler<T>
-