net.sourceforge.cilib.entity.operators.mutation
Class MutationStrategy
java.lang.Object
net.sourceforge.cilib.entity.operators.mutation.MutationStrategy
- All Implemented Interfaces:
- Serializable, Operator, Cloneable
- Direct Known Subclasses:
- CauchyMutationStrategy, GaussianMutationStrategy, UniformMutationStrategy
public abstract class MutationStrategy
- extends Object
- implements Operator
- Author:
- Andries Engelbrecht, Gary Pampara
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MutationStrategy
public MutationStrategy()
MutationStrategy
public MutationStrategy(MutationStrategy copy)
getClone
public abstract MutationStrategy getClone()
- Create a cloned copy of the current object and return it. In general
the created copy will be a deep copy of the provided instance. As
a result this operation an be quite expensive if used incorrectly.
- Specified by:
getClone
in interface Operator
- Specified by:
getClone
in interface Cloneable
- Returns:
- An exact clone of the current object instance.
- See Also:
Object.clone()
mutate
public abstract void mutate(List<? extends Entity> offspringList)
- Perform the mutation operation on the provided list of offspring individuals.
- Parameters:
offspringList
- The list of Entity instances to perform a
mutation on.
getMutationProbability
public ControlParameter getMutationProbability()
- Returns:
setMutationProbability
public void setMutationProbability(ControlParameter mutationProbability)
- Parameters:
mutationProbability
-
getRandomNumber
public RandomNumber getRandomNumber()
setRandomNumber
public void setRandomNumber(RandomNumber randomNumber)
getOperator
public String getOperator()
setOperator
public void setOperator(String operator)
- This sets the operator to be used within the mutation strategy.
The mutation can be multiplicative or additive.
Valid values for the operator are defined in the list below.
Multiplicative: | Additive: |
* | + |
times | plus, add |
multiplicative | additive |
- Parameters:
operator
- A String
defining the desired operation
getOperatorStrategy
public MutationOperatorStrategy getOperatorStrategy()
- Get the defined
net.sourceforge.cilib.offspringList.operators.mutation.MutationOperatorStrategy
.
- Returns:
setOperatorStrategy
public void setOperatorStrategy(MutationOperatorStrategy operatorStrategy)
Copyright © 2009 CIRG. All Rights Reserved.