Package org.biojava.bio.seq.impl
Class NewAssembledSymbolList
java.lang.Object
org.biojava.utils.AbstractChangeable
org.biojava.bio.symbol.AbstractSymbolList
org.biojava.bio.seq.impl.NewAssembledSymbolList
- All Implemented Interfaces:
SymbolList
,Changeable
Support class for applications which need to patch together sections
of sequence into a single SymbolList. This class isn't intended
for direct use in user code -- instead, it is a helper for people
implementing the full BioJava assembly model. See SimpleAssembly
for an example.
- Since:
- 1.1
- Author:
- Thomas Down, Greg Cox, Matthew Pocock, David Huen (support for overlapped features)
-
Nested Class Summary
Nested classes/interfaces inherited from class org.biojava.bio.symbol.AbstractSymbolList
AbstractSymbolList.EditScreener, AbstractSymbolList.EditTranslater
-
Field Summary
Fields inherited from interface org.biojava.bio.symbol.SymbolList
EDIT, EMPTY_LIST
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe alphabet that this SymbolList is over.int
length()
The number of symbols in this SymbolList.void
void
void
setLength
(int len) subList
(int start, int end) Return a new SymbolList for the symbols start to end inclusive.symbolAt
(int pos) Return the symbol at index, counting from 1.Methods inherited from class org.biojava.bio.symbol.AbstractSymbolList
edit, equals, hashCode, iterator, seqString, subStr, toList, toString
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.biojava.utils.Changeable
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
-
Constructor Details
-
NewAssembledSymbolList
public NewAssembledSymbolList()
-
-
Method Details
-
setLength
-
putComponent
-
removeComponent
-
getComponentLocationSet
-
getAlphabet
Description copied from interface:SymbolList
The alphabet that this SymbolList is over.Every symbol within this SymbolList is a member of this alphabet.
alphabet.contains(symbol) == true
for each symbol that is within this sequence.- Returns:
- the alphabet
-
length
Description copied from interface:SymbolList
The number of symbols in this SymbolList.- Returns:
- the length
-
symbolAt
Description copied from interface:SymbolList
Return the symbol at index, counting from 1.- Parameters:
pos
- the offset into this SymbolList- Returns:
- the Symbol at that index
-
subList
Description copied from interface:SymbolList
Return a new SymbolList for the symbols start to end inclusive.The resulting SymbolList will count from 1 to (end-start + 1) inclusive, and refer to the symbols start to end of the original sequence.
- Specified by:
subList
in interfaceSymbolList
- Overrides:
subList
in classAbstractSymbolList
- Parameters:
start
- the first symbol of the new SymbolListend
- the last symbol (inclusive) of the new SymbolList
-