|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biojava.utils.AbstractChangeable
org.biojavax.bio.seq.SimpleRichLocation
org.biojavax.bio.seq.CompoundRichLocation
org.biojavax.bio.seq.MultiSourceCompoundRichLocation
public class MultiSourceCompoundRichLocation
An implementation of RichLocation which possibly covers multiple locations, on different strands, different circular lengths, or different sequences.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.biojavax.bio.seq.RichLocation |
---|
RichLocation.Strand, RichLocation.Tools |
Nested classes/interfaces inherited from interface org.biojava.bio.Annotatable |
---|
Annotatable.AnnotationForwarder |
Field Summary |
---|
Fields inherited from class org.biojavax.bio.seq.CompoundRichLocation |
---|
members, size |
Fields inherited from class org.biojavax.bio.seq.SimpleRichLocation |
---|
circularLength, term |
Fields inherited from interface org.biojavax.bio.seq.RichLocation |
---|
CIRCULAR, EMPTY_LOCATION, FEATURE, NOTE, RANK, TERM |
Fields inherited from interface org.biojava.bio.symbol.Location |
---|
empty, full, naturalOrder |
Fields inherited from interface org.biojava.bio.Annotatable |
---|
ANNOTATION |
Constructor Summary | |
---|---|
MultiSourceCompoundRichLocation(Collection members)
Constructs a MultiSourceCompoundRichLocation from the given set of members, with the default term of "join". |
|
MultiSourceCompoundRichLocation(ComparableTerm term,
Collection members)
Constructs a MultiSourceCompoundRichLocation from the given set of members. |
Method Summary | |
---|---|
int |
getCircularLength()
Retrieves the circular length of this location. If it is 0, the location is not circular. If it is not zero, then the number refers to the wrapping length of the location. eg. 100 would signify that a position of 112 would actually be a position of 112-100 = 12. ALWAYS RETURNS ZERO |
CrossRef |
getCrossRef()
Retrieves the crossref associated with this location. ALWAYS RETURNS NULL |
int |
getMax()
The maximum position contained.
WARNING: The location will not contain every point between |
Position |
getMaxPosition()
Retrieves the end position of this location. ALWAYS RETURNS A POINT POSITION AT POINT EQUIVALENT TO COMBINED LENGTH OF MEMBERS |
int |
getMin()
The minimum position contained.
WARNING: The location will not contain every point between |
Position |
getMinPosition()
Retrieves the start position of this location. ALWAYS RETURNS A POINT POSITION AT POINT 1 |
RichLocation.Strand |
getStrand()
Retrieves the strand associated with this location. |
void |
setCircularLength(int sourceSeqLength)
Sets the circular length of this location. If it is 0, the location is not circular. If it is not zero, then the number refers to the wrapping length of the location. eg. 100 would signify that a position of 112 would actually be a position of 112-100 = 12. RECURSIVELY APPLIES CALL TO ALL MEMBERS NOT IMPLEMENTED |
Location |
translate(int dist)
Create a location that is a translation of this location. Recursively translates all members of this location. Recursively translates all members of this location. |
Methods inherited from class org.biojavax.bio.seq.CompoundRichLocation |
---|
blockIterator, compareTo, contains, contains, equals, getAnnotation, getDecorator, getJoinTerm, getNoteSet, getOrderTerm, getRichAnnotation, hashCode, intersection, isContiguous, newInstance, overlaps, setCrossRefResolver, setFeature, setNoteSet, setTerm, sort, symbols, toString, union |
Methods inherited from class org.biojavax.bio.seq.SimpleRichLocation |
---|
getFeature, getId, getRank, getTerm, posmax, posmin, setCrossRef, setId, setMaxPosition, setMinPosition, setPositionResolver, setRank, setStrand |
Methods inherited from class org.biojava.utils.AbstractChangeable |
---|
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.biojavax.bio.seq.RichLocation |
---|
getFeature, getRank, getTerm, setCrossRefResolver, setFeature, setPositionResolver, setRank, setTerm, sort |
Methods inherited from interface org.biojava.bio.symbol.Location |
---|
blockIterator, contains, contains, equals, getDecorator, intersection, isContiguous, newInstance, overlaps, symbols, 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 |
Constructor Detail |
---|
public MultiSourceCompoundRichLocation(Collection members)
members
- the members to put into the compound location.RichLocation.Tools
public MultiSourceCompoundRichLocation(ComparableTerm term, Collection members)
term
- the term to use when describing the group of members.members
- the members to put into the compound location.RichLocation.Tools
Method Detail |
---|
public CrossRef getCrossRef()
getCrossRef
in interface RichLocation
getCrossRef
in class SimpleRichLocation
public int getCircularLength()
getCircularLength
in interface RichLocation
getCircularLength
in class SimpleRichLocation
public void setCircularLength(int sourceSeqLength) throws ChangeVetoException
setCircularLength
in interface RichLocation
setCircularLength
in class CompoundRichLocation
sourceSeqLength
- the circular length of this location
ChangeVetoException
- ALWAYSpublic RichLocation.Strand getStrand()
getStrand
in interface RichLocation
getStrand
in class SimpleRichLocation
public int getMin()
WARNING: The location will not contain every point between getMin()
and getMax()
if isContiguous()
is false. If isContiguous()
does return false you should use the Iterator
returned by blockIterator()
to iterate over the minimum set of contiguous blocks that make up this Location
ALWAYS RETURNS ONE
getMin
in interface Location
getMin
in class SimpleRichLocation
public int getMax()
WARNING: The location will not contain every point between getMin()
and getMax()
if isContiguous()
is false. If isContiguous()
does return false you should use the Iterator
returned by blockIterator()
to iterate over the minimum set of contiguous blocks that make up this Location
ALWAYS RETURNS COMBINED LENGTH OF MEMBERS
getMax
in interface Location
getMax
in class SimpleRichLocation
public Position getMinPosition()
getMinPosition
in interface RichLocation
getMinPosition
in class SimpleRichLocation
public Position getMaxPosition()
getMaxPosition
in interface RichLocation
getMaxPosition
in class SimpleRichLocation
public Location translate(int dist)
translate
in interface Location
translate
in class CompoundRichLocation
dist
- the distance to translate (to the right)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |