|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.msu.cme.rdp.classifier.rrnaclassifier.HierarchyTree
public class HierarchyTree
A HierarchyTree holds the taxonomic information of a taxon.
Field Summary | |
---|---|
private int |
genusIndex
-1 means not a genus node. |
private int |
leaveCount
|
private java.lang.String |
name
|
private HierarchyTree |
parent
|
private java.lang.String |
rank
|
private java.util.List |
subclasses
|
private int |
taxid
|
Constructor Summary | |
---|---|
HierarchyTree(java.lang.String n,
int taxid,
java.lang.String rank,
int leaves,
int gIndex)
Creates new HierarchyTree given the taxonomic information. |
Method Summary | |
---|---|
(package private) void |
addParent(HierarchyTree p)
Adds the parent HierarchyTree, also adds this node to the parent treenode as a child. |
private void |
addSubclass(HierarchyTree c)
Adds a child treenode to subclass. |
(package private) int |
getGenusIndex()
Gets the index of the genus treenode in the genusNodeList. |
(package private) int |
getLeaveCount()
Gets the size of sequence leaves directly belong to this treenode. |
java.lang.String |
getName()
Gets the name of the treenode. |
(package private) HierarchyTree |
getParent()
Gets the parent treenode. |
java.lang.String |
getRank()
Gets the rank of the treenode. |
(package private) int |
getSizeofSubclasses()
Gets the list of the child treenodes. |
java.util.List |
getSubclasses()
Gets the name of the treenode. |
int |
getTaxid()
Gets the taxon id of the treenode. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String name
private java.lang.String rank
private int taxid
private int leaveCount
private HierarchyTree parent
private java.util.List subclasses
private int genusIndex
Constructor Detail |
---|
HierarchyTree(java.lang.String n, int taxid, java.lang.String rank, int leaves, int gIndex)
Method Detail |
---|
void addParent(HierarchyTree p)
private void addSubclass(HierarchyTree c)
public java.lang.String getName()
HierarchyTree getParent()
public java.lang.String getRank()
public int getTaxid()
public java.util.List getSubclasses()
int getSizeofSubclasses()
int getLeaveCount()
int getGenusIndex()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |