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 class QModbusDataUnit
- Since:
- This class was introduced in Qt 5.8.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQModbusDataUnit::RegisterType
-
Constructor Summary
ConstructorDescriptionQModbusDataUnit
(QModbusDataUnit other) SeeQModbusDataUnit::
QModbusDataUnit(QModbusDataUnit) QModbusDataUnit
(QModbusDataUnit.RegisterType type, int newStartAddress, short newValueCount) QModbusDataUnit
(QModbusDataUnit.RegisterType type, int newStartAddress, Collection<@QtPrimitiveType Short> newValues) -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates and returns a copy of this object.final boolean
equals
(QModbusDataUnit value2) Seeoperator==(QModbusDataUnit,
QModbusDataUnit) boolean
Seeoperator==(QModbusDataUnit,
QModbusDataUnit) int
hashCode()
Returns the objects's hash code computed byqHash(QModbusDataUnit)
.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
See
QModbusDataUnit::
QModbusDataUnit(QModbusDataUnit) - Parameters:
other
-
-
QModbusDataUnit
- Parameters:
type
-
-
QModbusDataUnit
public QModbusDataUnit(QModbusDataUnit.RegisterType type, int newStartAddress, Collection<@QtPrimitiveType Short> newValues) - Parameters:
type
-newStartAddress
-newValues
-
-
QModbusDataUnit
- Parameters:
type
-newStartAddress
-newValueCount
-
-
-
Method Details
-
isValid
- Returns:
-
equals
See
operator==(QModbusDataUnit,
QModbusDataUnit) - Parameters:
value2
-- Returns:
-
registerType
- Returns:
-
setRegisterType
- Parameters:
type
-
-
setStartAddress
- Parameters:
newAddress
-
-
setValue
- Parameters:
index
-newValue
-
-
setValueCount
- Parameters:
newCount
-
-
setValues
- Parameters:
newValues
-
-
startAddress
- Returns:
-
value
- Parameters:
index
-- Returns:
-
valueCount
- Returns:
-
values
- Returns:
-
equals
See
operator==(QModbusDataUnit,
QModbusDataUnit) -
hashCode
Returns the objects's hash code computed byqHash(QModbusDataUnit)
. -
clone
Creates and returns a copy of this object.
See
QModbusDataUnit::
QModbusDataUnit(QModbusDataUnit)
-