|
SunSPOT API V2.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.spot.peripheral.radio.mhrp.aodv.routing.RoutingTable
public class RoutingTable
| Method Summary | |
|---|---|
void |
addRoute(long address,
long nextHopMACAddress,
int hopCount,
int routeCost,
int destSeqNumber)
Create a new route entry using the parameters, then call doTableAddition() |
void |
addRoute(long senderMACAddress,
RREP message)
Create a new route entry based on a received route reply, then call doTableAddition() |
void |
addRoute(long senderMACAddress,
RREQ message)
Create a new route entry based on a received route request, then call doTableAddition() |
void |
cleanTable()
delete all table entries that are expired |
void |
deactivateRoute(long originator,
long destination)
removes a node from the users list of a route and sets the activity flag to false |
boolean |
freshenRoute(long address)
increases the expiry time for a route that is specified by the destination address |
Vector |
getAllEntries()
This method provides access to the entire routing table. |
int |
getDestinationSequenceNumber(long address)
get the destination sequence number for a certain entry |
static RoutingTable |
getInstance()
|
RouteInfo |
getNextHopInfo(long address)
|
void |
setOurAddress(long ourAddress)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static RoutingTable getInstance()
public RouteInfo getNextHopInfo(long address)
address - for which a route info is wanted
public void addRoute(long address,
long nextHopMACAddress,
int hopCount,
int routeCost,
int destSeqNumber)
address - nextHopMACAddress - hopCount - routeCost - destSeqNumber -
public void addRoute(long senderMACAddress,
RREQ message)
senderMACAddress - message -
public void addRoute(long senderMACAddress,
RREP message)
senderMACAddress - message - public int getDestinationSequenceNumber(long address)
address - address of the entry that we are interested in
public void cleanTable()
public boolean freshenRoute(long address)
address -
public void deactivateRoute(long originator,
long destination)
originator - destination - public Vector getAllEntries()
public void setOurAddress(long ourAddress)
|
SunSPOT API V2.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||