Enum PtcTwissVariable
- java.lang.Object
-
- java.lang.Enum<PtcTwissVariable>
-
- cern.accsoft.steering.jmad.domain.var.enums.PtcTwissVariable
-
- All Implemented Interfaces:
MadxVariable,TwissVariable,Variable,java.io.Serializable,java.lang.Comparable<PtcTwissVariable>
public enum PtcTwissVariable extends java.lang.Enum<PtcTwissVariable> implements TwissVariable
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.Set<PtcTwissVariable>allOfType(MadxVarType type)returns a set of variables of a given type.static PtcTwissVariablefromMadxName(java.lang.String madxName)Determine the correct Value of ResultVariable for a given tag.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 PtcTwissVariablevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static PtcTwissVariable[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PTC_DISP_X
public static final PtcTwissVariable PTC_DISP_X
-
PTC_DISP2
public static final PtcTwissVariable PTC_DISP2
-
PTC_DISP_Y
public static final PtcTwissVariable PTC_DISP_Y
-
PTC_DISP4
public static final PtcTwissVariable PTC_DISP4
-
PTC_BETA11
public static final PtcTwissVariable PTC_BETA11
-
PTC_BETA12
public static final PtcTwissVariable PTC_BETA12
-
PTC_BETA13
public static final PtcTwissVariable PTC_BETA13
-
PTC_BETA21
public static final PtcTwissVariable PTC_BETA21
-
PTC_BETA22
public static final PtcTwissVariable PTC_BETA22
-
PTC_BETA23
public static final PtcTwissVariable PTC_BETA23
-
PTC_BETA31
public static final PtcTwissVariable PTC_BETA31
-
PTC_BETA32
public static final PtcTwissVariable PTC_BETA32
-
PTC_BETA33
public static final PtcTwissVariable PTC_BETA33
-
PTC_MU_X
public static final PtcTwissVariable PTC_MU_X
-
PTC_MU_Y
public static final PtcTwissVariable PTC_MU_Y
-
PTC_MU_Z
public static final PtcTwissVariable PTC_MU_Z
-
PTC_ALFA_11
public static final PtcTwissVariable PTC_ALFA_11
-
PTC_ALFA_12
public static final PtcTwissVariable PTC_ALFA_12
-
PTC_ALFA_13
public static final PtcTwissVariable PTC_ALFA_13
-
PTC_ALFA_21
public static final PtcTwissVariable PTC_ALFA_21
-
PTC_ALFA_22
public static final PtcTwissVariable PTC_ALFA_22
-
PTC_ALFA_23
public static final PtcTwissVariable PTC_ALFA_23
-
PTC_ALFA_31
public static final PtcTwissVariable PTC_ALFA_31
-
PTC_ALFA_32
public static final PtcTwissVariable PTC_ALFA_32
-
PTC_ALFA_33
public static final PtcTwissVariable PTC_ALFA_33
-
PTC_DISP_XP
public static final PtcTwissVariable PTC_DISP_XP
-
PTC_DISP_2P
public static final PtcTwissVariable PTC_DISP_2P
-
PTC_DISP_YP
public static final PtcTwissVariable PTC_DISP_YP
-
PTC_DISP_4P
public static final PtcTwissVariable PTC_DISP_4P
-
PTC_DISP_XP2
public static final PtcTwissVariable PTC_DISP_XP2
-
PTC_DISP_2P2
public static final PtcTwissVariable PTC_DISP_2P2
-
PTC_DISP_YP2
public static final PtcTwissVariable PTC_DISP_YP2
-
PTC_DISP_4P2
public static final PtcTwissVariable PTC_DISP_4P2
-
PTC_DISP_XP3
public static final PtcTwissVariable PTC_DISP_XP3
-
PTC_DISP_2P3
public static final PtcTwissVariable PTC_DISP_2P3
-
PTC_DISP_YP3
public static final PtcTwissVariable PTC_DISP_YP3
-
PTC_DISP_4P3
public static final PtcTwissVariable PTC_DISP_4P3
-
UNKNOWN
public static final PtcTwissVariable UNKNOWN
-
-
Method Detail
-
values
public static PtcTwissVariable[] 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 (PtcTwissVariable c : PtcTwissVariable.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PtcTwissVariable 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.
-
getVarType
public MadxVarType getVarType()
- Specified by:
getVarTypein interfaceMadxVariable- Returns:
- the type (String/Double) of the variable
-
fromMadxName
public static final PtcTwissVariable fromMadxName(java.lang.String madxName)
Determine the correct Value of ResultVariable for a given tag.- Parameters:
madxName- the tag for which to get the VarType - Value.- Returns:
- The VarType corresponding to the given tag.
-
allOfType
public static final java.util.Set<PtcTwissVariable> allOfType(MadxVarType type)
returns a set of variables of a given type.- Parameters:
type- which variables to retrieve- Returns:
- the variables.
-
isApertureVariable
public boolean isApertureVariable()
- Specified by:
isApertureVariablein interfaceTwissVariable- Returns:
- true, if this variable shall be plotted as aperture (second line with minus-sign)
-
getUnit
public java.lang.String getUnit()
-
getName
public java.lang.String getName()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<PtcTwissVariable>
-
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
-
-