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