Enum MadxApertureVariable
- java.lang.Object
-
- java.lang.Enum<MadxApertureVariable>
-
- cern.accsoft.steering.jmad.domain.var.enums.MadxApertureVariable
-
- All Implemented Interfaces:
ApertureVariable,MadxVariable,TwissVariable,Variable,java.io.Serializable,java.lang.Comparable<MadxApertureVariable>
public enum MadxApertureVariable extends java.lang.Enum<MadxApertureVariable> implements ApertureVariable
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMadxName()retrieve the name of the variable.java.lang.StringgetName()java.lang.StringgetUnit()java.lang.Class<?>getValueClass()the type of the values which this variable representsMadxVarTypegetVarType()booleanisApertureVariable()java.lang.StringtoString()static MadxApertureVariablevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static MadxApertureVariable[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
APER_1
public static final MadxApertureVariable APER_1
-
APER_2
public static final MadxApertureVariable APER_2
-
APER_3
public static final MadxApertureVariable APER_3
-
APER_4
public static final MadxApertureVariable APER_4
-
APERTYPE
public static final MadxApertureVariable APERTYPE
-
ON_AP
public static final MadxApertureVariable ON_AP
-
ON_ELEM
public static final MadxApertureVariable ON_ELEM
-
N1
public static final MadxApertureVariable N1
-
N1X_M
public static final MadxApertureVariable N1X_M
-
N1Y_M
public static final MadxApertureVariable N1Y_M
-
SPEC
public static final MadxApertureVariable SPEC
-
RTOL
public static final MadxApertureVariable RTOL
-
XTOL
public static final MadxApertureVariable XTOL
-
YTOL
public static final MadxApertureVariable YTOL
-
-
Method Detail
-
values
public static MadxApertureVariable[] 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 (MadxApertureVariable c : MadxApertureVariable.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MadxApertureVariable 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
-
getMadxName
public java.lang.String getMadxName()
Description copied from interface:MadxVariableretrieve the name of the variable. This must be a unique expression within the madx model.- Specified by:
getMadxNamein interfaceMadxVariable- Returns:
- the name of the variable.
-
getUnit
public java.lang.String getUnit()
-
getVarType
public MadxVarType getVarType()
- Specified by:
getVarTypein interfaceMadxVariable- Returns:
- the type (String/Double) of the variable
-
getName
public java.lang.String getName()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<MadxApertureVariable>
-
getValueClass
public java.lang.Class<?> getValueClass()
Description copied from interface:Variablethe type of the values which this variable represents- Specified by:
getValueClassin interfaceVariable- Returns:
- The class of the values
-
isApertureVariable
public boolean isApertureVariable()
- Specified by:
isApertureVariablein interfaceTwissVariable- Returns:
- true, if this variable shall be plotted as aperture (second line with minus-sign)
-
-