Class BitsetStringList
-
- All Implemented Interfaces:
-
nl.basjes.modbus.schema.expression.Expression,nl.basjes.modbus.schema.expression.strings.StringListExpression
public final class BitsetStringList extends NotImplemented implements StringListExpression
-
-
Field Summary
Fields Modifier and Type Field Description private final List<Expression>subExpressionsprivate BooleanisImmutableprivate final List<Expression.Problem>problemsprivate final Map<Integer, String>mappingsprivate final List<List<String>>notImplementedprivate final List<Address>requiredAddressesprivate final List<Address>requiredMutableAddressesprivate final List<String>requiredFieldsprivate final ReturnTypereturnType
-
Constructor Summary
Constructors Constructor Description BitsetStringList(RegistersExpression registers, List<String> notImplemented, Map<Integer, String> mappings)
-
Method Summary
Modifier and Type Method Description List<Expression>getSubExpressions()BooleanisImmutable()UnitsetImmutable(Boolean isImmutable)List<Expression.Problem>getProblems()final Map<Integer, String>getMappings()StringtoString()List<ModbusValue<?, ?>>getModbusValues(SchemaDevice schemaDevice)List<String>getValueAsStringList(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, getReturnType, initialize, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getSubExpressions
List<Expression> getSubExpressions()
-
isImmutable
Boolean isImmutable()
-
setImmutable
Unit setImmutable(Boolean isImmutable)
-
getProblems
List<Expression.Problem> getProblems()
-
getMappings
final Map<Integer, String> getMappings()
-
getModbusValues
List<ModbusValue<?, ?>> getModbusValues(SchemaDevice schemaDevice)
- Returns:
The list of the underlying Modbus values (RegisterValue or DiscreteValue) that are used to calculate this value.
-
getValueAsStringList
List<String> getValueAsStringList(SchemaDevice schemaDevice)
- Returns:
The (possibly empty) list with all set String values or null if it was not implemented
-
-
-
-