public class DoubleParameter extends SimpleParameter<Double>
defaultValue, hasDefaultValue, name, value
Constructor and Description |
---|
DoubleParameter(ParameterizedBase owner,
String name)
Set the parameter name and add this parameter to the list of parameters
stored by owner.
|
Modifier and Type | Method and Description |
---|---|
void |
configure(ParameterTool parameterTool)
Read and parse the parameter value from command-line arguments.
|
DoubleParameter |
setDefaultValue(double defaultValue)
Set the default value.
|
DoubleParameter |
setMaximumValue(double maximumValue,
boolean inclusive)
Set the maximum value.
|
DoubleParameter |
setMinimumValue(double minimumValue,
boolean inclusive)
Set the minimum value.
|
String |
toString() |
getUsage, getValue, isHidden, setDefaultValue
public DoubleParameter(ParameterizedBase owner, String name)
owner
- the Parameterized
using this Parameter
name
- the parameter namepublic DoubleParameter setDefaultValue(double defaultValue)
defaultValue
- the default valuepublic DoubleParameter setMinimumValue(double minimumValue, boolean inclusive)
minimumValue
- the minimum valueinclusive
- whether the minimum value is a valid valuepublic DoubleParameter setMaximumValue(double maximumValue, boolean inclusive)
maximumValue
- the maximum valueinclusive
- whether the maximum value is a valid valuepublic void configure(ParameterTool parameterTool)
Parameter
parameterTool
- parameter parserCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.