|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biojava3.alignment.GuideTree.Node
public class GuideTree.Node
Implements a data structure for the node in a guide tree used during progressive multiple sequence alignment.
Method Summary | |
---|---|
Enumeration<GuideTreeNode<S,C>> |
children()
|
boolean |
getAllowsChildren()
|
GuideTreeNode<S,C> |
getChild1()
Returns the first child node of this node. |
GuideTreeNode<S,C> |
getChild2()
Returns the second child node of this node. |
GuideTreeNode<S,C> |
getChildAt(int childIndex)
|
int |
getChildCount()
|
double |
getDistanceToParent()
Returns the difference in height of this node and it's parent node. |
int |
getIndex(TreeNode child)
|
String |
getName()
Returns the name of this node. |
GuideTreeNode<S,C> |
getParent()
|
Profile<S,C> |
getProfile()
Returns the profile stored at this node. |
Future<ProfilePair<S,C>> |
getProfileFuture()
Returns the profile future stored at this node, but does not force the calculation, yet. |
boolean |
isLeaf()
|
void |
setProfile(Profile<S,C> profile)
Stores the given profile. |
void |
setProfileFuture(Future<ProfilePair<S,C>> profileFuture)
Stores the given profile future. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public GuideTreeNode<S,C> getChild1()
GuideTreeNode
getChild1
in interface GuideTreeNode<S extends Sequence<C>,C extends Compound>
public GuideTreeNode<S,C> getChild2()
GuideTreeNode
getChild2
in interface GuideTreeNode<S extends Sequence<C>,C extends Compound>
public double getDistanceToParent()
GuideTreeNode
getDistanceToParent
in interface GuideTreeNode<S extends Sequence<C>,C extends Compound>
public String getName()
GuideTreeNode
getName
in interface GuideTreeNode<S extends Sequence<C>,C extends Compound>
public Profile<S,C> getProfile()
GuideTreeNode
GuideTreeNode.setProfile(Profile)
has been called.
getProfile
in interface GuideTreeNode<S extends Sequence<C>,C extends Compound>
public Future<ProfilePair<S,C>> getProfileFuture()
GuideTreeNode
getProfileFuture
in interface GuideTreeNode<S extends Sequence<C>,C extends Compound>
public void setProfile(Profile<S,C> profile)
GuideTreeNode
setProfile
in interface GuideTreeNode<S extends Sequence<C>,C extends Compound>
profile
- new profile stored at this nodepublic void setProfileFuture(Future<ProfilePair<S,C>> profileFuture)
GuideTreeNode
setProfileFuture
in interface GuideTreeNode<S extends Sequence<C>,C extends Compound>
profileFuture
- new profile to be calculated and then stored at this nodepublic Enumeration<GuideTreeNode<S,C>> children()
children
in interface TreeNode
public boolean getAllowsChildren()
getAllowsChildren
in interface TreeNode
public GuideTreeNode<S,C> getChildAt(int childIndex)
getChildAt
in interface TreeNode
public int getChildCount()
getChildCount
in interface TreeNode
public int getIndex(TreeNode child)
getIndex
in interface TreeNode
public GuideTreeNode<S,C> getParent()
getParent
in interface TreeNode
public boolean isLeaf()
isLeaf
in interface TreeNode
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |