public abstract class Alphabet extends Object implements Storable, InstantiableFromParameterSet, Comparable<Alphabet>
Modifier and Type | Class and Description |
---|---|
static class |
Alphabet.AlphabetParameterSet<T extends Alphabet>
The super class for the
InstanceParameterSet of any
Alphabet . |
Constructor and Description |
---|
Alphabet() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkConsistency(Alphabet a)
|
abstract InstanceParameterSet<? extends Alphabet> |
getCurrentParameterSet()
Returns the
InstanceParameterSet that has been used to
instantiate the current instance of the implementing class. |
abstract double |
getMin()
Returns the minimal value of the
Alphabet . |
abstract double |
length()
Returns the length of the
Alphabet . |
abstract String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
compareTo
public final boolean checkConsistency(Alphabet a)
Alphabet
is consistent consistent with another
Alphabet
, i.e. both Alphabet
s use the same symbols.a
- the second Alphabet
true
if the Alphabet
s are consistent,
false
otherwiseComparable.compareTo(Object)
public abstract double getMin()
Alphabet
.Alphabet
public abstract double length()
Alphabet
.Alphabet
public abstract InstanceParameterSet<? extends Alphabet> getCurrentParameterSet() throws Exception
InstantiableFromParameterSet
InstanceParameterSet
that has been used to
instantiate the current instance of the implementing class. If the
current instance was not created using an InstanceParameterSet
,
an equivalent InstanceParameterSet
should be returned, so that an
instance created using this InstanceParameterSet
would be in
principle equal to the current instance.getCurrentParameterSet
in interface InstantiableFromParameterSet
InstanceParameterSet
Exception
- if the InstanceParameterSet
could not be returned