hep.aida.ref.histogram
Class Measurement

java.lang.Object
  extended by hep.aida.ref.event.AIDAObservable
      extended by hep.aida.ref.histogram.Measurement
All Implemented Interfaces:
hep.aida.IMeasurement, IsObservable, Serializable

public class Measurement
extends AIDAObservable
implements hep.aida.IMeasurement, IsObservable, Serializable

Basic user-level interface class for holding a single "measurement" with positive and negative errors (to allow for asymmetric errors). "IMeasurement" = "value" + "errorPlus" - "errorMinus"

See Also:
Serialized Form

Constructor Summary
Measurement()
           
Measurement(double val)
           
Measurement(double val, double err)
           
Measurement(double val, double errMinus, double errPlus)
           
Measurement(hep.aida.IMeasurement m)
           
 
Method Summary
 double errorMinus()
           
 double errorPlus()
           
 void setErrorMinus(double errorMinus)
           
 void setErrorPlus(double errorPlus)
           
 void setValue(double value)
           
 double value()
           
 
Methods inherited from class hep.aida.ref.event.AIDAObservable
addListener, isConnected, removeAllListeners, removeListener, setConnected, setValid, setValidForAll
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hep.aida.ref.event.IsObservable
addListener, removeAllListeners, removeListener, setValid
 

Constructor Detail

Measurement

public Measurement()

Measurement

public Measurement(hep.aida.IMeasurement m)

Measurement

public Measurement(double val)

Measurement

public Measurement(double val,
                   double err)

Measurement

public Measurement(double val,
                   double errMinus,
                   double errPlus)
Method Detail

value

public double value()
Specified by:
value in interface hep.aida.IMeasurement

errorPlus

public double errorPlus()
Specified by:
errorPlus in interface hep.aida.IMeasurement

errorMinus

public double errorMinus()
Specified by:
errorMinus in interface hep.aida.IMeasurement

setValue

public void setValue(double value)
              throws IllegalArgumentException
Specified by:
setValue in interface hep.aida.IMeasurement
Throws:
IllegalArgumentException

setErrorPlus

public void setErrorPlus(double errorPlus)
                  throws IllegalArgumentException
Specified by:
setErrorPlus in interface hep.aida.IMeasurement
Throws:
IllegalArgumentException

setErrorMinus

public void setErrorMinus(double errorMinus)
                   throws IllegalArgumentException
Specified by:
setErrorMinus in interface hep.aida.IMeasurement
Throws:
IllegalArgumentException


jHepWork 3.0 ©