Package nl.basjes.modbus.device.api
Class RegisterBlock
-
- All Implemented Interfaces:
public final class RegisterBlock extends ModbusBlock<RegisterBlock, RegisterValue, Short>
-
-
Field Summary
Fields Modifier and Type Field Description private final AddressfirstAddressprivate final Set<Address>keysprivate final Collection<RegisterValue>valuesprivate final Integersizeprivate final AddressClassaddressClass
-
Constructor Summary
Constructors Constructor Description RegisterBlock(AddressClass addressClass)
-
Method Summary
Modifier and Type Method Description final List<String>toHexList()Creating a list of hex values for all available values. final StringtoHexString()Creating a single string of hex values for all available values. StringasString()StringtoString()-
Methods inherited from class nl.basjes.modbus.device.api.ModbusBlock
asString, clear, clone, equals, get, get, getAddressClass, getFirstAddress, getKeys, getOrCreateIfAbsent, getSize, getValue, getValues, hashCode, merge, noGapsValuesList, put, put, set, setReadError, setValue, setValue, toMultiLineString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
RegisterBlock
RegisterBlock(AddressClass addressClass)
-
-
Method Detail
-
toHexList
final List<String> toHexList()
Creating a list of hex values for all available values. Any MISSING registers will be filled with "----" So all values are 4 characters: (0-9A-F0-9A-F|----)
- Returns:
List of hex values
-
toHexString
final String toHexString()
Creating a single string of hex values for all available values. Any MISSING registers will be filled with "----". So all values are 4 characters: (0-9A-F0-9A-F|----)
- Returns:
A String of mostly 4 char hex values, sometimes "----".
-
-
-
-