|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpal.datatype.SimpleDataType
pal.datatype.NumericDataType
public class NumericDataType
This datatype stores numeric values. These can be any 2 byte integer between 0-65536. This can be used for SSR alleles or indel sizes.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface pal.datatype.DataType |
|---|
DataType.Utils |
| Field Summary | |
|---|---|
static DataType |
DEFAULT_INSTANCE
|
| Constructor Summary | |
|---|---|
NumericDataType()
|
|
NumericDataType(int numberOfStates)
|
|
| Method Summary | |
|---|---|
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 |
| 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 |
| Field Detail |
|---|
public static final DataType DEFAULT_INSTANCE
| Constructor Detail |
|---|
public NumericDataType()
public NumericDataType(int numberOfStates)
| Method Detail |
|---|
public int getNumStates()
DataType
protected boolean isUnknownStateImpl(int state)
SimpleDataType
isUnknownStateImpl in class SimpleDataTypeprotected int getStateImpl(char c)
getStateImpl in class SimpleDataTypec - character
protected 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||