- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- MathOperationCalibrator, TriggeredMathOperation
public class MathOperation
extends Object
implements Serializable
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.
- Author:
- nm
- See Also:
- Serialized Form