com.sentilla.platform.tmote
Class CollectionProtocol.RTable
java.lang.Object
com.sentilla.platform.tmote.CollectionProtocol.RTable
- Enclosing class:
- CollectionProtocol
public class CollectionProtocol.RTable
- extends Object
Table structure containing neighbor information.
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. |
nodeID
public long nodeID
hops
public byte hops
cost
public short cost
time
public int time
hostSeq
public int hostSeq
CollectionProtocol.RTable
public CollectionProtocol.RTable()
CollectionProtocol.RTable
public CollectionProtocol.RTable(CollectionProtocol.RTable t)
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 addresshops
- the number of hops to a hosthostSeq
- the host sequence ID
clear
public void clear()
- Reset this objects values to the default.
Copyright © 2007 Sentilla Corporation. All Rights Reserved.