|
SunSPOT API V6.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.spot.resources.Resource
com.sun.spot.service.BasicService
com.sun.spot.peripheral.radio.routing.RoutingPolicyManager
public class RoutingPolicyManager
The object that oversees the routing policy for this node
| Field Summary |
|---|
| Fields inherited from interface com.sun.spot.service.IService |
|---|
PAUSED, PAUSING, READY, RESUMING, RUNNING, STARTING, STOPPED, STOPPING |
| Method Summary | |
|---|---|
boolean |
bridgeBroadcasts()
return true if we pass broadcasts without decrementing hop count |
static IRoutingPolicyManager |
getInstance()
Return a singleton for the RoutingPolicyManager |
String |
getServiceName()
Return the name of this service. |
boolean |
isEndNode()
determine if we are only a routing consumer |
boolean |
maySleep()
determine whether this routing policy allows deepSleep |
void |
policyHasChanged(RoutingPolicy newPolicy)
Notify the routing subsystem of a new routing policy |
boolean |
routeAlways()
determine if we always pass packets |
String |
toString()
create a string representation of this object |
| Methods inherited from class com.sun.spot.service.BasicService |
|---|
getEnabled, getStatus, isRunning, pause, resume, setEnabled, setServiceName, start, stop |
| Methods inherited from class com.sun.spot.resources.Resource |
|---|
addTag, getTags, getTagValue, hasTag, removeTag |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sun.spot.service.IService |
|---|
getEnabled, getStatus, isRunning, pause, resume, setEnabled, setServiceName, start, stop |
| Methods inherited from interface com.sun.spot.resources.IResource |
|---|
addTag, getTags, getTagValue, hasTag, removeTag |
| Method Detail |
|---|
public static IRoutingPolicyManager getInstance()
public String getServiceName()
IService
getServiceName in interface IServicegetServiceName in class BasicServicepublic void policyHasChanged(RoutingPolicy newPolicy)
policyHasChanged in interface IRoutingPolicyManagernewPolicy - policy that should now be in effectpublic String toString()
toString in class Objectpublic boolean maySleep()
maySleep in interface IRoutingPolicyManagerpublic boolean routeAlways()
routeAlways in interface IRoutingPolicyManagerpublic boolean isEndNode()
isEndNode in interface IRoutingPolicyManagerpublic boolean bridgeBroadcasts()
IRoutingPolicyManager
bridgeBroadcasts in interface IRoutingPolicyManager
|
SunSPOT API V6.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||