public class BinaryTree
extends java.lang.Object
| Constructor and Description |
|---|
BinaryTree(double dblNode,
BinaryTree btParent)
BinaryTree Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
ascendingNodeArray(double[] adblNode,
int iUpdateStartIndex)
Build a Consolidated Ascending Array of all the Constituent Nodes
|
java.util.List<java.lang.Double> |
ascendingNodeList()
Build a Consolidated Ascending List of all the Constituent Nodes
|
boolean |
ascendingNodeList(java.util.List<java.lang.Double> lsNode)
Build a Consolidated Ascending List of all the Constituent Nodes
|
int |
count()
Retrieve the Node Instance Count
|
boolean |
descendingNodeArray(double[] adblNode,
int iIndexToUpdate)
Build a Consolidated Descending Array of all the Constituent Nodes
|
java.util.List<java.lang.Double> |
descendingNodeList()
Build a Consolidated Descending List of all the Constituent Nodes
|
boolean |
descendingNodeList(java.util.List<java.lang.Double> lsNode)
Build a Consolidated Descending List of all the Constituent Nodes
|
BinaryTree |
insert(double dblNode)
Insert a Node into the Tree
|
BinaryTree |
leftChild()
Retrieve the Left Child BinaryTree Instance
|
BinaryTree |
leftMostChild()
Retrieve the Left Most Child
|
double |
node()
Retrieve the BinaryTree Node Value
|
BinaryTree |
parent()
Retrieve the Parent BinaryTree Instance
|
BinaryTree |
rightChild()
Retrieve the Right Child BinaryTree Instance
|
BinaryTree |
rightMostChild()
Retrieve the Right Most Child
|
public BinaryTree(double dblNode,
BinaryTree btParent)
throws java.lang.Exception
dblNode - The Node ValuebtParent - The BinaryTree Parentjava.lang.Exception - Thrown if the Inputs are invalidpublic double node()
public BinaryTree parent()
public BinaryTree leftChild()
public BinaryTree rightChild()
public int count()
public BinaryTree insert(double dblNode)
dblNode - The Node to be insertedpublic BinaryTree leftMostChild()
public BinaryTree rightMostChild()
public boolean ascendingNodeList(java.util.List<java.lang.Double> lsNode)
lsNode - The Node Listpublic java.util.List<java.lang.Double> ascendingNodeList()
public int ascendingNodeArray(double[] adblNode,
int iUpdateStartIndex)
throws java.lang.Exception
adblNode - The Node ArrayiUpdateStartIndex - The Update Start Indexjava.lang.Exception - Thrown if the Inputs are Invalidpublic boolean descendingNodeList(java.util.List<java.lang.Double> lsNode)
lsNode - The Node Listpublic boolean descendingNodeArray(double[] adblNode,
int iIndexToUpdate)
adblNode - The Node ArrayiIndexToUpdate - The Index To Updatepublic java.util.List<java.lang.Double> descendingNodeList()