|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Nodemapper
A Nodemapper
maps the branches in a Graphmaster
structure.
Method Summary | |
---|---|
boolean |
containsKey(java.lang.String key)
Tells whether the Nodemapper contains the given key. |
java.lang.Object |
get(java.lang.String key)
Gets an object from the Nodemapper . |
int |
getHeight()
Returns the height of the Nodemapper . |
Nodemapper |
getParent()
Returns the parent of the Nodemapper |
java.util.Set |
keySet()
Returns the key set for the Nodemapper . |
java.lang.Object |
put(java.lang.String key,
java.lang.Object value)
Puts an object into the Nodemapper . |
void |
remove(java.lang.Object value)
Removes a node from the Nodemapper . |
void |
setParent(Nodemapper parent)
Sets the parent of the Nodemapper |
void |
setTop()
Sets the height of this Nodemapper
to "top", i.e. |
int |
size()
Returns the size of the Nodemapper |
Method Detail |
---|
java.lang.Object put(java.lang.String key, java.lang.Object value)
Nodemapper
.
key
- the key with which the object should be stored / will be retrievedvalue
- the object to be storedjava.lang.Object get(java.lang.String key)
Nodemapper
.
key
- the key to use in retrieving the object
void remove(java.lang.Object value)
Nodemapper
.
value
- the value to removejava.util.Set keySet()
Nodemapper
.
boolean containsKey(java.lang.String key)
Nodemapper
contains the given key.
key
- the key to look for
Nodemapper
contains the keyint size()
Nodemapper
Nodemapper
void setParent(Nodemapper parent)
Nodemapper
parent
- the parent of the Nodemapper
Nodemapper getParent()
Nodemapper
Nodemapper
int getHeight()
Nodemapper
.
The height is the minimum number of words needed
to reach a leaf node from here.
Nodemapper
void setTop()
Nodemapper
to "top", i.e. 0
(zero), causing
each ancestor n
to have a minimum height
of n
, unless the ancestor is the root node.
Not sure if this is correct.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |