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