hepdata is hosted by Hepforge, IPPP Durham

cedar.hepdata.model
Class Value

java.lang.Object
  extended by cedar.hepdata.model.Value
All Implemented Interfaces:
HDPersistable

public class Value
extends java.lang.Object
implements HDPersistable

A datapoint with its associated errors

Version:
$Date: 2006-04-13 12:22:00 +0100 (Thu, 13 Apr 2006) $ $Revision: 568 $
Author:
S Butterworth

Field Summary
static java.lang.Double DEFAULT_CL
          default confidence level
static java.lang.String LIMIT_GE
          limit type greater than or equals
static java.lang.String LIMIT_GT
          limit type greater than
static java.lang.String LIMIT_LE
          limit type less than or equals
static java.lang.String LIMIT_LT
          limit type less than
static java.lang.String NO_LIMIT
          limit type equals
static java.lang.String PCT
          String signifying percentage
 
Constructor Summary
Value()
          constructs an empty value
Value(int pointId, java.lang.String description, java.lang.Double value, java.lang.String lim, java.lang.Double cl, java.lang.String comment)
          constructs a value with all defining information.
 
Method Summary
 void addError(java.lang.Integer id, ErrorValue err)
           
 void createMatch(int paperId, int datasetId, int yaxisId, int xaxisId, java.lang.String xvalues)
          match information stored on a Value object
 java.lang.Double getBinLower()
          for xaxis: bin info preserved in original form
 java.lang.Double getBinUpper()
          for xaxis: bin info preserved in original form
 ErrorValue getBinValue()
          for yaxis: bin info specified as error
 java.lang.Double getBinWidth()
          for xaxis: bin info preserved in original form
 java.lang.String getComment()
           
 java.lang.Double getConfidenceLevel()
           
 java.lang.String getDescription()
           
 ErrorValue getError(java.lang.Integer i)
           
 java.util.Map<java.lang.Integer,ErrorValue> getErrors()
           
 java.util.Iterator getErrorsIt()
           
 int getId()
          Get the internal ID code
 java.lang.String getLimit()
           
 Matchable getMatch()
          match information stored on a Value object
 int getPointId()
          Return the value ID
 java.lang.Double getValue()
           
 void setBinLower(java.lang.Double dbl)
          for xaxis: bin info preserved in original form
 void setBinUpper(java.lang.Double dbl)
          for xaxis: bin info preserved in original form
 void setBinValue(ErrorValue bv)
          for yaxis: bin info specified as error
 void setBinWidth(java.lang.Double bw)
          for xaxis: bin info preserved in original form
 void setDescription(java.lang.String s)
           
 void setId(int id)
          Set the internal ID code
 void setPointId(int id)
           
 java.lang.String toString()
          Produce a string representation of the object
 java.lang.String toStringShort()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PCT

public static final java.lang.String PCT
String signifying percentage

See Also:
Constant Field Values


LIMIT_GT

public static java.lang.String LIMIT_GT
limit type greater than


LIMIT_LT

public static java.lang.String LIMIT_LT
limit type less than


LIMIT_GE

public static java.lang.String LIMIT_GE
limit type greater than or equals


LIMIT_LE

public static java.lang.String LIMIT_LE
limit type less than or equals


NO_LIMIT

public static java.lang.String NO_LIMIT
limit type equals


DEFAULT_CL

public static java.lang.Double DEFAULT_CL
default confidence level

Constructor Detail

Value

public Value()
constructs an empty value


Value

public Value(int pointId,
             java.lang.String description,
             java.lang.Double value,
             java.lang.String lim,
             java.lang.Double cl,
             java.lang.String comment)
constructs a value with all defining information.

Method Detail

getId

public int getId()
Description copied from interface: HDPersistable
Get the internal ID code

Specified by:
getId in interface HDPersistable
Returns:
id internal ID used to define (part of) the


setId

public void setId(int id)
Description copied from interface: HDPersistable
Set the internal ID code

Specified by:
setId in interface HDPersistable
Parameters:
id - internal ID used to define (part of) the


getPointId

public int getPointId()
Return the value ID

Returns:
pointId


setPointId

public void setPointId(int id)

getValue

public java.lang.Double getValue()

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String s)

getConfidenceLevel

public java.lang.Double getConfidenceLevel()

getLimit

public java.lang.String getLimit()

getComment

public java.lang.String getComment()

addError

public void addError(java.lang.Integer id,
                     ErrorValue err)

getErrors

public java.util.Map<java.lang.Integer,ErrorValue> getErrors()

getErrorsIt

public java.util.Iterator getErrorsIt()

getError

public ErrorValue getError(java.lang.Integer i)

setBinValue

public void setBinValue(ErrorValue bv)
for yaxis: bin info specified as error


setBinWidth

public void setBinWidth(java.lang.Double bw)
for xaxis: bin info preserved in original form


setBinUpper

public void setBinUpper(java.lang.Double dbl)
for xaxis: bin info preserved in original form


setBinLower

public void setBinLower(java.lang.Double dbl)
for xaxis: bin info preserved in original form


getBinValue

public ErrorValue getBinValue()
for yaxis: bin info specified as error


getBinWidth

public java.lang.Double getBinWidth()
for xaxis: bin info preserved in original form


getBinUpper

public java.lang.Double getBinUpper()
for xaxis: bin info preserved in original form


getBinLower

public java.lang.Double getBinLower()
for xaxis: bin info preserved in original form


createMatch

public void createMatch(int paperId,
                        int datasetId,
                        int yaxisId,
                        int xaxisId,
                        java.lang.String xvalues)
match information stored on a Value object


getMatch

public Matchable getMatch()
match information stored on a Value object


toString

public java.lang.String toString()
Description copied from interface: HDPersistable
Produce a string representation of the object

Specified by:
toString in interface HDPersistable
Overrides:
toString in class java.lang.Object


toStringShort

public java.lang.String toStringShort()

Generated 20060512 1623

HEPData