Package org.jlab.geom
Enum Class DetectorId
- All Implemented Interfaces:
- Serializable,- Comparable<DetectorId>,- Constable,- Showable
The unique identifier of a type of detector. 
DetectorId is an
 enumeration to ensure that within the geometry package there are can be no
 ambiguity about what kind of detector is being referenced by a
 DetectorId. DetectorId also associates an id number and a
 short String name with each type of detector. Detector id numbers are
 loosely based on the CLAS12 Bank Numbering scheme. UNDEFINED is used
 to that there is no such detector could be found via whatever mechanism was
 being used to retrieve a DetectorId (e.g.
 getId(java.lang.String)}).- Author:
- jnhankins
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants
- 
Method SummaryModifier and TypeMethodDescriptionstatic DetectorIdgetId(int number) Returns the DetectorId corresponding to the given id number or UNDEFINED if no DetectorId matches the given id number.static DetectorIdReturns the DetectorId corresponding to the given name or UNDEFINED if no DetectorId matches the given name.intReturns the id number of the detector.getName()Returns the name of the detector.voidshow()InvokesSystem.out.println(this).toString()static DetectorIdReturns the enum constant of this class with the specified name.static DetectorId[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
UNDEFINED
- 
BST
- 
CND
- 
RICH
- 
FMT
- 
FTCAL
- 
CTOF
- 
FTOF
- 
DC
- 
EC
- 
AHDC
- 
ATOF
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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
 
- 
getIdNumberpublic int getIdNumber()Returns the id number of the detector.- Returns:
- the id number of the detector
 
- 
getNameReturns the name of the detector.- Returns:
- the name of the detector
 
- 
showpublic void show()InvokesSystem.out.println(this).
- 
toString- Overrides:
- toStringin class- Enum<DetectorId>
 
- 
getIdReturns the DetectorId corresponding to the given name or UNDEFINED if no DetectorId matches the given name.- Parameters:
- name- the name of the DetectrId to find
- Returns:
- the corresponding DetectorId or UNDIFIED if not found
 
- 
getIdReturns the DetectorId corresponding to the given id number or UNDEFINED if no DetectorId matches the given id number.- Parameters:
- number- the id number of the the DetectrId to find
- Returns:
- the corresponding DetectorId or UNDIFIED if not found
 
 
-