net.sourceforge.nite.datainspection.data
Interface NOMElementToValueDelegate


public interface NOMElementToValueDelegate

This interface is used to get Values from NOMElements: Values are used in combination with a DistanceMetric to determine kappa and alpha for annotations. See the package documentation for more information about Values and their role in reliability calculations.


Method Summary
 Value getGapValue()
          Return a Value as used in the calc package for building CoincidenceMatrices, representing an empty element or a gap.
 Value getValueForNOMElement(NOMElement nme)
          Return a Value as used in the calc package for building CoincidenceMatrices, for the given annotation element.
 

Method Detail

getValueForNOMElement

Value getValueForNOMElement(NOMElement nme)
Return a Value as used in the calc package for building CoincidenceMatrices, for the given annotation element.


getGapValue

Value getGapValue()
Return a Value as used in the calc package for building CoincidenceMatrices, representing an empty element or a gap. This method is necessary to make sure that the Value associated with an empty element is always of the same class as the Value returned by getValueForNOMElement. E.g., if getValueForNOMElement returns a SetValue, getGapValue should also return a SetValue (empty) to make sure that the two values can be compared.