Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## Operator
Class MutationOperator

    java.lang.Object
      Operator.OperatorModule
          Operator.MutationOperator

All Implemented Interfaces:
  Module, Operator, Stochastic

    public class MutationOperator

extends OperatorModule

MutationOperator has a MutationOperation.

Author:
  erikhemberg

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

### operation

    protected MutationOperation operation

Constructor Detail

### MutationOperator

    public MutationOperator(RandomNumberGenerator rng,
                            MutationOperation op)

  Creates a new instance of MutationOperator

  Parameters:
    `rng` - random number generator
    `op` - opertion

Method Detail

### getOperation

    public Operation getOperation()

  Description copied from interface: `Operator`
  Get operation that operator performs

  Returns:
    operation

### perform

    public void perform()

  Description copied from interface: `Module`
  Performs the operation on the population

  Specified by:
    `perform` in interface `Module`
  Specified by:
    `perform` in class `OperatorModule`

### setOperation

    public void setOperation(Operation op)

  Description copied from interface: `Operator`
  Set operation that operator performs

  Parameters:
    `op` - operation

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD