lime
Class LimeTupleID

java.lang.Object
  extended bylime.LimeTupleID
All Implemented Interfaces:
java.io.Serializable

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

Defines the identifier of Tuple objects. The (globally unique) identifier is generated when the tuple is inserted into the tuple space.

Version:
1.0 alpha
Author:
Amy L. Murphy, Gian Pietro Picco
See Also:
Serialized Form

Field Summary
(package private)  LimeServerID creationHost
          The identifier is composed of two parts: the address of the host where the tuple has been inserted and a progressive number assigned on that host.
(package private)  long n
           
 
Constructor Summary
LimeTupleID(long n)
          Construct a new tuple identifier...guaranteed to be unique.
 
Method Summary
 boolean equals(java.lang.Object id)
          Tests two tuple identifiers for equality.
 int hashCode()
           
 java.lang.String toString()
          Returns a concise textual description for this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

creationHost

final LimeServerID creationHost
The identifier is composed of two parts: the address of the host where the tuple has been inserted and a progressive number assigned on that host.


n

final long n
Constructor Detail

LimeTupleID

public LimeTupleID(long n)
Construct a new tuple identifier...guaranteed to be unique.

Method Detail

equals

public boolean equals(java.lang.Object id)
Tests two tuple identifiers for equality.

Parameters:
id - the tuple id to be compared with.
Returns:
true if the two identifiers are the same, false otherwise.

hashCode

public int hashCode()

toString

public java.lang.String toString()
Returns a concise textual description for this object.