Merge branch 'hardcode'
[jalview.git] / src / jalview / datamodel / ContactRange.java
index 0fb71cf..fe66aa5 100644 (file)
@@ -1,6 +1,5 @@
 package jalview.datamodel;
 
-
 /**
  * bean for max/min positions for a given range
  * 
@@ -19,6 +18,8 @@ public class ContactRange
 
   int from_column, to_column;
 
+  private double mean;
+
   /**
    * update the bean with given values
    * 
@@ -29,8 +30,8 @@ public class ContactRange
    * @param maxPos
    * @param max
    */
-  public void update(int from_column, int to_column, int minPos,
-          double min, int maxPos, double max)
+  public void update(int from_column, int to_column, int minPos, double min,
+          int maxPos, double max, double mean)
   {
     this.from_column = from_column;
     this.to_column = to_column;
@@ -38,6 +39,7 @@ public class ContactRange
     this.min = min;
     this.maxPos = maxPos;
     this.max = max;
+    this.mean = mean;
   }
 
   /**
@@ -109,6 +111,23 @@ public class ContactRange
   }
 
   /**
+   * @return the mean
+   */
+  public double getMean()
+  {
+    return mean;
+  }
+
+  /**
+   * @param mean
+   *          the mean to set
+   */
+  public void setMean(double mean)
+  {
+    this.mean = mean;
+  }
+
+  /**
    * @return the from_column
    */
   public int getFrom_column()