mutationRules
Class NoMutate

java.lang.Object
  |
  +--mutationRules.NoMutate
All Implemented Interfaces:
MutationRule

public class NoMutate
extends java.lang.Object
implements MutationRule

This is basically a simple class which can be used as a place holder

Author:
Kevin J.S. Zollman

Constructor Summary
NoMutate()
           
 
Method Summary
 double getMutationRate()
          Returns 0.0
 void mutate(Individual i)
          Does nothing
 void setMutationRate(double m, int s)
          Does nothing
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoMutate

public NoMutate()
Method Detail

setMutationRate

public void setMutationRate(double m,
                            int s)
                     throws ModelError
Does nothing

Specified by:
setMutationRate in interface MutationRule
ModelError

getMutationRate

public double getMutationRate()
Returns 0.0

Specified by:
getMutationRate in interface MutationRule

mutate

public void mutate(Individual i)
            throws ModelError
Does nothing

Specified by:
mutate in interface MutationRule
ModelError