org.avineas.fins
public interface Unit
Modifier and Type | Method and Description |
---|---|
Response |
handleCommand(Command command)
Handle a packet/command received from another FINS unit.
|
void |
setTransmitter(Transmitter transmitter)
Set the transmitter to use for sending commands to other FINS units.
|
Response handleCommand(Command command) throws java.lang.Exception
command
- The command that is issued from the remote nodejava.lang.Exception
- In case of severe errors, the method may throw an exception. In that
case the gateway does not send a reply to the unit expecting itvoid setTransmitter(Transmitter transmitter)
transmitter
- The transmitter to use for sending messages. The transmitter passed
may be null. In case of a null transmitter, any previously set not-null transmitter must not
be used anymore for communication since it is destroyed