Package xal.tools.beam
Enum Class ProfileIndex
- All Implemented Interfaces:
Serializable
,Comparable<ProfileIndex>
,Constable
Enumeration of supported phase space beam profiles.
- Author:
- Christopher K. Allen
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionGaussian distribution - gaussian in 6D phase spaceKapchinskij-Vladimirskij (or canonical) distribution - uniformly distributed on phase-space surfaceNo distribution profile specified - usually indicates error conditionParabolic distribution - parabolic in 6D phase spaceSemi-Gaussian distribution - uniform in 3D configuration, gaussian in momentumWaterbag distribution - uniform in 6D phase space -
Method Summary
Modifier and TypeMethodDescriptionstatic ProfileIndex
descriptorFromIndex
(int index) Get theProfileDescriptor
object have the given index value.int
val()
Return the index value of the currentProfileDescriptor
object.static ProfileIndex
Returns the enum constant of this class with the specified name.static ProfileIndex[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No distribution profile specified - usually indicates error condition -
KV
Kapchinskij-Vladimirskij (or canonical) distribution - uniformly distributed on phase-space surface -
WATERBAG
Waterbag distribution - uniform in 6D phase space -
PARABOLIC
Parabolic distribution - parabolic in 6D phase space -
SEMIGAUSSIAN
Semi-Gaussian distribution - uniform in 3D configuration, gaussian in momentum -
GAUSSIAN
Gaussian distribution - gaussian in 6D phase space
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
descriptorFromIndex
Get theProfileDescriptor
object have the given index value.- Parameters:
index
- index of desired profile descriptor object- Returns:
- profile descriptor object have the given index
-
val
public int val()Return the index value of the currentProfileDescriptor
object.- Returns:
- profile index value
-