org.biojava.spice.feature
Interface Feature

All Known Implementing Classes:
AbstractFeature, FeatureImpl

public interface Feature

Author:
Andreas Prlic

Method Summary
 void addSegment(int start, int end, String name)
          add a segment to this feature
 void addSegment(Segment s)
           
 Object clone()
           
 boolean equals(Feature feat)
          test if two features are equivalent
 String getLink()
           
 String getMethod()
           
 String getName()
           
 String getNote()
           
 String getScore()
           
 List getSegments()
           
 String getSource()
           
 String getType()
           
 boolean overlaps(int seqPosition)
          returns true if the specified sequence position is within the range of this Feature
 void setLink(String lnk)
           
 void setMethod(String methd)
           
 void setName(String nam)
           
 void setNote(String nte)
           
 void setScore(String score)
           
 void setSource(String s)
           
 void setType(String typ)
           
 String toString()
           
 

Method Detail

clone

public Object clone()

overlaps

public boolean overlaps(int seqPosition)
returns true if the specified sequence position is within the range of this Feature

Parameters:
seqPosition - the position to check
Returns:
true if the position is within the ranges of the segments of this feature

toString

public String toString()

setSource

public void setSource(String s)

getSource

public String getSource()

setName

public void setName(String nam)

getName

public String getName()

setMethod

public void setMethod(String methd)

getMethod

public String getMethod()

setType

public void setType(String typ)

getType

public String getType()

setNote

public void setNote(String nte)

getNote

public String getNote()

setLink

public void setLink(String lnk)

getLink

public String getLink()

setScore

public void setScore(String score)

getScore

public String getScore()

equals

public boolean equals(Feature feat)
test if two features are equivalent

Parameters:
feat - feature to compare with
Returns:
true if equivalend

addSegment

public void addSegment(int start,
                       int end,
                       String name)
add a segment to this feature

Parameters:
start - position
end - position
name - of feature

addSegment

public void addSegment(Segment s)

getSegments

public List getSegments()