net.sourceforge.cilib.entity.operators.mutation
Class MutationStrategy

java.lang.Object
  extended by 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

Constructor Summary
MutationStrategy()
           
MutationStrategy(MutationStrategy copy)
           
 
Method Summary
abstract  MutationStrategy getClone()
          Create a cloned copy of the current object and return it.
 ControlParameter getMutationProbability()
           
 String getOperator()
           
 MutationOperatorStrategy getOperatorStrategy()
          Get the defined net.sourceforge.cilib.offspringList.operators.mutation.MutationOperatorStrategy.
 RandomNumber getRandomNumber()
           
abstract  void mutate(List<? extends Entity> offspringList)
          Perform the mutation operation on the provided list of offspring individuals.
 void setMutationProbability(ControlParameter mutationProbability)
           
 void setOperator(String operator)
          This sets the operator to be used within the mutation strategy.
 void setOperatorStrategy(MutationOperatorStrategy operatorStrategy)
           
 void setRandomNumber(RandomNumber randomNumber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sourceforge.cilib.entity.operators.Operator
performOperation
 

Constructor Detail

MutationStrategy

public MutationStrategy()

MutationStrategy

public MutationStrategy(MutationStrategy copy)
Method Detail

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:
*+
timesplus, add
multiplicativeadditive

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.