Package org.yamcs.xtce
Class MathOperation
- java.lang.Object
-
- org.yamcs.xtce.MathOperation
-
- 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.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMathOperation.Elementstatic classMathOperation.ElementType
-
Constructor Summary
Constructors Constructor Description MathOperation(List<MathOperation.Element> elementList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<MathOperation.Element>getElementList()
-
-
-
Constructor Detail
-
MathOperation
public MathOperation(List<MathOperation.Element> elementList)
-
-
Method Detail
-
getElementList
public List<MathOperation.Element> getElementList()
-
-