|
jamod at SF | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.wimpi.modbus.msg.ModbusMessageImpl net.wimpi.modbus.msg.ModbusResponse
Abstract class implementing a ModbusResponse. This class provides specialised implementations with the functionality they have in common.
Constructor Summary | |
ModbusResponse()
|
Method Summary | |
static ModbusResponse |
createModbusResponse(int functionCode)
Factory method creating the required specialized ModbusResponse instance. |
protected void |
setMessage(byte[] msg)
Utility method to set the raw data of the message. |
Methods inherited from class net.wimpi.modbus.msg.ModbusMessageImpl |
getDataLength, getFunctionCode, getHexMessage, getOutputLength, getProtocolID, getTransactionID, getUnitID, isHeadless, readData, readFrom, setDataLength, setFunctionCode, setHeadless, setHeadless, setProtocolID, setTransactionID, setUnitID, writeData, writeTo |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ModbusResponse()
Method Detail |
protected void setMessage(byte[] msg)
msg
- the byte[] resembling the raw modbus
response message.public static ModbusResponse createModbusResponse(int functionCode)
functionCode
- the function code of the response as int.
|
jamod at SF | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |