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 enumA state of comparison of two torsion angle values. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract MasterTorsionAngleTypestatic TorsionAngleDeltabothInvalidInstance(MasterTorsionAngleType masterType) Creates an instance of torsion angle delta, where both input angles were invalid.abstract Angledelta()final Stringfinal Stringabstract RangeDifferencefinal Stringabstract TorsionAngleDelta.Statestate()static TorsionAngleDeltasubtractTorsionAngleValues(MasterTorsionAngleType masterType, Angle target, Angle model) Subtracts torsion angle values and creates an instance of this class.final StringtoString(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:
shortDisplayNamein interfaceDisplayableExportable- Returns:
- A short name to be shown in UI summary.
-
longDisplayName
- Specified by:
longDisplayNamein interfaceDisplayableExportable- Returns:
- A long name to be shown in UI, may contain Unicode.
-
exportName
- Specified by:
exportNamein interfaceDisplayableExportable- Returns:
- A name to be used during export to output file, should be ASCII only.
-