|
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.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 |
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 IRoutingManager
lowPan
- LowPan layer that is our route clientpublic RouteInfo getRouteInfo(long address)
getRouteInfo
in interface IRoutingManager
address
- destination for which this method returns a route info
public boolean findRoute(long address, RouteEventClient eventClient, Object uniqueKey)
findRoute
in interface IRoutingManager
public boolean initiateRouteDiscovery(long address)
public boolean invalidateRoute(long originator, long destination)
invalidateRoute
in interface IRoutingManager
public void registerEventListener(IMHEventListener listener)
registerEventListener
in interface IRoutingManager
listener
- object that is notified when route events occurpublic void deregisterEventListener(IMHEventListener listener)
deregisterEventListener
in interface IRoutingManager
listener
- 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 IService
who
- the name for this servicepublic void setEnabled(boolean enable)
setEnabled
in interface IService
enable
- true if the service should be started automatically on rebootpublic boolean stop()
stop
in interface IService
public boolean start()
start
in interface IService
public boolean resume()
resume
in interface IService
public boolean pause()
pause
in interface IService
public boolean isRunning()
isRunning
in interface IService
public int getStatus()
getStatus
in interface IService
public String getServiceName()
getServiceName
in interface IService
public boolean getEnabled()
getEnabled
in interface IService
|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |