|
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.request.RequestTable
public class RequestTable
Method Summary | |
---|---|
boolean |
addRREQ(RREQ message,
RouteEventClient eventClient,
Object uniqueKey)
add a route request to the request table |
void |
cleanTable()
This method removes all outstanding request that are expired |
RouteEventClient |
getCallback(RREP message)
This method provides access to the client that interested in the route reply message that is passed as an argument |
static RequestTable |
getInstance()
provides the instance of this singleton |
static int |
getNextRREQID()
get the next route request ID |
boolean |
hasActiveRequest(RREP message)
this method tells the caller if the request table already has an entry for the destination of this route request and it is currently active |
boolean |
hasActiveRequest(RREQ message)
this method tells the caller if the request table already has an entry for the destination of this route request and it is currently active |
boolean |
hasRequest(RREP message)
this method tells the caller if the request table already has an entry for the destination of this route reply |
boolean |
hasRequest(RREQ message)
this method tells the caller if the request table already has an entry for the destination of this route request |
Object |
removeOutstandingRequest(long destination,
long originator)
this method an outstanding request from the table |
void |
setOurAddress(long ourAddress)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static RequestTable getInstance()
public static int getNextRREQID()
public boolean addRREQ(RREQ message, RouteEventClient eventClient, Object uniqueKey)
message
- the rreq that should be addedeventClient
- the instance that caused this route requestuniqueKey
- identifier for this rreq
public boolean hasActiveRequest(RREQ message)
message
-
public boolean hasActiveRequest(RREP message)
message
-
public boolean hasRequest(RREQ message)
message
-
public boolean hasRequest(RREP message)
message
-
public Object removeOutstandingRequest(long destination, long originator)
destination
- originator
-
public void cleanTable()
public RouteEventClient getCallback(RREP message)
message
-
public void setOurAddress(long ourAddress)
|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |