Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

org.evolvica.core.mutate.iarray
Class SwapMutator

java.lang.Object
  extended byorg.evolvica.engine.AbstractOperator
      extended byorg.evolvica.core.common.AbstractGeneticOperator
          extended byorg.evolvica.core.mutate.AbstractMutator
              extended byorg.evolvica.core.mutate.iarray.IntegerArrayMutator
                  extended byorg.evolvica.core.mutate.iarray.SwapMutator
All Implemented Interfaces:
IGeneticOperator, IOperator, IProcessor, java.io.Serializable

public class SwapMutator
extends IntegerArrayMutator

Swap mutation for int arrays.

Since:
0.4.0
Version:
$Revision: 1.8 $ $Date: 2004/05/26 11:58:11 $
Author:
Andreas Rummler
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.evolvica.core.mutate.AbstractMutator
propability
 
Fields inherited from class org.evolvica.engine.AbstractOperator
descriptor, element, id, name
 
Constructor Summary
SwapMutator()
           
 
Method Summary
 int[] mutate(int[] value)
          Swaps two randomly selected objects in an int array.
 
Methods inherited from class org.evolvica.core.mutate.iarray.IntegerArrayMutator
mutate
 
Methods inherited from class org.evolvica.core.mutate.AbstractMutator
getPropability, process, setPropability
 
Methods inherited from class org.evolvica.engine.AbstractOperator
attachDescriptor, attachElement, descriptor, element, getId, getName, setId, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.evolvica.engine.IOperator
attachDescriptor, attachElement, descriptor, element, getId, getName, setId, setName
 

Constructor Detail

SwapMutator

public SwapMutator()
Method Detail

mutate

public int[] mutate(int[] value)
Swaps two randomly selected objects in an int array.

Specified by:
mutate in class IntegerArrayMutator
Parameters:
value - array to be mutated
Returns:
mutated array

Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

Copyright © 2000-2004 Technical University of Ilmenau, Department Electronic Circuits and Systems