|
Evolvica Core API Version 0.6.2 Last Modified: June 29 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.evolvica.engine.AbstractOperator
org.evolvica.core.common.AbstractGeneticOperator
org.evolvica.core.mutate.AbstractMutator
org.evolvica.core.mutate.iarray.IntegerArrayMutator
org.evolvica.core.mutate.iarray.RotateMutator
Rotate mutation of an array. This operator will rotate the contents of an array.
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 |
protected int rotateDistance
protected float rotatePercentage
Constructor Detail |
public RotateMutator()
public RotateMutator(float percentage)
percentage
- percentage value of the number of elements to be rotatedpublic RotateMutator(int number)
number
- number of elements to be rotatedMethod Detail |
public int[] mutate(int[] array)
IntegerArrayMutator
mutate
in class IntegerArrayMutator
array
- integer array to be mutated
IntegerArrayMutator.mutate(int[])
|
Evolvica Core API Version 0.6.2 Last Modified: June 29 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |