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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
destinationPopulation
protected Population destinationPopulation
operation
protected Operation operation
SplitOperator
public SplitOperator(RandomNumberGenerator rng,
int size,
Operation op)
- New instance
- Parameters:
rng
- random number generatorsize
- sizeop
- operation
SplitOperator
public SplitOperator(RandomNumberGenerator rng,
Operation op,
java.util.Properties p)
- New instance
- Parameters:
rng
- random number generatorop
- operationp
- properties
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