|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--antsim.nestor.LocalAid
Class LocalAid
is the implementation of AntId
to be used during off-line simulation. Unique identifiers are generated
using a counter.
Constructor Summary | |
LocalAid()
Builds a new local identifier by incrementing the counter. |
Method Summary | |
boolean |
equals(Object obj)
Check whether this LocalAid is equal to the specified object. |
long |
getId()
|
int |
hashCode()
Returns a hash code value for the object. |
String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public LocalAid()
Method Detail |
public boolean equals(Object obj)
LocalAid
is equal to the specified object.
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public long getId()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |