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 SplitOperator

    java.lang.Object
      Operator.OperatorModule
          Operator.SourceModule
              Operator.SplitOperator

All Implemented Interfaces:
  Module, Operator, ParameterI, Stochastic

Direct Known Subclasses:
  SelectionScheme

    public abstract class SplitOperator

extends SourceModule

Abstract class for splitting a population. Splits the popluation to destinationPopulation used for eg. selectionScheme

Field Summary
`protected Population` | `destinationPopulation`
`protected Operation` | `operation`

Fields inherited from class Operator.SourceModule
`size`

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

Constructor Summary
`SplitOperator(RandomNumberGenerator rng, int size, Operation op)` New instance
`SplitOperator(RandomNumberGenerator rng, Operation op, java.util.Properties p)` New instance

Method Summary
`abstract Operation` | `getOperation()` Get operation that operator performs
`abstract Population` | `getPopulation()`
`abstract void` | `perform()` Performs the operation on the population
`abstract void` | `setOperation(Operation op)` Set operation that operator performs

Methods inherited from class Operator.SourceModule
`setSize`

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`

Methods inherited from interface Parameter.ParameterI
`setProperties`

Field Detail

### destinationPopulation

    protected Population destinationPopulation

### operation

    protected Operation operation

Constructor Detail

### SplitOperator

    public SplitOperator(RandomNumberGenerator rng,
                         int size,
                         Operation op)

  New instance

  Parameters:
    `rng` - random number generator
    `size` - size
    `op` - operation

### SplitOperator

    public SplitOperator(RandomNumberGenerator rng,
                         Operation op,
                         java.util.Properties p)

  New instance

  Parameters:
    `rng` - random number generator
    `op` - operation
    `p` - properties

Method Detail

### perform

    public abstract 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 abstract void setOperation(Operation op)

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

  Parameters:
    `op` - operation

### getPopulation

    public abstract Population getPopulation()

  Specified by:
    `getPopulation` in class `SourceModule`

### getOperation

    public abstract Operation getOperation()

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

  Returns:
    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