![]() |
BakeoutController-Basic
0.1
A Controller for the Omicron vacuum chamber
|


Public Member Functions | |
| ModbusPortConfiguration | getPortConfiguration () |
| void | setPortConfiguration (ModbusPortConfiguration portConfiguration) |
| Boolean | isPortOpen () |
| void | close () |
| ModbusTransaction | getTransactionForRequest (ModbusRequest request) throws WrappedModbusException, IllegalStateException |
| Float | parseFloatFromResponse (ModbusMessage response) throws ClassCastException, IOException |
| String | parseStringFromResponse (ModbusMessage response) throws ClassCastException, IOException |
Manages connections to an RS232 port using MODBUS
Definition at line 24 of file ModBusConnectionManager.java.
| void kernel.modbus.ModBusConnectionManager.close | ( | ) |
Closes the port and removes the shutdown thread
Implements kernel.modbus.ModbusConnector.
Definition at line 88 of file ModBusConnectionManager.java.
| ModbusPortConfiguration kernel.modbus.ModBusConnectionManager.getPortConfiguration | ( | ) |
Implements kernel.modbus.ModbusConnector.
Definition at line 56 of file ModBusConnectionManager.java.
| ModbusTransaction kernel.modbus.ModBusConnectionManager.getTransactionForRequest | ( | ModbusRequest | request | ) | throws WrappedModbusException, IllegalStateException |
| request | A transaction which, when executed, will retrieve the value at a particular set of registers in the MODBUS device |
| WrappedModbusException | If the connection cannot be opened. |
| IllegalStateException | If assertions like the device having a connection, and having a port configuration, fail. |
Implements kernel.modbus.ModbusConnector.
Definition at line 103 of file ModBusConnectionManager.java.
| Boolean kernel.modbus.ModBusConnectionManager.isPortOpen | ( | ) |
Implements kernel.modbus.ModbusConnector.
Definition at line 76 of file ModBusConnectionManager.java.
| Float kernel.modbus.ModBusConnectionManager.parseFloatFromResponse | ( | ModbusMessage | response | ) | throws ClassCastException, IOException |
Helper method to retrieve a float from a MODBUS response.
| response | The response to be parsed |
| ClassCastException | If the message cannot be cast to a response |
| IOException | If the message cannot be read |
Implements kernel.modbus.ModbusConnector.
Definition at line 136 of file ModBusConnectionManager.java.
| String kernel.modbus.ModBusConnectionManager.parseStringFromResponse | ( | ModbusMessage | response | ) | throws ClassCastException, IOException |
Retrieve a string from the data package of the retrieved response
| response | The response from which a string must be retrieved |
| ClassCastException | If the ModbusMessage cannot be cast to a ModbusResponse. This cast is required so that the method ModbusResponse#writeData(DataOutput) can be used to extract the response data package |
| IOException | if a string cannot be parsed from the response |
Implements kernel.modbus.ModbusConnector.
Definition at line 169 of file ModBusConnectionManager.java.
| void kernel.modbus.ModBusConnectionManager.setPortConfiguration | ( | ModbusPortConfiguration | portConfiguration | ) |
| portConfiguration | The desired port configuration |
Implements kernel.modbus.ModbusConnector.
Definition at line 64 of file ModBusConnectionManager.java.
| Git Repo |