*/\r
public class SequenceFeature\r
{\r
- int position;\r
- int begin;\r
- int end;\r
- String type;\r
- String description;\r
- String status;\r
+ public int position;\r
+ public int begin;\r
+ public int end;\r
+ public String type;\r
+ public String description;\r
+ public String status;\r
\r
// Feature group can be set from a features file\r
// as a group of features between STARTGROUP and ENDGROUP markers\r
- String featureGroup;\r
+ public String featureGroup;\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
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