Bridges-Java-2.3.3
2.3.3
Bridges(JavaAPI)
|
This class extends the BSTElement class by adding a height and balance factor fields that are useful in AVL trees. More...
Additional Inherited Members | |
![]() | |
void | setLinkVisualizer (Element< E > el) |
void | removeLinkVisualizer (Element< E > el) |
void | validateVal (E value) |
![]() | |
String | QUOTE = "\"" |
This class extends the BSTElement class by adding a height and balance factor fields that are useful in AVL trees.
AVL tree elements include a 'height' and a 'balFactor' value, representing the height and balance factor of the AVL tree at that node, respectively. This is useful in representing AVL trees.
AVLTree elements contain a visualizer (ElementVisualizer) object for setting visual attributes (color, shape, opacity, size), necessary for displaying them in a web browser.
AVLTree elements also have a LinkVisualizer object, that is used when they are linked to another element, appropriate for setting link attributes, for instance, between * the current element and its left or right child
E | he generic parameter object that is part of this element, representing application specific data. |
K | is the search key parameter in the AVL tree node; K must be orderable, such as integer, float, string, etc., on which relational operators work. |
bridges.base.AVLTreeElement< K, E >.AVLTreeElement | ( | ) |
Construct an AVLTreeElement with default values
bridges.base.AVLTreeElement< K, E >.AVLTreeElement | ( | K | k, |
E | e | ||
) |
Construct an AVLTreeElement holding a key value "k" and an object "e"
k | the search key |
e | the appl specific object that Element is holding |
int bridges.base.AVLTreeElement< K, E >.getBalanceFactor | ( | ) |
This method returns the balance factor of the tree at this node
String bridges.base.AVLTreeElement< K, E >.getDataStructType | ( | ) |
This method gets the data structure type
int bridges.base.AVLTreeElement< K, E >.getHeight | ( | ) |
This method returns the height of the tree at this node
AVLTreeElement<K, E> bridges.base.AVLTreeElement< K, E >.getLeft | ( | ) |
This method returns the left child of the tree node
AVLTreeElement<K, E> bridges.base.AVLTreeElement< K, E >.getRight | ( | ) |
This method returns the right child of tree node
void bridges.base.AVLTreeElement< K, E >.setBalanceFactor | ( | int | bf | ) |
This method sets the balance factor of the tree at this node
balance | factor bf |
void bridges.base.AVLTreeElement< K, E >.setHeight | ( | int | h | ) |
This method sets the height of the tree at this node
height | h |