Package org.yamcs.xtce
Enum MathOperation.ElementType
- java.lang.Object
-
- java.lang.Enum<MathOperation.ElementType>
-
- org.yamcs.xtce.MathOperation.ElementType
-
- All Implemented Interfaces:
Serializable,Comparable<MathOperation.ElementType>
- Enclosing class:
- MathOperation
public static enum MathOperation.ElementType extends Enum<MathOperation.ElementType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description OPERATORAll operators utilize operands on the top values in the stack and leaving the result on the top of the stack.PARAMETER_INSTANCE_REF_OPERANDThis element is used to reference the last received/assigned value of any Parameter in this math operation.THIS_PARAMETER_OPERAND>Use the value of this parameter in the calculation.VALUE_OPERANDUse a constant in the calculation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MathOperation.ElementTypevalueOf(String name)Returns the enum constant of this type with the specified name.static MathOperation.ElementType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VALUE_OPERAND
public static final MathOperation.ElementType VALUE_OPERAND
Use a constant in the calculation.
-
THIS_PARAMETER_OPERAND
public static final MathOperation.ElementType THIS_PARAMETER_OPERAND
>Use the value of this parameter in the calculation. It is the calibrator's value only. If the raw value is needed, specify it explicitly using ParameterInstanceRefOperand. Note this element has no content.
-
PARAMETER_INSTANCE_REF_OPERAND
public static final MathOperation.ElementType PARAMETER_INSTANCE_REF_OPERAND
This element is used to reference the last received/assigned value of any Parameter in this math operation.
-
OPERATOR
public static final MathOperation.ElementType OPERATOR
All operators utilize operands on the top values in the stack and leaving the result on the top of the stack. Ternary operators utilize the top three operands on the stack, binary operators utilize the top two operands on the stack, and unary operators use the top operand on the stack.
-
-
Method Detail
-
values
public static MathOperation.ElementType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MathOperation.ElementType c : MathOperation.ElementType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MathOperation.ElementType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-