java.lang.Object
io.qt.QtObject
io.qt.serialbus.QModbusPdu
io.qt.serialbus.QModbusResponse
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
- Direct Known Subclasses:
QModbusExceptionResponse
Container class containing the function code and payload that is stored inside a Modbus ADU
Java wrapper for Qt class QModbusResponse
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Java wrapper for Qt callableQtJambiAPI::FunctionType<int,const QModbusResponse&>::type
Nested classes/interfaces inherited from class io.qt.serialbus.QModbusPdu
QModbusPdu.ExceptionCode, QModbusPdu.FunctionCode
-
Field Summary
Fields inherited from class io.qt.serialbus.QModbusPdu
ExceptionByte
-
Constructor Summary
ConstructorDescriptionQModbusResponse
(QModbusResponse other) SeeQModbusResponse::
QModbusResponse(QModbusResponse) Overloaded constructor forQModbusResponse(io.qt.serialbus.QModbusPdu.FunctionCode, io.qt.core.QByteArray)
withnewData = new io.qt.core.QByteArray()
.QModbusResponse
(QModbusPdu.FunctionCode code, byte [] newData) Overloaded constructor forQModbusResponse(io.qt.serialbus.QModbusPdu.FunctionCode, io.qt.core.QByteArray)
.QModbusResponse
(QModbusPdu.FunctionCode code, QByteArray newData) -
Method Summary
Modifier and TypeMethodDescriptionstatic int
clone()
Creates and returns a copy of this object.final boolean
equals
(QModbusResponse value2) Seeoperator==(QModbusResponse,
QModbusResponse) boolean
Seeoperator==(QModbusResponse,
QModbusResponse) int
hashCode()
Returns the objects's hash code computed byqHash(QModbusResponse)
.static int
void
readFrom
(QDataStream stream) static void
void
writeTo
(QDataStream stream) Seeoperator<<(QDataStream&,
QModbusResponse) Methods inherited from class io.qt.serialbus.QModbusPdu
assign, data, dataSize, decodeData, decodeData, decodeData, encodeData, encodeData, encodeData, equals, exceptionCode, functionCode, isException, isValid, setData, setData, setFunctionCode, size, toString
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QModbusResponse
public QModbusResponse() -
QModbusResponse
-
QModbusResponse
-
QModbusResponse
See
QModbusResponse::
QModbusResponse(QModbusResponse) -
QModbusResponse
Overloaded constructor for
QModbusResponse(io.qt.serialbus.QModbusPdu.FunctionCode, io.qt.core.QByteArray)
withnewData = new io.qt.core.QByteArray()
. -
QModbusResponse
Overloaded constructor for
QModbusResponse(io.qt.serialbus.QModbusPdu.FunctionCode, io.qt.core.QByteArray)
.
-
-
Method Details
-
writeTo
See
operator<<(QDataStream&,
QModbusResponse) - Overrides:
writeTo
in classQModbusPdu
-
equals
See
operator==(QModbusResponse,
QModbusResponse) -
readFrom
-
calculateDataSize
-
minimumDataSize
-
registerDataSizeCalculator
public static void registerDataSizeCalculator(QModbusPdu.FunctionCode fc, QModbusResponse.CalcFunction func) -
equals
See
operator==(QModbusResponse,
QModbusResponse) - Overrides:
equals
in classQModbusPdu
- Parameters:
other
- other object- Returns:
- true if the native counterpart of the two objects are one and the same.
-
hashCode
Returns the objects's hash code computed byqHash(QModbusResponse)
.- Overrides:
hashCode
in classQModbusPdu
-
clone
Creates and returns a copy of this object.
See
QModbusResponse::
QModbusResponse(QModbusResponse) - Overrides:
clone
in classQModbusPdu
-