|
Public Methods |
| AG (Id id, Timeline *timeline=NULL, string type="") |
| A constructor.
|
| ~AG () |
| A destructor.
|
Id | getId () const |
| Get the id of the AG.
|
void | setType (string type) |
| Set Type.
|
string | getType () const |
| Get Type.
|
Timeline * | getTimeline () const |
| Get Timeline.
|
void | addAnchor (Anchor *a) |
| Add an anchor.
|
void | deleteAnchor (Anchor *a) throw (AGException) |
| Delete an anchor.
|
void | setAnchorOffset (Anchor *, Offset) |
| Set an anchor's offset to the specified value.
|
Anchor * | splitAnchor (Anchor *original) |
void | add (Annotation *anchor) |
| Add a new annotation to the AG.
|
Id | createAnnotation (Id id, Anchor *anchor1, Anchor *anchor2, AnnotationType annotationType) throw (AGException) |
void | setFeature (Id id, FeatureName featureName, FeatureValue featureValue) |
bool | existsFeature (Id id, FeatureName featureName) |
void | deleteFeature (Id id, FeatureName featureName) |
string | getFeature (Id id, FeatureName featureName) |
set< string > | getFeatureNames (Id id) |
void | getAnnotationFeatureNames (set< string > &S, const AnnotationType &type="") |
void | getAnnotationTypes (set< string > &S) |
void | setFeatures (Id id, map< string, string > &features) |
map< string, string > | getFeatures (Id id) |
void | unsetFeatures (Id id) |
AnchorId | createAnchor (Id id, Offset offset, Unit unit, set< string > const &ignals) |
AnchorId | createAnchor (Id id, Unit unit, set< string > const &signals) |
Offset | getAnchorOffset (Anchor *anchor) |
| Get the offset of the specified anchor.
|
Annotation * | copyAnnotation (const Annotation *annotation) |
Annotation * | splitAnnotation (Annotation *original) |
AnnotationSet | nSplitAnnotation (Annotation *original, int n) |
void | deleteAnnotation (Annotation *annotation) |
| Delete the annotation from the AG.
|
void | setStartAnchor (Annotation *annotation, Anchor *anchor) |
| Set the start anchor of an annotation to the specified anchor.
|
void | setEndAnchor (Annotation *annotation, Anchor *anchor) |
| Set the end anchor of an annotation to the specified anchor.
|
void | unsetAnchorOffset (Anchor *a) |
| Unset the offset of the specified anchor.
|
void | setFeature (Annotation *, const String &, const String &) |
| Set the specified feature of the annotation to this value.
|
AnchorSeq * | getAnchorSet () |
| Get the set of anchors, sorted by offsets.
|
IdSet & | getAnnotationSet () |
| Get the set of annotations.
|
Annotation * | getById (const Id &id) throw (AGException) |
| Get the annotation reference by its id.
|
Anchor * | getAnchorById (const Id &id) throw (AGException) |
| Get the anchor reference by its id.
|
AnchorSet | getAnchorSetByOffset (Offset offset, double epsilon=0.0) |
| Get anchors with the specified offset.
|
AnnotationSet | getAnnotationSetByType (const String &t) |
| Get the annotations of type t.
|
AnnotationSet | getAnnotationSetByOffset (Offset o) |
AnnotationSet | getAnnotationSetByFeature (const String &f, const String &v) |
| Get the annotations with value of feature f equals to v.
|
AnnotationSet | getIncomingAnnotationSet (Anchor *a) |
| Get the incoming annotations to the specified node.
|
AnnotationSet | getIncomingAnnotationSetByType (Anchor *a, AnnotationType t) |
| Get the incoming annotations of this type to the specified node.
|
AnnotationSet | getOutgoingAnnotationSet (Anchor *a) |
| Get the outgoing annotations from the specified node.
|
AnnotationSet | getOutgoingAnnotationSetByType (Anchor *a, AnnotationType t) |
| Get the outgoing annotations of this type from the specified node.
|
Offset | getNearestOffset (Offset o) |
| Get the nearest used offset to the specified offset.
|
AnnotationSeq | getAnnotationSeqByOffset (Offset begin=0.0, Offset end=0.0) |
Annotation * | getAnnotationByOffset (Offset offset, const AnnotationType &type="") |
AnchorSet | getAnchorSetNearestOffset (Offset offset) |
| Get all anchors whose offset is the nearest to the specified offset.
|
list< string > | storeSQLs (AGSetId agSetId, FeatureNameSet features) |
| Create list of SQLs used to save the metadata to the DB server.
|
string | toString () |
| Dump the AG in AIF format.
|