|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RichLocation
Describes locations, and adds the concepts of circularity, fuzziness, annotations, and cross-references to other databases. Also includes strands.
Nested Class Summary | |
---|---|
static class |
RichLocation.Strand
This class represents a strand on which a location may lie. |
static class |
RichLocation.Tools
Some useful tools for working with Locations. |
Nested classes/interfaces inherited from interface org.biojava.bio.Annotatable |
---|
Annotatable.AnnotationForwarder |
Field Summary | |
---|---|
static ChangeType |
CIRCULAR
|
static RichLocation |
EMPTY_LOCATION
The empty location matches nothing. |
static ChangeType |
FEATURE
|
static ChangeType |
NOTE
|
static ChangeType |
RANK
|
static ChangeType |
TERM
|
Fields inherited from interface org.biojava.bio.symbol.Location |
---|
empty, full, naturalOrder |
Fields inherited from interface org.biojava.bio.Annotatable |
---|
ANNOTATION |
Method Summary | |
---|---|
int |
getCircularLength()
Retrieves the circular length of this location. |
CrossRef |
getCrossRef()
Retrieves the crossref associated with this location. |
RichFeature |
getFeature()
Retrieves the feature this location is associated with. |
Position |
getMaxPosition()
Retrieves the end position of this location. |
Position |
getMinPosition()
Retrieves the start position of this location. |
int |
getRank()
Retrieves the rank associated with this location. |
RichLocation.Strand |
getStrand()
Retrieves the strand associated with this location. |
ComparableTerm |
getTerm()
Retrieves the term associated with this location. |
void |
setCircularLength(int sourceSeqLength)
Sets the circular length of this location. |
void |
setCrossRefResolver(CrossReferenceResolver r)
Sets the cross ref resolver to use when retrieving remote symbols. |
void |
setFeature(RichFeature feature)
Sets the feature this location is associated with. |
void |
setPositionResolver(PositionResolver p)
Sets the resolver to use when working out actual base coordinates from fuzzy positions. |
void |
setRank(int rank)
Sets the rank for this location. |
void |
setTerm(ComparableTerm term)
Sets the term for this location. |
void |
sort()
Sorts the member locations of a compound location. |
Methods inherited from interface org.biojava.bio.symbol.Location |
---|
blockIterator, contains, contains, equals, getDecorator, getMax, getMin, intersection, isContiguous, newInstance, overlaps, symbols, translate, union |
Methods inherited from interface org.biojavax.RichAnnotatable |
---|
getNoteSet, getRichAnnotation, setNoteSet |
Methods inherited from interface org.biojava.bio.Annotatable |
---|
getAnnotation |
Methods inherited from interface org.biojava.utils.Changeable |
---|
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Field Detail |
---|
static final ChangeType NOTE
static final ChangeType TERM
static final ChangeType RANK
static final ChangeType CIRCULAR
static final ChangeType FEATURE
static final RichLocation EMPTY_LOCATION
Method Detail |
---|
void sort()
RichFeature getFeature()
void setFeature(RichFeature feature) throws ChangeVetoException
feature
- the feature.
ChangeVetoException
CrossRef getCrossRef()
ComparableTerm getTerm()
void setTerm(ComparableTerm term) throws ChangeVetoException
term
- the term this location should adopt.
ChangeVetoException
- in case of error.RichLocation.Strand getStrand()
int getRank()
void setRank(int rank) throws ChangeVetoException
rank
- the rank this location should adopt.
ChangeVetoException
- in case of error.Position getMinPosition()
Position getMaxPosition()
void setPositionResolver(PositionResolver p)
p
- the position resolver to use.int getCircularLength()
void setCircularLength(int sourceSeqLength) throws ChangeVetoException
sourceSeqLength
- the circular length of this location
ChangeVetoException
- if it doesn't want to change.void setCrossRefResolver(CrossReferenceResolver r)
r
- the resolver to use.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |