Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

org.evolvica.core.mutate.iarray
Class RotateMutator

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.RotateMutator
All Implemented Interfaces:
IGeneticOperator, IOperator, IProcessor, java.io.Serializable

public class RotateMutator
extends IntegerArrayMutator

Rotate mutation of an array. This operator will rotate the contents of an array.

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

Field Summary
protected  int rotateDistance
          Rotate distance.
protected  float rotatePercentage
          Rotate distance (percentage value).
 
Fields inherited from class org.evolvica.core.mutate.AbstractMutator
propability
 
Fields inherited from class org.evolvica.engine.AbstractOperator
descriptor, element, id, name
 
Constructor Summary
RotateMutator()
          Constructor.
RotateMutator(float percentage)
          Constructor with number of rotated elements.
RotateMutator(int number)
          Constructor with number of rotated elements.
 
Method Summary
 int[] mutate(int[] array)
          Mutates an integer 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
 

Field Detail

rotateDistance

protected int rotateDistance
Rotate distance.


rotatePercentage

protected float rotatePercentage
Rotate distance (percentage value).

Constructor Detail

RotateMutator

public RotateMutator()
Constructor.


RotateMutator

public RotateMutator(float percentage)
Constructor with number of rotated elements.

Parameters:
percentage - percentage value of the number of elements to be rotated

RotateMutator

public RotateMutator(int number)
Constructor with number of rotated elements.

Parameters:
number - number of elements to be rotated
Method Detail

mutate

public int[] mutate(int[] array)
Description copied from class: IntegerArrayMutator
Mutates an integer array.

Specified by:
mutate in class IntegerArrayMutator
Parameters:
array - integer array to be mutated
Returns:
mutated integer array
See Also:
IntegerArrayMutator.mutate(int[])

Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

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