pt.uminho.anote2.datastructures.annotation
Class Annotation

java.lang.Object
  extended by pt.uminho.anote2.datastructures.annotation.Annotation
All Implemented Interfaces:
java.lang.Cloneable, IAnnotation
Direct Known Subclasses:
EntityAnnotation, EventAnnotation

public class Annotation
extends java.lang.Object
implements IAnnotation

Author:
Hugo Costa

Constructor Summary
Annotation(int id, long start, long end)
           
 
Method Summary
 IAnnotation clone()
           
 long getEndOffset()
           
 int getID()
           
 long getStartOffset()
           
 java.lang.String getType()
          NER - compound, gene, ...
 void setEndOffset(long endOffset)
           
 void setStartOffset(long startOffset)
           
 void setType(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Annotation

public Annotation(int id,
                  long start,
                  long end)
Method Detail

getStartOffset

public long getStartOffset()
Specified by:
getStartOffset in interface IAnnotation

setStartOffset

public void setStartOffset(long startOffset)

getEndOffset

public long getEndOffset()
Specified by:
getEndOffset in interface IAnnotation

setEndOffset

public void setEndOffset(long endOffset)

getType

public java.lang.String getType()
Description copied from interface: IAnnotation
NER - compound, gene, ... RE - ... Doc Relevance - relevant, irrelevant...

Specified by:
getType in interface IAnnotation

setType

public void setType(java.lang.String type)

getID

public int getID()
Specified by:
getID in interface IAnnotation

clone

public IAnnotation clone()
Specified by:
clone in interface IAnnotation
Overrides:
clone in class java.lang.Object