|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jstacs.data.alphabets.Alphabet
public abstract class Alphabet
Class for a set of symbols, i.e. an Alphabet
. All Alphabet
s
are immutable.
Nested Class Summary | |
---|---|
static class |
Alphabet.AlphabetParameterSet<T extends Alphabet>
The super class for the InstanceParameterSet of any
Alphabet . |
Constructor Summary | |
---|---|
Alphabet()
|
Method Summary | |
---|---|
boolean |
checkConsistency(Alphabet a)
Checks if this Alphabet is consistent consistent with another
Alphabet , i.e. both Alphabet s use the same symbols. |
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.jstacs.Storable |
---|
toXML |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Constructor Detail |
---|
public Alphabet()
Method Detail |
---|
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 String toString()
toString
in class Object
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |