0
|
1 package middlewares;
|
|
2 /**
|
|
3 * Counter for the reads on targets (+/- 0/100/200) and the reads overlapping
|
|
4 * targets (+/- 0/100/200).
|
|
5 *
|
|
6 * @author Ali Abdallah
|
|
7 * @version 14.07.2011
|
|
8 * @since jdk 1.6.0
|
|
9 */
|
|
10 public class ReadCounter {
|
|
11
|
|
12 // Self explanatory.
|
|
13 private int on, on100, on200, over, over100, over200;
|
|
14
|
|
15 public ReadCounter(){on=0; on100=0; on200=0; over=0; over100=0; over200=0;}
|
|
16
|
|
17 public void incOn(){on++;}
|
|
18 public void incOn100(){on100++;}
|
|
19 public void incOn200(){on200++;}
|
|
20
|
|
21 public void incOver(){over++;}
|
|
22 public void incOver100(){over100++;}
|
|
23 public void incOver200(){over200++;}
|
|
24
|
|
25 public int on(){return on;}
|
|
26 public int on100(){return on100;}
|
|
27 public int on200(){return on200;}
|
|
28
|
|
29 public int over(){return over;}
|
|
30 public int over100(){return over100;}
|
|
31 public int over200(){return over200;}
|
|
32
|
|
33 }
|