|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
com.sun.spot.peripheral.radio.mhrp.aodv.Sender
public class Sender
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
Sender(long ourAddress,
ILowPan lowPan,
Vector listeners)
|
|
| Method Summary | |
|---|---|
boolean |
forwardAODVMessage(AODVMessage message)
put a message that must be forwarded into the queue |
void |
run()
Spins on the outgoing message queue and calls the appropriate send methods |
boolean |
sendNewRERR(long originator,
long destination)
Create an entry for the queue and put it in to the designated queue |
boolean |
sendNewRREP(RREP message)
Create an entry for the queue and put it in to the designated queue |
boolean |
sendNewRREQ(long address,
RouteEventClient eventClient,
Object uniqueKey)
Create an entry for the queue and put it in to the designated queue |
void |
stopThread()
|
| Methods inherited from class java.lang.Thread |
|---|
activeCount, currentThread, getName, getPriority, interrupt, isAlive, join, setPriority, sleep, start, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Sender(long ourAddress,
ILowPan lowPan,
Vector listeners)
| Method Detail |
|---|
public void run()
run in interface Runnablerun in class ThreadThread.start(),
Runnable.run()public void stopThread()
public boolean sendNewRREQ(long address,
RouteEventClient eventClient,
Object uniqueKey)
address - destination for which a route is wantedeventClient - the instance that is waiting for this routeuniqueKey - identifier for this rreq
public boolean sendNewRERR(long originator,
long destination)
originator - destination -
public boolean sendNewRREP(RREP message)
message -
public boolean forwardAODVMessage(AODVMessage message)
|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||