View Javadoc

1   /*--------------------------------------------------------------------------
2    *  Copyright 2007 utgenome.org
3    *
4    *  Licensed under the Apache License, Version 2.0 (the "License");
5    *  you may not use this file except in compliance with the License.
6    *  You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   *  Unless required by applicable law or agreed to in writing, software
11   *  distributed under the License is distributed on an "AS IS" BASIS,
12   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *  See the License for the specific language governing permissions and
14   *  limitations under the License.
15   *--------------------------------------------------------------------------*/
16  //--------------------------------------
17  // utgb-core Project
18  //
19  // Read.java
20  // Since: Dec 10, 2007
21  //
22  // $URL$ 
23  // $Author$
24  //--------------------------------------
25  package org.utgenome.format.egt;
26  
27  /**
28   * Read on a genome sequence
29   * 
30   * @author leo
31   *
32   */
33  public class Range {
34  	private long start = -1;
35  	private long end = -1;
36  
37  	public Range()
38  	{}
39  	
40  	/**
41  	 * @param start
42  	 * @param end
43  	 */
44  	public Range(long start, long end) {
45  		this.start = start;
46  		this.end = end;
47  	}
48  	
49  	public Range(String start, String end) throws NumberFormatException
50  	{
51  		this.start = Long.parseLong(start);
52  		this.end = Long.parseLong(end);
53  	}
54  
55  	public long getStart() {
56  		return start;
57  	}
58  
59  	public void setStart(int start) {
60  		this.start = start;
61  	}
62  
63  	public long getEnd() {
64  		return end;
65  	}
66  
67  	public void setEnd(int end) {
68  		this.end = end;
69  	}
70  
71  
72  }
73  
74  
75  
76