Package pl.poznan.put.torsion.range
Enum TorsionRange
- All Implemented Interfaces:
Serializable
,Comparable<TorsionRange>
,java.lang.constant.Constable
,Range
A default torsion angle range as defined in Saenger's "Principles...".
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionbegin()
Calculate difference between two angle ranges.end()
static RangeProvider
static TorsionRange
Returns the enum constant of this type with the specified name.static TorsionRange[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SYN_CIS
-
ANTI_TRANS
-
SYNCLINAL_GAUCHE_PLUS
-
SYNCLINAL_GAUCHE_MINUS
-
ANTICLINAL_PLUS
-
ANTICLINAL_MINUS
-
INVALID
-
-
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
-
rangeProvider
- Returns:
- An instance of
RangeProvider
which will provide this ranges for angle values.
-
displayName
- Specified by:
displayName
in interfaceRange
- Returns:
- The name of this torsion angle range.
-
begin
-
end
-
compare
Calculate difference between two angle ranges. It will be either 0 (equal), 1 (neighbour), 2 (next to neighbour) or 3 (opposite). Because each range is exactly 60 degree wide, then difference between beginnings is also always a multiple of 60.
-