uk.ac.ebi.microarray.zooma.eval
Class ReportWriterDecorator

java.lang.Object
  extended by uk.ac.ebi.microarray.zooma.eval.OntologyMappingOutcomeDecorator
      extended by uk.ac.ebi.microarray.zooma.eval.ReportWriterDecorator
All Implemented Interfaces:
OntologyMappingOutcome

public class ReportWriterDecorator
extends OntologyMappingOutcomeDecorator

An outcome decorator that decorates an outcome with the ability to generate text reports whenever the outcome is applied.

Author:
Tony Burdett

Constructor Summary
protected ReportWriterDecorator(OntologyMappingOutcome outcome)
           
 
Method Summary
 void apply()
          When applied, this outcome will write a report on itself to it's file.
static OntologyMappingOutcome generateTextReportOutcome(OntologyMappingOutcome outcome, TextReportWriter reportWriter)
           
 TextReportWriter getReportWriter()
           
 void setReportWriter(TextReportWriter reportWriter)
           
 
Methods inherited from class uk.ac.ebi.microarray.zooma.eval.OntologyMappingOutcomeDecorator
getBestHypotheses, getOutcome, getUnmappedValue, isAutomaticallyAcceptable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportWriterDecorator

protected ReportWriterDecorator(OntologyMappingOutcome outcome)
Method Detail

generateTextReportOutcome

public static OntologyMappingOutcome generateTextReportOutcome(OntologyMappingOutcome outcome,
                                                               TextReportWriter reportWriter)

getReportWriter

public TextReportWriter getReportWriter()

setReportWriter

public void setReportWriter(TextReportWriter reportWriter)

apply

public void apply()
           throws BadOutcomeException
When applied, this outcome will write a report on itself to it's file.

Specified by:
apply in interface OntologyMappingOutcome
Overrides:
apply in class OntologyMappingOutcomeDecorator
Throws:
BadOutcomeException


Copyright © 2010. All Rights Reserved.