Class Measure
- java.lang.Object
-
- org.openscience.jmol.app.janocchio.Measure
-
- All Implemented Interfaces:
Comparable<Measure>
- Direct Known Subclasses:
MeasureCouple,MeasureDist,MeasureNoe
public class Measure extends Object implements Comparable<Measure>
-
-
Field Summary
Fields Modifier and Type Field Description private doublecalcValue(package private) static DecimalFormat[]dfprotected doublediffprivate StringexpValueprivate inttype(package private) static intTYPE_DISTANCE(package private) static intTYPE_EXP_NOE(package private) static intTYPE_J(package private) static intTYPE_NOE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Measure m)static StringformatDistance(double d)static StringformatExpNOE(double d)static StringformatJ(double d)static StringformatNOE(double d)doublegetCalcValue()doublegetDiff()StringgetExpValue()Stringround()StringtoString()
-
-
-
Field Detail
-
expValue
private 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 DecimalFormat[] df
-
-
Constructor Detail
-
Measure
Measure(String expValue, double calcValue, int type)
-
-
Method Detail
-
getExpValue
public String getExpValue()
-
getCalcValue
public double getCalcValue()
-
getDiff
public double getDiff()
-
compareTo
public int compareTo(Measure m)
- Specified by:
compareToin interfaceComparable<Measure>
-
round
public String round()
-
formatDistance
public static String formatDistance(double d)
-
formatJ
public static String formatJ(double d)
-
formatNOE
public static String formatNOE(double d)
-
formatExpNOE
public static String formatExpNOE(double d)
-
-