|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.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 |
|---|
optionid, shortDescription, value |
| Constructor Summary | |
|---|---|
DoubleParameter(OptionID optionID)
Constructs a double parameter with the given optionID. |
|
DoubleParameter(OptionID optionID,
Double defaultValue)
Constructs a double parameter with the given optionID and default value. |
|
DoubleParameter(OptionID optionID,
List<ParameterConstraint<Number>> constraints)
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> constraint)
Constructs a double parameter with the given optionID, and parameter constraint. |
|
DoubleParameter(OptionID optionID,
ParameterConstraint<Number> constraint,
boolean optional)
Constructs a double parameter with the given optionID, parameter constraint, and optional flag. |
|
DoubleParameter(OptionID optionID,
ParameterConstraint<Number> constraint,
Double defaultValue)
Constructs a double parameter with the given optionID, parameter constraint, and default value. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one. |
String |
getSyntax()
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, getFullDescription, getValue, getValuesDescription, hasDefaultValue, hasValuesDescription, isOptional, isSet, reset, setDefaultValue, setDefaultValueToValue, setOptional, tookDefaultValue |
| Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.Option |
|---|
getName, getOptionID, getShortDescription, setShortDescription |
| 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 id of this parameter
public DoubleParameter(OptionID optionID,
ParameterConstraint<Number> constraint)
optionID - the unique id of this parameterconstraint - the constraint of this parameter
public DoubleParameter(OptionID optionID,
ParameterConstraint<Number> constraint,
boolean optional)
optionID - the unique id of this parameterconstraint - the constraint of this parameteroptional - specifies whether this parameter is an optional parameter
public DoubleParameter(OptionID optionID,
ParameterConstraint<Number> constraint,
Double defaultValue)
optionID - the unique id of this parameterconstraint - the constraint of this parameterdefaultValue - the default value for this parameter
public DoubleParameter(OptionID optionID,
List<ParameterConstraint<Number>> constraints)
optionID - the unique optionIDconstraints - a list of parameter constraints for this double parameter
public 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 parameter
public 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
public DoubleParameter(OptionID optionID,
Double defaultValue)
optionID - the unique optionIDdefaultValue - the default value for this double parameter| Method 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.
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.public boolean equals(Object obj)
equals in class Objectobj - the reference object with which to compare.
true if this double parameter has the same
value as the specified object, false otherwise.public String getSyntax()
getSyntax in class Option<Double>
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||