public static enum Twiss.PROP extends java.lang.Enum<Twiss.PROP>
Enum Constant and Description |
---|
ALPHA
The Courant-Snyder alpha parameter
|
BETA
The Courant-Snyder beta parameter
|
EMIT
The Courant-Snyder emittance
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPropertyLabel()
Returns the label of the property in the data structure
which corresponds to this enumeration constant.
|
double |
getPropertyValue(Twiss data)
Using reflection, we return the value of the field that this
enumeration constant represents, within the given data structure.
|
static Twiss.PROP |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Twiss.PROP[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Twiss.PROP ALPHA
public static final Twiss.PROP BETA
public static final Twiss.PROP EMIT
public static Twiss.PROP[] values()
for (Twiss.PROP c : Twiss.PROP.values()) System.out.println(c);
public static Twiss.PROP valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getPropertyLabel()
public double getPropertyValue(Twiss data)
data
- Twiss
data structure having field corresponding to this constant