Interface Expression
-
- All Implemented Interfaces:
public interface Expression
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classExpression.Problempublic final classExpression.Warningpublic final classExpression.Fatal
-
Method Summary
Modifier and Type Method Description StringtoString(Boolean isTop)Booleaninitialize(Field containingField)Initialize the expression. List<ModbusValue<?, ?>>getModbusValues(SchemaDevice schemaDevice)List<Expression.Problem>check(Boolean condition, String explain)If the condition is false the explain value is used to report a Problem List<Expression.Problem>checkFatal(Boolean condition, String explain)<Error class: unknown class>combine(String function, List<Expression.Problem> problems)List<Expression>getSubExpressions()List<Address>getRequiredAddresses()List<Address>getRequiredMutableAddresses()List<String>getRequiredFields()BooleanisImmutable()UnitsetImmutable(Boolean isImmutable)ReturnTypegetReturnType()List<Expression.Problem>getProblems()-
-
Method Detail
-
initialize
Boolean initialize(Field containingField)
Initialize the expression.
- Parameters:
containingField- The field of which this expression is a part- Returns:
true if success, false means it must be retried.
-
getModbusValues
List<ModbusValue<?, ?>> getModbusValues(SchemaDevice schemaDevice)
- Returns:
The list of the underlying Modbus values (RegisterValue or DiscreteValue) that are used to calculate this value.
-
check
List<Expression.Problem> check(Boolean condition, String explain)
If the condition is false the explain value is used to report a Problem
-
checkFatal
List<Expression.Problem> checkFatal(Boolean condition, String explain)
-
combine
<Error class: unknown class> combine(String function, List<Expression.Problem> problems)
-
getSubExpressions
List<Expression> getSubExpressions()
-
getRequiredAddresses
List<Address> getRequiredAddresses()
-
getRequiredMutableAddresses
List<Address> getRequiredMutableAddresses()
-
getRequiredFields
List<String> getRequiredFields()
-
isImmutable
Boolean isImmutable()
-
setImmutable
Unit setImmutable(Boolean isImmutable)
-
getReturnType
ReturnType getReturnType()
-
getProblems
List<Expression.Problem> getProblems()
-
-
-
-