public class StateRemover extends SimpleDataType implements java.io.Serializable
DataType.UtilsAMINO_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 |
|---|
StateRemover(DataType toAdjust,
int[] statesToRemove)
A translation array -> originalToAdjusted_["adjusted State"] = "original state"
|
| Modifier and Type | Method and Description |
|---|---|
protected char |
getCharImpl(int state)
Get character corresponding to a given state
|
java.lang.String |
getDescription()
description of data type
|
int |
getNumStates()
get number of unique states
|
protected int |
getStateImpl(char c)
For sub classes to implement main functionality of getState.
|
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 StateRemover(DataType toAdjust, int[] statesToRemove)
public int getNumStates()
DataTypegetNumStates in interface DataTypeprotected final boolean isUnknownStateImpl(int state)
SimpleDataTypeisUnknownStateImpl in class SimpleDataTypeprotected int getStateImpl(char c)
SimpleDataTypegetStateImpl in class SimpleDataTypeprotected char getCharImpl(int state)
getCharImpl in class SimpleDataTypepublic java.lang.String getDescription()
DataTypegetDescription in interface DataType