Class Measure
- java.lang.Object
-
- org.openscience.jmol.app.janocchio.Measure
-
- All Implemented Interfaces:
java.lang.Comparable<Measure>
- Direct Known Subclasses:
MeasureCouple,MeasureDist,MeasureNoe
public class Measure extends java.lang.Object implements java.lang.Comparable<Measure>
-
-
Field Summary
Fields Modifier and Type Field Description private doublecalcValue(package private) static java.text.DecimalFormat[]dfprotected doublediffprivate java.lang.StringexpValueprivate inttype(package private) static intTYPE_DISTANCE(package private) static intTYPE_EXP_NOE(package private) static intTYPE_J(package private) static intTYPE_NOE
-
Constructor Summary
Constructors Constructor Description Measure(java.lang.String expValue, double calcValue, int type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Measure m)static java.lang.StringformatDistance(double d)static java.lang.StringformatExpNOE(double d)static java.lang.StringformatJ(double d)static java.lang.StringformatNOE(double d)doublegetCalcValue()doublegetDiff()java.lang.StringgetExpValue()java.lang.Stringround()java.lang.StringtoString()
-
-
-
Field Detail
-
expValue
private java.lang.String expValue
-
calcValue
private double calcValue
-
diff
protected double diff
-
type
private int type
-
TYPE_DISTANCE
static final int TYPE_DISTANCE
- See Also:
- Constant Field Values
-
TYPE_J
static final int TYPE_J
- See Also:
- Constant Field Values
-
TYPE_NOE
static final int TYPE_NOE
- See Also:
- Constant Field Values
-
TYPE_EXP_NOE
static final int TYPE_EXP_NOE
- See Also:
- Constant Field Values
-
df
static final java.text.DecimalFormat[] df
-
-
Method Detail
-
getExpValue
public java.lang.String getExpValue()
-
getCalcValue
public double getCalcValue()
-
getDiff
public double getDiff()
-
compareTo
public int compareTo(Measure m)
- Specified by:
compareToin interfacejava.lang.Comparable<Measure>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
round
public java.lang.String round()
-
formatDistance
public static java.lang.String formatDistance(double d)
-
formatJ
public static java.lang.String formatJ(double d)
-
formatNOE
public static java.lang.String formatNOE(double d)
-
formatExpNOE
public static java.lang.String formatExpNOE(double d)
-
-