SunSPOT API V6.0


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

All Superinterfaces:
IResource, IService
All Known Implementing Classes:
RoutingPolicyManager

public interface IRoutingPolicyManager
extends IService

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

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
 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
 
Methods inherited from interface com.sun.spot.service.IService
getEnabled, getServiceName, getStatus, isRunning, pause, resume, setEnabled, setServiceName, start, stop
 
Methods inherited from interface com.sun.spot.resources.IResource
addTag, getTags, getTagValue, hasTag, removeTag
 

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 V6.0


Copyright © 2006-2010 Oracle. All Rights Reserved.