Class DoubleConstant
-
- All Implemented Interfaces:
-
nl.basjes.modbus.schema.expression.Expression,nl.basjes.modbus.schema.expression.numbers.NumericalExpression
public final class DoubleConstant implements NumericalExpression
-
-
Field Summary
Fields Modifier and Type Field Description private final List<Expression.Problem>problemsprivate BooleanisImmutableprivate final ReturnTypereturnTypeprivate final Doublevalueprivate final List<Expression>subExpressionsprivate final List<Address>requiredRegistersprivate final List<Address>requiredMutableRegistersprivate final List<String>requiredFields
-
Constructor Summary
Constructors Constructor Description DoubleConstant(Double value)
-
Method Summary
Modifier and Type Method Description List<Expression.Problem>getProblems()BooleanisImmutable()UnitsetImmutable(Boolean isImmutable)ReturnTypegetReturnType()final DoublegetValue()StringtoString()DoublegetValueAsDouble(SchemaDevice schemaDevice)NumericalExpression.ValueGuaranteegetGuarantee()-
Methods inherited from class nl.basjes.modbus.schema.expression.Expression
check, checkFatal, combine, getRegisterValues, getRequiredFields, getRequiredMutableRegisters, getRequiredRegisters, getSubExpressions, initialize, toString -
Methods inherited from class nl.basjes.modbus.schema.expression.numbers.NumericalExpression
getValueAsLong -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
DoubleConstant
DoubleConstant(Double value)
-
-
Method Detail
-
getProblems
List<Expression.Problem> getProblems()
-
isImmutable
Boolean isImmutable()
-
setImmutable
Unit setImmutable(Boolean isImmutable)
-
getReturnType
ReturnType getReturnType()
-
getValueAsDouble
Double getValueAsDouble(SchemaDevice schemaDevice)
- Returns:
The Double value or null if it was not implemented
-
getGuarantee
NumericalExpression.ValueGuarantee getGuarantee()
- Returns:
Can we guarantee anything about the return value?
-
-
-
-