|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectviper.comparison.ObjectEvaluation
The standard evaluation that counts the number of matching descriptors.
| Nested Class Summary |
| Nested classes inherited from class viper.comparison.Evaluation |
Evaluation.Information |
| Constructor Summary | |
ObjectEvaluation(EvaluationParameters epf,
int level,
int targetMatch)
Creates a new instance of ObjectEvaluation |
|
| Method Summary | |
java.util.Map |
getMeasureMap()
Return a map of DescPrototypes to their evaluations. |
java.lang.String |
getName()
Gets the name of the evalutation type. |
java.io.PrintWriter |
getOutput()
Gets the human readable output stream. |
int |
getTickerSize()
Get an estimate on how long it will take to perform the evaluation. |
boolean |
isPrintingHeaders()
Tests to see if the header and footer should be printed out. |
void |
parseEvaluation(VReader reader,
DescriptorConfigs dcfgs)
Parse the vreader section. |
Evaluation.Information |
printEvaluation()
Print out the results of this evaluation. |
void |
printFooter(Evaluation.Information total)
Prints the footer information, including overall scores. |
void |
printHeader()
Prints the header information, usually about what metrics and rules were used in the evaluation. |
void |
printMetricsTo(java.io.PrintWriter output)
Print out information about evaluation |
void |
printRawMetricsTo(java.io.PrintWriter raw)
Print evaluation info in terse format |
void |
setMatrix(CompMatrix cm)
Sets the matrix to evaluate. |
void |
setOutput(java.io.PrintWriter output)
Sets where human-readable information should be printed. |
void |
setPrintingHeaders(boolean on)
Set to print headers or not. |
void |
setRaw(java.io.PrintWriter raw)
Sets the machine readable raw output stream. |
void |
setTicker(Revealer ticker)
Sets the ui for progress |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ObjectEvaluation(EvaluationParameters epf,
int level,
int targetMatch)
epf - the evaluation paramterslevel - the level to bring the evaluation totargetMatch - the target match filter type, eg MULTIPLE| Method Detail |
public void printMetricsTo(java.io.PrintWriter output)
Evaluation
printMetricsTo in interface Evaluationoutput - the output streampublic final void printRawMetricsTo(java.io.PrintWriter raw)
Evaluation
printRawMetricsTo in interface Evaluationraw - the raw stream
public void parseEvaluation(VReader reader,
DescriptorConfigs dcfgs)
throws java.io.IOException
Evaluation
parseEvaluation in interface Evaluationreader - VReader, already pointing at the begin evaluation directive.dcfgs - the target data - the evaluation uses the target names
java.io.IOExceptionEvaluation.parseEvaluation(VReader, DescriptorConfigs)public java.io.PrintWriter getOutput()
Evaluation
getOutput in interface Evaluationpublic int getTickerSize()
getTickerSize in interface Evaluationpublic boolean isPrintingHeaders()
Evaluation
isPrintingHeaders in interface Evaluationpublic Evaluation.Information printEvaluation()
printEvaluation in interface EvaluationEvaluation.printEvaluation()public void printFooter(Evaluation.Information total)
Evaluation
printFooter in interface Evaluationtotal - the totalpublic void printHeader()
Evaluation
printHeader in interface Evaluationpublic void setMatrix(CompMatrix cm)
Evaluation
setMatrix in interface Evaluationcm - the matrix to evaluatepublic void setOutput(java.io.PrintWriter output)
Evaluation
setOutput in interface Evaluationoutput - the human readable output streampublic void setPrintingHeaders(boolean on)
Evaluation
setPrintingHeaders in interface Evaluationon - true to print headerspublic void setRaw(java.io.PrintWriter raw)
Evaluation
setRaw in interface Evaluationraw - the machine readable streampublic void setTicker(Revealer ticker)
Evaluation
setTicker in interface Evaluationticker - the progress uipublic java.util.Map getMeasureMap()
getMeasureMap in interface EvaluationEvaluation.getMeasureMap()public java.lang.String getName()
Evaluation
getName in interface EvaluationObject Evaluation
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||