|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.biojava.bio.symbol.SimpleSymbol
A no-frills implementation of a symbol.
Constructor Summary | |
SimpleSymbol(char token,
java.lang.String name,
Alphabet matches,
Annotation annotation)
Create a new SimpleSymbol. |
Method Summary | |
Annotation |
getAnnotation()
Should return the associated annotation object. |
Alphabet |
getMatches()
The alphabet containing the symbols matched by this ambiguity symbol. |
java.lang.String |
getName()
The long name for the symbol. |
char |
getToken()
The token for the symbol. |
void |
setName(java.lang.String name)
Assign a name to the symbol |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public SimpleSymbol(char token, java.lang.String name, Alphabet matches, Annotation annotation)
token
- the char to represent this symbol when sequences are
stringifiedname
- the long namematches
- the Alphabet of symbols that this symbol can matchannotation
- the annotationMethod Detail |
public Annotation getAnnotation()
public char getToken()
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name you wish to give this symbolpublic Alphabet getMatches()
This alphabet contains all of, and only, the symbols matched by this symbol. For example, the symbol representing the DNA ambiguity code for W would contain the symbol for A and T from the DNA alphabet.
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |