Package jebl.evolution.sequences
Class NucleotideState
java.lang.Object
jebl.evolution.sequences.State
jebl.evolution.sequences.NucleotideState
- All Implemented Interfaces:
Comparable
- Version:
- $Id: NucleotideState.java 924 2008-06-18 05:58:28Z matt_kearse $
- Author:
- Andrew Rambaut, Alexei Drummond
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionint
getType()
boolean
isGap()
boolean
possiblyEqual
(State other) Methods inherited from class jebl.evolution.sequences.State
fractionEqual, getCanonicalStates, getCode, getFullName, getIndex, getName, isAmbiguous, toString
-
Field Details
-
bitCode
public final byte bitCode
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable
- Overrides:
compareTo
in classState
-
possiblyEqual
- Overrides:
possiblyEqual
in classState
- Parameters:
other
- another state to check for the equality with.- Returns:
- true if the other state is or possibly is equal to this state, taking ambiguities into account, i.e. if the ambiguity sets of this and the other state intersect.
-
isGap
public boolean isGap() -
getType
-