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 double
calcValue
(package private) static java.text.DecimalFormat[]
df
protected double
diff
private java.lang.String
expValue
private int
type
(package private) static int
TYPE_DISTANCE
(package private) static int
TYPE_EXP_NOE
(package private) static int
TYPE_J
(package private) static int
TYPE_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 int
compareTo(Measure m)
static java.lang.String
formatDistance(double d)
static java.lang.String
formatExpNOE(double d)
static java.lang.String
formatJ(double d)
static java.lang.String
formatNOE(double d)
double
getCalcValue()
double
getDiff()
java.lang.String
getExpValue()
java.lang.String
round()
java.lang.String
toString()
-
-
-
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:
compareTo
in interfacejava.lang.Comparable<Measure>
-
toString
public java.lang.String toString()
- Overrides:
toString
in 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)
-
-