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.DiscreteAlphabetParameterSet
Alphabet.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, toXML
checkConsistency
public static final DNAAlphabet SINGLETON
Singleton
public int getComplementaryCode(int code)
ComplementableDiscreteAlphabet
code
.getComplementaryCode
in class ComplementableDiscreteAlphabet
code
- the encoded symbolpublic final int getCode(String symbol) throws WrongAlphabetException
DiscreteAlphabet
getCode
in class DiscreteAlphabet
symbol
- the given symbolWrongAlphabetException
- if the symbol is not defined in the alphabet