|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.spot.peripheral.radio.mhrp.aodv.routing.RoutingTable
public class RoutingTable
An object that represents a routing table for the mesh
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 |
void |
dumpTable()
|
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()
retrieve a handle to this routing table |
RouteInfo |
getNextHopInfo(long address)
returns an object that describes the route for a given destination |
void |
setOurAddress(long ourAddress)
sets our IEEE Address |
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
- destination address of route entrynextHopMACAddress
- address of next hop to this addresshopCount
- number of hops to destinationrouteCost
- AODV route cost mechanismdestSeqNumber
- AODV sequence numberpublic void addRoute(long senderMACAddress, RREQ message)
senderMACAddress
- mac address of the requestormessage
- route request message receivedpublic void addRoute(long senderMACAddress, RREP message)
senderMACAddress
- sender of the route responsemessage
- route response message receivedpublic int getDestinationSequenceNumber(long address)
address
- address of the entry that we are interested in
public void cleanTable()
public boolean freshenRoute(long address)
address
- destination address to be refreshed
public void deactivateRoute(long originator, long destination)
originator
- originator of the route requestdestination
- destination address of route entrypublic Vector getAllEntries()
public void dumpTable()
public void setOurAddress(long ourAddress)
ourAddress
- our IEEE Address as a long
|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |