|
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.Long.LongMutator
org.evolvica.core.mutate.Long.StepMutator
Mutation of an long number with a maximal stepsize.
This operator will add a random long number within the range from 0 to a given long number.
The given number can be either positive or negative.
The mutated value = value + random( 0, stepSize )
Field Summary | |
protected long |
stepSize
Mutation step size. |
Fields inherited from class org.evolvica.core.mutate.AbstractMutator |
propability |
Fields inherited from class org.evolvica.engine.AbstractOperator |
descriptor, element, id, name |
Constructor Summary | |
StepMutator()
Constructor. |
|
StepMutator(long stepSize)
Constructor with mutation step size. |
Method Summary | |
long |
getStepSize()
Returns the step size. |
long |
mutate(long value)
Mutates a long value. |
void |
setStepSize(long i)
Sets a new value for the step size. |
Methods inherited from class org.evolvica.core.mutate.Long.LongMutator |
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 long stepSize
Constructor Detail |
public StepMutator()
public StepMutator(long stepSize)
stepSize
- mutation step sizeMethod Detail |
public long mutate(long value)
LongMutator
mutate
in class LongMutator
value
- the value to be mutated
LongMutator.mutate(long)
public long getStepSize()
public void setStepSize(long i)
i
- new value for the step size
|
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 |