Class EnumString
-
- All Implemented Interfaces:
-
nl.basjes.modbus.schema.expression.Expression,nl.basjes.modbus.schema.expression.strings.StringExpression
public final class EnumString extends NotImplemented implements StringExpression
-
-
Field Summary
Fields Modifier and Type Field Description private final List<Expression>subExpressionsprivate BooleanisImmutableprivate final List<Expression.Problem>problemsprivate final Map<Long, String>mappingsprivate final List<List<String>>notImplementedprivate final List<Address>requiredRegistersprivate final List<Address>requiredMutableRegistersprivate final List<String>requiredFieldsprivate final ReturnTypereturnType
-
Constructor Summary
Constructors Constructor Description EnumString(RegistersExpression registers, List<String> notImplemented, Map<Long, String> mappings)
-
Method Summary
Modifier and Type Method Description List<Expression>getSubExpressions()BooleanisImmutable()UnitsetImmutable(Boolean isImmutable)List<Expression.Problem>getProblems()final Map<Long, String>getMappings()StringtoString()List<RegisterValue>getRegisterValues(SchemaDevice schemaDevice)StringgetValue(SchemaDevice schemaDevice)-
Methods inherited from class nl.basjes.modbus.schema.expression.NotImplemented
getNotImplemented, isNotImplemented, isValidNotImplemented -
Methods inherited from class nl.basjes.modbus.schema.expression.Expression
check, checkFatal, combine, getRequiredFields, getRequiredMutableRegisters, getRequiredRegisters, 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<Long, String> getMappings()
-
getRegisterValues
List<RegisterValue> getRegisterValues(SchemaDevice schemaDevice)
- Returns:
The list of Register values that are used to calculate this value.
-
getValue
String getValue(SchemaDevice schemaDevice)
- Returns:
The String value or null if it was not implemented
-
-
-
-