Operator.Operations.ContextSensitiveOperations
Class StructuralMutation

java.lang.Object
  extended by Operator.Operations.MutationOperation
      extended by 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


Field Summary
 
Fields inherited from class Operator.Operations.MutationOperation
fitnessFunction, noOfMutationCalls, probability, rng
 
Constructor Summary
StructuralMutation(double prob, RandomNumberGenerator rng)
           
StructuralMutation(RandomNumberGenerator rng, java.util.Properties p)
           
 
Method Summary
 void doOperation(Individual operand)
          Performs the operation on an operand
 void doOperation(java.util.List<Individual> operands)
          Performs the operation on the list passed
 
Methods inherited from class Operator.Operations.MutationOperation
getRNG, setFitnessFunction, setProperties, setRNG
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StructuralMutation

public StructuralMutation(RandomNumberGenerator rng,
                          java.util.Properties p)

StructuralMutation

public StructuralMutation(double prob,
                          RandomNumberGenerator rng)
Method Detail

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