Operator.Operations
Class IntFlipFitness

java.lang.Object
  extended by Operator.Operations.MutationOperation
      extended by Operator.Operations.IntFlipFitness
All Implemented Interfaces:
Operation, ParameterI, Stochastic

public class IntFlipFitness
extends MutationOperation

IntFlipMutation does integer mutation. This class also record the average fitness change for the mutation at a chromosomal level

Author:
Conor

Field Summary
 
Fields inherited from class Operator.Operations.MutationOperation
fitnessFunction, noOfMutationCalls, probability, rng
 
Constructor Summary
IntFlipFitness(double prob, RandomNumberGenerator rng)
          Creates a new instance of IntFlipMutation
IntFlipFitness(RandomNumberGenerator rng, java.util.Properties p)
          New instance
 
Method Summary
 void doOperation(Individual operand)
          Calls doMutation(GEIndividual c) and then calls Individual.invalidate()
 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

IntFlipFitness

public IntFlipFitness(double prob,
                      RandomNumberGenerator rng)
Creates a new instance of IntFlipMutation

Parameters:
prob - mutation probability
rng - random number generator

IntFlipFitness

public IntFlipFitness(RandomNumberGenerator rng,
                      java.util.Properties p)
New instance

Parameters:
rng - random number generator
p - properties
Method Detail

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

doOperation

public void doOperation(Individual operand)
Calls doMutation(GEIndividual c) and then calls Individual.invalidate()

Specified by:
doOperation in interface Operation
Specified by:
doOperation in class MutationOperation
Parameters:
operand - operand to operate on