public class ParameterTypeSpeed extends ParameterTypeNumeric<Speed> implements Serializable
Copyright (c) 2013-2019 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 |
---|
ParameterTypeSpeed(String id,
String description)
Construct a new ParameterTypeSpeed without default value and check.
|
ParameterTypeSpeed(String id,
String description,
Constraint<? super Speed> constraint)
Constructor a new ParameterTypeSpeed without default value, with check.
|
ParameterTypeSpeed(String id,
String description,
Speed defaultValue)
Construct a new ParameterTypeSpeed with default value, without check.
|
ParameterTypeSpeed(String id,
String description,
Speed defaultValue,
Constraint<? super Speed> constraint)
Constructor a new ParameterTypeSpeed with default value and check.
|
Modifier and Type | Method and Description |
---|---|
String |
toString() |
printValue
check, checkConstraint, equals, getConstraint, getDefaultValue, getDescription, getId, getValueClass, hasDefaultValue, hashCode
public ParameterTypeSpeed(String id, String description)
id
- String; short name of the new ParameterTypeSpeeddescription
- String; parameter description or full name of the new ParameterTypeSpeedpublic ParameterTypeSpeed(String id, String description, Speed defaultValue)
id
- String; short name of the new ParameterTypeSpeeddescription
- String; parameter description or full name of the new ParameterTypeSpeeddefaultValue
- Speed; default value of the new ParameterTypeSpeedpublic ParameterTypeSpeed(String id, String description, Constraint<? super Speed> constraint)
id
- String; short name of the new ParameterTypeSpeeddescription
- String; parameter description or full name of the new ParameterTypeSpeedconstraint
- Constraint<? super Speed>; constraint for parameter valuespublic ParameterTypeSpeed(String id, String description, Speed defaultValue, Constraint<? super Speed> constraint)
id
- String; short name of the new ParameterTypeSpeeddescription
- String; parameter description or full name of the new ParameterTypeSpeeddefaultValue
- Speed; default value of the new ParameterTypeSpeedconstraint
- Constraint<? super Speed>; constraint for parameter valuespublic final String toString()
toString
in class ParameterTypeNumeric<Speed>
Copyright © 2014–2019 Delft University of Technology. All rights reserved.