annotate NGSrich_0.5.5/src/middlewares/ReadCounter.java @ 0:89ad0a9cca52 default tip

Uploaded
author pfrommolt
date Mon, 21 Nov 2011 08:12:19 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
1 package middlewares;
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
2 /**
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
3 * Counter for the reads on targets (+/- 0/100/200) and the reads overlapping
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
4 * targets (+/- 0/100/200).
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
5 *
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
6 * @author Ali Abdallah
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
7 * @version 14.07.2011
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
8 * @since jdk 1.6.0
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
9 */
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
10 public class ReadCounter {
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
11
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
12 // Self explanatory.
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
13 private int on, on100, on200, over, over100, over200;
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
14
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
15 public ReadCounter(){on=0; on100=0; on200=0; over=0; over100=0; over200=0;}
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
16
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
17 public void incOn(){on++;}
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
18 public void incOn100(){on100++;}
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
19 public void incOn200(){on200++;}
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
20
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
21 public void incOver(){over++;}
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
22 public void incOver100(){over100++;}
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
23 public void incOver200(){over200++;}
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
24
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
25 public int on(){return on;}
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
26 public int on100(){return on100;}
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
27 public int on200(){return on200;}
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
28
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
29 public int over(){return over;}
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
30 public int over100(){return over100;}
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
31 public int over200(){return over200;}
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
32
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
33 }