|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpal.datatype.SimpleDataType
pal.datatype.StateRemover
public class StateRemover
A standard data type, but with characters removed
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface pal.datatype.DataType |
|---|
DataType.Utils |
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
StateRemover(DataType toAdjust,
int[] statesToRemove)
A translation array -> originalToAdjusted_["adjusted State"] = "original state" |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class pal.datatype.SimpleDataType |
|---|
getAmbiguousVersion, getChar, getPreferredChar, getPreferredCharImpl, getRecommendedGapState, getRecommendedUnknownState, getState, hasGap, isAmbiguous, isGapChar, isGapState, isUnknownChar, isUnknownState, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StateRemover(DataType toAdjust,
int[] statesToRemove)
| Method Detail |
|---|
public int getNumStates()
DataType
getNumStates in interface DataTypeprotected final boolean isUnknownStateImpl(int state)
SimpleDataType
isUnknownStateImpl in class SimpleDataTypeprotected int getStateImpl(char c)
SimpleDataType
getStateImpl in class SimpleDataTypeprotected char getCharImpl(int state)
getCharImpl in class SimpleDataTypepublic java.lang.String getDescription()
DataType
getDescription in interface DataTypepublic int getTypeID()
DataType
getTypeID in interface DataType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||