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 double
calcValue
(package private) static DecimalFormat[]
df
protected double
diff
private 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
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Measure m)
static String
formatDistance(double d)
static String
formatExpNOE(double d)
static String
formatJ(double d)
static String
formatNOE(double d)
double
getCalcValue()
double
getDiff()
String
getExpValue()
String
round()
String
toString()
-
-
-
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:
compareTo
in 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)
-
-