public class ParameterTypeDouble extends ParameterTypeNumeric<Double> implements Serializable
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
defaultValue| Constructor and Description |
|---|
ParameterTypeDouble(String id,
String description)
Construct a new ParameterTypeDouble without default value and check.
|
ParameterTypeDouble(String id,
String description,
Constraint<? super Double> constraint)
Construct a new ParameterTypeDouble without default value, with check.
|
ParameterTypeDouble(String id,
String description,
double defaultValue)
Construct a new ParameterTypeDouble with default value, without check.
|
ParameterTypeDouble(String id,
String description,
double defaultValue,
Constraint<? super Double> constraint)
Construct a new ParameterTypeDouble with default value and check.
|
ParameterTypeDouble(String id,
String description,
Double defaultValue,
Constraint<Number> constraint)
Construct a new ParameterTypeDouble with default value and check.
|
| Modifier and Type | Method and Description |
|---|---|
String |
printValue(Parameters parameters)
Print the given value from the map in Parameters in a presentable format.
|
String |
toString() |
check, checkConstraint, equals, getConstraint, getDefaultValue, getDescription, getId, getValueClass, hasDefaultValue, hashCodepublic ParameterTypeDouble(String id, String description)
id - String; short name of the new ParameterTypeDoubledescription - String; parameter description or full name of the new ParameterTypeDoublepublic ParameterTypeDouble(String id, String description, double defaultValue)
id - String; short name of the new ParameterTypeDoubledescription - String; parameter description or full name of the new ParameterTypeDoubledefaultValue - double; the default value of the new ParametertypeDoublepublic ParameterTypeDouble(String id, String description, Constraint<? super Double> constraint)
id - String; short name of the new ParameterTypeDoubledescription - String; parameter description or full name of the new ParameterTypeDoubleconstraint - Constrain<? super Double>; constraint for parameter valuespublic ParameterTypeDouble(String id, String description, double defaultValue, Constraint<? super Double> constraint)
id - String; short name of the new ParameterTypeDoubledescription - String; parameter description or full name of the new ParameterTypeDoubledefaultValue - double; the default value of the new ParameterTypeDoubleconstraint - Constraint<? super Double>; constraint for parameter valuespublic ParameterTypeDouble(String id, String description, Double defaultValue, Constraint<Number> constraint)
id - String; short name of the new ParameterTypeDoubledescription - String; parameter description or full name of the new ParameterTypeDoubledefaultValue - Double; default value for the new ParameterTypeDoubleconstraint - Constraint<Number>; constraint for parameter valuespublic final String printValue(Parameters parameters) throws ParameterException
printValue in class ParameterTypeNumeric<Double>parameters - Parameters to get the value fromParameterException - If the parameter is not presentpublic String toString()
toString in class ParameterTypeNumeric<Double>Copyright © 2014–2018 Delft University of Technology. All rights reserved.