The Octet Molecular Representation Framework v0.8.2

net.sf.octet.util
Class BasicMeasurement

java.lang.Object
  extended bynet.sf.octet.util.BasicMeasurement
All Implemented Interfaces:
Measurement

public class BasicMeasurement
extends java.lang.Object
implements Measurement

A default implementation of the Measurement interface.

Author:
Richard Apodaca

Constructor Summary
BasicMeasurement(double value, double uncertainty, java.lang.String units)
          Constructs a fully functional BasicMeasurement from value, uncertainty, and units.
BasicMeasurement(java.lang.Double value, java.lang.Double uncertainty, java.lang.String units)
          Constructs a fully functional BasicMeasurement from value, uncertainty, and units.
 
Method Summary
 java.lang.Number getUncertainty()
          Returns the uncertainty of this Measurement.
 java.lang.String getUnits()
          Returns the units of this Measurement.
 java.lang.Number getValue()
          Returns the value of this Measurement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicMeasurement

public BasicMeasurement(java.lang.Double value,
                        java.lang.Double uncertainty,
                        java.lang.String units)
Constructs a fully functional BasicMeasurement from value, uncertainty, and units.

Parameters:
value - the value
uncertainty - the uncertainty
units - the units

BasicMeasurement

public BasicMeasurement(double value,
                        double uncertainty,
                        java.lang.String units)
Constructs a fully functional BasicMeasurement from value, uncertainty, and units.

Parameters:
value - the value
uncertainty - the uncertainty
units - the units
Method Detail

getValue

public java.lang.Number getValue()
Description copied from interface: Measurement
Returns the value of this Measurement.

Specified by:
getValue in interface Measurement
Returns:
the value of this Measurement

getUncertainty

public java.lang.Number getUncertainty()
Description copied from interface: Measurement
Returns the uncertainty of this Measurement. This value is interpreted as plus- or minus- the value returned by getValue.

Specified by:
getUncertainty in interface Measurement
Returns:
the uncertainty of this Measurement

getUnits

public java.lang.String getUnits()
Description copied from interface: Measurement
Returns the units of this Measurement.

Specified by:
getUnits in interface Measurement
Returns:
the usits of this Measurement

The Octet Molecular Representation Framework v0.8.2