java.lang.Object
io.qt.QtObject
io.qt.serialbus.QModbusPdu
io.qt.serialbus.QModbusRequest
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Container class containing the function code and payload that is stored inside a Modbus ADU
Java wrapper for Qt class QModbusRequest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Java wrapper for Qt callableFunctionPointerPrivate::fn<int,const QModbusRequest&>::type
Nested classes/interfaces inherited from class io.qt.serialbus.QModbusPdu
QModbusPdu.ExceptionCode, QModbusPdu.FunctionCode
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Field Summary
Fields inherited from class io.qt.serialbus.QModbusPdu
ExceptionByte
-
Constructor Summary
ConstructorsConstructorDescriptionQModbusRequest
(QModbusPdu pdu) Overloaded constructor forQModbusRequest(io.qt.serialbus.QModbusPdu.FunctionCode, io.qt.core.QByteArray)
withnewData = new io.qt.core.QByteArray()
.QModbusRequest
(QModbusPdu.FunctionCode code, QByteArray newData) -
Method Summary
Modifier and TypeMethodDescriptionstatic int
clone()
Creates and returns a copy of this object.boolean
Seeoperator==(QModbusRequest,
QModbusRequest) int
hashCode()
Returns the objects's hash code computed byqHash(QModbusRequest)
.static int
void
readFrom
(QDataStream stream) Seeoperator>>(QDataStream&,
QModbusRequest&) static void
void
writeTo
(QDataStream stream) Seeoperator<<(QDataStream&,
QModbusRequest) Methods inherited from class io.qt.serialbus.QModbusPdu
assign, data, dataSize, decodeData, decodeData, decodeData, encodeData, encodeData, encodeData, exceptionCode, functionCode, isException, isValid, setData, setFunctionCode, size, toString
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QModbusRequest
public QModbusRequest() -
QModbusRequest
-
QModbusRequest
-
QModbusRequest
Overloaded constructor for
QModbusRequest(io.qt.serialbus.QModbusPdu.FunctionCode, io.qt.core.QByteArray)
withnewData = new io.qt.core.QByteArray()
.
-
-
Method Details
-
writeTo
See
operator<<(QDataStream&,
QModbusRequest) - Overrides:
writeTo
in classQModbusPdu
-
readFrom
See
operator>>(QDataStream&,
QModbusRequest&) -
calculateDataSize
-
minimumDataSize
-
registerDataSizeCalculator
public static void registerDataSizeCalculator(QModbusPdu.FunctionCode fc, QModbusRequest.CalcFunction func) -
equals
See
operator==(QModbusRequest,
QModbusRequest) - 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(QModbusRequest)
.- Overrides:
hashCode
in classQModbusPdu
-
clone
Creates and returns a copy of this object.
- Overrides:
clone
in classQModbusPdu
-