[HepData-svn] r1431 - trunk/hepdata-model/src/main/java/cedar/hepdata/model

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Wed Jan 19 14:59:40 GMT 2011


Author: whalley
Date: Wed Jan 19 14:59:39 2011
New Revision: 1431

Log:
error display decimal places

Modified:
   trunk/hepdata-model/src/main/java/cedar/hepdata/model/Uncertainty.java

Modified: trunk/hepdata-model/src/main/java/cedar/hepdata/model/Uncertainty.java
==============================================================================
--- trunk/hepdata-model/src/main/java/cedar/hepdata/model/Uncertainty.java	Wed Jan 19 12:04:24 2011	(r1430)
+++ trunk/hepdata-model/src/main/java/cedar/hepdata/model/Uncertainty.java	Wed Jan 19 14:59:39 2011	(r1431)
@@ -18,10 +18,18 @@
     @Column(name="PlusError", nullable=false)
     private Double _plus;
 
+    /** Length of Decimal for Positive deviation from central value. */
+    @Column(name="PlusErrorLength", nullable=true)
+    private Integer _pluslength;
+
     /** Negative deviation from central value. */
     @Column(name="MinusError", nullable=false)
     private Double _minus;
 
+    /** Length of Decimal for Negative deviation from central value. */
+    @Column(name="MinusErrorLength", nullable=true)
+    private Integer _minuslength;
+
     /** A comment. */
     @Column(name="Comment", nullable=true, length=10000)
     private String _comment = "";
@@ -131,29 +139,43 @@
 
 
 
-    /** Get the upward error. */
+    /** Get the upward error and number of decimal places. */
     public Double getPlus() {
         return _plus;
     }
+    public Integer getPlusLength() {
+        return _pluslength;
+    }
 
-    /** Set the upward error. */
+    /** Set the upward error and number of decimal places. */
     public Uncertainty setPlus(Double plus) {
         _plus = plus;
         return this;
     }
+    public Uncertainty setPlusLength(Integer pluslength) {
+        _pluslength = pluslength;
+        return this;
+    }
 
 
 
-    /** Get the downward error. */
+    /** Get the downward error and number of decimal places. */
     public Double getMinus() {
         return _minus;
     }
+    public Integer getMinusLength() {
+        return _minuslength;
+    }
 
-    /** Set the downward error. */
+    /** Set the downward error and number of decimal places. */
     public Uncertainty setMinus(Double minus) {
         _minus = minus;
         return this;
     }
+    public Uncertainty setMinusLength(Integer minuslength) {
+        _minuslength = minuslength;
+        return this;
+    }
 
 
 


More information about the HepData-svn mailing list