shared
Class GraphObject

java.lang.Object
  |
  +--shared.GraphObject
Direct Known Subclasses:
Edge, Face, Node

public class GraphObject
extends java.lang.Object

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

obj_list_succ

protected GraphObject obj_list_succ
The successor GraphObject in the list of GraphObjects maintained by the Graph class.

obj_list_pred

protected GraphObject obj_list_pred
The predicessor GraphObject in the list of GraphObjects maintained by the Graph class.

id

protected int id
An integer identification number.

data

public java.lang.Object data
The data stored in this GraphObject.
Constructor Detail

GraphObject

public GraphObject()
Method Detail

set_id

public void set_id(int newid)
Sets the ID number to the given number.
Parameters:
newid - The new ID number.

index

public int index()
Returns the ID number masked with 0x7fffffff.
Returns:
The ID number masked with 0x7fffffff.