|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.utilities.optionhandling.Option<T>
de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameter<T,Number>
de.lmu.ifi.dbs.elki.utilities.optionhandling.NumberParameter<Double>
de.lmu.ifi.dbs.elki.utilities.optionhandling.DoubleParameter
public class DoubleParameter
Parameter class for a parameter specifying a double value.
Field Summary |
---|
Fields inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameter |
---|
constraints, defaultValue, optionalParameter |
Fields inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.Option |
---|
name, shortDescription, value |
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debug |
Constructor Summary | |
---|---|
DoubleParameter(OptionID optionID)
Constructs a double parameter with the given optionID. |
|
DoubleParameter(OptionID optionID,
boolean optional)
Constructs a double parameter with the given optionID, and optional flag. |
|
DoubleParameter(OptionID optionID,
List<ParameterConstraint<Number>> cons)
Constructs a double parameter with the given optionID, and parameter constraints. |
|
DoubleParameter(OptionID optionID,
List<ParameterConstraint<Number>> cons,
boolean optional)
Constructs a double parameter with the given optionID, parameter constraints, and optional flag. |
|
DoubleParameter(OptionID optionID,
List<ParameterConstraint<Number>> cons,
Double defaultValue)
Constructs a double parameter with the given optionID, parameter constraints, and default value. |
|
DoubleParameter(OptionID optionID,
ParameterConstraint<Number> cons)
Constructs a double parameter with the given optionID, and parameter constraint. |
|
DoubleParameter(OptionID optionID,
ParameterConstraint<Number> cons,
boolean optional)
Constructs a double parameter with the given optionID, parameter constraint, and optional flag. |
|
DoubleParameter(OptionID optionID,
ParameterConstraint<Number> cons,
Double defaultValue)
Constructs a double parameter with the given optionID, parameter constraint, and default value. |
|
DoubleParameter(String name,
String description)
Deprecated. |
|
DoubleParameter(String name,
String description,
boolean optional)
Deprecated. |
|
DoubleParameter(String name,
String description,
List<ParameterConstraint<Number>> cons)
Deprecated. |
|
DoubleParameter(String name,
String description,
ParameterConstraint<Number> cons)
Deprecated. |
|
DoubleParameter(String name,
String description,
ParameterConstraint<Number> cons,
Double defaultValue)
Deprecated. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one. |
protected String |
getParameterType()
Returns a string representation of the parameter's type. |
boolean |
isValid(String value)
Checks if the given argument is valid for this option. |
void |
setValue(String value)
Sets the value of the option. |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.NumberParameter |
---|
getNumberValue |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameter |
---|
addConstraint, addConstraintList, getDefaultValue, getDescription, getValue, hasDefaultValue, isOptional, isSet, reset, setDefaultValue, setDefaultValueToValue, setOptional, tookDefaultValue |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.Option |
---|
getName, getShortDescription, setShortDescription |
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debugFine, debugFiner, debugFinest, exception, message, progress, progress, progress, verbose, verbose, warning |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DoubleParameter(OptionID optionID)
optionID
- the unique optionIDpublic DoubleParameter(OptionID optionID, boolean optional)
optionID
- the unique optionIDoptional
- specifies whether this parameter is an optional parameterpublic DoubleParameter(OptionID optionID, ParameterConstraint<Number> cons)
optionID
- the unique optionIDcons
- the constraint for this double parameterpublic DoubleParameter(OptionID optionID, ParameterConstraint<Number> cons, boolean optional)
optionID
- the unique optionIDcons
- the constraint for this double parameteroptional
- specifies whether this parameter is an optional parameterpublic DoubleParameter(OptionID optionID, ParameterConstraint<Number> cons, Double defaultValue)
optionID
- the unique optionIDcons
- the constraint for this double parameterdefaultValue
- the default value for this double parameterpublic DoubleParameter(OptionID optionID, List<ParameterConstraint<Number>> cons)
optionID
- the unique optionIDcons
- a list of parameter constraints for this double parameterpublic DoubleParameter(OptionID optionID, List<ParameterConstraint<Number>> cons, boolean optional)
optionID
- the unique optionIDcons
- a list of parameter constraints for this double parameteroptional
- specifies whether this parameter is an optional parameterpublic DoubleParameter(OptionID optionID, List<ParameterConstraint<Number>> cons, Double defaultValue)
optionID
- the unique optionIDcons
- a list of parameter constraints for this double parameterdefaultValue
- the default value for this double parameter@Deprecated public DoubleParameter(String name, String description)
name
- the parameter namedescription
- the parameter description@Deprecated public DoubleParameter(String name, String description, boolean optional)
name
- the parameter namedescription
- the parameter descriptionoptional
- specifies if this parameter is an optional parameter@Deprecated public DoubleParameter(String name, String description, ParameterConstraint<Number> cons)
name
- the parameter namedescription
- the parameter descriptioncons
- the constraint for this double parameter@Deprecated public DoubleParameter(String name, String description, ParameterConstraint<Number> cons, Double defaultValue)
name
- the parameter namedescription
- the parameter descriptioncons
- the constraint for this double parameterdefaultValue
- the default value for this double parameter@Deprecated public DoubleParameter(String name, String description, List<ParameterConstraint<Number>> cons)
name
- the parameter namedescription
- the parameter descriptioncons
- a list of parameter constraints for this double parameterMethod Detail |
---|
public void setValue(String value) throws ParameterException
Option
setValue
in class Option<Double>
value
- the option's value to be set
ParameterException
- if the given value is not a valid value for this option.Option.setValue(String)
public boolean isValid(String value) throws ParameterException
Option
isValid
in class Option<Double>
value
- option value to be checked
ParameterException
- if the given value is not a valid value for this option.Option.isValid(String)
public boolean equals(Object obj)
equals
in class Object
obj
- the reference object with which to compare.
true
if this double parameter has the same
value as the specified object, false
otherwise.protected String getParameterType()
getParameterType
in class Parameter<Double,Number>
Parameter.getParameterType()
|
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |