Enum Class ScanColourType

java.lang.Object
java.lang.Enum<ScanColourType>
uk.ac.gda.beans.exafs.ScanColourType
All Implemented Interfaces:
Serializable, Comparable<ScanColourType>, Constable

public enum ScanColourType extends Enum<ScanColourType>
Enum containing options for the type of XES 'colour scan' that can be done. i.e. energies to be used for each row of the spectrometer during a scan.
  • ONE_COLOUR --> both spectrometer rows scan the same energies
  • ONE_COLOUR_ROW1 --> scan only 1 row of spectrometer
  • ONE_COLOUR_ROW1 --> scan only 2 row of spectrometer
  • TWO_COLOUR --> both spectrometer rows scan different energies
    • Enum Constant Details

    • Method Details

      • values

        public static ScanColourType[] 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 ScanColourType 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
      • getDescription

        public String getDescription()
      • fromIndex

        public static ScanColourType fromIndex(int index)
        Return ScanColourType for given index value
        Parameters:
        index -
        Returns:
        ScanColourType
      • getIndex

        public int getIndex()
      • useRow

        public boolean useRow(int rowNum)
        Return true if the given row of spectrometer will be moved for scans of this colour type
        Parameters:
        rowNum - (0 or 1)
        Returns:
        true if the row is active
      • useRow1

        public boolean useRow1()
        Returns:
        True if row 1 of the spectrometer will be active during a scan of this colour type
      • useRow2

        public boolean useRow2()
        Returns:
        True if row 2 of the spectrometer will be active during a scan of this colour type