SunSPOT API V3.0


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

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

public class Receiver
extends Thread
implements IProtocolManager

Version:
0.1
Author:
Allen Ajit George

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Receiver(long ourAddress, Sender sender, ILowPan lowPan, Vector listeners)
          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
 
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 ourAddress,
                Sender sender,
                ILowPan lowPan,
                Vector listeners)
constructs a new receiver thread.

Parameters:
sender -
lowPan -
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()

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


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