|
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.routing.RoutingPolicyManager
public class RoutingPolicyManager
The onject that oversees the routing policy for this node
Method Summary | |
---|---|
boolean |
bridgeBroadcasts()
return true if we pass broadcasts without decrementing hop count |
static IRoutingPolicyManager |
getInstance()
Return a singleton for the RoutingPolicyManager |
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 java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static IRoutingPolicyManager getInstance()
public void policyHasChanged(RoutingPolicy newPolicy)
policyHasChanged
in interface IRoutingPolicyManager
newPolicy
- policy that should now be in effectpublic String toString()
toString
in class Object
public boolean maySleep()
maySleep
in interface IRoutingPolicyManager
public boolean routeAlways()
routeAlways
in interface IRoutingPolicyManager
public boolean isEndNode()
isEndNode
in interface IRoutingPolicyManager
public boolean bridgeBroadcasts()
IRoutingPolicyManager
bridgeBroadcasts
in interface IRoutingPolicyManager
|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |