|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectLeafNode
Field Summary | |
private SuffixCoordinates |
coordinates
the coordinates of one of the suffixes ending at this leaf node |
private Info |
info
May contain additional information about this node (such as lca info). |
private int |
leftIndex
The starting index of the branch that leads to this node. |
private int |
length
The length of the branch leading to this node. |
private java.lang.Object |
rightSybling
Link to the right sybling of this node (if there is one). |
Constructor Summary | |
(package private) |
LeafNode()
|
(package private) |
LeafNode(int leftIndex,
int length,
java.lang.Object rightSybling)
|
Method Summary | |
(package private) void |
addCoordinates(int position)
prepends the current coordinates (an object that contains the starting index of the current added suffix) to the list of coordinates - that in case two strings have the same suffix |
SuffixCoordinates |
getCoordinates()
Returns the first coordinate object. |
Info |
getInfo()
Returns the first info object. |
int |
getLeftIndex()
|
int |
getLength()
|
java.lang.Object |
getRightSybling()
|
void |
setInfo(Info info)
prepends the current info to the list of already existing info objects |
(package private) void |
setLeftIndex(int leftIndex)
|
(package private) void |
setLength(int length)
|
(package private) void |
setRightSybling(java.lang.Object rightSybling)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int leftIndex
private int length
private java.lang.Object rightSybling
private Info info
private SuffixCoordinates coordinates
Constructor Detail |
LeafNode(int leftIndex, int length, java.lang.Object rightSybling)
LeafNode()
Method Detail |
public final int getLeftIndex()
getLeftIndex
in interface NodeInterface
final void setLeftIndex(int leftIndex)
public final int getLength()
getLength
in interface NodeInterface
final void setLength(int length)
public final java.lang.Object getRightSybling()
getRightSybling
in interface NodeInterface
final void setRightSybling(java.lang.Object rightSybling)
public final SuffixCoordinates getCoordinates()
final void addCoordinates(int position)
public final Info getInfo()
getInfo
in interface NodeInterface
public final void setInfo(Info info)
setInfo
in interface NodeInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |