mobios.type
Interface Symbol
- All Superinterfaces:
- Externalizable, Serializable
- All Known Implementing Classes:
- DNA.DNASymbol, Peptide.AminoAcid, RNA.RNASymbol
public interface Symbol
- extends Externalizable
Interface Symbol
is implemented for the characters of a biosequence alphabet.
Since biosequences often have a long life in an external representation, Symbol
alphabets should have a similarly long life, suggesting that they be immutable and easily
serializable. In this package, this is accomplished by implementing Symbol
sets as
java enums. In addition, Sequence
s using Symbol
alphabets include a
static public final
Alphabet
instance, named ALPHABET
,
that references the enumeration. For example, class Peptide
contains the the class
Peptide.AminoAcid
that implements Symbol
for the common amino acids.
- Version:
- 2003.06.04
- Author:
- Jack, Rui Mao, Willard
getSymbol
Symbol getSymbol(String s)
- Parameters:
s
-
- Returns:
byteValue
byte byteValue()
- Returns:
stringValue
String stringValue()
- Returns:
(C) 2002 - 2006 The MoBIoS Group