anthill.nestor
Class LocalAid

java.lang.Object
  |
  +--anthill.nestor.LocalAid
All Implemented Interfaces:
AntId

public class LocalAid
extends java.lang.Object
implements AntId

Class LocalAid is the implementation of AntId to be used during off-line simulation. Unique identifiers are generated using a counter.

Version:
$Revision$
Author:
Alberto Montresor

Constructor Summary
LocalAid()
          Builds a new local identifier by incrementing the counter.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Check whether this LocalAid is equal to the specified object.
 long getId()
           
 int hashCode()
          Returns a hash code value for the object.
 java.lang.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

LocalAid

public LocalAid()
Builds a new local identifier by incrementing the counter.
Method Detail

equals

public boolean equals(java.lang.Object obj)
Check whether this LocalAid is equal to the specified object.
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Returns a hash code value for the object.
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Returns a string representation of the object.
Overrides:
toString in class java.lang.Object

getId

public long getId()