|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcomplex.CellID
A class to store the ID of a cell; able to create new IDs, which are
unique in the complex. Each CellID is represented by
a long integer, specifying the (unique) number of a cell.
| Field Summary | |
private long |
id
|
private static long |
max_id
|
| Constructor Summary | |
CellID()
Creates a new unique ID. |
|
CellID(long id)
Creates a CellID object for an existing ID. |
|
| Method Summary | |
int |
compareTo(java.lang.Object other)
|
static void |
setMaxID(long id)
Sets the largest known ID; all newly created IDs will be greater than this. |
long |
toInt()
Returns the wrapped up integer, which defines the CellID. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static long max_id
private long id
| Constructor Detail |
public CellID()
public CellID(long id)
CellID object for an existing ID.
id - an existing ID, which will be wrapped into a CellID.| Method Detail |
public long toInt()
CellID.
public static void setMaxID(long id)
id - the largest known IDpublic int compareTo(java.lang.Object other)
compareTo in interface java.lang.Comparable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||