|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Receiver
Provides methods to receive messages from the mote communications interfaces.
Primary class for receiving messages and objects. Blocking and non-blocking
methods for receiving a message provided. Message metadata can be obtained
by calling the getNextReceiver
method and accessing the Receiver
metadata field directly.
ReceiverDriver
Field Summary |
---|
Fields inherited from interface com.sentilla.system.Action |
---|
DONE, ERROR, IDLE, PENDING |
Method Summary | ||
---|---|---|
|
getData()
Returns the received object. |
|
Addressable |
getDestAddress()
Returns the destination address of the last received message. |
|
|
getMetadata(Class<R> c)
Returns the platform specific receiver object that contains metadata about the received message. |
|
Addressable |
getSourceAddress()
Returns the source address of the last received message. |
|
|
receive()
Receives an object. |
|
Receiver |
setReceive()
Sets the Receiver object to receive. |
Methods inherited from interface com.sentilla.system.Action |
---|
block, block, cancel, getActionState, isDone, submit |
Method Detail |
---|
<M> M receive()
Receiver setReceive()
Action
<M> M getData()
Addressable getDestAddress()
Addressable
Addressable getSourceAddress()
Addressable
<R extends Receiver> R getMetadata(Class<R> c)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |