Package xal.extension.widgets.olmplot
Enum Class PLANE
- All Implemented Interfaces:
Serializable
,Comparable<PLANE>
,Constable
Enumeration of all the phase planes for the simulation. There is an RMS
envelope value for each plane.
- Since:
- Nov 26, 2012
- 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 Constants -
Method Summary
Modifier and TypeMethodDescriptiongetColor()
Return the color associated with this phase plane.double
getParticlePos
(ParticleProbeState state) Extracts the particle position of the phase plane represented by this enumeration constant from the given particle probe state.double
getRmsEnvelope
(EnvelopeProbeState state) Extracts the RMS envelope size of the phase plane represented by this enumeration constant from the given envelope probe state.static PLANE
Returns the enum constant of this class with the specified name.static PLANE[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HOR
Enumeration for the horizontal plane -
VER
Enumeration representing the vertical plane -
LNG
Enumeration representing the longitudinal plane
-
-
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
-
getColor
Return the color associated with this phase plane.- Returns:
- default color for the phase plane
- Since:
- Nov 26, 2012
-
getParticlePos
Extracts the particle position of the phase plane represented by this enumeration constant from the given particle probe state.- Parameters:
state
-ParticleProbeState
object containing particle state information- Returns:
- the value of the RMS envelope of this phase plane within the given state
- Since:
- Nov 26, 2012
-
getRmsEnvelope
Extracts the RMS envelope size of the phase plane represented by this enumeration constant from the given envelope probe state.- Parameters:
state
-EnvelopeProbeState
object containing RMS envelope information- Returns:
- the value of the RMS envelope of this phase plane within the given state
- Since:
- Nov 26, 2012
-