|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dfleischhacker.uni.thesis.userinterface.textbased.ResultAggregator
public class ResultAggregator
This class is used to log the results of calculations and provides methods to export the data to a file. Results are logged per test subject and testcase, a logged result consists, amongst others, of precision and recall.
Nested Class Summary | |
---|---|
class |
ResultAggregator.ErrorMessage
Subclass of Result representing an error and containing the appropriate error message |
class |
ResultAggregator.Result
Internal class representing a result consisting of testcase name and precision and recall values. |
Constructor Summary | |
---|---|
ResultAggregator(java.lang.String basedir,
java.lang.String semanticName)
Initializes an empty ResultsAggregator |
Method Summary | |
---|---|
void |
addError(java.lang.String subject,
java.lang.String testcase,
java.lang.String errorMessage)
Logs an error occuring during calculation. |
void |
addResult(java.lang.String subject,
java.lang.String testcase,
float precision,
float recall,
int evaluationAlignmentSize,
int referenceAlignmentSize,
int evaluationClosureSize,
int referenceClosureSize,
int intersectionSize)
Adds the given results for a specific subject and testcase combination into the result log. |
ResultAggregator.Result |
getResult(java.lang.String subject,
java.lang.String testcase)
Returns the result for the given subject/testcase combination. |
void |
writeXML(java.lang.String filename)
Writes the results aggregated by this ResultAggregator into the given file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResultAggregator(java.lang.String basedir, java.lang.String semanticName)
basedir
- directory serving as base for batchstartersemanticName
- name of semantic used for evaluationMethod Detail |
---|
public void addResult(java.lang.String subject, java.lang.String testcase, float precision, float recall, int evaluationAlignmentSize, int referenceAlignmentSize, int evaluationClosureSize, int referenceClosureSize, int intersectionSize)
subject
- string identifying the subjecttestcase
- string identifying the specific testcaseprecision
- precision resultrecall
- recall resultpublic void addError(java.lang.String subject, java.lang.String testcase, java.lang.String errorMessage)
subject
- subject the error occurs fortestcase
- testcase the error occurs forerrorMessage
- message describing the errorpublic ResultAggregator.Result getResult(java.lang.String subject, java.lang.String testcase)
subject
- subject to get result fortestcase
- string identifying the testcase to get result for
public void writeXML(java.lang.String filename) throws javax.xml.parsers.ParserConfigurationException, javax.xml.transform.TransformerConfigurationException, javax.xml.transform.TransformerException
filename
- filename to write the aggreated results to
javax.xml.parsers.ParserConfigurationException
javax.xml.transform.TransformerConfigurationException
javax.xml.transform.TransformerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |