public static enum ProfileDevice.GAIN extends java.lang.Enum<ProfileDevice.GAIN>
ProfileDevice
amplifier gain values.WireScanner.SmplConfig#signalGain
,
WireHarp.DevConfig#gainCmn
Enum Constant and Description |
---|
HIGH
High gain circuit
|
LOW
Low gain circuit
|
MED
Medium gain circuit
|
UNKNOWN
Unknown gain value
|
Modifier and Type | Method and Description |
---|---|
static ProfileDevice.GAIN |
getGainFromValue(int intGain)
Returns the gain enumeration constant for the
given gain value.
|
int |
getGainValue()
Return the value of the gain enumeration.
|
static ProfileDevice.GAIN |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ProfileDevice.GAIN[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProfileDevice.GAIN UNKNOWN
public static final ProfileDevice.GAIN LOW
public static final ProfileDevice.GAIN MED
public static final ProfileDevice.GAIN HIGH
public static ProfileDevice.GAIN[] values()
for (ProfileDevice.GAIN c : ProfileDevice.GAIN.values()) System.out.println(c);
public static ProfileDevice.GAIN valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static ProfileDevice.GAIN getGainFromValue(int intGain)
intGain
- value of the desired gain constantUNKNOWN
if value has no constantpublic int getGainValue()