-
- Type Parameters:
S- eachSequencein the tree is of type SC- each element of aSequenceis aCompoundof type C
- All Superinterfaces:
javax.swing.tree.TreeNode
- All Known Implementing Classes:
GuideTree.Node
public interface GuideTreeNode<S extends Sequence<C>,C extends Compound> extends javax.swing.tree.TreeNodeDefines a data structure for the node in a guide tree used during progressive multiple sequence alignment.- Author:
- Mark Chapman
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GuideTreeNode<S,C>getChild1()Returns the first child node of this node.GuideTreeNode<S,C>getChild2()Returns the second child node of this node.doublegetDistanceToParent()Returns the difference in height of this node and it's parent node.java.lang.StringgetName()Returns the name of this node.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.voidsetProfile(Profile<S,C> profile)Stores the given profile.voidsetProfileFuture(java.util.concurrent.Future<ProfilePair<S,C>> profileFuture)Stores the given profile future.
-
-
-
Method Detail
-
getChild1
GuideTreeNode<S,C> getChild1()
Returns the first child node of this node. For leaf nodes (sequences), this will be null.- Returns:
- the first child node of this node
-
getChild2
GuideTreeNode<S,C> getChild2()
Returns the second child node of this node. For leaf nodes (sequences), this will be null.- Returns:
- the second child node of this node
-
getDistanceToParent
double getDistanceToParent()
Returns the difference in height of this node and it's parent node. A likely meaning of this distance is half the percent difference between this node and it's sibling node.- Returns:
- the difference in height of this node to it's parent node
-
getName
java.lang.String getName()
Returns the name of this node. For leaf nodes (sequences), this will likely be the accession ID.- Returns:
- the name of this node
-
getProfile
Profile<S,C> getProfile()
Returns the profile stored at this node. If the node is a leaf, the profile is that of a single sequence. If not, this returns null untilsetProfile(Profile)has been called.- Returns:
- the profile stored at this node
-
getProfileFuture
java.util.concurrent.Future<ProfilePair<S,C>> getProfileFuture()
Returns the profile future stored at this node, but does not force the calculation, yet. This allows alignment tasks for the entire tree to be queued in a post-order traversal before concurrent execution.- Returns:
- the profile future stored at this node
-
setProfile
void setProfile(Profile<S,C> profile)
Stores the given profile.- Parameters:
profile- new profile stored at this node
-
setProfileFuture
void setProfileFuture(java.util.concurrent.Future<ProfilePair<S,C>> profileFuture)
Stores the given profile future. This allows concurrent execution of alignment tasks.- Parameters:
profileFuture- new profile to be calculated and then stored at this node
-
-