Package org.biojava.bio.symbol
Class SuffixTree.SuffixNode
java.lang.Object
org.biojava.bio.symbol.SuffixTree.SuffixNode
- All Implemented Interfaces:
Serializable
- Enclosing class:
SuffixTree
A node in the suffix tree.
This class is realy stupid invalid input: '&' delegates most work off to a SuffixTree so that it is as small (in memory-per-object terms) as possible.
- Author:
- Matthew Pocock
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract float
Return a number (usually, but not always, a motif count) associated with this node of the tree.abstract boolean
hasChild
(int i) Determine if this node has a child corresponding to a given index number.abstract boolean
Determine is this node is terminal (has no children).abstract void
setNumber
(float n) Set the number associated with this node.
-
Constructor Details
-
SuffixNode
public SuffixNode()
-
-
Method Details
-
isTerminal
Determine is this node is terminal (has no children).- Returns:
true
if and only if this node has no children.
-
hasChild
Determine if this node has a child corresponding to a given index number. -
getNumber
Return a number (usually, but not always, a motif count) associated with this node of the tree. -
setNumber
Set the number associated with this node.
-