Package org.yamcs.xtce
Enum MathOperator
- java.lang.Object
-
- java.lang.Enum<MathOperator>
-
- org.yamcs.xtce.MathOperator
-
- All Implemented Interfaces:
Serializable,Comparable<MathOperator>
public enum MathOperator extends Enum<MathOperator>
Mathematical operators used in the math operation. Behaviour of each operator on the stack is described using notation (before -- after), where "before" represents the stack before execution of the operator and "after" represent the stack after execution.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MathOperatorfromXtceName(String s)intgetArity()static MathOperatorvalueOf(String name)Returns the enum constant of this type with the specified name.static MathOperator[]values()Returns an array containing the constants of this enum type, in the order they are declared.StringxtceName()
-
-
-
Enum Constant Detail
-
PLUS
public static final MathOperator PLUS
-
MINUS
public static final MathOperator MINUS
-
STAR
public static final MathOperator STAR
-
DIV
public static final MathOperator DIV
-
MODULO
public static final MathOperator MODULO
-
POW
public static final MathOperator POW
-
REVPOW
public static final MathOperator REVPOW
-
LN
public static final MathOperator LN
-
LOG
public static final MathOperator LOG
-
EXP
public static final MathOperator EXP
-
INV
public static final MathOperator INV
-
FACT
public static final MathOperator FACT
-
TAN
public static final MathOperator TAN
-
COS
public static final MathOperator COS
-
SIN
public static final MathOperator SIN
-
ATAN
public static final MathOperator ATAN
-
ACOS
public static final MathOperator ACOS
-
ASIN
public static final MathOperator ASIN
-
TANH
public static final MathOperator TANH
-
COSH
public static final MathOperator COSH
-
SINH
public static final MathOperator SINH
-
ATANH
public static final MathOperator ATANH
-
ACOSH
public static final MathOperator ACOSH
-
ASINH
public static final MathOperator ASINH
-
SWAP
public static final MathOperator SWAP
-
DROP
public static final MathOperator DROP
-
DUP
public static final MathOperator DUP
-
OVER
public static final MathOperator OVER
-
ABS
public static final MathOperator ABS
-
-
Method Detail
-
values
public static MathOperator[] 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 (MathOperator c : MathOperator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MathOperator 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
-
getArity
public int getArity()
-
fromXtceName
public static MathOperator fromXtceName(String s)
-
xtceName
public String xtceName()
-
-