SunSPOT API V3.0


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

All Superinterfaces:
IService
All Known Implementing Classes:
AODVManager, SingleHopManager

public interface IRoutingManager
extends IService

This interface defines a routing manager

Version:
0.1
Author:
Allen Ajit George

Field Summary
 
Fields inherited from interface com.sun.spot.service.IService
PAUSED, PAUSING, RESUMING, RUNNING, STARTING, STOPPED, STOPPING
 
Method Summary
 void deregisterEventListener(IMHEventListener listener)
          Deregisters an application etc. that was registered for route events
 boolean findRoute(long address, RouteEventClient eventClient, Object uniqueKey)
          this method triggers a new route request
 RouteInfo getRouteInfo(long address)
          this method can be called to obtain a route info for an address
 void initialize(long ourAddress, ILowPan lowPanLayer)
          for the initialization the routing manager must know a low pan instance to interoperate with
 boolean invalidateRoute(long originator, long destination)
          invalidate a route that is reported to be broken
 void registerEventListener(IMHEventListener listener)
          Registers an application etc. that is notified when this node initiates/receives supported route events
 
Methods inherited from interface com.sun.spot.service.IService
getEnabled, getServiceName, getStatus, isRunning, pause, resume, setEnabled, setServiceName, start, stop
 

Method Detail

initialize

void initialize(long ourAddress,
                ILowPan lowPanLayer)
for the initialization the routing manager must know a low pan instance to interoperate with

Parameters:
ourAddress -
lowPanLayer -

getRouteInfo

RouteInfo getRouteInfo(long address)
this method can be called to obtain a route info for an address

Parameters:
address -

findRoute

boolean findRoute(long address,
                  RouteEventClient eventClient,
                  Object uniqueKey)
this method triggers a new route request


invalidateRoute

boolean invalidateRoute(long originator,
                        long destination)
invalidate a route that is reported to be broken


registerEventListener

void registerEventListener(IMHEventListener listener)
Registers an application etc. that is notified when this node initiates/receives supported route events

Parameters:
listener - object that is notified when route events occur

deregisterEventListener

void deregisterEventListener(IMHEventListener listener)
Deregisters an application etc. that was registered for route events

Parameters:
listener - object that is notified when route events occur

SunSPOT API V3.0


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