edu.ull.cgunay.plots
Class ErrorValue

java.lang.Object
  |
  +--java.util.Observable
        |
        +--edu.ull.cgunay.plots.Profilable
              |
              +--edu.ull.cgunay.plots.ErrorValue
All Implemented Interfaces:
Cloneable, Serializable

public class ErrorValue
extends Profilable
implements Serializable

Simple encapsulation of a double value with minimum and maximum error.

Created: Mon Nov 11 18:00:22 2002

Modified: $Date: 2002/12/17 00:58:53 $

Version:
v2.0, $Revision: 1.3 $ for this file.
Author:
Cengiz Gunay
See Also:
Serialized Form

Field Summary
 double maxValue
           
 double minValue
           
 double value
           
 
Fields inherited from class java.util.Observable
 
Constructor Summary
ErrorValue(double value, double minValue, double maxValue)
           
 
Method Summary
 double doubleValue()
          Return a representation if the entity as a double value.
 String toString()
           
 
Methods inherited from class edu.ull.cgunay.plots.Profilable
getClone
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public double value

minValue

public double minValue

maxValue

public double maxValue
Constructor Detail

ErrorValue

public ErrorValue(double value,
                  double minValue,
                  double maxValue)
Method Detail

doubleValue

public double doubleValue()
Description copied from class: Profilable
Return a representation if the entity as a double value. This is used for plotting a primitive value's profile.

For most entities conversion to such a simple representation is not possible. In these cases calling this method should result in a fatal error.

Specified by:
doubleValue in class Profilable
Returns:
a double value

toString

public String toString()
Overrides:
toString in class Object