Enum Class Passband

java.lang.Object
java.lang.Enum<Passband>
llnl.gnem.core.util.Passband
All Implemented Interfaces:
Serializable, Comparable<Passband>, Constable

public enum Passband extends Enum<Passband>
  • Enum Constant Details

    • BAND_PASS

      public static final Passband BAND_PASS
    • BAND_REJECT

      public static final Passband BAND_REJECT
    • LOW_PASS

      public static final Passband LOW_PASS
    • HIGH_PASS

      public static final Passband HIGH_PASS
  • Method Details

    • values

      public static Passband[] 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 Passband 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
    • toString

      public String toString()
      A string representation of the passband for a filter suitable for use with the ButterworthFilter..
      Overrides:
      toString in class Enum<Passband>
      Returns:
      A String with the one of the values "LP", or "HP", "BP", "BR"
    • getPassband

      public static Passband getPassband(String code)
      Returns a Passband object given a 2-character String descriptor. Only recognized codes are "BP", "LP", "HP", "BR". Any other String will result in a null Passband object.
      Parameters:
      code - The code of the desired passband object.
      Returns:
      The specified Passband object.