Class BinaryMutation

  • All Implemented Interfaces:
    MutationPolicy

    public class BinaryMutation
    extends java.lang.Object
    implements MutationPolicy
    Mutation for BinaryChromosomes. Randomly changes one gene.
    Since:
    2.0
    Version:
    $Revision: 811685 $ $Date: 2009-09-05 19:36:48 +0200 (sam. 05 sept. 2009) $
    • Constructor Summary

      Constructors 
      Constructor Description
      BinaryMutation()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Chromosome mutate​(Chromosome original)
      Mutate the given chromosome.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BinaryMutation

        public BinaryMutation()
    • Method Detail

      • mutate

        public Chromosome mutate​(Chromosome original)
        Mutate the given chromosome. Randomly changes one gene.
        Specified by:
        mutate in interface MutationPolicy
        Parameters:
        original - the original chromosome.
        Returns:
        the mutated chromomsome.