Class DiscreteModbusExpression
-
- All Implemented Interfaces:
-
nl.basjes.modbus.schema.expression.Expression,nl.basjes.modbus.schema.expression.booleans.BooleanExpression
public final class DiscreteModbusExpression extends ModbusExpression implements BooleanExpression
-
-
Field Summary
Fields Modifier and Type Field Description private final List<Expression.Problem>problemsprivate final Addressaddressprivate final ReturnTypereturnTypeprivate final List<Expression>subExpressionsprivate final List<Address>requiredAddressesprivate final List<Address>requiredMutableAddressesprivate final List<String>requiredFieldsprivate BooleanisImmutable
-
Constructor Summary
Constructors Constructor Description DiscreteModbusExpression(Address address)
-
Method Summary
Modifier and Type Method Description List<Expression.Problem>getProblems()final AddressgetAddress()StringtoString()BooleangetBoolean(SchemaDevice schemaDevice)List<ModbusValue<?, ?>>getModbusValues(SchemaDevice schemaDevice)-
Methods inherited from class nl.basjes.modbus.schema.expression.booleans.BooleanExpression
getReturnType -
Methods inherited from class nl.basjes.modbus.schema.expression.Expression
check, checkFatal, combine, getRequiredAddresses, getRequiredFields, getRequiredMutableAddresses, getSubExpressions, initialize, isImmutable, setImmutable, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getProblems
List<Expression.Problem> getProblems()
-
getAddress
final Address getAddress()
-
getBoolean
Boolean getBoolean(SchemaDevice schemaDevice)
- Returns:
The boolean value or null in case of problems (like this is not a discretes address)
-
getModbusValues
List<ModbusValue<?, ?>> getModbusValues(SchemaDevice schemaDevice)
- Returns:
The list of the underlying Modbus values (RegisterValue or DiscreteValue) that are used to calculate this value.
-
-
-
-