SunSPOT API V3.0


com.sun.spot.peripheral.radio.routing.interfaces
Interface IRoutingPolicyManager

All Known Implementing Classes:
RoutingPolicyManager

public interface IRoutingPolicyManager

Author:
Pete St. Pierre based on the RoutingPolicy and RoutingPolicyManager classes developed by Syntropy

Method Summary
 boolean bridgeBroadcasts()
          return true if we pass broadcasts without decrementing hop count
 boolean isEndNode()
          return true if we are only a route consumer
 boolean maySleep()
          return true if we allow deepSleep
 void policyHasChanged(RoutingPolicy newPolicy)
          Notify the policy manager that a policy has changed
 boolean routeAlways()
          return true if this routing policy requires us not to go to sleep
 

Method Detail

policyHasChanged

void policyHasChanged(RoutingPolicy newPolicy)
Notify the policy manager that a policy has changed

Parameters:
newPolicy - the policy to start enforcing

routeAlways

boolean routeAlways()
return true if this routing policy requires us not to go to sleep

Returns:
true if we always route packets

isEndNode

boolean isEndNode()
return true if we are only a route consumer

Returns:
true if we are only a routing consumer

maySleep

boolean maySleep()
return true if we allow deepSleep

Returns:
true if we do not disable deep sleep

bridgeBroadcasts

boolean bridgeBroadcasts()
return true if we pass broadcasts without decrementing hop count

Returns:
true if we pass broadcasts without decrementing hop count

SunSPOT API V3.0


Copyright © 2006, 2007 Sun Microsystems, Inc. All Rights Reserved.