de.jstacs.data.alphabets
Class ContinuousAlphabet.ContinuousAlphabetParameterSet

java.lang.Object
  extended by de.jstacs.parameters.ParameterSet
      extended by de.jstacs.data.Alphabet.AlphabetParameterSet
          extended by de.jstacs.data.alphabets.ContinuousAlphabet.ContinuousAlphabetParameterSet
All Implemented Interfaces:
RangeIterator, Storable, Cloneable
Enclosing class:
ContinuousAlphabet

public static class ContinuousAlphabet.ContinuousAlphabetParameterSet
extends Alphabet.AlphabetParameterSet

Class for the ParameterSet of a ContinuousAlphabet.

Author:
Jan Grau

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
ContinuousAlphabet.ContinuousAlphabetParameterSet()
          Creates a new ContinuousAlphabetParameterSet with empty values.
ContinuousAlphabet.ContinuousAlphabetParameterSet(double min, double max)
          Creates a new ContinuousAlphabetParameterSet from a minimum and a maximum value
ContinuousAlphabet.ContinuousAlphabetParameterSet(StringBuffer representation)
          Creates a new ContinousParameterSet 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

ContinuousAlphabet.ContinuousAlphabetParameterSet

public ContinuousAlphabet.ContinuousAlphabetParameterSet()
Creates a new ContinuousAlphabetParameterSet with empty values.


ContinuousAlphabet.ContinuousAlphabetParameterSet

public ContinuousAlphabet.ContinuousAlphabetParameterSet(double min,
                                                         double max)
                                                  throws Exception
Creates a new ContinuousAlphabetParameterSet from a minimum and a maximum value

Parameters:
min - the minimum
max - the maximum
Throws:
Exception - is thrown if minimum or maximum could not be set

ContinuousAlphabet.ContinuousAlphabetParameterSet

public ContinuousAlphabet.ContinuousAlphabetParameterSet(StringBuffer representation)
                                                  throws NonParsableException
Creates a new ContinousParameterSet from its XML-representation.

Parameters:
representation - the XML-representation
Throws:
NonParsableException - is thrown if representation could not be parsed
Method Detail

loadParameters

protected void loadParameters()
                       throws Exception
Description copied from class: ParameterSet
Loads the parameters for this 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

getInstanceComment

public String getInstanceComment()
Description copied from class: ParameterSet
Returns a comment (a textual description) of the class that can be constructed using this ParameterSet.

Specified by:
getInstanceComment in class ParameterSet
Returns:
the comment