5de8b0407e34c7d0f9a54645578e6860e84edda9
[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   private double mean;
23
24   /**
25    * update the bean with given values
26    * 
27    * @param from_column
28    * @param to_column
29    * @param minPos
30    * @param min
31    * @param maxPos
32    * @param max
33    */
34   public void update(int from_column, int to_column, int minPos,
35           double min, int maxPos, double max, double mean)
36   {
37     this.from_column = from_column;
38     this.to_column = to_column;
39     this.minPos = minPos;
40     this.min = min;
41     this.maxPos = maxPos;
42     this.max = max;
43     this.mean = mean;
44   }
45
46   /**
47    * @return the minPos
48    */
49   public int getMinPos()
50   {
51     return minPos;
52   }
53
54   /**
55    * @param minPos
56    *          the minPos to set
57    */
58   public void setMinPos(int minPos)
59   {
60     this.minPos = minPos;
61   }
62
63   /**
64    * @return the min
65    */
66   public double getMin()
67   {
68     return min;
69   }
70
71   /**
72    * @param min
73    *          the min to set
74    */
75   public void setMin(double min)
76   {
77     this.min = min;
78   }
79
80   /**
81    * @return the maxPos
82    */
83   public int getMaxPos()
84   {
85     return maxPos;
86   }
87
88   /**
89    * @param maxPos
90    *          the maxPos to set
91    */
92   public void setMaxPos(int maxPos)
93   {
94     this.maxPos = maxPos;
95   }
96
97   /**
98    * @return the max
99    */
100   public double getMax()
101   {
102     return max;
103   }
104
105   /**
106    * @param max
107    *          the max to set
108    */
109   public void setMax(double max)
110   {
111     this.max = max;
112   }
113
114   /**
115    * @return the mean
116    */
117   public double getMean()
118   {
119     return mean;
120   }
121
122   /**
123    * @param mean
124    *          the mean to set
125    */
126   public void setMean(double mean)
127   {
128     this.mean = mean;
129   }
130
131   /**
132    * @return the from_column
133    */
134   public int getFrom_column()
135   {
136     return from_column;
137   }
138
139   /**
140    * @param from_column
141    *          the from_column to set
142    */
143   public void setFrom_column(int from_column)
144   {
145     this.from_column = from_column;
146   }
147
148   /**
149    * @return the to_column
150    */
151   public int getTo_column()
152   {
153     return to_column;
154   }
155
156   /**
157    * @param to_column
158    *          the to_column to set
159    */
160   public void setTo_column(int to_column)
161   {
162     this.to_column = to_column;
163   }
164 }