|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectOperator.Operations.MutationOperation
public abstract class MutationOperation
Abstract class for mutaion operation.
| Field Summary | |
|---|---|
protected FitnessFunction |
fitnessFunction
|
protected double |
noOfMutationCalls
|
protected double |
probability
|
protected RandomNumberGenerator |
rng
|
| Constructor Summary | |
|---|---|
MutationOperation(double prob,
RandomNumberGenerator rng)
Creates a new instance of MutationOperation |
|
MutationOperation(RandomNumberGenerator rng,
java.util.Properties p)
Creates a new instance of MutationOperation |
|
| Method Summary | |
|---|---|
abstract void |
doOperation(Individual operand)
Performs the operation on an operand |
abstract void |
doOperation(java.util.List<Individual> operand)
Performs the operation on the list passed |
RandomNumberGenerator |
getRNG()
Get the number generator |
void |
setFitnessFunction(FitnessFunction ff)
|
void |
setProperties(java.util.Properties p)
Set properties |
void |
setRNG(RandomNumberGenerator m)
Set the number generator |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected double probability
protected double noOfMutationCalls
protected RandomNumberGenerator rng
protected FitnessFunction fitnessFunction
| Constructor Detail |
|---|
public MutationOperation(double prob,
RandomNumberGenerator rng)
prob - mutation probabilityrng - random number generator
public MutationOperation(RandomNumberGenerator rng,
java.util.Properties p)
rng - random number generatorp - properties| Method Detail |
|---|
public void setProperties(java.util.Properties p)
setProperties in interface ParameterIp - object containing propertiespublic abstract void doOperation(Individual operand)
Operation
doOperation in interface Operationoperand - operand to perform operation onpublic abstract void doOperation(java.util.List<Individual> operand)
Operation
doOperation in interface Operationoperand - operands to be operated onpublic void setFitnessFunction(FitnessFunction ff)
public void setRNG(RandomNumberGenerator m)
Stochastic
setRNG in interface Stochasticm - number generatorpublic RandomNumberGenerator getRNG()
Stochastic
getRNG in interface Stochastic
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||