git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
225b4ce
)
FeaturesGroup added to constructor
author
amwaterhouse
<Andrew Waterhouse>
Fri, 24 Mar 2006 15:31:11 +0000
(15:31 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Fri, 24 Mar 2006 15:31:11 +0000
(15:31 +0000)
src/jalview/datamodel/SequenceFeature.java
patch
|
blob
|
history
diff --git
a/src/jalview/datamodel/SequenceFeature.java
b/src/jalview/datamodel/SequenceFeature.java
index
aadd357
..
f8444a0
100755
(executable)
--- a/
src/jalview/datamodel/SequenceFeature.java
+++ b/
src/jalview/datamodel/SequenceFeature.java
@@
-40,7
+40,11
@@
public class SequenceFeature
public SequenceFeature()
\r
{}
\r
\r
public SequenceFeature()
\r
{}
\r
\r
- public SequenceFeature(String type, String desc, String status, int begin, int end)
\r
+ public SequenceFeature(String type,
\r
+ String desc,
\r
+ String status,
\r
+ int begin, int end,
\r
+ String featureGroup)
\r
{
\r
this.type = type;
\r
this.description = desc;
\r
{
\r
this.type = type;
\r
this.description = desc;
\r
@@
-48,8
+52,24
@@
public class SequenceFeature
this.position = begin;
\r
this.begin = begin;
\r
this.end = end;
\r
this.position = begin;
\r
this.begin = begin;
\r
this.end = end;
\r
+ this.featureGroup = featureGroup;
\r
+ }
\r
+
\r
+ public boolean equals(SequenceFeature sf)
\r
+ {
\r
+ if(begin != sf.begin
\r
+ || end != sf.end)
\r
+ return false;
\r
+
\r
+
\r
+ if(!(type+description+status).equals
\r
+ (sf.type+sf.description+sf.status))
\r
+ return false;
\r
+
\r
+ return true;
\r
}
\r
\r
}
\r
\r
+
\r
public int getPosition()
\r
{
\r
return position;
\r
public int getPosition()
\r
{
\r
return position;
\r