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

java.lang.Object
  extended by uk.ac.ebi.microarray.zooma.eval.DefaultMappingEvaluator
All Implemented Interfaces:
OntologyMappingEvaluator

public class DefaultMappingEvaluator
extends java.lang.Object
implements OntologyMappingEvaluator

A basic implementation of an OntologyMappingEvaluator that utilises a mapping tracker and calculator to do incremental pairwise assessments of outcomes. This evaluator assumes that the tracker can supply the single best hypothesis each time, and that the next available hypthesis should be compared. Then, it hands these to the calculator for comparison.

This class contains relatively little logic, simply delegate

Author:
Tony Burdett

Constructor Summary
DefaultMappingEvaluator()
           
 
Method Summary
 OntologyMappingOutcome evaluateOutcome(Value value, java.util.Collection<OntologyMappingHypothesis> hypotheses)
          Incrementally performs simple pairwise comparison.
protected  org.slf4j.Logger getLog()
           
 OntologyMappingCalculator getOntologyMappingCalculator()
           
 void setOntologyMappingCalculator(OntologyMappingCalculator ontologyMappingCalculator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMappingEvaluator

public DefaultMappingEvaluator()
Method Detail

getOntologyMappingCalculator

public OntologyMappingCalculator getOntologyMappingCalculator()

setOntologyMappingCalculator

public void setOntologyMappingCalculator(OntologyMappingCalculator ontologyMappingCalculator)

getLog

protected org.slf4j.Logger getLog()

evaluateOutcome

public OntologyMappingOutcome evaluateOutcome(Value value,
                                              java.util.Collection<OntologyMappingHypothesis> hypotheses)
                                       throws BadOutcomeException
Incrementally performs simple pairwise comparison. This method iterates over the next available hypothesis from the tracker until none remain, comparing each with the latest best hypothesis. On completion, this method will generate an outcome depending on the number of accepted hypotheses - 0 indicates a failed outcome, 1 a successful automatic outcome, and more than one requires curation.

Specified by:
evaluateOutcome in interface OntologyMappingEvaluator
Parameters:
value - the value that was used to generate these hypotheses
hypotheses - the hypotheses to evaluate
Returns:
the ontology mapping outcome that results from all calculations
Throws:
BadOutcomeException


Copyright © 2010. All Rights Reserved.