Package org.biojava.bio.symbol
Class UkkonenSuffixTree.SuffixNode
- java.lang.Object
-
- org.biojava.bio.symbol.UkkonenSuffixTree.SuffixNode
-
- Enclosing class:
- UkkonenSuffixTree
public abstract static class UkkonenSuffixTree.SuffixNode extends java.lang.Objectend Tree modification methods
-
-
Constructor Summary
Constructors Constructor Description SuffixNode()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract booleanhasChild(java.lang.Character i)Determine if this node has a child corresponding to a given characterabstract booleanisTerminal()Determine is this node is terminal (has no children).
-
-
-
Method Detail
-
isTerminal
public abstract boolean isTerminal()
Determine is this node is terminal (has no children).Note that this only happens at the terminated node (if the sequences have been terminated.
- Returns:
trueif and only if this node has no children.
-
hasChild
public abstract boolean hasChild(java.lang.Character i)
Determine if this node has a child corresponding to a given character- Parameters:
i- the firstCharacterof the edge coming down this node.- Returns:
trueif the node has a child going down from that character, false otherwise
-
-