|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectOperator.OperatorModule
Operator.SourceModule
Operator.SplitOperator
Operator.SelectionScheme
public class SelectionScheme
SelectionScheme has a SelectionOperation This opertor is used for selecting from the population
Field Summary |
---|
Fields inherited from class Operator.SplitOperator |
---|
destinationPopulation, operation |
Fields inherited from class Operator.SourceModule |
---|
size |
Fields inherited from class Operator.OperatorModule |
---|
population, rng |
Constructor Summary | |
---|---|
SelectionScheme(RandomNumberGenerator rng,
int size,
Operation op)
Creates a new instance of SelectionScheme |
|
SelectionScheme(RandomNumberGenerator rng,
Operation op)
Creates a new instance of SelectionScheme |
Method Summary | |
---|---|
Operation |
getOperation()
Get operation that operator performs |
Population |
getPopulation()
Returns the selected population. |
static void |
main(java.lang.String[] Args)
|
void |
perform()
Performs the operation on the population |
void |
setOperation(Operation op)
Set operation that operator performs |
void |
setProperties(java.util.Properties p)
Set properties |
Methods inherited from class Operator.SourceModule |
---|
setSize |
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 SelectionScheme(RandomNumberGenerator rng, int size, Operation op)
rng
- random number generatorsize
- sizeop
- operationpublic SelectionScheme(RandomNumberGenerator rng, Operation op)
rng
- random number generatorop
- operationMethod Detail |
---|
public void setProperties(java.util.Properties p)
p
- object containing propertiespublic void perform()
Module
perform
in interface Module
perform
in class SplitOperator
public void setOperation(Operation op)
Operator
setOperation
in interface Operator
setOperation
in class SplitOperator
op
- operationpublic Operation getOperation()
Operator
getOperation
in interface Operator
getOperation
in class SplitOperator
public Population getPopulation()
getPopulation
in class SplitOperator
public static void main(java.lang.String[] Args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |