2 * Jalview - A Sequence Alignment Editor and Viewer
\r
3 * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
\r
5 * This program is free software; you can redistribute it and/or
\r
6 * modify it under the terms of the GNU General Public License
\r
7 * as published by the Free Software Foundation; either version 2
\r
8 * of the License, or (at your option) any later version.
\r
10 * This program is distributed in the hope that it will be useful,
\r
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
13 * GNU General Public License for more details.
\r
15 * You should have received a copy of the GNU General Public License
\r
16 * along with this program; if not, write to the Free Software
\r
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
\r
19 package jalview.datamodel;
\r
25 * @version $Revision$
\r
27 public class SequenceFeature
\r
29 public int position;
\r
33 public String description;
\r
34 public String status;
\r
36 // Feature group can be set from a features file
\r
37 // as a group of features between STARTGROUP and ENDGROUP markers
\r
38 public String featureGroup;
\r
40 public SequenceFeature()
\r
43 public SequenceFeature(String type,
\r
47 String featureGroup)
\r
50 this.description = desc;
\r
51 this.status = status;
\r
52 this.position = begin;
\r
55 this.featureGroup = featureGroup;
\r
58 public boolean equals(SequenceFeature sf)
\r
60 if(begin != sf.begin
\r
65 if(!(type+description+status).equals
\r
66 (sf.type+sf.description+sf.status))
\r
73 public int getPosition()
\r
78 public void setPosition(int pos)
\r
89 * @return DOCUMENT ME!
\r
91 public int getBegin()
\r
96 public void setBegin(int start)
\r
104 * @return DOCUMENT ME!
\r
106 public int getEnd()
\r
111 public void setEnd(int end)
\r
119 * @return DOCUMENT ME!
\r
121 public String getType()
\r
126 public void setType(String type)
\r
134 * @return DOCUMENT ME!
\r
136 public String getDescription()
\r
138 return description;
\r
141 public void setDescription(String desc)
\r
143 description = desc;
\r
149 * @return DOCUMENT ME!
\r
151 public String getStatus()
\r
156 public void setStatus(String status)
\r
158 this.status = status;
\r
161 public String getFeatureGroup()
\r
163 return featureGroup;
\r
166 public void setFeatureGroup(String featureGroup)
\r
168 this.featureGroup = featureGroup;
\r