public class GuideTree.Node extends java.lang.Object implements GuideTreeNode<S,C>
Modifier and Type | Method and Description |
---|---|
java.util.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(javax.swing.tree.TreeNode child) |
java.lang.String |
getName()
Returns the name of this node.
|
GuideTreeNode<S,C> |
getParent() |
Profile<S,C> |
getProfile()
Returns the profile stored at this node.
|
java.util.concurrent.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(java.util.concurrent.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 java.lang.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 java.util.concurrent.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(java.util.concurrent.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 java.util.Enumeration<GuideTreeNode<S,C>> children()
children
in interface javax.swing.tree.TreeNode
public boolean getAllowsChildren()
getAllowsChildren
in interface javax.swing.tree.TreeNode
public GuideTreeNode<S,C> getChildAt(int childIndex)
getChildAt
in interface javax.swing.tree.TreeNode
public int getChildCount()
getChildCount
in interface javax.swing.tree.TreeNode
public int getIndex(javax.swing.tree.TreeNode child)
getIndex
in interface javax.swing.tree.TreeNode
public GuideTreeNode<S,C> getParent()
getParent
in interface javax.swing.tree.TreeNode
public boolean isLeaf()
isLeaf
in interface javax.swing.tree.TreeNode