public interface ControlLabInterface
| Modifier and Type | Method and Description |
|---|---|
void |
connect()
Connect to the serial port and start the keepalive thread.
|
void |
disconnect()
Send the message for closing the communication and close the serial port.
|
<S extends Input> |
getInput(Class<S> clazz,
InputPortEnum inputPort)
Get the input type declared by clazz for this port.
|
Output |
getOuput(OutputPortEnum outputPort)
Get the ouput for this port.
|
String |
getPort()
Returns the port.
|
int[] |
getSensorValues()
Get the sensors' values array.
|
void |
readData()
Read the data when available.
|
void |
sendMessage(byte message)
Send a message.
|
void |
sendMessage(byte[] message)
Send a message.
|
void connect()
void disconnect()
void readData()
int[] getSensorValues()
void sendMessage(byte message)
message - a bytevoid sendMessage(byte[] message)
message - a byte array.String getPort()
Output getOuput(OutputPortEnum outputPort)
outputPort - outputport<S extends Input> S getInput(Class<S> clazz, InputPortEnum inputPort)
S - class which extends Inputclazz - wanted class instance of the inputinputPort - input portCopyright © 2018. All rights reserved.