|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--TreeJuxtaposer.RangeNode
A class representing a node in a RangeTree. A RangeNode is a helper class for computing relationships between phylogenetic trees and is distinct from a TreeNode which is a node of a Tree.
| Field Summary | |
private java.lang.Object |
Data
this will hold the data (Tree object or Point) |
private int |
element
Field element holds the X or Y coordinate of the object in the tree. |
private RangeNode |
lc
left child of the current node |
private int |
leafCount
total number of leaves decedant to this node |
private RangeNode |
rc
right child of the current node |
| Constructor Summary | |
RangeNode()
empty constructor |
|
RangeNode(java.lang.Object d)
constructor with Data initiated |
|
| Method Summary | |
boolean |
childless()
|
(package private) java.lang.Object |
getData()
|
int |
getElement()
|
(package private) RangeNode |
getLc()
|
(package private) int |
getLeafCount()
get the total number of leaves decedant to it |
(package private) RangeNode |
getRc()
|
(package private) void |
setData(java.lang.Object d)
|
void |
setElement(int e)
set appropriate coordinate depending on the tree type. |
(package private) void |
setLeafCount(int cnt)
set the total of leaves decedant to it |
(package private) void |
setLeft(RangeNode O)
|
(package private) void |
setRight(RangeNode O)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.lang.Object Data
private RangeNode lc
private RangeNode rc
private int element
private int leafCount
| Constructor Detail |
public RangeNode()
public RangeNode(java.lang.Object d)
| Method Detail |
public void setElement(int e)
public int getElement()
public boolean childless()
void setData(java.lang.Object d)
java.lang.Object getData()
RangeNode getLc()
RangeNode getRc()
void setLeft(RangeNode O)
void setRight(RangeNode O)
void setLeafCount(int cnt)
int getLeafCount()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||