java.lang.Object
io.qt.QtObject
io.qt.serialbus.QModbusDataUnit
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Container class representing single bit and 16 bit word entries in the Modbus register
Java wrapper for Qt's class QModbusDataUnit
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enum QModbusDataUnit::RegisterTypeNested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionQModbusDataUnit
(QModbusDataUnit.RegisterType type, int newStartAddress, short newValueCount) QModbusDataUnit
(QModbusDataUnit.RegisterType type, int newStartAddress, Collection<@QtPrimitiveType Short> newValues) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.int
hashCode()
final boolean
isValid()
final void
final void
setStartAddress
(int newAddress) final void
setValue
(int index, short newValue) final void
setValueCount
(int newCount) final void
setValues
(Collection<@QtPrimitiveType Short> newValues) final int
final short
value
(int index) final int
final QVector<@QtPrimitiveType Short>
values()
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QModbusDataUnit
public QModbusDataUnit() -
QModbusDataUnit
-
QModbusDataUnit
public QModbusDataUnit(QModbusDataUnit.RegisterType type, int newStartAddress, Collection<@QtPrimitiveType Short> newValues) -
QModbusDataUnit
-
QModbusDataUnit
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
isValid
-
registerType
-
setRegisterType
-
setStartAddress
-
setValue
-
setValueCount
-
setValues
-
startAddress
-
value
-
valueCount
-
values
-
equals
Description copied from class:QtObject
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
clone
-