|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectOperator.Operations.StatisticsCollectionOperation
public class StatisticsCollectionOperation
Operation that collects statistics from the algorithm. Catches statistics from the run. Cathes statistics about the individuals.
| Field Summary | |
|---|---|
protected java.lang.String |
fileName
|
protected IndividualCatcher |
indCatch
|
protected StatCatcher |
stats
|
| Constructor Summary | |
|---|---|
StatisticsCollectionOperation(StatCatcher stats,
IndividualCatcher indCatch)
Creates a new instance of StatisticsCollectionOperation |
|
StatisticsCollectionOperation(StatCatcher stats,
IndividualCatcher indCatch,
java.util.Properties p)
Creates a new instance of StatisticsCollectionOperation |
|
| Method Summary | |
|---|---|
void |
doOperation(Individual operand)
Performs the operation on an operand |
void |
doOperation(java.util.List<Individual> operands)
Store the time of the operation. |
IndividualCatcher |
getBest(java.util.List<Individual> operand)
Return the best individual in the group |
IndividualCatcher |
getIndividualCatcher()
Return IndividualCatcher for information retival. |
StatCatcher |
getStats()
Return StatCatcher for information retival. |
void |
print(java.util.List<Individual> operand,
boolean toFile)
Print the statistics to file. |
void |
printHeader()
Prints the header for statistics output |
void |
printStatistics(long time)
Print stats for the current generation |
void |
printStats()
Print the StatCatcher to file |
void |
setProperties(java.util.Properties p)
Set properties |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected StatCatcher stats
protected IndividualCatcher indCatch
protected java.lang.String fileName
| Constructor Detail |
|---|
public StatisticsCollectionOperation(StatCatcher stats,
IndividualCatcher indCatch)
stats - statistics extractionindCatch - indivudal information extraction
public StatisticsCollectionOperation(StatCatcher stats,
IndividualCatcher indCatch,
java.util.Properties p)
stats - statistics extractionindCatch - indivudal information extractionp - properties| Method Detail |
|---|
public void printHeader()
public void printStatistics(long time)
time - time it took to runpublic void setProperties(java.util.Properties p)
setProperties in interface ParameterIp - object containing propertiespublic void doOperation(Individual operand)
Operation
doOperation in interface Operationoperand - operand to perform operation onpublic void doOperation(java.util.List<Individual> operands)
doOperation in interface Operationoperands - Individuals used for data derivationpublic StatCatcher getStats()
public IndividualCatcher getIndividualCatcher()
public void print(java.util.List<Individual> operand,
boolean toFile)
print in interface OutputIoperand - Individuals that will be printedtoFile - Boolean for printing to filepublic IndividualCatcher getBest(java.util.List<Individual> operand)
getBest in interface OutputIoperand - Individuals that will be printedpublic void printStats()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||