|
||||||||||
| 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, hashCode, intersection, isContiguous, newInstance, overlaps, reset, setCrossRefResolver, setFeature, setNoteSet, setTerm, sort, symbols, toString, union |
| Methods inherited from class org.biojavax.bio.seq.SimpleRichLocation |
|---|
getFeature, getRank, getTerm, posmax, posmin, setCrossRef, 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, 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 RichLocationgetCrossRef in class SimpleRichLocationpublic int getCircularLength()
getCircularLength in interface RichLocationgetCircularLength in class SimpleRichLocation
public void setCircularLength(int sourceSeqLength)
throws ChangeVetoException
setCircularLength in interface RichLocationsetCircularLength in class CompoundRichLocationsourceSeqLength - the circular length of this location
ChangeVetoException - ALWAYSpublic RichLocation.Strand getStrand()
getStrand in interface RichLocationgetStrand in class SimpleRichLocationpublic 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 LocationgetMin in class SimpleRichLocationpublic 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 LocationgetMax in class SimpleRichLocationpublic Position getMinPosition()
getMinPosition in interface RichLocationgetMinPosition in class SimpleRichLocationpublic Position getMaxPosition()
getMaxPosition in interface RichLocationgetMaxPosition in class SimpleRichLocationpublic Location translate(int dist)
translate in interface Locationtranslate in class CompoundRichLocationdist - the distance to translate (to the right)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||