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>requiredAddressesprivate final List<Address>requiredMutableAddressesprivate 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<ModbusValue<?, ?>>getModbusValues(SchemaDevice schemaDevice)-
Methods inherited from class nl.basjes.modbus.schema.expression.Expression
check, checkFatal, combine, getRequiredAddresses, getRequiredFields, getRequiredMutableAddresses, 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()
-
getModbusValues
List<ModbusValue<?, ?>> getModbusValues(SchemaDevice schemaDevice)
- Returns:
The list of the underlying Modbus values (RegisterValue or DiscreteValue) that are used to calculate this value.
-
-
-
-