public class ParameterTypeLength extends ParameterTypeNumeric<Length> 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 |
---|
ParameterTypeLength(String id,
String description)
Constructor without default value and check.
|
ParameterTypeLength(String id,
String description,
Constraint<? super Length> constraint)
Construct a new ParameterTypeLength without default value, with check.
|
ParameterTypeLength(String id,
String description,
Length defaultValue)
Construct a new ParameterTypeLength with default value, without check.
|
ParameterTypeLength(String id,
String description,
Length defaultValue,
Constraint<? super Length> constraint)
Construct a new ParameterTypeLength 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 ParameterTypeLength(String id, String description)
id
- String; short name of the new ParameterTypeLengthdescription
- String; parameter description or full name of the new ParameterTypeLengthpublic ParameterTypeLength(String id, String description, Length defaultValue)
id
- String; short name of the new ParameterTypeLengthdescription
- String; parameter description or full name of the new ParameterTypeLengthdefaultValue
- Length; the default value of the new ParameterTypeLengthpublic ParameterTypeLength(String id, String description, Constraint<? super Length> constraint)
id
- String; short name of the new ParameterTypeLengthdescription
- String; parameter description or full name of the new ParameterTypeLengthconstraint
- Constraint<? super Length>; constraint for parameter valuespublic ParameterTypeLength(String id, String description, Length defaultValue, Constraint<? super Length> constraint)
id
- String; short name of the new ParameterTypeLengthdescription
- String; parameter description or full name of the new ParameterTypeLengthdefaultValue
- Length; the default value of the new ParameterTypeLengthconstraint
- Constraint<? super Length>; constraint for parameter valuespublic final String toString()
toString
in class ParameterTypeNumeric<Length>
Copyright © 2014–2019 Delft University of Technology. All rights reserved.