|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Sender
Provides interfaces for sending objects with the radio and the UART.
This class is the primary method for sending messages and objects.
It provides a unified interface for sending messages with any protocol,
provided that protocol exists on the runtime platform. Blocking and non-blocking
versions of the send
command are provided. The protocol metadata is also
accessible by directly modifying the class values.
SenderDriver
Field Summary |
---|
Fields inherited from interface com.sentilla.system.Action |
---|
DONE, ERROR, IDLE, PENDING |
Method Summary | |
---|---|
void |
send(Object obj)
Sends the input object. |
void |
setAddress(Addressable addr)
Sets the destination address. |
Sender |
setSend(Object obj)
Sets the object to send. |
Methods inherited from interface com.sentilla.system.Action |
---|
block, block, cancel, getActionState, isDone, submit |
Method Detail |
---|
void send(Object obj)
send
. Blocks
program execution until the send operation has
completed.
obj
- object to sendSender setSend(Object obj)
send
. The application sets
the object to send, then performs a submit()
and
block(timeout)
on the sender object.
obj
- object to send
void setAddress(Addressable addr)
addr
- object implementing Addressable interface to be used as address
UnsupportedAddressException
Addressable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |