|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biojava.utils.AbstractChangeable
org.biojava.bio.symbol.AbstractSymbolList
org.biojava.bio.seq.impl.AssembledSymbolList
public class AssembledSymbolList
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.
| 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 | |
|---|---|
AssembledSymbolList()
|
|
| Method Summary | |
|---|---|
Alphabet |
getAlphabet()
The alphabet that this SymbolList is over. |
Set |
getComponentLocationSet()
|
int |
length()
The number of symbols in this SymbolList. |
void |
putComponent(ComponentFeature f)
|
void |
putComponent(Location l,
SymbolList sl)
|
void |
removeComponent(Location loc)
|
void |
setLength(int len)
|
SymbolList |
subList(int start,
int end)
Return a new SymbolList for the symbols start to end inclusive. |
String |
subStr(int start,
int end)
Return a region of this symbol list as a String. |
Symbol |
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, 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 Detail |
|---|
public AssembledSymbolList()
| Method Detail |
|---|
public void setLength(int len)
public void putComponent(ComponentFeature f)
public void putComponent(Location l,
SymbolList sl)
IllegalArgumentException - if sl would introduce a circularity
into the tree of componentspublic void removeComponent(Location loc)
public Set getComponentLocationSet()
public Alphabet getAlphabet()
SymbolList
Every symbol within this SymbolList is a member of this alphabet.
alphabet.contains(symbol) == true
for each symbol that is within this sequence.
public int length()
SymbolList
public Symbol symbolAt(int pos)
SymbolList
pos - the offset into this SymbolList
public SymbolList subList(int start,
int end)
SymbolListThe resulting SymbolList will count from 1 to (end-start + 1) inclusive, and refer to the symbols start to end of the original sequence.
subList in interface SymbolListsubList in class AbstractSymbolListstart - the first symbol of the new SymbolListend - the last symbol (inclusive) of the new SymbolList
public String subStr(int start,
int end)
SymbolListThis should use the same rules as seqString.
subStr in interface SymbolListsubStr in class AbstractSymbolListstart - the first symbol to includeend - the last symbol to include
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||