Enum Beam.Particle
- java.lang.Object
-
- java.lang.Enum<Beam.Particle>
-
- cern.accsoft.steering.jmad.domain.beam.Beam.Particle
-
- All Implemented Interfaces:
MadxValue
,java.io.Serializable
,java.lang.Comparable<Beam.Particle>
- Enclosing class:
- Beam
public static enum Beam.Particle extends java.lang.Enum<Beam.Particle> implements MadxValue
represents one of the possible particles that can be used to define a MadX beam.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMadxString()
java.lang.String
getName()
static Beam.Particle
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Beam.Particle[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
POSITRON
public static final Beam.Particle POSITRON
-
ELECTRON
public static final Beam.Particle ELECTRON
-
PROTON
public static final Beam.Particle PROTON
-
ANTIPROTON
public static final Beam.Particle ANTIPROTON
-
POSMUON
public static final Beam.Particle POSMUON
-
NEGMUON
public static final Beam.Particle NEGMUON
-
HMINUS
public static final Beam.Particle HMINUS
-
-
Method Detail
-
values
public static Beam.Particle[] 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 (Beam.Particle c : Beam.Particle.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Beam.Particle 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
-
getName
public java.lang.String getName()
-
getMadxString
public java.lang.String getMadxString()
- Specified by:
getMadxString
in interfaceMadxValue
-
-