|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectOperator.OperatorModule
Operator.MutationOperator
public class MutationOperator
MutationOperator has a MutationOperation.
Field Summary | |
---|---|
protected MutationOperation |
operation
|
Fields inherited from class Operator.OperatorModule |
---|
population, rng |
Constructor Summary | |
---|---|
MutationOperator(RandomNumberGenerator rng,
MutationOperation op)
Creates a new instance of MutationOperator |
Method Summary | |
---|---|
Operation |
getOperation()
Get operation that operator performs |
void |
perform()
Performs the operation on the population |
void |
setOperation(Operation op)
Set operation that operator performs |
Methods inherited from class Operator.OperatorModule |
---|
getRNG, setPopulation, setRNG |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected MutationOperation operation
Constructor Detail |
---|
public MutationOperator(RandomNumberGenerator rng, MutationOperation op)
rng
- random number generatorop
- opertionMethod Detail |
---|
public Operation getOperation()
Operator
public void perform()
Module
perform
in interface Module
perform
in class OperatorModule
public void setOperation(Operation op)
Operator
op
- operation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |