|
||||||||||
| 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.ExpandableParameterSet
de.jstacs.parameters.ArrayParameterSet
de.jstacs.data.AlphabetContainerParameterSet.AlphabetArrayParameterSet
public static class AlphabetContainerParameterSet.AlphabetArrayParameterSet
Class for the parameters of an array of Alphabets of defined length.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class de.jstacs.parameters.ParameterSet |
|---|
ParameterSet.ParameterList |
| Field Summary |
|---|
| Fields inherited from class de.jstacs.parameters.ExpandableParameterSet |
|---|
commentTemplate, nameTemplate, template |
| Fields inherited from class de.jstacs.parameters.ParameterSet |
|---|
alternativeInstanceClass, errorMessage, parameters, parent, ranged |
| Constructor Summary | |
|---|---|
AlphabetContainerParameterSet.AlphabetArrayParameterSet(Alphabet[] alphabets,
boolean discrete)
Creates a new AlphabetArrayParameterSet from an array of Alphabets and the
information if all alphabets are discrete |
|
AlphabetContainerParameterSet.AlphabetArrayParameterSet(boolean discrete)
Creates a new AlphabetArrayParameterSet from the information if the array shall contain only
the parameters for discrete Alphabets. |
|
AlphabetContainerParameterSet.AlphabetArrayParameterSet(StringBuffer representation)
Creates a new AlphabetArrayParameterSet from its XML-representation. |
|
| Method Summary | |
|---|---|
AlphabetContainerParameterSet.AlphabetArrayParameterSet |
clone()
Creates a full clone (deep copy) of this ParameterSet. |
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. |
StringBuffer |
toXML()
This method returns an XML-representation of an instance of the implementing class. |
| Methods inherited from class de.jstacs.parameters.ArrayParameterSet |
|---|
getNumberOfParameters, getParameterAt, hasDefaultOrIsSet, loadParameters |
| Methods inherited from class de.jstacs.parameters.ExpandableParameterSet |
|---|
addParameterToSet, parameterRemovable, removeParameterFromSet, replaceContentWith, replaceParametersWithRangedInstance |
| Methods inherited from class de.jstacs.parameters.ParameterSet |
|---|
getErrorMessage, getId, getInstance, getInstanceClass, getNumberOfValues, getParent, initParameterList, initParameterList, isAtomic, isRanged, makeRanged, next, parametersLoaded, propagateId, recieveId, reset, resetToFirst, setAlternativeInstanceClass, setParent, simplify, valuesToString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AlphabetContainerParameterSet.AlphabetArrayParameterSet(boolean discrete)
throws Exception
AlphabetArrayParameterSet from the information if the array shall contain only
the parameters for discrete Alphabets.
discrete - true if only the parameters for disrete Alphabets shall be created
Exception - is thrown if the parameters could not be created
public AlphabetContainerParameterSet.AlphabetArrayParameterSet(StringBuffer representation)
throws NonParsableException
AlphabetArrayParameterSet from its XML-representation.
representation - the XML-representation
NonParsableException - is thrown if representation could not be parsed
public AlphabetContainerParameterSet.AlphabetArrayParameterSet(Alphabet[] alphabets,
boolean discrete)
throws Exception
AlphabetArrayParameterSet from an array of Alphabets and the
information if all alphabets are discrete
alphabets - the alphabetsdiscrete - is these are discrete
Exception - is thrown if the parameters could not be created| Method Detail |
|---|
public AlphabetContainerParameterSet.AlphabetArrayParameterSet 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 clone()
clone in class ExpandableParameterSetParameterSet
CloneNotSupportedExceptionpublic StringBuffer toXML()
Storable
toXML in interface StorabletoXML in class ArrayParameterSet
public void fromXML(StringBuffer representation)
throws NonParsableException
ParameterSetParameterSet from the XML-representation
as returned by ParameterSet.toXML().
fromXML in class ArrayParameterSetrepresentation - the XML-representation
NonParsableException - is thrown if the XML-code could not be parsedpublic String getInstanceName()
ParameterSetParameterSet.
getInstanceName in class ExpandableParameterSetpublic String getInstanceComment()
ParameterSetParameterSet.
getInstanceComment in class ExpandableParameterSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||