de.jstacs.algorithms.optimization.termination
Class TimeCondition.TimeConditionParameterSet
java.lang.Object
de.jstacs.parameters.ParameterSet
de.jstacs.parameters.InstanceParameterSet
de.jstacs.algorithms.optimization.termination.AbstractTerminationCondition.AbstractTerminationConditionParameterSet
de.jstacs.algorithms.optimization.termination.TimeCondition.TimeConditionParameterSet
- All Implemented Interfaces:
- GalaxyConvertible, RangeIterator, Storable, Cloneable
- Enclosing class:
- TimeCondition
public static class TimeCondition.TimeConditionParameterSet
- extends AbstractTerminationCondition.AbstractTerminationConditionParameterSet
This class implements the parameter set for a TimeCondition.
- Author:
- Jens Keilwagen
| 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 |
TimeCondition.TimeConditionParameterSet
public TimeCondition.TimeConditionParameterSet()
- This constructor creates an empty parameter set.
TimeCondition.TimeConditionParameterSet
public TimeCondition.TimeConditionParameterSet(StringBuffer xml)
throws NonParsableException
- The standard constructor for the interface
Storable.
Constructs an TimeCondition.TimeConditionParameterSet out of an XML representation.
- Parameters:
xml - the XML representation as StringBuffer
- Throws:
NonParsableException - if the TimeCondition.TimeConditionParameterSet could not be
reconstructed out of the StringBuffer
representation
TimeCondition.TimeConditionParameterSet
public TimeCondition.TimeConditionParameterSet(double seconds)
throws IllegalArgumentException,
SimpleParameter.IllegalValueException
- This constructor creates a filled instance of a parameters set.
- Parameters:
seconds - the number of seconds until stopping the algorithm
- Throws:
IllegalArgumentException - if parameter can not be set
SimpleParameter.IllegalValueException - if parameter can not be set
getInstanceComment
public String getInstanceComment()
- Description copied from class:
InstanceParameterSet
- Returns a comment (a textual description) of the class that can be
constructed using this
ParameterSet.
- Specified by:
getInstanceComment in class InstanceParameterSet
- Returns:
- the comment of the class
getInstanceName
public String getInstanceName()
- Description copied from class:
InstanceParameterSet
- Returns the name of an instance of the class that can be constructed
using this
ParameterSet.
- Specified by:
getInstanceName in class InstanceParameterSet
- Returns:
- the name of the class
loadParameters
protected void loadParameters()
throws Exception
- Description copied from class:
ParameterSet
- Loads the parameters for this
ParameterSet. 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.
- Specified by:
loadParameters in class ParameterSet
- Throws:
Exception - if the parameters could not be loaded- See Also:
Parameter,
ParameterSet.parameters,
ParameterSet.initParameterList(),
ParameterSet.initParameterList(int)