Package org.yamcs.xtce
Class MathOperation
java.lang.Object
org.yamcs.xtce.MathOperation
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MathOperationCalibrator
,TriggeredMathOperation
Postfix (aka Reverse Polish Notation (RPN)) notation is used to describe mathematical equations. It uses a stack
where operands (either fixed values or ParameterInstances) are pushed onto the stack from first to last in the XML.
As the operators are specified, each pops off operands as it evaluates them, and pushes the result back onto the
stack. In this case postfix is used to avoid having to specify parenthesis. To convert from infix to postfix, use
Dijkstra's "shunting yard" algorithm.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static enum
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
MathOperation
-
-
Method Details
-
getElementList
-