JAL-2349 bean for getting max/min/avg for contact range
[jalview.git] / src / jalview / datamodel / ContactRange.java
1 package jalview.datamodel;
2
3
4 /**
5  * bean for max/min positions for a given range
6  * 
7  * @author jprocter
8  *
9  */
10 public class ContactRange
11 {
12   int minPos;
13
14   double min;
15
16   int maxPos;
17
18   double max;
19
20   int from_column, to_column;
21
22   /**
23    * update the bean with given values
24    * 
25    * @param from_column
26    * @param to_column
27    * @param minPos
28    * @param min
29    * @param maxPos
30    * @param max
31    */
32   public void update(int from_column, int to_column, int minPos,
33           double min, int maxPos, double max)
34   {
35     this.from_column = from_column;
36     this.to_column = to_column;
37     this.minPos = minPos;
38     this.min = min;
39     this.maxPos = maxPos;
40     this.max = max;
41   }
42
43   /**
44    * @return the minPos
45    */
46   public int getMinPos()
47   {
48     return minPos;
49   }
50
51   /**
52    * @param minPos
53    *          the minPos to set
54    */
55   public void setMinPos(int minPos)
56   {
57     this.minPos = minPos;
58   }
59
60   /**
61    * @return the min
62    */
63   public double getMin()
64   {
65     return min;
66   }
67
68   /**
69    * @param min
70    *          the min to set
71    */
72   public void setMin(double min)
73   {
74     this.min = min;
75   }
76
77   /**
78    * @return the maxPos
79    */
80   public int getMaxPos()
81   {
82     return maxPos;
83   }
84
85   /**
86    * @param maxPos
87    *          the maxPos to set
88    */
89   public void setMaxPos(int maxPos)
90   {
91     this.maxPos = maxPos;
92   }
93
94   /**
95    * @return the max
96    */
97   public double getMax()
98   {
99     return max;
100   }
101
102   /**
103    * @param max
104    *          the max to set
105    */
106   public void setMax(double max)
107   {
108     this.max = max;
109   }
110
111   /**
112    * @return the from_column
113    */
114   public int getFrom_column()
115   {
116     return from_column;
117   }
118
119   /**
120    * @param from_column
121    *          the from_column to set
122    */
123   public void setFrom_column(int from_column)
124   {
125     this.from_column = from_column;
126   }
127
128   /**
129    * @return the to_column
130    */
131   public int getTo_column()
132   {
133     return to_column;
134   }
135
136   /**
137    * @param to_column
138    *          the to_column to set
139    */
140   public void setTo_column(int to_column)
141   {
142     this.to_column = to_column;
143   }
144 }