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 CrossoverModule

    java.lang.Object
      Operator.OperatorModule
          Operator.CrossoverModule

All Implemented Interfaces:
  Module, Operator, Stochastic

    public class CrossoverModule

extends OperatorModule

CrossoverModule performs crossover on an entire population. This will typically be the portion of the main population that has been selected for reproduction. The specifics of the crossover depend on the particular operation used.

Author:
  Blip

Field Summary

Fields inherited from class Operator.OperatorModule
`population, rng`

Constructor Summary
`CrossoverModule(RandomNumberGenerator m, CrossoverOperation xOver)` Creates a new instance of CrossoverModule

Method Summary
`Operation` | `getOperation()` Get operation that operator performs
`void` | `perform()` Crossover is performed on in pairs.
`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`

Constructor Detail

### CrossoverModule

    public CrossoverModule(RandomNumberGenerator m,
                           CrossoverOperation xOver)

  Creates a new instance of CrossoverModule

  Parameters:
    `m` - random number generator
    `xOver` - crossover operation

Method Detail

### perform

    public void perform()

  Crossover is performed on in pairs. The neighbouring individuals will be crossed over

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

### getOperation

    public Operation getOperation()

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

  Returns:
    operation

### 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