Package pl.poznan.put.torsion
Class TorsionAngleDelta
java.lang.Object
pl.poznan.put.torsion.TorsionAngleDelta
- All Implemented Interfaces:
DisplayableExportable
- Direct Known Subclasses:
ImmutableTorsionAngleDelta
A result of subtracting of two torsion angles.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
A state of comparison of two torsion angle values. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract MasterTorsionAngleType
static TorsionAngleDelta
bothInvalidInstance
(MasterTorsionAngleType masterType) Creates an instance of torsion angle delta, where both input angles were invalid.abstract Angle
delta()
final String
final String
abstract RangeDifference
final String
abstract TorsionAngleDelta.State
state()
static TorsionAngleDelta
subtractTorsionAngleValues
(MasterTorsionAngleType masterType, Angle target, Angle model) Subtracts torsion angle values and creates an instance of this class.final String
toString
(boolean isDisplayable)
-
Constructor Details
-
TorsionAngleDelta
public TorsionAngleDelta()
-
-
Method Details
-
bothInvalidInstance
Creates an instance of torsion angle delta, where both input angles were invalid.- Parameters:
masterType
- The type of torsion angle.- Returns:
- An instance indicating that both input angles were invalid.
-
subtractTorsionAngleValues
public static TorsionAngleDelta subtractTorsionAngleValues(MasterTorsionAngleType masterType, Angle target, Angle model) Subtracts torsion angle values and creates an instance of this class.- Parameters:
masterType
- The type of torsion angle.target
- The value of the first torsion angle.model
- The value of the second torsion angle.- Returns:
- An instance of this class containing the result of subtraction.
-
angleType
- Returns:
- The type of torsion angle.
-
state
- Returns:
- The state of comparison depending on whether the inputs were valid or not.
-
delta
- Returns:
- The actual result of subtraction.
-
rangeDifference
- Returns:
- The difference in terms of ranges the angles belong to.
-
toString
-
shortDisplayName
- Specified by:
shortDisplayName
in interfaceDisplayableExportable
- Returns:
- A short name to be shown in UI summary.
-
longDisplayName
- Specified by:
longDisplayName
in interfaceDisplayableExportable
- Returns:
- A long name to be shown in UI, may contain Unicode.
-
exportName
- Specified by:
exportName
in interfaceDisplayableExportable
- Returns:
- A name to be used during export to output file, should be ASCII only.
-