SunSPOT API V5.0


com.sun.spot.peripheral.radio
Interface IRouteEventListener


public interface IRouteEventListener

Interface implemented by classes that want to receive notifications when the node initiates a routing event

Version:
0.1
Author:
Allen Ajit George, Jochen Furthmueller

Method Summary
 void routeRequestMade(long destination)
          Method that is called whenever the node initiates a route request
 void routeResponseReceived(long destination, int hopCount, boolean success)
          Method that is called whenever the node receives a response to a route request sent out
 

Method Detail

routeRequestMade

void routeRequestMade(long destination)
Method that is called whenever the node initiates a route request

Parameters:
destination - final destination for which a route needs to be found

routeResponseReceived

void routeResponseReceived(long destination,
                           int hopCount,
                           boolean success)
Method that is called whenever the node receives a response to a route request sent out

Parameters:
destination - final destination for which a route needs to be found
hopCount - number of hops to the destination
success - indicates whether a path was found (true indicates success, false indicates failure)

SunSPOT API V5.0


Copyright � 2006-2008 Sun Microsystems, Inc. All Rights Reserved.