Modifier and Type | Field and Description |
---|---|
(package private) D |
dist
Distance type
|
constraints, defaultValue, givenValue, optionalParameter, optionid, shortDescription
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
addConstraint, getDefaultValue, getDefaultValueAsString, getFullDescription, getGivenValue, getName, getOptionID, getShortDescription, getValue, getValuesDescription, hasDefaultValue, hasValuesDescription, isDefined, isOptional, isValid, setDefaultValue, setOptional, setShortDescription, setValue, setValueInternal, tookDefaultValue, tryDefaultValue, useDefaultValue, validate
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 factorypublic String getValueAsString()
Parameter
null
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