|
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.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 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 V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||