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