Package nl.basjes.modbus.device.api
Class DiscreteValue
-
- All Implemented Interfaces:
-
kotlin.Comparable
public final class DiscreteValue extends ModbusValue<DiscreteValue, Boolean>
Holds the single value of a single modbus register
-
-
Constructor Summary
Constructors Constructor Description DiscreteValue(Address address)
-
Method Summary
Modifier and Type Method Description StringtoSingleValueString()StringtoString()-
Methods inherited from class nl.basjes.modbus.device.api.ModbusValue
clear, clearSoftReadError, clone, compareTo, equals, getAddress, getAsString, getComment, getFetchGroup, getHardReadError, getImmutable, getTimestamp, getValue, hasValue, hashCode, isReadError, needsToBeUpdated, setComment, setFetchGroup, setHardReadError, setHardReadError, setImmutable, setSoftReadError, setValue, setValue, setValue -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
DiscreteValue
DiscreteValue(Address address)
-
-
Method Detail
-
toSingleValueString
String toSingleValueString()
- Returns:
The current value as a 1 character String ("0"=false, "1"=true, "x"=Soft read error, "X"=Hard read error, "-" in case of no value available yet).
-
-
-
-