Package uk.ac.gda.beans.exafs
Enum Class ScanColourType
- All Implemented Interfaces:
Serializable,Comparable<ScanColourType>,Constable
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
-
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 TypeMethodDescriptionstatic ScanColourTypefromIndex(int index) ReturnScanColourTypefor given index valueintgetIndex()booleanuseRow(int rowNum) Return true if the given row of spectrometer will be moved for scans of this colour typebooleanuseRow1()booleanuseRow2()static ScanColourTypeReturns the enum constant of this class with the specified name.static ScanColourType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ONE_COLOUR
-
ONE_COLOUR_ROW1
-
ONE_COLOUR_ROW2
-
TWO_COLOUR
-
-
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
-
getDescription
-
fromIndex
ReturnScanColourTypefor 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
-