|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.biojava.utils.AbstractChangeable
|
+--org.biojava.bio.symbol.AbstractAlphabet
|
+--org.biojava.bio.symbol.SimpleAlphabet
A simple no-frills implementation of the FiniteAlphabet interface.
| Nested Class Summary |
| Nested classes inherited from class org.biojava.bio.Annotatable |
Annotatable.AnnotationForwarder |
| Field Summary | |
protected Annotatable.AnnotationForwarder |
annotationForwarder
|
| Fields inherited from interface org.biojava.bio.symbol.Alphabet |
EMPTY_ALPHABET, PARSERS, SYMBOLS |
| Fields inherited from interface org.biojava.bio.Annotatable |
ANNOTATION |
| Constructor Summary | |
SimpleAlphabet()
|
|
SimpleAlphabet(java.util.Set symbols)
|
|
SimpleAlphabet(java.util.Set symbols,
java.lang.String name)
|
|
SimpleAlphabet(java.lang.String name)
|
|
| Method Summary | |
protected void |
addSymbolImpl(AtomicSymbol s)
|
protected boolean |
containsImpl(AtomicSymbol s)
|
java.util.List |
getAlphabets()
Return an ordered List of the alphabets which make up a compound alphabet. |
Annotation |
getAnnotation()
Should return the associated annotation object. |
protected ChangeSupport |
getChangeSupport(ChangeType ct)
Called to retrieve the ChangeSupport for this object |
java.lang.String |
getName()
Get the name of the alphabet. |
protected AtomicSymbol |
getSymbolImpl(java.util.List symL)
|
java.util.Iterator |
iterator()
Retrieve an Iterator over the Symbols in this FiniteAlphabet. |
void |
removeSymbol(Symbol s)
Remove a symbol from this alphabet. |
void |
setName(java.lang.String name)
Assign a name to the alphabet |
int |
size()
The number of symbols in the alphabet. |
| Methods inherited from class org.biojava.bio.symbol.AbstractAlphabet |
addSymbol, contains, getAmbiguity, getAmbiguityImpl, getGapSymbol, getSymbol, getTokenization, putTokenization, readResolve, toString, validate |
| Methods inherited from class org.biojava.utils.AbstractChangeable |
addChangeListener, addChangeListener, generateChangeSupport, hasListeners, isUnchanging, removeChangeListener, removeChangeListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.biojava.utils.Changeable |
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener |
| Field Detail |
protected transient Annotatable.AnnotationForwarder annotationForwarder
| Constructor Detail |
public SimpleAlphabet()
public SimpleAlphabet(java.util.Set symbols)
public SimpleAlphabet(java.lang.String name)
public SimpleAlphabet(java.util.Set symbols,
java.lang.String name)
| Method Detail |
public java.util.Iterator iterator()
FiniteAlphabetEach AtomicSymbol as for which this.contains(as) is true will be returned exactly once by this iterator in no specified order.
iterator in interface FiniteAlphabetpublic java.lang.String getName()
Alphabet
getName in interface Alphabetpublic void setName(java.lang.String name)
name - the name you wish to give this alphabetpublic Annotation getAnnotation()
Annotatable
getAnnotation in interface Annotatablepublic int size()
FiniteAlphabet
size in interface FiniteAlphabetprotected boolean containsImpl(AtomicSymbol s)
containsImpl in class AbstractAlphabet
protected void addSymbolImpl(AtomicSymbol s)
throws IllegalSymbolException,
ChangeVetoException
addSymbolImpl in class AbstractAlphabetIllegalSymbolException
ChangeVetoException
public void removeSymbol(Symbol s)
throws IllegalSymbolException
FiniteAlphabetIf the symbol matches multiple AtomicSymbols, then each matching symbol it will be removed.
removeSymbol in interface FiniteAlphabets - the Symbol to removeintGot
IllegalSymbolException - if the symbol is null, or if for any reason
it can't be removedpublic java.util.List getAlphabets()
Alphabet
getAlphabets in interface Alphabet
protected AtomicSymbol getSymbolImpl(java.util.List symL)
throws IllegalSymbolException
getSymbolImpl in class AbstractAlphabetIllegalSymbolExceptionprotected ChangeSupport getChangeSupport(ChangeType ct)
AbstractChangeable
getChangeSupport in class AbstractChangeable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||