Package pl.poznan.put.torsion.range
Enum TorsionRange
- java.lang.Object
-
- java.lang.Enum<TorsionRange>
-
- pl.poznan.put.torsion.range.TorsionRange
-
- All Implemented Interfaces:
Serializable,Comparable<TorsionRange>,Range
public enum TorsionRange extends Enum<TorsionRange> implements Range
A default torsion angle range as defined in Saenger's "Principles...".
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANTI_TRANSANTICLINAL_MINUSANTICLINAL_PLUSINVALIDSYN_CISSYNCLINAL_GAUCHE_MINUSSYNCLINAL_GAUCHE_PLUS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Anglebegin()RangeDifferencecompare(Range other)Calculate difference between two angle ranges.StringdisplayName()Angleend()static RangeProviderrangeProvider()static TorsionRangevalueOf(String name)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 Detail
-
SYN_CIS
public static final TorsionRange SYN_CIS
-
ANTI_TRANS
public static final TorsionRange ANTI_TRANS
-
SYNCLINAL_GAUCHE_PLUS
public static final TorsionRange SYNCLINAL_GAUCHE_PLUS
-
SYNCLINAL_GAUCHE_MINUS
public static final TorsionRange SYNCLINAL_GAUCHE_MINUS
-
ANTICLINAL_PLUS
public static final TorsionRange ANTICLINAL_PLUS
-
ANTICLINAL_MINUS
public static final TorsionRange ANTICLINAL_MINUS
-
INVALID
public static final TorsionRange INVALID
-
-
Method Detail
-
values
public static TorsionRange[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TorsionRange c : TorsionRange.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TorsionRange 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 nameNullPointerException- if the argument is null
-
rangeProvider
public static RangeProvider rangeProvider()
- Returns:
- An instance of
RangeProviderwhich will provide this ranges for angle values.
-
displayName
public String displayName()
- Specified by:
displayNamein interfaceRange- Returns:
- The name of this torsion angle range.
-
begin
public Angle begin()
-
compare
public RangeDifference compare(Range other)
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.
-
-