|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jstacs.parameters.ParameterSet
de.jstacs.data.Alphabet.AlphabetParameterSet
de.jstacs.data.alphabets.DiscreteAlphabet.DiscreteAlphabetParameterSet
public static class DiscreteAlphabet.DiscreteAlphabetParameterSet
Class for the ParameterSet
of a DiscreteAlphabet
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class de.jstacs.parameters.ParameterSet |
---|
ParameterSet.ParameterList |
Field Summary |
---|
Fields inherited from class de.jstacs.parameters.ParameterSet |
---|
alternativeInstanceClass, errorMessage, parameters, parent, ranged |
Constructor Summary | |
---|---|
DiscreteAlphabet.DiscreteAlphabetParameterSet()
Creates a new DiscreteAlphabetParameterSet with empty values. |
|
DiscreteAlphabet.DiscreteAlphabetParameterSet(char[] alphabet,
boolean caseInsensitive)
Creates a new DiscreteAlphabetParameterSet from an array of symbols. |
|
DiscreteAlphabet.DiscreteAlphabetParameterSet(String[] alphabet,
boolean caseInsensitive)
Creates a new DiscreteAlphabetParameterSet from an array of symbols. |
|
DiscreteAlphabet.DiscreteAlphabetParameterSet(StringBuffer representation)
Creates a new DiscreteAlphabetParameterSet from its XML-representation. |
Method Summary | |
---|---|
String |
getInstanceComment()
Returns a comment (a textual description) of the class that can be constructed using this ParameterSet . |
protected void |
loadParameters()
Loads the parameters for this ParameterSet . |
Methods inherited from class de.jstacs.data.Alphabet.AlphabetParameterSet |
---|
clone, getInstanceName |
Methods inherited from class de.jstacs.parameters.ParameterSet |
---|
fromXML, getErrorMessage, getId, getInstance, getInstanceClass, getNumberOfParameters, getNumberOfValues, getParameterAt, getParent, hasDefaultOrIsSet, initParameterList, initParameterList, isAtomic, isRanged, makeRanged, next, parametersLoaded, propagateId, recieveId, replaceParametersWithRangedInstance, reset, resetToFirst, setAlternativeInstanceClass, setParent, simplify, toXML, valuesToString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DiscreteAlphabet.DiscreteAlphabetParameterSet()
DiscreteAlphabetParameterSet
with empty values.
public DiscreteAlphabet.DiscreteAlphabetParameterSet(String[] alphabet, boolean caseInsensitive) throws Exception
DiscreteAlphabetParameterSet
from an array of symbols.
alphabet
- the symbolscaseInsensitive
- true
is the DiscreteAlphabet
shall be case-insensitive
Exception
- is thrown if the parameters could not be createdpublic DiscreteAlphabet.DiscreteAlphabetParameterSet(char[] alphabet, boolean caseInsensitive) throws Exception
DiscreteAlphabetParameterSet
from an array of symbols.
alphabet
- the symbolscaseInsensitive
- true
is the DiscreteAlphabet
shall be case-insensitive
Exception
- is thrown if the parameters could not be createdpublic DiscreteAlphabet.DiscreteAlphabetParameterSet(StringBuffer representation) throws NonParsableException
DiscreteAlphabetParameterSet
from its XML-representation.
representation
- the XML-representation
NonParsableException
- is thrown if representation
could not be parsedMethod Detail |
---|
protected void loadParameters() throws Exception
ParameterSet
ParameterSet
. This is in
most cases done by simply creating a new ArrayList<Parameter>
for the
field parameters/code>
and filling it with instances of subclasses of Parameter
- Specified by:
loadParameters
in class ParameterSet
- Throws:
Exception
- an Exception
is thrown if the parameters could not be loaded- See Also:
ParameterSet.parameters
,
Parameter
public String getInstanceComment()
ParameterSet
ParameterSet
.
getInstanceComment
in class ParameterSet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |