antsim.nestor
Class LocalAid

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

public class LocalAid
extends 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: 1.3 $
Author:
Alberto Montresor

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

LocalAid

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

Method Detail

equals

public boolean equals(Object obj)
Check whether this LocalAid is equal to the specified object.

Overrides:
equals in class Object

hashCode

public int hashCode()
Returns a hash code value for the object.

Overrides:
hashCode in class Object

toString

public String toString()
Returns a string representation of the object.

Overrides:
toString in class Object

getId

public long getId()