gate.util
Class AnnotationDiffer.PairingImpl

java.lang.Object
  extended by gate.util.AnnotationDiffer.PairingImpl
All Implemented Interfaces:
AnnotationDiffer.Pairing
Enclosing class:
AnnotationDiffer

public class AnnotationDiffer.PairingImpl
extends Object
implements AnnotationDiffer.Pairing

Represents a pairing of a key annotation with a response annotation and the associated score for that pairing.


Method Summary
 void consume()
          Removes all mutually exclusive OTHER choices possible from the data structures.
 Annotation getKey()
          Gets the key annotation of the pairing.
 int getKeyIndex()
           
 Annotation getResponse()
          Gets the response annotation of the pairing.
 int getResponseIndex()
           
 int getScore()
           
 int getType()
          Gets the type of the pairing, one of AnnotationDiffer.CORRECT_TYPE, AnnotationDiffer.PARTIALLY_CORRECT_TYPE, AnnotationDiffer.SPURIOUS_TYPE or AnnotationDiffer.MISSING_TYPE,
 int getValue()
           
 void remove()
          Removes this choice from the two lists it belongs to
 void setType(int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getScore

public int getScore()
Specified by:
getScore in interface AnnotationDiffer.Pairing

getKeyIndex

public int getKeyIndex()
Specified by:
getKeyIndex in interface AnnotationDiffer.Pairing

getResponseIndex

public int getResponseIndex()
Specified by:
getResponseIndex in interface AnnotationDiffer.Pairing

getValue

public int getValue()
Specified by:
getValue in interface AnnotationDiffer.Pairing

getKey

public Annotation getKey()
Description copied from interface: AnnotationDiffer.Pairing
Gets the key annotation of the pairing. Can be null (for spurious matches).

Specified by:
getKey in interface AnnotationDiffer.Pairing
Returns:
an Annotation object.

getResponse

public Annotation getResponse()
Description copied from interface: AnnotationDiffer.Pairing
Gets the response annotation of the pairing. Can be null (for missing matches).

Specified by:
getResponse in interface AnnotationDiffer.Pairing
Returns:
an Annotation object.

getType

public int getType()
Description copied from interface: AnnotationDiffer.Pairing
Gets the type of the pairing, one of AnnotationDiffer.CORRECT_TYPE, AnnotationDiffer.PARTIALLY_CORRECT_TYPE, AnnotationDiffer.SPURIOUS_TYPE or AnnotationDiffer.MISSING_TYPE,

Specified by:
getType in interface AnnotationDiffer.Pairing
Returns:
an int value.

setType

public void setType(int type)
Specified by:
setType in interface AnnotationDiffer.Pairing

consume

public void consume()
Removes all mutually exclusive OTHER choices possible from the data structures. this gets removed from AnnotationDiffer.possibleChoices as well.


remove

public void remove()
Removes this choice from the two lists it belongs to

Specified by:
remove in interface AnnotationDiffer.Pairing