|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.spot.peripheral.radio.routing.RouteInfo
public class RouteInfo
An object that describes a basic route entry. It contains the final destination, next hop and number of hops between this node and the destination
| Field Summary | |
|---|---|
long |
destination
The final destination address |
int |
hopCount
total number of hops between this node and the destination |
long |
nextHop
next node on the route to the destination |
| Constructor Summary | |
|---|---|
RouteInfo(long destination,
long nextHop,
int hopCount)
Create a RouteInfo object using all three components: destination, next hop and total hop count |
|
| Method Summary | |
|---|---|
static RouteInfo |
fromString(String s)
|
long |
getDestination()
return the destination for this RouteInfo object |
String |
toString()
create a string represenation of this object |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public long destination
public long nextHop
public int hopCount
| Constructor Detail |
|---|
public RouteInfo(long destination,
long nextHop,
int hopCount)
destination - The IEEE Address (as a long) of the route destinationnextHop - The IEEE Address (as a long) of the next hop to the detination addresshopCount - number of hops to the final destination of this route| Method Detail |
|---|
public long getDestination()
public String toString()
toString in class Objectpublic static RouteInfo fromString(String s)
|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||