Package xal.smf.impl.profile
Enum Class ProfileDevice.GAIN
- All Implemented Interfaces:
Serializable
,Comparable<ProfileDevice.GAIN>
,Constable
- Enclosing class:
- ProfileDevice
Enumeration of the gain constants for the
ProfileDevice
amplifier gain values.- Since:
- Dec 22, 2009
- Author:
- Christopher K. Allen
- See Also:
-
WireScanner.SmplConfig#signalGain
WireHarp.DevConfig#gainCmn
-
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 ProfileDevice.GAIN
getGainFromValue
(int intGain) Returns the gain enumeration constant for the given gain value.int
Return the value of the gain enumeration.static ProfileDevice.GAIN
Returns the enum constant of this class with the specified name.static ProfileDevice.GAIN[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Unknown gain value -
LOW
Low gain circuit -
MED
Medium gain circuit -
HIGH
High gain circuit
-
-
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
-
getGainFromValue
Returns the gain enumeration constant for the given gain value.- Parameters:
intGain
- value of the desired gain constant- Returns:
- corresponding gain enumeration constant for given value, or
UNKNOWN
if value has no constant - Since:
- Dec 22, 2009
-
getGainValue
public int getGainValue()Return the value of the gain enumeration.- Returns:
- gain circuit value
- Since:
- Dec 22, 2009
-