|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--pal.datatype.SimpleDataType | +--pal.datatype.TwoStates
implements DataType for two-state data
Fields inherited from interface pal.datatype.DataType |
AMINO_ACID_DESCRIPTION, AMINOACIDS, CODON_DESCRIPTION, CODONS, GENERALIZED_CODONS_DESCRIPTION, GENERALIZEDCODONS, IUPAC_NUCELOTIDES_DESCRIPTION, IUPACNUCLEOTIDES, NUCLEOTIDE_DESCRIPTION, NUCLEOTIDES, TWO_STATE_DESCRIPTION, TWOSTATES, UNKNOWN_CHARACTER |
Constructor Summary | |
TwoStates()
|
Method Summary | |
char |
getChar(int state)
get character corresponding to a given state |
java.lang.String |
getDescription()
description of data type |
int |
getNumStates()
get number of unique states |
int |
getState(char c)
get state corresponding to a character |
int |
getTypeID()
get numerical code describing the data type |
boolean |
isUnknownState(int state)
|
Methods inherited from class pal.datatype.SimpleDataType |
getNumSimpleStates, getSimpleStates, isAmbiguousState, isGapChar, isUnknownChar |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TwoStates()
Method Detail |
public int getNumStates()
DataType
pal.datatype.DataType
public int getState(char c)
DataType
pal.datatype.DataType
c
- characterpublic boolean isUnknownState(int state)
isUnknownState
in class SimpleDataType
pal.datatype.DataType
public char getChar(int state)
DataType
pal.datatype.DataType
state
- state
return corresponding characterpublic java.lang.String getDescription()
DataType
pal.datatype.DataType
public int getTypeID()
DataType
pal.datatype.DataType
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |