anthill.nestor
Class LocalNid

java.lang.Object
  |
  +--anthill.nestor.LocalNid
All Implemented Interfaces:
NestId

public class LocalNid
extends java.lang.Object
implements NestId

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

Version:
$Revision$
Author:
Alberto Montresor

Constructor Summary
LocalNid(LocalGate gate)
          Builds a new local identifier
 
Method Summary
 boolean equals(java.lang.Object obj)
          Check whether this LocalNid is equal to the specified object.
 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

LocalNid

public LocalNid(LocalGate gate)
Builds a new local identifier
Method Detail

equals

public boolean equals(java.lang.Object obj)
Check whether this LocalNid 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