|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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. The event code is needed so a persistent annotation set can listen to its annotations and update correctly the database
Method Summary | |
void |
addAnnotationListener(AnnotationListener l)
Adds an annotation listener |
boolean |
coextensive(Annotation anAnnot)
Two Annotation are coestensive if their offsets are the same. |
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"). |
boolean |
isCompatible(Annotation anAnnot)
This verifies if this annotation is compatible with another one. |
boolean |
isCompatible(Annotation anAnnot,
Set aFeatureNamesSet)
This verifies if this annotation is compatible with another one, given a set with certain keys. |
boolean |
isPartiallyCompatible(Annotation anAnnot)
This method verifies if two annotation and are partially compatible. |
boolean |
isPartiallyCompatible(Annotation anAnnot,
Set aFeatureNamesSet)
This method verifies if two annotation and are partially compatible, given a set with certain keys. |
boolean |
overlaps(Annotation aAnnot)
This method tells if this overlaps aAnnot. |
void |
removeAnnotationListener(AnnotationListener l)
Removes an annotation listener |
Methods inherited from interface gate.util.FeatureBearer |
getFeatures, setFeatures |
Methods inherited from interface gate.util.IdBearer |
getId |
Method Detail |
public String getType()
public Node getStartNode()
public Node getEndNode()
public int compareTo(Object o) throws ClassCastException
compareTo
in interface Comparable
ClassCastException
public boolean isCompatible(Annotation anAnnot)
anAnnot
- a gate Annotation.
true
if aAnnot is compatible with this> and
false
otherwise.public boolean isCompatible(Annotation anAnnot, Set aFeatureNamesSet)
anAnnot
- a gate Annotation.aFeatureNamesSet
- is a set containing certian key that will be
intersected with this's FeatureMap's keys.
true
if aAnnot is compatible with this> and
false
otherwise.public boolean isPartiallyCompatible(Annotation anAnnot)
anAnnot
- a gate Annotation.
true
if this is partially compatible with
aAnnot and false
otherwise.public boolean isPartiallyCompatible(Annotation anAnnot, Set aFeatureNamesSet)
anAnnot
- a gate Annotation.aFeatureNamesSet
- is a set containing certian key that will be
intersected with this's FeatureMap's keys.
true
if this is partially compatible with
aAnnot and false
otherwise.public boolean coextensive(Annotation anAnnot)
anAnnot
- A Gate annotation.
true
if two annotation hit the same possition and
false
otherwisepublic boolean overlaps(Annotation aAnnot)
aAnnot
- a gate Annotation.
true
if they overlap and false
false if
they don't.public void removeAnnotationListener(AnnotationListener l)
public void addAnnotationListener(AnnotationListener l)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |