|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.adventnet.utils.btree.TreeFramework
The main Operations of TreeFramework which holds the Cells.
A Tree of TreeCells which can be acccessed as a part of the Runtime agent library for compiled agents with no MIB loaded.
| Field Summary | |
(package private) int |
elementCount
|
(package private) TreeCell |
root
This is the root node cell which is added |
| Constructor Summary | |
TreeFramework()
The Default Constructor for TreeFrameWork. |
|
| Method Summary | |
void |
addCell(TreeCell cell)
Add a TreeCell. |
void |
addCell(TreeCell cell,
TreeCell parent)
add a TreeCell. |
void |
deleteCell(java.lang.Object key)
delete the cell from the framework . |
void |
deleteCell(TreeCell toDelete)
delete the cell from the framework. |
TreeCell |
getCell(java.lang.Object key)
Getter for the tree cell corresponding to the key. |
java.util.Enumeration |
getElements()
Getter for all elements in the tree. |
TreeCell |
getNextCell(java.lang.Object key)
Getter for the next tree cell corresponding to the key. |
TreeCell |
getRoot()
Getter for the root node |
void |
incrementElementCount()
Counts number of cells added |
void |
setRoot(TreeCell root)
Setter for the root node |
int |
size()
Getter for the size of the TreeFramework. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
TreeCell root
int elementCount
| Constructor Detail |
public TreeFramework()
| Method Detail |
public void setRoot(TreeCell root)
root - the root cell.public TreeCell getRoot()
public void incrementElementCount()
public void addCell(TreeCell cell)
throws java.lang.ClassCastException
cell - Thye cell to add.
public void addCell(TreeCell cell,
TreeCell parent)
throws java.lang.ClassCastException
cell - to addparent - of the cellpublic int size()
public void deleteCell(TreeCell toDelete)
The delete method deletes all child TreeCells under the tree .
toDelete - the cell to deletepublic void deleteCell(java.lang.Object key)
The delete method deletes all child TreeCells under the tree.
key - depending on what is being storedpublic TreeCell getCell(java.lang.Object key)
key - The Object key of the cell.
Override this method if there are any specific considerations.public TreeCell getNextCell(java.lang.Object key)
key - The Object key of the cell.public java.util.Enumeration getElements()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||