|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpal.datatype.SimpleDataType
public abstract class SimpleDataType
interface for sequence data types
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface pal.datatype.DataType |
|---|
DataType.Utils |
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
SimpleDataType()
|
|
| Method Summary | |
|---|---|
AmbiguousDataType |
getAmbiguousVersion()
|
char |
getChar(int state)
Handles gap state and then passes on to getStateImpl |
protected abstract char |
getCharImpl(int state)
|
char |
getPreferredChar(char c)
Automatically handles Gaps for sub classes |
protected char |
getPreferredCharImpl(char c)
Can be overidden by subclasses. |
int |
getRecommendedGapState()
|
int |
getRecommendedUnknownState()
|
int |
getState(char c)
Handles gap char and then passes on to getStateImpl |
protected abstract int |
getStateImpl(char c)
For sub classes to implement main functionality of getState. |
boolean |
hasGap()
|
boolean |
isAmbiguous()
|
boolean |
isGapChar(char c)
|
boolean |
isGapState(int state)
|
boolean |
isUnknownChar(char c)
|
boolean |
isUnknownState(int state)
Checks if state is a gap state (then returns true), otherwise passes on to isUnknownStateImpl |
protected abstract boolean |
isUnknownStateImpl(int state)
For subclasses to handle, without regard for gaps |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface pal.datatype.DataType |
|---|
getDescription, getNumStates, getTypeID |
| Constructor Detail |
|---|
public SimpleDataType()
| Method Detail |
|---|
public final int getState(char c)
getState in interface DataTypec - character
public final char getChar(int state)
getChar in interface DataTypestate - state
return corresponding characterprotected abstract int getStateImpl(char c)
protected abstract char getCharImpl(int state)
public final char getPreferredChar(char c)
getPreferredChar in interface DataTypeprotected char getPreferredCharImpl(char c)
public final boolean isUnknownChar(char c)
isUnknownChar in interface DataTypepublic final boolean isUnknownState(int state)
isUnknownState in interface DataTypeprotected abstract boolean isUnknownStateImpl(int state)
public java.lang.String toString()
toString in class java.lang.Objectpublic int getRecommendedUnknownState()
getRecommendedUnknownState in interface DataTypepublic boolean isAmbiguous()
isAmbiguous in interface DataTypepublic AmbiguousDataType getAmbiguousVersion()
getAmbiguousVersion in interface DataTypepublic final boolean hasGap()
hasGap in interface DataTypepublic final boolean isGapChar(char c)
isGapChar in interface DataTypepublic final boolean isGapState(int state)
isGapState in interface DataTypepublic final int getRecommendedGapState()
getRecommendedGapState in interface DataType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||