Enum Class ProfileDevice.GAIN

java.lang.Object
java.lang.Enum<ProfileDevice.GAIN>
xal.smf.impl.profile.ProfileDevice.GAIN
All Implemented Interfaces:
Serializable, Comparable<ProfileDevice.GAIN>, Constable
Enclosing class:
ProfileDevice

public static enum ProfileDevice.GAIN extends Enum<ProfileDevice.GAIN>
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
  • Enum Constant Details

  • Method Details

    • values

      public static ProfileDevice.GAIN[] 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 ProfileDevice.GAIN 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
    • getGainFromValue

      public static ProfileDevice.GAIN getGainFromValue(int intGain)
      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