public class MultiSourceCompoundRichLocation extends CompoundRichLocation implements RichLocation
RichLocation.Strand, RichLocation.Tools
Annotatable.AnnotationForwarder
members, size
circularLength, term
CIRCULAR, EMPTY_LOCATION, FEATURE, NOTE, RANK, TERM
empty, full, naturalOrder
ANNOTATION
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
int |
getCircularLength()
Retrieves the circular length of this location.
|
CrossRef |
getCrossRef()
Retrieves the crossref associated with this location.
|
int |
getMax()
The maximum position contained.
|
Position |
getMaxPosition()
Retrieves the end position of this location.
|
int |
getMin()
The minimum position contained.
|
Position |
getMinPosition()
Retrieves the start position of this location.
|
RichLocation.Strand |
getStrand()
Retrieves the strand associated with this location.
|
void |
setCircularLength(int sourceSeqLength)
Sets the circular length of this location.
|
Location |
translate(int dist)
Create a location that is a translation of this location.
|
blockIterator, compareTo, contains, contains, equals, getAnnotation, getDecorator, getJoinTerm, getNoteSet, getOrderTerm, getRichAnnotation, hashCode, intersection, isContiguous, newInstance, overlaps, setCrossRefResolver, setFeature, setNoteSet, setTerm, sort, symbols, toString, union
getFeature, getId, getRank, getTerm, posmax, posmin, setCrossRef, setId, setMaxPosition, setMinPosition, setPositionResolver, setRank, setStrand
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getFeature, getRank, getTerm, setCrossRefResolver, setFeature, setPositionResolver, setRank, setTerm, sort
blockIterator, contains, contains, equals, getDecorator, intersection, isContiguous, newInstance, overlaps, symbols, union
getNoteSet, getRichAnnotation, setNoteSet
getAnnotation
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
compareTo
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
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 locationChangeVetoException
- 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)Copyright © 2014 BioJava. All rights reserved.