|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAnnotation
An example of the kind of information that can be attached to the nodes of the suffix tree: here, the sum of the length of all the labels on the path from the root to the current node.
Field Summary | |
private Info |
next
|
private int |
pathLength
|
Constructor Summary | |
(package private) |
Annotation(int pathLength)
Stores pathLen in this Annotation object. |
Method Summary | |
private static void |
addPathLength(int prefix,
NodeInterface node)
|
static void |
addPathLength(SuffixTree tree)
A class method to decorate a tree with pathLen information at each node. |
Info |
getNextInfo()
Returns the next element of information stored at that node. |
int |
getPathLength()
Returns the pathLen. |
void |
setNextInfo(Info next)
Add an element of information to this node. |
java.lang.String |
toString()
Returns a String representation of this and the following elements of information. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private int pathLength
private Info next
Constructor Detail |
Annotation(int pathLength)
Method Detail |
public Info getNextInfo()
getNextInfo
in interface Info
public void setNextInfo(Info next)
setNextInfo
in interface Info
public int getPathLength()
public static void addPathLength(SuffixTree tree)
private static void addPathLength(int prefix, NodeInterface node)
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |