|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectOperator.Collector
public class Collector
Collector is used as a base class for collecting data from a population, e.g for collecting statistics. This class should not be used to derive a class that alters a population.
Constructor Summary | |
---|---|
Collector(Operation op)
Creates a new instance of Collector |
Method Summary | |
---|---|
IndividualCatcher |
getBest()
Call the getBest(list |
Operation |
getOperation()
Get operation that operator performs |
void |
perform()
Performs the operation on the population |
void |
print(boolean toFile)
Call the print(list |
void |
setOperation(Operation op)
Set operation that operator performs |
void |
setPopulation(Population p)
Set the population on which the module will perform its operations |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Collector(Operation op)
op
- operationMethod Detail |
---|
public Operation getOperation()
Operator
getOperation
in interface Operator
public void setOperation(Operation op)
Operator
setOperation
in interface Operator
op
- operationpublic void setPopulation(Population p)
Module
setPopulation
in interface Module
p
- populationpublic void perform()
Module
perform
in interface Module
public void print(boolean toFile)
toFile
- if output is written to filepublic IndividualCatcher getBest()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |