Class SubExpression
-
- All Implemented Interfaces:
-
nl.basjes.modbus.schema.expression.Expression,nl.basjes.modbus.schema.expression.numbers.NumericalExpression
public abstract class SubExpression implements NumericalExpression
-
-
Field Summary
Fields Modifier and Type Field Description private final StringoperatorSymbolprivate final List<Expression>subExpressionsprivate final List<Expression.Problem>problemsprivate final NumericalExpressionleftprivate final NumericalExpressionrightprivate final List<Address>requiredRegistersprivate final List<Address>requiredMutableRegistersprivate final List<String>requiredFieldsprivate BooleanisImmutableprivate final ReturnTypereturnType
-
Constructor Summary
Constructors Constructor Description SubExpression(String name, NumericalExpression left, NumericalExpression right)
-
Method Summary
Modifier and Type Method Description abstract StringgetOperatorSymbol()List<Expression>getSubExpressions()List<Expression.Problem>getProblems()final NumericalExpressiongetLeft()final NumericalExpressiongetRight()StringtoString()StringtoString(Boolean isTop)List<RegisterValue>getRegisterValues(SchemaDevice schemaDevice)-
Methods inherited from class nl.basjes.modbus.schema.expression.Expression
check, checkFatal, combine, getRequiredFields, getRequiredMutableRegisters, getRequiredRegisters, getReturnType, initialize, isImmutable, setImmutable -
Methods inherited from class nl.basjes.modbus.schema.expression.numbers.NumericalExpression
getGuarantee, getValueAsDouble, getValueAsLong -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
SubExpression
SubExpression(String name, NumericalExpression left, NumericalExpression right)
-
-
Method Detail
-
getOperatorSymbol
abstract String getOperatorSymbol()
-
getSubExpressions
List<Expression> getSubExpressions()
-
getProblems
List<Expression.Problem> getProblems()
-
getLeft
final NumericalExpression getLeft()
-
getRight
final NumericalExpression getRight()
-
getRegisterValues
List<RegisterValue> getRegisterValues(SchemaDevice schemaDevice)
- Returns:
The list of Register values that are used to calculate this value.
-
-
-
-