public final class DNAAlphabet extends ComplementableDiscreteAlphabet implements Singleton
| Modifier and Type | Class and Description |
|---|---|
static class |
DNAAlphabet.DNAAlphabetParameterSet
The parameter set for a
DNAAlphabet. |
DiscreteAlphabet.DiscreteAlphabetParameterSetAlphabet.AlphabetParameterSet<T extends Alphabet>Singleton.SingletonHandler| Modifier and Type | Field and Description |
|---|---|
static DNAAlphabet |
SINGLETON
The only instance of this class.
|
alphabet, caseInsensitive, parameters| Modifier and Type | Method and Description |
|---|---|
int |
getCode(String symbol)
Returns the code of a given symbol.
|
int |
getComplementaryCode(int code)
This method returns the code of the symbol that is the complement of the
symbol encoded by
code. |
compareTo, getCurrentParameterSet, getMaximalSymbolLength, getMin, getSymbolAt, ignoresCase, isEncodedSymbol, isSymbol, length, toString, toXMLcheckConsistencypublic static final DNAAlphabet SINGLETON
Singletonpublic int getComplementaryCode(int code)
ComplementableDiscreteAlphabetcode.getComplementaryCode in class ComplementableDiscreteAlphabetcode - the encoded symbolpublic final int getCode(String symbol) throws WrongAlphabetException
DiscreteAlphabetgetCode in class DiscreteAlphabetsymbol - the given symbolWrongAlphabetException - if the symbol is not defined in the alphabet