moteaccess
Class RequestID

java.lang.Object
  extended bymoteaccess.RequestID
All Implemented Interfaces:
java.io.Serializable

public class RequestID
extends java.lang.Object
implements java.io.Serializable

This class represents a request id, associated to each request that arrives to the base station.

Version:
1.0
Author:
Carlo Curino, Matteo Giani, Marco Giorgetta, Alessandro Giusti
See Also:
Serialized Form

Field Summary
private  int id
          The internal representation of the id, an int value.
 
Constructor Summary
RequestID(int v)
          Public constructor of an id, from its int representation.
 
Method Summary
 boolean equals(java.lang.Object rid2)
           
 int getId()
          Getter for the int representation of the id.
 int hashCode()
          Implementation of the hashCode function.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

private int id
The internal representation of the id, an int value.

Constructor Detail

RequestID

public RequestID(int v)
Public constructor of an id, from its int representation.

Parameters:
v - the int representation of the id.
Method Detail

equals

public boolean equals(java.lang.Object rid2)

getId

public int getId()
Getter for the int representation of the id.

Returns:
the int value of the id.

hashCode

public int hashCode()
Implementation of the hashCode function.

Returns:
int the internal int representation of the request.