|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectOperator.OperatorModule
Operator.JoinOperator
public abstract class JoinOperator
Abstract class for joining two populations. The incomingPopulation is added to the population. Eg in ReplacementOperator
Field Summary | |
---|---|
protected Population |
incomingPopulation
|
Fields inherited from class Operator.OperatorModule |
---|
population, rng |
Constructor Summary | |
---|---|
JoinOperator()
Create new instance |
|
JoinOperator(RandomNumberGenerator rng,
Population incPop)
Constructor |
Method Summary | |
---|---|
Population |
getIncomingPopulation()
Get the population coming in |
protected void |
increaseAge(java.util.List<Individual> operands)
Increase the age of the operands by 1 |
abstract void |
perform()
Performs the operation on the population |
void |
setIncomingPopulation(Population incomingPopulation)
Set the incomming population |
abstract 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 |
Methods inherited from interface Operator.Operator |
---|
getOperation |
Field Detail |
---|
protected Population incomingPopulation
Constructor Detail |
---|
public JoinOperator(RandomNumberGenerator rng, Population incPop)
rng
- random number generatorincPop
- incomming populationpublic JoinOperator()
Method Detail |
---|
public abstract void perform()
Module
perform
in interface Module
perform
in class OperatorModule
public abstract void setOperation(Operation op)
Operator
op
- operationpublic Population getIncomingPopulation()
public void setIncomingPopulation(Population incomingPopulation)
incomingPopulation
- incomming populationprotected void increaseAge(java.util.List<Individual> operands)
operands
- operands for the operation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |