gate
Interface SimpleAnnotation

All Superinterfaces:
Comparable, FeatureBearer, IdBearer, Serializable
All Known Subinterfaces:
Annotation
All Known Implementing Classes:
AnnotationImpl

public interface SimpleAnnotation
extends FeatureBearer, IdBearer, Comparable, Serializable

An Annotation is an arc in an AnnotationSet. It is immutable, to avoid the situation where each annotation has to point to its parent graph in order to tell it to update its indices when it changes.

Changes from TIPSTER: no ID; single span only. SimpleAnnotation was introduced to simplify the API of annotations


Method Summary
 int compareTo(Object o)
          Ordering
 Node getEndNode()
          The end node.
 Node getStartNode()
          The start node.
 String getType()
          The type of the annotation (corresponds to TIPSTER "name").
 
Methods inherited from interface gate.util.FeatureBearer
getFeatures, setFeatures
 
Methods inherited from interface gate.util.IdBearer
getId
 

Method Detail

getType

public String getType()
The type of the annotation (corresponds to TIPSTER "name").


getStartNode

public Node getStartNode()
The start node.


getEndNode

public Node getEndNode()
The end node.


compareTo

public int compareTo(Object o)
              throws ClassCastException
Ordering

Specified by:
compareTo in interface Comparable
Throws:
ClassCastException