public abstract class State
extends java.lang.Object
implements java.lang.Comparable
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object o) |
double |
fractionEqual(State other)
Determine how much in common these potentially ambigous states have as a fraction between 0 and 1
2 non-ambiguous states will return 0.
|
java.util.Set<State> |
getCanonicalStates() |
java.lang.String |
getCode()
Returns the 1 letter code for this state.
|
java.lang.String |
getFullName()
A descriptive name for this state.
|
int |
getIndex() |
java.lang.String |
getName()
Deprecated.
you probably want to use
getFullName() or getCode(). |
boolean |
isAmbiguous() |
abstract boolean |
isGap() |
boolean |
possiblyEqual(State other) |
java.lang.String |
toString() |
public java.lang.String getCode()
public int getIndex()
public java.lang.String getFullName()
@Deprecated public java.lang.String getName()
getCode()getCode()getFullName()public boolean isAmbiguous()
public java.util.Set<State> getCanonicalStates()
public boolean possiblyEqual(State other)
other - another state to check for the quality with.public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic java.lang.String toString()
toString in class java.lang.Objectpublic abstract boolean isGap()
public double fractionEqual(State other)
other - another state to compare withhttp://code.google.com/p/jebl2/