eaLib API Docs
Last Modified : January 7 2002

mss.ea.mut
Class ListMutation

java.lang.Object
  |
  +--mss.ea.core.GeneticOperator
        |
        +--mss.ea.mut.Mutation
              |
              +--mss.ea.mut.ChromosomeMutation
                    |
                    +--mss.ea.mut.ListMutation
Direct Known Subclasses:
ReverseListMutation, ScrambleListMutation, SwapListMutation

public abstract class ListMutation
extends ChromosomeMutation

Abstract base class for mutation of Linked Lists.

Since:
0.1
Version:
0.1 (06-13-2001)
Author:
Andreas Rummler

Field Summary
protected  java.util.Random rand
          Random generator.
 
Fields inherited from class mss.ea.mut.ChromosomeMutation
mutationPropability
 
Fields inherited from class mss.ea.core.GeneticOperator
description, ID, name
 
Constructor Summary
ListMutation()
          Constructor.
ListMutation(float propability)
          Constructor with mutation propability.
 
Method Summary
 void mutate(Chromosome cr)
          Performs the mutation.
abstract  void mutate(ListChromosome cr)
          Performs the mutation on a list chromosome.
 
Methods inherited from class mss.ea.core.GeneticOperator
getDescription, getID, getName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

rand

protected java.util.Random rand
Random generator.
Constructor Detail

ListMutation

public ListMutation()
Constructor. The mutation propability is set to 0.05.

ListMutation

public ListMutation(float propability)
Constructor with mutation propability.
Parameters:
propability - mutation propability
Method Detail

mutate

public void mutate(Chromosome cr)
            throws MutationException
Performs the mutation.
Overrides:
mutate in class ChromosomeMutation
Parameters:
cr - list chromosome
Throws:
MutationException - thrown, if operator fails

mutate

public abstract void mutate(ListChromosome cr)
                     throws MutationException
Performs the mutation on a list chromosome.
Parameters:
cr - list chromosome
Throws:
MutationException - thrown, if operator fails

eaLib API Docs
Last Modified : January 7 2002

Copyright © 2000-2001 Technical University of Ilmenau, Department ESS