Operator
Class SimpleReplacementStrategy
java.lang.Object
Operator.OperatorModule
Operator.JoinOperator
Operator.SimpleReplacementStrategy
- All Implemented Interfaces:
- Module, Operator, Stochastic
public class SimpleReplacementStrategy
- extends JoinOperator
SimpleReplacementStrategy joins two populations. It has a ReplacementOperation
The ReplacementOperation is performed on the population before the incoming population is joined
- Author:
- Blip
Method Summary |
Operation |
getOperation()
Get operation that operator performs |
void |
perform()
A ReplacementOperation is performed on the original population
before the incomigPopulation is joined. |
void |
setOperation(Operation op)
Set operation that operator performs |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
replacementOperation
protected ReplacementOperation replacementOperation
SimpleReplacementStrategy
public SimpleReplacementStrategy(RandomNumberGenerator rng,
Population incPop,
ReplacementOperation rO)
- Creates a new instance of SimpleReplacementStrategy
- Parameters:
rng
- random number generatorincPop
- incomming populationrO
- replacement operation
SimpleReplacementStrategy
public SimpleReplacementStrategy()
- New instance
perform
public void perform()
- A ReplacementOperation is performed on the original population
before the incomigPopulation is joined. Competition among the
children if Selection Size is larger then replacement size
- Specified by:
perform
in interface Module
- Specified by:
perform
in class JoinOperator
setOperation
public void setOperation(Operation op)
- Description copied from interface:
Operator
- Set operation that operator performs
- Specified by:
setOperation
in interface Operator
- Specified by:
setOperation
in class JoinOperator
- Parameters:
op
- operation
getOperation
public Operation getOperation()
- Description copied from interface:
Operator
- Get operation that operator performs
- Returns:
- operation