annotate NGSrich_0.5.5/src/datastructures/ReadFrame.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 datastructures;
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
2
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
3 public class ReadFrame extends Frame{
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
4
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
5 private String chrom, name;
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
6
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
7 public ReadFrame(String name,String chrom, int start, int end) {
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
8 super(start, end-start+1);
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
9 this.chrom = chrom; this.name = name;
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
10 }
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
11
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
12 public String chrom(){
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
13 return chrom;
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
14 }
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
15
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
16 public String name(){
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
17 return name;
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
18 }
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
19
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
20 public int size(){
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
21 return end-start+1;
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
22 }
89ad0a9cca52 Uploaded
pfrommolt
parents:
diff changeset
23 }