Package net.bmahe.genetics4j.gp.mutation
Class ProgramRandomMutatePolicyHandler<T extends Comparable<T>>
java.lang.Object
net.bmahe.genetics4j.gp.mutation.ProgramRandomMutatePolicyHandler<T>
- All Implemented Interfaces:
MutationPolicyHandler<T>
public class ProgramRandomMutatePolicyHandler<T extends Comparable<T>>
extends Object
implements MutationPolicyHandler<T>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.apache.logging.log4j.Logger
(package private) final ProgramGenerator
(package private) final RandomGenerator
-
Constructor Summary
ConstructorDescriptionProgramRandomMutatePolicyHandler
(RandomGenerator _randomGenerator, ProgramGenerator _programGenerator) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canHandle
(MutationPolicyHandlerResolver<T> mutationPolicyHandlerResolver, MutationPolicy mutationPolicy) createMutator
(AbstractEAExecutionContext<T> eaExecutionContext, AbstractEAConfiguration<T> eaConfiguration, MutationPolicyHandlerResolver<T> mutationPolicyHandlerResolver, MutationPolicy mutationPolicy)
-
Field Details
-
logger
public static final org.apache.logging.log4j.Logger logger -
randomGenerator
-
programGenerator
-
-
Constructor Details
-
ProgramRandomMutatePolicyHandler
public ProgramRandomMutatePolicyHandler(RandomGenerator _randomGenerator, ProgramGenerator _programGenerator)
-
-
Method Details
-
canHandle
public boolean canHandle(MutationPolicyHandlerResolver<T> mutationPolicyHandlerResolver, MutationPolicy mutationPolicy) - Specified by:
canHandle
in interfaceMutationPolicyHandler<T extends Comparable<T>>
-
createMutator
public Mutator createMutator(AbstractEAExecutionContext<T> eaExecutionContext, AbstractEAConfiguration<T> eaConfiguration, MutationPolicyHandlerResolver<T> mutationPolicyHandlerResolver, MutationPolicy mutationPolicy) - Specified by:
createMutator
in interfaceMutationPolicyHandler<T extends Comparable<T>>
-