Package edu.msu.cme.rdp.classifier.train
Class Taxonomy
- java.lang.Object
-
- edu.msu.cme.rdp.classifier.train.Taxonomy
-
public class Taxonomy extends java.lang.ObjectA Taxonomy holds the raw taxon information.
-
-
Constructor Summary
Constructors Constructor Description Taxonomy(int id, java.lang.String name, int pid, int d, java.lang.String level)Creates a new instance of Taxonomy
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchangeRank(java.lang.String s)intgetDepth()Returns the depth of the current taxon from root taxon.java.lang.StringgetHierLevel()Returns the hierarchy rank level.intgetParentID()Returns the taxID of the parent taxon.intgetTaxID()Returns the taxID.java.lang.StringgetTaxName()Returns the taxon name.voidsetDepth(int d)
-
-
-
Method Detail
-
getTaxID
public int getTaxID()
Returns the taxID.
-
getTaxName
public java.lang.String getTaxName()
Returns the taxon name.
-
getParentID
public int getParentID()
Returns the taxID of the parent taxon.
-
getDepth
public int getDepth()
Returns the depth of the current taxon from root taxon.
-
getHierLevel
public java.lang.String getHierLevel()
Returns the hierarchy rank level.
-
setDepth
public void setDepth(int d)
-
changeRank
public void changeRank(java.lang.String s)
-
-