Enum AngleType

java.lang.Object
java.lang.Enum<AngleType>
org.rcsb.strucmotif.domain.motif.AngleType
All Implemented Interfaces:
Serializable, Comparable<AngleType>, java.lang.constant.Constable

public enum AngleType extends Enum<AngleType>
Binned representation of the angle between residues.
  • Enum Constant Details

    • A0

      public static final AngleType A0
      [0, 10) deg.
    • A20

      public static final AngleType A20
      [10, 30) deg.
    • A40

      public static final AngleType A40
      [30, 50) deg.
    • A60

      public static final AngleType A60
      [50, 70) deg.
    • A80

      public static final AngleType A80
      [70, 90) deg.
    • A100

      public static final AngleType A100
      [90, 110) deg.
    • A120

      public static final AngleType A120
      [110, 130) deg.
    • A140

      public static final AngleType A140
      [130, 150) deg.
    • A160

      public static final AngleType A160
      [150, 170) deg.
    • A180

      public static final AngleType A180
      [170, 180]
  • Field Details

  • Method Details

    • values

      public static AngleType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static AngleType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getIntRepresentation

      public int getIntRepresentation()
      Convert enum to angle value in degree (basically the lower bound of the interval).
      Returns:
      lower bound of angles landing in this bin
    • ofAngle

      public static AngleType ofAngle(float angle)
      Convert angle in degrees to enum value. Will cap results into interval of possible values.
      Parameters:
      angle - raw value
      Returns:
      the corresponding bin
    • ofIntRepresentation

      public static AngleType ofIntRepresentation(int ordinal)
      Convert the ordinal to enum value. Somewhat trivial. Will cap results into interval of possible values.
      Parameters:
      ordinal - the ordinal to get
      Returns:
      the corresponding bin