|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjbil.sequence.AlphabetRegistry
public class AlphabetRegistry
Central (singleton) registry of alphabets. Alphabets should be created once and reused "system-wide" to save resources and also to allow for consistent sequence comparisons. This class centralises references to available alphabets.
Method Summary | |
---|---|
Alphabet |
getAlphabet(java.lang.String alphabetName)
Gets the alphabet associated to a given name. |
DNAAlphabet |
getDNAAlphabet()
|
ExtendedDNAAlphabet |
getExtendedDNAAlphabet()
|
static AlphabetRegistry |
getInstance()
|
Alphabet |
registerAlphabet(java.lang.String name,
Alphabet alphabet)
Registers an alphabet, associating it to unique name. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static AlphabetRegistry getInstance()
public Alphabet getAlphabet(java.lang.String alphabetName)
alphabetName
- The name of the alphabet.public Alphabet registerAlphabet(java.lang.String name, Alphabet alphabet)
name
- The name of the alphabet.alphabet
- The alphabet to be registered.
public DNAAlphabet getDNAAlphabet()
public ExtendedDNAAlphabet getExtendedDNAAlphabet()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |