java.io.Serializable
, DataType
public class NumericDataType extends SimpleDataType
DataType.Utils
Modifier and Type | Field | 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 | Description |
---|---|
NumericDataType() |
|
NumericDataType(int numberOfStates) |
Modifier and Type | Method | 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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAmbiguousVersion, getChar, getPreferredChar, getPreferredCharImpl, getRecommendedGapState, getRecommendedUnknownState, getState, hasGap, isAmbiguous, isGapChar, isGapState, isUnknownChar, isUnknownState, toString
public static final DataType DEFAULT_INSTANCE
public NumericDataType()
public NumericDataType(int numberOfStates)
public int getNumStates()
DataType
protected boolean isUnknownStateImpl(int state)
SimpleDataType
isUnknownStateImpl
in class SimpleDataType
protected int getStateImpl(char c)
getStateImpl
in class SimpleDataType
c
- characterprotected char getCharImpl(int state)
getCharImpl
in class SimpleDataType
public final char getNumericCharFromNumericIndex(int index)
public final int getNumericIndexFromNumericChar(char c)
public java.lang.String getDescription()
public int getTypeID()