SunSPOT API V5.0


com.sun.spot.peripheral.radio.mhrp.lqrp
Class Receiver

java.lang.Object
  extended by java.lang.Thread
      extended by com.sun.spot.peripheral.radio.mhrp.lqrp.Receiver
All Implemented Interfaces:
IProtocolManager, Runnable

public class Receiver
extends Thread
implements IProtocolManager

Version:
0.1
Author:
Allen Ajit George, modification by Pradip De and Pete St. Pierre

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Receiver(long ourAddr, Sender sndr, ILowPan lowPan, Vector listeners, Vector LQListeners)
          constructs a new receiver thread.
 
Method Summary
 void processIncomingData(byte[] payload, LowPanHeaderInfo headerInfo)
          This method is called whenever the low pan layer receives a packet that carries this routing manager's protocol number.
 void run()
          incoming packets are evaluated and the appropriate message handler is called
 void stopThread()
           
 
Methods inherited from class java.lang.Thread
activeCount, currentThread, getName, getPriority, interrupt, isAlive, join, setPriority, sleep, start, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Receiver

public Receiver(long ourAddr,
                Sender sndr,
                ILowPan lowPan,
                Vector listeners,
                Vector LQListeners)
constructs a new receiver thread.

Parameters:
ourAddr -
sndr -
lowPan -
listeners -
LQListeners -
Method Detail

run

public void run()
incoming packets are evaluated and the appropriate message handler is called

Specified by:
run in interface Runnable
Overrides:
run in class Thread
See Also:
Thread.start(), Runnable.run()

stopThread

public void stopThread()

processIncomingData

public void processIncomingData(byte[] payload,
                                LowPanHeaderInfo headerInfo)
This method is called whenever the low pan layer receives a packet that carries this routing manager's protocol number. It implements the protocol managers interface.

Specified by:
processIncomingData in interface IProtocolManager
Parameters:
payload -
headerInfo -

SunSPOT API V5.0


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