net.wimpi.modbus.msg
Class ModbusResponse
java.lang.Object
net.wimpi.modbus.msg.ModbusMessageImpl
net.wimpi.modbus.msg.ModbusResponse
- All Implemented Interfaces:
- Transportable, ModbusMessage
- Direct Known Subclasses:
- ExceptionResponse, ReadCoilsResponse, ReadInputDiscretesResponse, ReadInputRegistersResponse, ReadMultipleRegistersResponse, WriteCoilResponse, WriteMultipleCoilsResponse, WriteMultipleRegistersResponse, WriteSingleRegisterResponse
public abstract class ModbusResponse
- extends ModbusMessageImpl
Abstract class implementing a ModbusResponse.
This class provides specialised implementations with
the functionality they have in common.
- Version:
- @version@ (@date@)
- Author:
- Dieter Wimberger
Methods inherited from class net.wimpi.modbus.msg.ModbusMessageImpl |
getDataLength, getFunctionCode, getHexMessage, getOutputLength, getProtocolID, getTransactionID, getUnitID, isHeadless, readData, readFrom, setDataLength, setHeadless, setProtocolID, setTransactionID, setUnitID, writeData, writeTo |
ModbusResponse
public ModbusResponse()
createModbusResponse
public static ModbusResponse createModbusResponse(int functionCode)
- Factory method creating the required specialized ModbusResponse
instance.
- Parameters:
functionCode
- the function code of the response as int.
- Returns:
- a ModbusResponse instance specific for the given function code.
Copyright © 2010. All Rights Reserved.