moteaccess
Class MoteID

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

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

See Also:
Serialized Form

Field Summary
private  int id
          Int value that identifies a mote.
static short UNSPECIFIED
          Constant that indicates the unspecified mote.
 
Constructor Summary
MoteID(int id)
          Public constructor that builds a mote id from its int id.
 
Method Summary
 boolean equals(java.lang.Object mid)
           
 java.lang.Integer getId()
          Get the Mote ID as an Integer.
 int hashCode()
          The hashCode returned is the id of the mote.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

id

private int id
Int value that identifies a mote.


UNSPECIFIED

public static final short UNSPECIFIED
Constant that indicates the unspecified mote.

See Also:
Constant Field Values
Constructor Detail

MoteID

public MoteID(int id)
Public constructor that builds a mote id from its int id.

Method Detail

getId

public java.lang.Integer getId()
Get the Mote ID as an Integer.

Returns:
the Mote's unique id.

equals

public boolean equals(java.lang.Object mid)

hashCode

public int hashCode()
The hashCode returned is the id of the mote.


toString

public java.lang.String toString()