FeaturesGroup added to constructor
authoramwaterhouse <Andrew Waterhouse>
Fri, 24 Mar 2006 15:31:11 +0000 (15:31 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 24 Mar 2006 15:31:11 +0000 (15:31 +0000)
src/jalview/datamodel/SequenceFeature.java

index aadd357..f8444a0 100755 (executable)
@@ -40,7 +40,11 @@ public class SequenceFeature
     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
@@ -48,8 +52,24 @@ public class SequenceFeature
       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
     public int getPosition()\r
     {\r
       return position;\r