|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectOperator.OperatorModule
Operator.CrossoverModule
public class CrossoverModule
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.
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 |
---|
public CrossoverModule(RandomNumberGenerator m, CrossoverOperation xOver)
m
- random number generatorxOver
- crossover operationMethod Detail |
---|
public void perform()
perform
in interface Module
perform
in class OperatorModule
public Operation getOperation()
Operator
public void setOperation(Operation op)
Operator
op
- operation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |