public class NumericDataType extends SimpleDataType
DataType.Utils| Modifier and Type | Field and Description |
|---|---|
static DataType |
DEFAULT_INSTANCE |
AMINO_ACID_DESCRIPTION, AMINOACIDS, CODON_DESCRIPTION, CODONS, GAP_BALANCED, GAP_BALANCED_DESCRIPTION, IUPAC_NUCELOTIDES_DESCRIPTION, IUPACNUCLEOTIDES, NUCLEOTIDE_DESCRIPTION, NUCLEOTIDES, NUMERIC, PRIMARY_SUGGESTED_GAP_CHARACTER, SUGGESTED_GAP_CHARACTERS, SUGGESTED_GAP_STATE, SUGGESTED_UNKNOWN_STATE, TWO_STATE_DESCRIPTION, TWOSTATES, UNKNOWN, UNKNOWN_CHARACTER, UNKNOWN_TLA| Constructor and Description |
|---|
NumericDataType() |
NumericDataType(int numberOfStates) |
| Modifier and Type | Method and Description |
|---|---|
protected char |
getCharImpl(int state)
Get character corresponding to a given state
|
java.lang.String |
getDescription()
String describing the data type
|
char |
getNumericCharFromNumericIndex(int index)
Returns a unique ascii character for any given numeric size
|
int |
getNumericIndexFromNumericChar(char c)
Returns numeric index (size) from a unique ascii character
|
int |
getNumStates()
get number of unique states
|
protected int |
getStateImpl(char c)
get state corresponding to a character
|
int |
getTypeID()
Get numerical code describing the data type
|
protected boolean |
isUnknownStateImpl(int state)
For subclasses to handle, without regard for gaps
|
getAmbiguousVersion, getChar, getPreferredChar, getPreferredCharImpl, getRecommendedGapState, getRecommendedUnknownState, getState, hasGap, isAmbiguous, isGapChar, isGapState, isUnknownChar, isUnknownState, toStringpublic static final DataType DEFAULT_INSTANCE
public NumericDataType()
public NumericDataType(int numberOfStates)
public int getNumStates()
DataTypeprotected boolean isUnknownStateImpl(int state)
SimpleDataTypeisUnknownStateImpl in class SimpleDataTypeprotected int getStateImpl(char c)
getStateImpl in class SimpleDataTypec - characterprotected char getCharImpl(int state)
getCharImpl in class SimpleDataTypepublic final char getNumericCharFromNumericIndex(int index)
public final int getNumericIndexFromNumericChar(char c)
public java.lang.String getDescription()
public int getTypeID()