Class ParameterTypeDuration
- java.lang.Object
-
- org.opentrafficsim.base.Type<ParameterType<T>>
-
- org.opentrafficsim.base.parameters.ParameterType<T>
-
- org.opentrafficsim.base.parameters.ParameterTypeNumeric<Duration>
-
- org.opentrafficsim.base.parameters.ParameterTypeDuration
-
- All Implemented Interfaces:
java.io.Serializable,Identifiable
public class ParameterTypeDuration extends ParameterTypeNumeric<Duration> implements java.io.Serializable
Wrapper class for Time parameters.Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version Apr 13, 2016
- Author:
- Alexander Verbraeck, Wouter Schakel
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.opentrafficsim.base.parameters.ParameterType
defaultValue
-
-
Constructor Summary
Constructors Constructor Description ParameterTypeDuration(java.lang.String id, java.lang.String description)Construct a new ParameterTypeDuration without default value and check.ParameterTypeDuration(java.lang.String id, java.lang.String description, Duration defaultValue)Construct a new ParameterTypeDuration with default value, without check.ParameterTypeDuration(java.lang.String id, java.lang.String description, Duration defaultValue, Constraint<? super Duration> constraint)Construct a new ParameterTypeDuration with default value and check.ParameterTypeDuration(java.lang.String id, java.lang.String description, Constraint<? super Duration> constraint)Construct a new ParameterTypeDuration without default value, with check.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()-
Methods inherited from class org.opentrafficsim.base.parameters.ParameterTypeNumeric
printValue
-
Methods inherited from class org.opentrafficsim.base.parameters.ParameterType
check, checkConstraint, equals, getConstraint, getDefaultValue, getDescription, getId, getValueClass, hasDefaultValue, hashCode
-
-
-
-
Constructor Detail
-
ParameterTypeDuration
public ParameterTypeDuration(java.lang.String id, java.lang.String description)Construct a new ParameterTypeDuration without default value and check.- Parameters:
id- String; short name of the new ParameterTypeDurationdescription- String; parameter description or full name of the new ParameterTypeDuration
-
ParameterTypeDuration
public ParameterTypeDuration(java.lang.String id, java.lang.String description, Duration defaultValue)Construct a new ParameterTypeDuration with default value, without check.- Parameters:
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 ParameterTypeDuration
-
ParameterTypeDuration
public ParameterTypeDuration(java.lang.String id, java.lang.String description, Constraint<? super Duration> constraint)Construct a new ParameterTypeDuration without default value, with check.- Parameters:
id- String; short name of the new ParameterTypeDurationdescription- String; parameter description or full name of the new ParameterTypeDurationconstraint- Constraint<? super Duration>; Constraint for parameter values
-
ParameterTypeDuration
public ParameterTypeDuration(java.lang.String id, java.lang.String description, Duration defaultValue, Constraint<? super Duration> constraint)Construct a new ParameterTypeDuration with default value and check.- Parameters:
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 values
-
-
Method Detail
-
toString
public final java.lang.String toString()
- Overrides:
toStringin classParameterTypeNumeric<Duration>
-
-