|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.adventnet.utils.btree.TreeCell
This class is used to store the PduRequestListener information. AgentNode extends this class.
AgentNode| Field Summary | |
(package private) java.lang.Object |
key
|
(package private) TreeCell |
parent
|
(package private) boolean |
proxy
|
(package private) int |
subId
SubIdentifier for this node |
| Constructor Summary | |
TreeCell(TreeFramework frm,
java.lang.Object k,
int id)
Contructor with the FrameWork , key and subId. |
|
| Method Summary | |
void |
addCell(TreeCell child)
add the child to the appropriate position in the subTree |
abstract int |
compareTo(java.lang.Object toCompare)
Compare the given key with this key. |
int |
compareTo(TreeCell cell1)
Compare this cell with another TreeCell. |
java.util.Vector |
getChildList()
Getter for childList This is a Vector of children (TreeCell ) |
java.lang.Object |
getKey()
Getter key of the TreeCell |
int |
getLevel()
It is used to retrive the level of the cell where it is situated. |
TreeCell |
getNextCell()
Gets the Next LexicoGraphically ordered Cell |
TreeCell |
getNextLeafCell()
Getter for next leaf tree cell |
TreeCell |
getParent()
Retrieves the parent of the cell. |
int |
getSubId()
Getter of subid. |
TreeFramework |
getTreeFramework()
Getter for the TreeFramework |
boolean |
isLeaf()
Checks if there are any children to this Cell |
boolean |
isProxy()
Checks whether the cell is a proxy cell. |
void |
setParent(TreeCell par)
Setter for the parent of this TreeCell. |
void |
setProxy(boolean proxy)
sets the cell to act as a proxy cell. |
void |
setSubId(int id)
Setter for subID. |
java.lang.String |
toString()
Getter for string representation of the key. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
TreeCell parent
int subId
boolean proxy
java.lang.Object key
| Constructor Detail |
public TreeCell(TreeFramework frm,
java.lang.Object k,
int id)
frm - TreeFramework to which this cell belongsk - which represents this Objectid - the subid| Method Detail |
public TreeCell getParent()
public void setParent(TreeCell par)
par - The parent to be set.public int getLevel()
public void setSubId(int id)
id - the subid valuepublic int getSubId()
public TreeFramework getTreeFramework()
public java.util.Vector getChildList()
public TreeCell getNextCell()
public TreeCell getNextLeafCell()
public boolean isLeaf()
public boolean isProxy()
If the subidlist of the cell is int[] = {-1} , then the cell is considered as a proxy cell.
public void setProxy(boolean proxy)
proxy - the boolean value to set as a proxy cell.public java.lang.Object getKey()
public java.lang.String toString()
public int compareTo(TreeCell cell1)
cell1 - the cell to compare.public abstract int compareTo(java.lang.Object toCompare)
toCompare - The Key to be compared.public void addCell(TreeCell child)
child - the TreeCell to add.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||