public class GuideTree.Node extends Object implements GuideTreeNode<S,C>
Modifier and Type | Method and Description |
---|---|
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.
|
public GuideTreeNode<S,C> getChild1()
GuideTreeNode
public GuideTreeNode<S,C> getChild2()
GuideTreeNode
public double getDistanceToParent()
GuideTreeNode
getDistanceToParent
in interface GuideTreeNode<S extends Sequence<C>,C extends Compound>
public String getName()
GuideTreeNode
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()
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 GuideTreeNode<S,C> getParent()
Copyright © 2000–2016 BioJava. All rights reserved.