类 ReadResponse
java.lang.Object
com.huangjian.modbus4j.msg.ModbusMessage
com.huangjian.modbus4j.msg.ModbusResponse
com.huangjian.modbus4j.msg.ReadResponse
- 直接已知子类:
ReadCoilsResponse,ReadDiscreteInputsResponse,ReadHoldingRegistersResponse,ReadInputRegistersResponse
Abstract ReadResponse class.
-
字段概要
从类继承的字段 com.huangjian.modbus4j.msg.ModbusResponse
exceptionCode, MAX_FUNCTION_CODE从类继承的字段 com.huangjian.modbus4j.msg.ModbusMessage
slaveId -
方法概要
修饰符和类型方法说明boolean[]getBooleanData.byte[]getData()Getter for the fielddata.short[]getShortData.protected voidreadResponse(ByteQueue queue) readResponse.toString(boolean numeric) toString.protected voidwriteResponse(ByteQueue queue) writeResponse.从类继承的方法 com.huangjian.modbus4j.msg.ModbusResponse
createModbusResponse, getExceptionCode, getExceptionMessage, isException, main, validateResponse, writeImpl从类继承的方法 com.huangjian.modbus4j.msg.ModbusMessage
convertToBooleans, convertToBytes, convertToBytes, convertToShorts, getFunctionCode, getSlaveId, write
-
方法详细资料
-
readResponse
readResponse.
- 指定者:
readResponse在类中ModbusResponse- 参数:
queue- aByteQueueobject.
-
writeResponse
writeResponse.
- 指定者:
writeResponse在类中ModbusResponse- 参数:
queue- aByteQueueobject.
-
getData
public byte[] getData()Getter for the field
data.- 返回:
- an array of
objects.
引用无效
byte
-
getShortData
public short[] getShortData()getShortData.
- 返回:
- an array of
objects.
引用无效
short
-
getBooleanData
public boolean[] getBooleanData()getBooleanData.
- 返回:
- an array of
objects.
引用无效
boolean
-
toString
toString.
- 参数:
numeric- a boolean.- 返回:
- a
Stringobject.
-