|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object viper.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 MULTIPLEMethod Detail |
public void printMetricsTo(java.io.PrintWriter output)
Evaluation
printMetricsTo
in interface Evaluation
output
- the output streampublic final void printRawMetricsTo(java.io.PrintWriter raw)
Evaluation
printRawMetricsTo
in interface Evaluation
raw
- the raw streampublic void parseEvaluation(VReader reader, DescriptorConfigs dcfgs) throws java.io.IOException
Evaluation
parseEvaluation
in interface Evaluation
reader
- VReader, already pointing at the begin evaluation directive.dcfgs
- the target data - the evaluation uses the target names
java.io.IOException
Evaluation.parseEvaluation(VReader, DescriptorConfigs)
public java.io.PrintWriter getOutput()
Evaluation
getOutput
in interface Evaluation
public int getTickerSize()
getTickerSize
in interface Evaluation
public boolean isPrintingHeaders()
Evaluation
isPrintingHeaders
in interface Evaluation
public Evaluation.Information printEvaluation()
printEvaluation
in interface Evaluation
Evaluation.printEvaluation()
public void printFooter(Evaluation.Information total)
Evaluation
printFooter
in interface Evaluation
total
- the totalpublic void printHeader()
Evaluation
printHeader
in interface Evaluation
public void setMatrix(CompMatrix cm)
Evaluation
setMatrix
in interface Evaluation
cm
- the matrix to evaluatepublic void setOutput(java.io.PrintWriter output)
Evaluation
setOutput
in interface Evaluation
output
- the human readable output streampublic void setPrintingHeaders(boolean on)
Evaluation
setPrintingHeaders
in interface Evaluation
on
- true to print headerspublic void setRaw(java.io.PrintWriter raw)
Evaluation
setRaw
in interface Evaluation
raw
- the machine readable streampublic void setTicker(Revealer ticker)
Evaluation
setTicker
in interface Evaluation
ticker
- the progress uipublic java.util.Map getMeasureMap()
getMeasureMap
in interface Evaluation
Evaluation.getMeasureMap()
public java.lang.String getName()
Evaluation
getName
in interface Evaluation
Object Evaluation
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |