Package org.rcsb.strucmotif.domain.motif
Enum AngleType
- All Implemented Interfaces:
Serializable,Comparable<AngleType>,java.lang.constant.Constable
Binned representation of the angle between residues.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintConvert enum to angle value in degree (basically the lower bound of the interval).static AngleTypeofAngle(float angle) Convert angle in degrees to enum value.static AngleTypeofIntRepresentation(int ordinal) Convert the ordinal to enum value.static AngleTypeReturns the enum constant of this type with the specified name.static AngleType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
A0
[0, 10) deg. -
A20
[10, 30) deg. -
A40
[30, 50) deg. -
A60
[50, 70) deg. -
A80
[70, 90) deg. -
A100
[90, 110) deg. -
A120
[110, 130) deg. -
A140
[130, 150) deg. -
A160
[150, 170) deg. -
A180
[170, 180]
-
-
Field Details
-
BIN_SIZE
public static final int BIN_SIZEWidth of an angle bin.- See Also:
-
-
Method Details
-
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
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 nameNullPointerException- 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
Convert angle in degrees to enum value. Will cap results into interval of possible values.- Parameters:
angle- raw value- Returns:
- the corresponding bin
-
ofIntRepresentation
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
-