Operator.Operations.ContextSensitiveOperations
Class StructuralMutation
java.lang.Object
Operator.Operations.MutationOperation
Operator.Operations.ContextSensitiveOperations.StructuralMutation
- All Implemented Interfaces:
- Operation, ParameterI, Stochastic
public class StructuralMutation
- extends MutationOperation
This will find if the chromosome contains a expandable structural node
and will mutate it depending on the mutation probability
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StructuralMutation
public StructuralMutation(RandomNumberGenerator rng,
java.util.Properties p)
StructuralMutation
public StructuralMutation(double prob,
RandomNumberGenerator rng)
doOperation
public void doOperation(Individual operand)
- Description copied from interface:
Operation
- Performs the operation on an operand
- Specified by:
doOperation
in interface Operation
- Specified by:
doOperation
in class MutationOperation
- Parameters:
operand
- operand to perform operation on
doOperation
public void doOperation(java.util.List<Individual> operands)
- Description copied from interface:
Operation
- Performs the operation on the list passed
- Specified by:
doOperation
in interface Operation
- Specified by:
doOperation
in class MutationOperation
- Parameters:
operands
- operands to be operated on