Enum MadxTrackVariable
- java.lang.Object
-
- java.lang.Enum<MadxTrackVariable>
-
- cern.accsoft.steering.jmad.domain.var.enums.MadxTrackVariable
-
- All Implemented Interfaces:
MadxVariable
,TrackVariable
,Variable
,java.io.Serializable
,java.lang.Comparable<MadxTrackVariable>
public enum MadxTrackVariable extends java.lang.Enum<MadxTrackVariable> implements TrackVariable
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMadxName()
retrieve the name of the variable.java.lang.String
getName()
java.lang.String
getUnit()
java.lang.Class<?>
getValueClass()
the type of the values which this variable representsstatic MadxTrackVariable
getVariableFromName(java.lang.String name)
MadxVarType
getVarType()
static MadxTrackVariable
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MadxTrackVariable[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NUMBER
public static final MadxTrackVariable NUMBER
-
TURN
public static final MadxTrackVariable TURN
-
X
public static final MadxTrackVariable X
-
PX
public static final MadxTrackVariable PX
-
Y
public static final MadxTrackVariable Y
-
PY
public static final MadxTrackVariable PY
-
T
public static final MadxTrackVariable T
-
PT
public static final MadxTrackVariable PT
-
S
public static final MadxTrackVariable S
-
E
public static final MadxTrackVariable E
-
UNKNOWN
public static final MadxTrackVariable UNKNOWN
-
-
Method Detail
-
values
public static MadxTrackVariable[] 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 (MadxTrackVariable c : MadxTrackVariable.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MadxTrackVariable valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getName
public java.lang.String getName()
-
getUnit
public java.lang.String getUnit()
-
getValueClass
public java.lang.Class<?> getValueClass()
Description copied from interface:Variable
the type of the values which this variable represents- Specified by:
getValueClass
in interfaceVariable
- Returns:
- The class of the values
-
getMadxName
public java.lang.String getMadxName()
Description copied from interface:MadxVariable
retrieve the name of the variable. This must be a unique expression within the madx model.- Specified by:
getMadxName
in interfaceMadxVariable
- Returns:
- the name of the variable.
-
getVarType
public MadxVarType getVarType()
- Specified by:
getVarType
in interfaceMadxVariable
- Returns:
- the type (String/Double) of the variable
-
getVariableFromName
public static MadxTrackVariable getVariableFromName(java.lang.String name)
-
-