|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectOperator.OperatorModule
public abstract class OperatorModule
Abstract class for Modules with operations. The OperatorModule performes its operation oon a population.
| Field Summary | |
|---|---|
protected Population |
population
|
protected RandomNumberGenerator |
rng
|
| Constructor Summary | |
|---|---|
OperatorModule()
Creates a new instance of OperatorModule |
|
OperatorModule(RandomNumberGenerator rng)
Creates a new instance of OperatorModule |
|
| Method Summary | |
|---|---|
RandomNumberGenerator |
getRNG()
Get the randomnumbergenerator |
abstract void |
perform()
Performs the operation on the population |
void |
setPopulation(Population p)
Set the population that the module will operate on |
void |
setRNG(RandomNumberGenerator m)
Set the RandomNumberGenerator |
| 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, setOperation |
| Field Detail |
|---|
protected RandomNumberGenerator rng
protected Population population
| Constructor Detail |
|---|
public OperatorModule(RandomNumberGenerator rng)
rng - random number generatorpublic OperatorModule()
| Method Detail |
|---|
public abstract void perform()
Module
perform in interface Modulepublic void setRNG(RandomNumberGenerator m)
setRNG in interface Stochasticm - RandomNumberGeneratorpublic RandomNumberGenerator getRNG()
getRNG in interface Stochasticpublic void setPopulation(Population p)
setPopulation in interface Modulep - Population
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||