Enum Class PhaseMatrix.IND

java.lang.Object
java.lang.Enum<PhaseMatrix.IND>
xal.tools.beam.PhaseMatrix.IND
All Implemented Interfaces:
Serializable, Comparable<PhaseMatrix.IND>, Constable, IIndex
Enclosing class:
PhaseMatrix

public static enum PhaseMatrix.IND extends Enum<PhaseMatrix.IND> implements IIndex
Enumeration for the element position indices of a homogeneous phase space objects. Extends the PhaseIndex class by adding the homogeneous element position HOM.
Since:
Oct, 2013
Author:
Christopher K. Allen
  • Enum Constant Details

    • X

      public static final PhaseMatrix.IND X
      Index of the x coordinate
    • XP

      public static final PhaseMatrix.IND XP
      Index of the X' coordinate
    • Y

      public static final PhaseMatrix.IND Y
      Index of the Y coordinate
    • YP

      public static final PhaseMatrix.IND YP
      Index of the Y' coordinate
    • Z

      public static final PhaseMatrix.IND Z
      Index of the Z (longitudinal) coordinate
    • ZP

      public static final PhaseMatrix.IND ZP
      Index of the Z' (change in momentum) coordinate
    • HOM

      public static final PhaseMatrix.IND HOM
      Index of the homogeneous coordinate
  • Method Details

    • values

      public static PhaseMatrix.IND[] 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

      public static PhaseMatrix.IND valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • valuesPhase

      public static Set<PhaseMatrix.IND> valuesPhase()
      Returns the set of index constants that correspond to phase coordinates only. The homogeneous coordinate index is not included (i.e., the IND.HOM constant).
      Returns:
      the set of phase indices IND less the HOM constant
      Since:
      Oct 15, 2013
      See Also:
      • xal.tools.math.BaseMatrix.IIndex#val()
    • val

      public int val()
      Return the integer value of the index position
      Specified by:
      val in interface IIndex
      Returns:
      the numerical index represented by this object