|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ChromAb.EdgeTree
The purpose of this class is to generate a tree of edges from a fragment decomposition, each path from root to leaf specifying a unique valid initial edge configuration.
Field Summary | |
private EdgeTree[] |
children
|
private int[] |
edge
|
Constructor Summary | |
|
EdgeTree(FragDecom fd)
Constructor takes a fragment decomposition and produces a tree of edges where each path from root to leaf specifies a unique valid initial edge configuation. |
private |
EdgeTree(int[] edge,
FragDecom fd)
Recursively generates an EdgeTree from an edge and a fragment decomposition. |
Method Summary | |
java.util.Vector |
allEdgeLists()
Returns a Vector of EdgeLists where each EdgeList is a traversal of the tree of root to leaf. |
int[] |
getEdge()
Returns the edge at this node. |
boolean |
isLeaf()
Returns true if this node has no children. |
java.lang.String |
toString()
|
private java.lang.String |
toString(int rank)
Allows a recursive method to print the tree with tabulation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private int[] edge
private EdgeTree[] children
Constructor Detail |
public EdgeTree(FragDecom fd)
fd
- fragment decomposition.private EdgeTree(int[] edge, FragDecom fd)
edge
- edge to store in nodefd
- frag decom from which to generate children.Method Detail |
public int[] getEdge()
public boolean isLeaf()
public java.util.Vector allEdgeLists()
public java.lang.String toString()
toString
in class java.lang.Object
private java.lang.String toString(int rank)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |