antsim.nestor
Class LocalNid

java.lang.Object
  |
  +--antsim.nestor.LocalNid
All Implemented Interfaces:
Comparable, NestId

public class LocalNid
extends Object
implements NestId, Comparable

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: 1.5 $
Author:
Alberto Montresor

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

LocalNid

public LocalNid(LocalGate gate)
Builds a new local identifier

Method Detail

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

equals

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