|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.parameters.ParameterSet
de.jstacs.parameters.InstanceParameterSet
de.jstacs.data.AlphabetContainerParameterSet
public class AlphabetContainerParameterSet
Class for the AlphabetContainerParameterSet.SectionDefinedAlphabetParameterSet of an AlphabetContainer.
| Nested Class Summary | |
|---|---|
static class |
AlphabetContainerParameterSet.AlphabetArrayParameterSet
Class for the parameters of an array of Alphabets of defined
length. |
static class |
AlphabetContainerParameterSet.SectionDefinedAlphabetParameterSet
Class for the parameter set of an array of Alphabets where each
Alphabet may be used for one or more sections of positions. |
| Nested classes/interfaces inherited from class de.jstacs.parameters.ParameterSet |
|---|
ParameterSet.ParameterList |
| Field Summary |
|---|
| Fields inherited from class de.jstacs.parameters.ParameterSet |
|---|
errorMessage, parameters, parent, ranged |
| Constructor Summary | |
|---|---|
AlphabetContainerParameterSet(Alphabet alph)
Creates a new AlphabetContainerParameterSet of a simple
AlphabetContainer from a single Alphabet. |
|
AlphabetContainerParameterSet(Alphabet[] alphabets)
Creates a new AlphabetContainerParameterSet from an array of
Alphabets. |
|
AlphabetContainerParameterSet(Alphabet[] alphabets,
int[] indexes)
Creates a new AlphabetContainerParameterSet from an array of
Alphabets and an array of ints defining the
Alphabet index i in alphabets
that is used for position i. |
|
AlphabetContainerParameterSet(AlphabetContainer.AlphabetContainerType type,
boolean simple)
Creates a new AlphabetContainerParameterSet of an
AlphabetContainer with AlphabetContainer.AlphabetContainerType
type. |
|
AlphabetContainerParameterSet(StringBuffer representation)
The standard constructor for the interface Storable. |
|
| Method Summary | |
|---|---|
AlphabetContainerParameterSet |
clone()
Creates a full clone (deep copy) of this ParameterSet. |
protected void |
fromXML(StringBuffer representation)
Parses the instance fields of a ParameterSet from the XML
representation as returned by ParameterSet.toXML(). |
String |
getInstanceComment()
Returns a comment (a textual description) of the class that can be constructed using this ParameterSet. |
String |
getInstanceName()
Returns the name of an instance of the class that can be constructed using this ParameterSet. |
int |
getPossibleLength()
Returns the length of the AlphabetContainer that can be instantiated using
this AlphabetContainerParameterSet.SectionDefinedAlphabetParameterSet. |
boolean |
isDiscrete()
Indicates if all positions use DiscreteAlphabet.DiscreteAlphabetParameterSet, i.e. |
boolean |
isSimple()
Indicates if all positions use the same Alphabet, i.e. if the
corresponding AlphabetContainer is simple. |
protected void |
loadParameters()
Loads the parameters for this ParameterSet. |
StringBuffer |
toXML()
This method returns an XML representation as StringBuffer of an
instance of the implementing class. |
| Methods inherited from class de.jstacs.parameters.InstanceParameterSet |
|---|
getInstance, getInstanceClass |
| Methods inherited from class de.jstacs.parameters.ParameterSet |
|---|
fromGalaxy, getErrorMessage, getId, getIndex, getNumberOfParameters, getNumberOfValues, getParameterAt, getParent, hasDefaultOrIsSet, initParameterList, initParameterList, isAtomic, isRanged, makeRanged, next, parametersLoaded, propagateId, recieveId, replaceParametersWithRangedInstance, reset, resetToFirst, setParent, simplify, toGalaxy, valuesToString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AlphabetContainerParameterSet(AlphabetContainer.AlphabetContainerType type,
boolean simple)
AlphabetContainerParameterSet of an
AlphabetContainer with AlphabetContainer.AlphabetContainerType
type. If simple is true, only a
single Alphabet is expected.
type - the type of the alphabet(s)simple - indicates if there shall be only a single AlphabetAlphabetContainer.AlphabetContainerType,
InstanceParameterSet.InstanceParameterSet(Class)
public AlphabetContainerParameterSet(StringBuffer representation)
throws NonParsableException
Storable.
Creates a new AlphabetContainerParameterSet out of its XML
representation.
representation - the XML representation as StringBuffer
NonParsableException - if the AlphabetContainerParameterSet could not be
reconstructed out of the XML representation (the
StringBuffer representation could not be
parsed)InstanceParameterSet.InstanceParameterSet(StringBuffer),
Storable
public AlphabetContainerParameterSet(Alphabet alph)
throws Exception
AlphabetContainerParameterSet of a simple
AlphabetContainer from a single Alphabet.
alph - the Alphabet
Exception - if an error occurred during the creation of the appropriate
parametersInstanceParameterSet.InstanceParameterSet(Class)
public AlphabetContainerParameterSet(Alphabet[] alphabets)
throws Exception
AlphabetContainerParameterSet from an array of
Alphabets.
alphabets - the array of Alphabets
Exception - if an error occurred during the creation of the appropriate
parametersInstanceParameterSet.InstanceParameterSet(Class)
public AlphabetContainerParameterSet(Alphabet[] alphabets,
int[] indexes)
throws Exception
AlphabetContainerParameterSet from an array of
Alphabets and an array of ints defining the
Alphabet index i in alphabets
that is used for position i.
alphabets - the Alphabetsindexes - the indexes
Exception - if an error occurred during the creation of the appropriate
parametersInstanceParameterSet.InstanceParameterSet(Class)| Method Detail |
|---|
public AlphabetContainerParameterSet clone()
throws CloneNotSupportedException
ParameterSetParameterSet. As a
convenience-method the user can use
fillWithStandardFieldsForClone(ParameterSet) on a newly
created instance of a subclass of ParameterSet to obtain a
clone/copy of all standard member variables (those already defined in
ParameterSet) in the passed ParameterSet. Using this
method, the cloning process becomes merely three-step:ParameterSet, most
likely with an empty constructor or the one taking just the instance
class.
this.fillWithStandardFieldsForClone on this
instance.
Object's method
Object.clone().
clone in class ParameterSetParameterSet
CloneNotSupportedExceptionpublic boolean isDiscrete()
DiscreteAlphabet.DiscreteAlphabetParameterSet, i.e.
if all Alphabets of the corresponding AlphabetContainer
are discrete.
true if all positions are discrete,
false otherwisepublic boolean isSimple()
Alphabet, i.e. if the
corresponding AlphabetContainer is simple.
true if all positions use the same Alphabet,
false otherwisepublic StringBuffer toXML()
StorableStringBuffer of an
instance of the implementing class.
toXML in interface StorabletoXML in class InstanceParameterSet
protected void fromXML(StringBuffer representation)
throws NonParsableException
ParameterSetParameterSet from the XML
representation as returned by ParameterSet.toXML().
fromXML in class InstanceParameterSetrepresentation - the XML representation as StringBuffer
NonParsableException - if the XML code could not be parsedParameterSet.toXML()public int getPossibleLength()
AlphabetContainer that can be instantiated using
this AlphabetContainerParameterSet.SectionDefinedAlphabetParameterSet.
protected void loadParameters()
throws Exception
ParameterSetParameterSet. This is in most cases
done by calling ParameterSet.initParameterList() or
ParameterSet.initParameterList(int) to initialize
ParameterSet.parameters and afterwards filling
ParameterSet.parameters with instances of subclasses of
Parameter.
loadParameters in class ParameterSetException - if the parameters could not be loadedParameter,
ParameterSet.parameters,
ParameterSet.initParameterList(),
ParameterSet.initParameterList(int)public String getInstanceName()
InstanceParameterSetParameterSet.
getInstanceName in class InstanceParameterSetpublic String getInstanceComment()
InstanceParameterSetParameterSet.
getInstanceComment in class InstanceParameterSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||