X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Forg%2Fbiojava%2Fdasobert%2Ffeature%2FFeatureTrack.java;h=e7b6bbd296c478fcc1a827acaae7fe0c447f3e76;hb=506d60f0e188723ddc91c26824b41ac7034df3fe;hp=42136ee8a758794447c353e4b70e0d67f710c208;hpb=60f2d6c034560415fd0139c8bc7df0c19cae1186;p=jalview.git diff --git a/src/org/biojava/dasobert/feature/FeatureTrack.java b/src/org/biojava/dasobert/feature/FeatureTrack.java index 42136ee..e7b6bbd 100644 --- a/src/org/biojava/dasobert/feature/FeatureTrack.java +++ b/src/org/biojava/dasobert/feature/FeatureTrack.java @@ -28,86 +28,100 @@ import java.util.List; * A feature corresponds to a track in Ensembl * * @author Andreas Prlic - * + * */ -public interface FeatureTrack { - - - public Object clone(); - - /** returns true if the specified sequence position is within the range of this Feature - * - * @param seqPosition the position to check - * @return true if the position is within the ranges of the segments of this feature - */ - public boolean overlaps(int seqPosition); - - public String toString(); - - public void setSource(String s); - - public String getSource(); - - public void setName(String nam); - - public String getName(); - - public void setMethod(String methd); - - public String getMethod(); - - public void setType(String typ); - - public String getType(); - - public void setNote(String nte); - - public String getNote(); - - public void setLink(String lnk); - - public String getLink(); - - public void setScore(String score); - - public String getScore(); - - public void setOrientation(String orientation); - - public String getOrientation(); - - /** test if two features are equivalent - * - * @param feat feature to compare with - * @return true if equivalend - */ - public abstract boolean equals(FeatureTrack feat); - - /** add a segment to this feature - * - * @param start position - * @param end position - * @param name of feature - */ - public abstract void addSegment(int start, int end, String name); - - public abstract void addSegment(Segment s); - - public abstract List getSegments(); - - /** set the data from the DAS - type - id field - * (used for Ontology support) - * @param typeID - */ - public void setTypeID(String typeID); - - /** set the data from the DAS - type - category field - * (used for Ontology support) - * @param typeCategory - */ - public void setTypeCategory(String typeCategory); - - public String getTypeID(); - public String getTypeCategory(); - +public interface FeatureTrack +{ + + public Object clone(); + + /** + * returns true if the specified sequence position is within the range of this + * Feature + * + * @param seqPosition + * the position to check + * @return true if the position is within the ranges of the segments of this + * feature + */ + public boolean overlaps(int seqPosition); + + public String toString(); + + public void setSource(String s); + + public String getSource(); + + public void setName(String nam); + + public String getName(); + + public void setMethod(String methd); + + public String getMethod(); + + public void setType(String typ); + + public String getType(); + + public void setNote(String nte); + + public String getNote(); + + public void setLink(String lnk); + + public String getLink(); + + public void setScore(String score); + + public String getScore(); + + public void setOrientation(String orientation); + + public String getOrientation(); + + /** + * test if two features are equivalent + * + * @param feat + * feature to compare with + * @return true if equivalend + */ + public abstract boolean equals(FeatureTrack feat); + + /** + * add a segment to this feature + * + * @param start + * position + * @param end + * position + * @param name + * of feature + */ + public abstract void addSegment(int start, int end, String name); + + public abstract void addSegment(Segment s); + + public abstract List getSegments(); + + /** + * set the data from the DAS - type - id field (used for Ontology support) + * + * @param typeID + */ + public void setTypeID(String typeID); + + /** + * set the data from the DAS - type - category field (used for Ontology + * support) + * + * @param typeCategory + */ + public void setTypeCategory(String typeCategory); + + public String getTypeID(); + + public String getTypeCategory(); + } \ No newline at end of file