Public Methods | |
| Annotation (Id id, const Annotation *) | |
| Copy an annotation, using the given identifier. | |
| Annotation (Id id, Anchor *start, Anchor *end, String type) | |
| Id | getId () const |
| Get the id of the annotation. | |
| Anchor * | getStartAnchor () const |
| Get the start anchor of the annotation. | |
| Anchor * | getEndAnchor () const |
| Get the end anchor of the annotation. | |
| String | getAnnotationInfo () |
| String | getType () const |
| Get the type of the annotation. | |
| const FeatureMap | getFeatureMap () const |
| Get the featuremap of the annotation. | |
| FeatureValue | getFeature (const FeatureName &) |
| Get the specified feature of the annotation. | |
| const char * | getFeatureC (const FeatureName &) |
| Get the value of specified feature. | |
| bool | existsFeature (FeatureName featureName) |
| Test if the specified feature exists. | |
| void | deleteFeature (FeatureName featureName) |
| Delete the specified feature. | |
| set< string > | getFeatureNames () |
| map< string, string > | getFeatures () |
| void | unsetFeatures () |
| AG * | getAGRef () |
| Get a reference of the annotation graph containing this annotation. | |
| string | toString () |
| Dump the annotation in AIF format. | |
Protected Methods | |
| void | setStartAnchor (Anchor *a) |
| set the start anchor of the annotation | |
| void | setEndAnchor (Anchor *a) |
| set the end anchor of the annotation | |
| void | setFeature (const FeatureName &feature, const FeatureValue &value) |
| Set a feature and its value. | |
|
||||||||||||||||||||
|
A constructor. Create an annotation with given identifier, for the specified region and type.
|
|
|
Get all the information of the annotation Get all the information of the specified annotation
|
|
|
Get feature names
|
|
|
Get all the features. Returns all features in a hash table of feature-value pairs. |
|
|
Unset all the features. Set all the features to empty string. |
![]() |