|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--shared.GraphObject
This class contains features that are used in the Node and Edge classes.
| Field Summary | |
java.lang.Object |
data
The data stored in this GraphObject. |
protected int |
id
An integer identification number. |
protected GraphObject |
obj_list_pred
The predicessor GraphObject in the list of GraphObjects maintained by the Graph class. |
protected GraphObject |
obj_list_succ
The successor GraphObject in the list of GraphObjects maintained by the Graph class. |
| Constructor Summary | |
GraphObject()
|
|
| Method Summary | |
int |
index()
Returns the ID number masked with 0x7fffffff. |
void |
set_id(int newid)
Sets the ID number to the given number. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
protected GraphObject obj_list_succ
protected GraphObject obj_list_pred
protected int id
public java.lang.Object data
| Constructor Detail |
public GraphObject()
| Method Detail |
public void set_id(int newid)
newid - The new ID number.public int index()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||