|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Parameter<D,D> de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.DistanceParameter<D>
D
- Distance typepublic class DistanceParameter<D extends Distance<D>>
Parameter class for a parameter specifying a double value.
Field Summary | |
---|---|
(package private) D |
dist
Distance type |
Fields inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Parameter |
---|
constraints, defaultValue, givenValue, optionalParameter, optionid, shortDescription |
Constructor Summary | |
---|---|
DistanceParameter(OptionID optionID,
D dist)
Constructs a double parameter with the given optionID. |
|
DistanceParameter(OptionID optionID,
D dist,
boolean optional)
Constructs a double parameter with the given optionID and optional flag. |
|
DistanceParameter(OptionID optionID,
D dist,
D defaultValue)
Constructs a double parameter with the given optionID and default value. |
|
DistanceParameter(OptionID optionID,
DistanceFunction<?,D> dist)
Constructs a double parameter with the given optionID. |
|
DistanceParameter(OptionID optionID,
DistanceFunction<?,D> dist,
boolean optional)
Constructs a double parameter with the given optionID and optional flag. |
|
DistanceParameter(OptionID optionID,
DistanceFunction<?,D> dist,
D defaultValue)
Constructs a double parameter with the given optionID and default value. |
|
DistanceParameter(OptionID optionID,
DistanceFunction<?,D> dist,
List<ParameterConstraint<D>> constraints)
Constructs a double parameter with the given optionID, and parameter constraints. |
|
DistanceParameter(OptionID optionID,
DistanceFunction<?,D> dist,
List<ParameterConstraint<D>> cons,
boolean optional)
Constructs a double parameter with the given optionID, parameter constraints, and optional flag. |
|
DistanceParameter(OptionID optionID,
DistanceFunction<?,D> dist,
List<ParameterConstraint<D>> cons,
D defaultValue)
Constructs a double parameter with the given optionID, parameter constraints, and default value. |
|
DistanceParameter(OptionID optionID,
DistanceFunction<?,D> dist,
ParameterConstraint<D> constraint)
Constructs a double parameter with the given optionID, and parameter constraint. |
|
DistanceParameter(OptionID optionID,
DistanceFunction<?,D> dist,
ParameterConstraint<D> constraint,
boolean optional)
Constructs a double parameter with the given optionID, parameter constraint, and optional flag. |
|
DistanceParameter(OptionID optionID,
DistanceFunction<?,D> dist,
ParameterConstraint<D> constraint,
D defaultValue)
Constructs a double parameter with the given optionID, parameter constraint, and default value. |
|
DistanceParameter(OptionID optionID,
D dist,
List<ParameterConstraint<D>> constraints)
Constructs a double parameter with the given optionID, and parameter constraints. |
|
DistanceParameter(OptionID optionID,
D dist,
List<ParameterConstraint<D>> cons,
boolean optional)
Constructs a double parameter with the given optionID, parameter constraints, and optional flag. |
|
DistanceParameter(OptionID optionID,
D dist,
List<ParameterConstraint<D>> cons,
D defaultValue)
Constructs a double parameter with the given optionID, parameter constraints, and default value. |
|
DistanceParameter(OptionID optionID,
D dist,
ParameterConstraint<D> constraint)
Constructs a double parameter with the given optionID, and parameter constraint. |
|
DistanceParameter(OptionID optionID,
D dist,
ParameterConstraint<D> constraint,
boolean optional)
Constructs a double parameter with the given optionID, parameter constraint, and optional flag. |
|
DistanceParameter(OptionID optionID,
D dist,
ParameterConstraint<D> constraint,
D defaultValue)
Constructs a double parameter with the given optionID, parameter constraint, and default value. |
Method Summary | |
---|---|
String |
getSyntax()
Returns a string representation of the parameter's type. |
String |
getValueAsString()
Get the value as string. |
protected D |
parseValue(Object obj)
Parse a given value into the destination type. |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Parameter |
---|
addConstraint, getDefaultValue, getDefaultValueAsString, getFullDescription, getGivenValue, getName, getOptionID, getShortDescription, getValue, getValuesDescription, hasDefaultValue, hasValuesDescription, isDefined, isOptional, isValid, setDefaultValue, setOptional, setShortDescription, setValue, setValueInternal, tookDefaultValue, tryDefaultValue, useDefaultValue, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
D extends Distance<D> dist
Constructor Detail |
---|
public DistanceParameter(OptionID optionID, D dist, List<ParameterConstraint<D>> cons, D defaultValue)
optionID
- the unique optionIDdist
- distance factorycons
- a list of parameter constraints for this double parameterdefaultValue
- the default value for this double parameterpublic DistanceParameter(OptionID optionID, DistanceFunction<?,D> dist, List<ParameterConstraint<D>> cons, D defaultValue)
optionID
- the unique optionIDdist
- distance factorycons
- a list of parameter constraints for this double parameterdefaultValue
- the default value for this double parameterpublic DistanceParameter(OptionID optionID, D dist, List<ParameterConstraint<D>> cons, boolean optional)
optionID
- the unique optionIDdist
- distance factorycons
- a list of parameter constraints for this double parameteroptional
- specifies whether this parameter is an optional parameterpublic DistanceParameter(OptionID optionID, DistanceFunction<?,D> dist, List<ParameterConstraint<D>> cons, boolean optional)
optionID
- the unique optionIDdist
- distance factorycons
- a list of parameter constraints for this double parameteroptional
- specifies whether this parameter is an optional parameterpublic DistanceParameter(OptionID optionID, D dist, List<ParameterConstraint<D>> constraints)
optionID
- the unique optionIDdist
- distance factoryconstraints
- a list of parameter constraints for this double
parameterpublic DistanceParameter(OptionID optionID, DistanceFunction<?,D> dist, List<ParameterConstraint<D>> constraints)
optionID
- the unique optionIDdist
- distance factoryconstraints
- a list of parameter constraints for this double
parameterpublic DistanceParameter(OptionID optionID, D dist, ParameterConstraint<D> constraint, D defaultValue)
optionID
- the unique id of this parameterdist
- distance factoryconstraint
- the constraint of this parameterdefaultValue
- the default value for this parameterpublic DistanceParameter(OptionID optionID, DistanceFunction<?,D> dist, ParameterConstraint<D> constraint, D defaultValue)
optionID
- the unique id of this parameterdist
- distance factoryconstraint
- the constraint of this parameterdefaultValue
- the default value for this parameterpublic DistanceParameter(OptionID optionID, D dist, ParameterConstraint<D> constraint, boolean optional)
optionID
- the unique id of this parameterdist
- distance factoryconstraint
- the constraint of this parameteroptional
- specifies whether this parameter is an optional parameterpublic DistanceParameter(OptionID optionID, DistanceFunction<?,D> dist, ParameterConstraint<D> constraint, boolean optional)
optionID
- the unique id of this parameterdist
- distance factoryconstraint
- the constraint of this parameteroptional
- specifies whether this parameter is an optional parameterpublic DistanceParameter(OptionID optionID, D dist, ParameterConstraint<D> constraint)
optionID
- the unique id of this parameterdist
- distance factoryconstraint
- the constraint of this parameterpublic DistanceParameter(OptionID optionID, DistanceFunction<?,D> dist, ParameterConstraint<D> constraint)
optionID
- the unique id of this parameterdist
- distance factoryconstraint
- the constraint of this parameterpublic DistanceParameter(OptionID optionID, D dist, D defaultValue)
optionID
- the unique optionIDdist
- distance factorydefaultValue
- the default value for this double parameterpublic DistanceParameter(OptionID optionID, DistanceFunction<?,D> dist, D defaultValue)
optionID
- the unique optionIDdist
- distance factorydefaultValue
- the default value for this double parameterpublic DistanceParameter(OptionID optionID, D dist, boolean optional)
optionID
- the unique id of this parameterdist
- distance factoryoptional
- specifies whether this parameter is an optional parameterpublic DistanceParameter(OptionID optionID, DistanceFunction<?,D> dist, boolean optional)
optionID
- the unique id of this parameterdist
- distance factoryoptional
- specifies whether this parameter is an optional parameterpublic DistanceParameter(OptionID optionID, D dist)
optionID
- the unique id of this parameterdist
- distance factorypublic DistanceParameter(OptionID optionID, DistanceFunction<?,D> dist)
optionID
- the unique id of this parameterdist
- distance factoryMethod Detail |
---|
public String getValueAsString()
Parameter
null
getValueAsString
in class Parameter<D extends Distance<D>,D extends Distance<D>>
protected D parseValue(Object obj) throws WrongParameterValueException
Parameter
parseValue
in class Parameter<D extends Distance<D>,D extends Distance<D>>
obj
- Object to parse (may be a string representation!)
WrongParameterValueException
public String getSyntax()
getSyntax
in class Parameter<D extends Distance<D>,D extends Distance<D>>
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |