Package org.omg.space.xtce
Class MathOperationType
- java.lang.Object
-
- org.omg.space.xtce.MathOperationType
-
- Direct Known Subclasses:
CalibratorType.MathOperationCalibrator,MathAlgorithmType.MathOperation,MetaCommandType.ParameterToSetList.ParameterToSet.Derivation
public class MathOperationType extends Object
Postfix (aka Reverse Polish Notation (RPN)) notation is used to describe mathmatical 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.Java class for MathOperationType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="MathOperationType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <choice maxOccurs="unbounded"> <element name="ValueOperand" type="{http://www.w3.org/2001/XMLSchema}double"/> <element name="ThisParameterOperand" type="{http://www.w3.org/2001/XMLSchema}anyType"/> <element name="ParameterInstanceRefOperand" type="{http://www.omg.org/space/xtce}ParameterInstanceRefType"/> <element name="Operator" type="{http://www.omg.org/space/xtce}MathOperatorsType"/> </choice> </restriction> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Object>valueOperandOrThisParameterOperandOrParameterInstanceRefOperand
-
Constructor Summary
Constructors Constructor Description MathOperationType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Object>getValueOperandOrThisParameterOperandOrParameterInstanceRefOperand()Gets the value of the valueOperandOrThisParameterOperandOrParameterInstanceRefOperand property.
-
-
-
Method Detail
-
getValueOperandOrThisParameterOperandOrParameterInstanceRefOperand
public List<Object> getValueOperandOrThisParameterOperandOrParameterInstanceRefOperand()
Gets the value of the valueOperandOrThisParameterOperandOrParameterInstanceRefOperand property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a
setmethod for the valueOperandOrThisParameterOperandOrParameterInstanceRefOperand property.For example, to add a new item, do as follows:
getValueOperandOrThisParameterOperandOrParameterInstanceRefOperand().add(newItem);Objects of the following type(s) are allowed in the list
DoubleObjectStringParameterInstanceRefType
-
-