com.sun.spot.peripheral.radio.mhrp.aodv
Class Receiver
java.lang.Object
java.lang.Thread
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
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 |
Receiver
public Receiver(long ourAddress,
Sender sender,
ILowPan lowPan,
Vector listeners)
- constructs a new receiver thread.
- Parameters:
sender
- lowPan
-
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
-
Copyright © 2006, 2007 Sun Microsystems, Inc. All Rights Reserved.