com.sentilla.platform.tmote
Class CollectionProtocol.RTable

java.lang.Object
  extended by com.sentilla.platform.tmote.CollectionProtocol.RTable
Enclosing class:
CollectionProtocol

public class CollectionProtocol.RTable
extends Object

Table structure containing neighbor information.


Field Summary
 short cost
           
 byte hops
           
 int hostSeq
           
 long nodeID
           
 int time
           
 
Constructor Summary
CollectionProtocol.RTable()
           
CollectionProtocol.RTable(CollectionProtocol.RTable t)
           
 
Method Summary
 void clear()
          Reset this objects values to the default.
 int compareTo(Object obj)
          Compares this object with the specified object for order.
 void update(long nodeID, byte hops, short cost, int hostSeq)
          Update this object with the specified values.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodeID

public long nodeID

hops

public byte hops

cost

public short cost

time

public int time

hostSeq

public int hostSeq
Constructor Detail

CollectionProtocol.RTable

public CollectionProtocol.RTable()

CollectionProtocol.RTable

public CollectionProtocol.RTable(CollectionProtocol.RTable t)
Method Detail

compareTo

public int compareTo(Object obj)
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Parameters:
obj - the Object to be compared
Returns:
an integer value

update

public void update(long nodeID,
                   byte hops,
                   short cost,
                   int hostSeq)
Update this object with the specified values.

Parameters:
nodeID - the truncated mote MAC address
hops - the number of hops to a host
hostSeq - the host sequence ID

clear

public void clear()
Reset this objects values to the default.



Copyright © 2007 Sentilla Corporation. All Rights Reserved.