|
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.mhrp.aodv.AODVManager
public class AODVManager
| Field Summary |
|---|
| Fields inherited from interface com.sun.spot.service.IService |
|---|
PAUSED, PAUSING, RESUMING, RUNNING, STARTING, STOPPED, STOPPING |
| Method Summary | |
|---|---|
void |
deregisterEventListener(IMHEventListener listener)
Deregisters an application etc. that wasregistered for route events |
boolean |
findRoute(long address,
RouteEventClient eventClient,
Object uniqueKey)
This method triggers a new route request. |
int |
getCurrentSequenceNumber()
|
boolean |
getEnabled()
Return whether service is started automatically on reboot. |
static AODVManager |
getInstance()
|
int |
getNextSequenceNumber()
This method creates new sequence numbers. |
int |
getNextSequenceNumber(int givenNumber)
This method creates new sequence numbers. |
RouteInfo |
getRouteInfo(long address)
This method is called to obtain a route info, and to refreshen a route whenever it is used |
RouteTable |
getRoutingTable()
This method returns a snapshot of the routing table |
String |
getServiceName()
Return the name of this service. |
int |
getStatus()
Return the current status of this service. |
void |
initialize(long ourAddress,
ILowPan lowPan)
initializes this routing manager by starting the sender and receiver threads |
boolean |
initiateRouteDiscovery(long address)
|
boolean |
invalidateRoute(long originator,
long destination)
This method is called when it is recognized that the route is broken somewhere. |
boolean |
isRunning()
Return whether the service is currently running. |
boolean |
pause()
Pause the service, and return whether successful. |
void |
registerEventListener(IMHEventListener listener)
Registers an application etc. that is notified when this node processes supported route events |
boolean |
resume()
Resume the service, and return whether successful. |
void |
setEnabled(boolean enable)
Enable/disable whether service is started automatically. |
void |
setServiceName(String who)
Assign a name to this service. |
boolean |
start()
Start the service, and return whether successful. |
boolean |
stop()
Stop the service, and return whether successful. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static AODVManager getInstance()
public void initialize(long ourAddress,
ILowPan lowPan)
initialize in interface IRoutingManagerlowPan - LowPan layer that is our route clientpublic RouteTable getRoutingTable()
getRoutingTable in interface IRoutingManagerpublic RouteInfo getRouteInfo(long address)
getRouteInfo in interface IRoutingManageraddress - destination for which this method returns a route info
public boolean findRoute(long address,
RouteEventClient eventClient,
Object uniqueKey)
throws NoRouteException
findRoute in interface IRoutingManagerNoRouteExceptionpublic boolean initiateRouteDiscovery(long address)
public boolean invalidateRoute(long originator,
long destination)
invalidateRoute in interface IRoutingManagerpublic void registerEventListener(IMHEventListener listener)
registerEventListener in interface IRoutingManagerlistener - object that is notified when route events occurpublic void deregisterEventListener(IMHEventListener listener)
deregisterEventListener in interface IRoutingManagerlistener - object that is notified when route events occurpublic int getNextSequenceNumber()
public int getNextSequenceNumber(int givenNumber)
givenNumber -
public int getCurrentSequenceNumber()
public void setServiceName(String who)
setServiceName in interface IServicewho - the name for this servicepublic void setEnabled(boolean enable)
setEnabled in interface IServiceenable - true if the service should be started automatically on rebootpublic boolean stop()
stop in interface IServicepublic boolean start()
start in interface IServicepublic boolean resume()
resume in interface IServicepublic boolean pause()
pause in interface IServicepublic boolean isRunning()
isRunning in interface IServicepublic int getStatus()
getStatus in interface IServicepublic String getServiceName()
getServiceName in interface IServicepublic boolean getEnabled()
getEnabled in interface IService
|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||