Class ParameterTypeLength
java.lang.Object
org.opentrafficsim.base.Type<ParameterType<T>>
org.opentrafficsim.base.parameters.ParameterType<T>
org.opentrafficsim.base.parameters.ParameterTypeNumeric<Length>
org.opentrafficsim.base.parameters.ParameterTypeLength
- All Implemented Interfaces:
Serializable,Identifiable
public class ParameterTypeLength extends ParameterTypeNumeric<Length> implements Serializable
Wrapper class for Length parameters.
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.
- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version Apr 13, 2016
- Author:
- Alexander Verbraeck, Wouter Schakel
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ParameterTypeLength(String id, String description)Constructor without default value and 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.ParameterTypeLength(String id, String description, Constraint<? super Length> constraint)Construct a new ParameterTypeLength without default value, with check. -
Method Summary
Methods inherited from class org.opentrafficsim.base.parameters.ParameterType
check, checkConstraint, equals, getConstraint, getDefaultValue, getDescription, getId, getValueClass, hasDefaultValue, hashCode
-
Constructor Details
-
ParameterTypeLength
Constructor without default value and check.- Parameters:
id- String; short name of the new ParameterTypeLengthdescription- String; parameter description or full name of the new ParameterTypeLength
-
ParameterTypeLength
Construct a new ParameterTypeLength with default value, without check.- Parameters:
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 ParameterTypeLength
-
ParameterTypeLength
Construct a new ParameterTypeLength without default value, with check.- Parameters:
id- String; short name of the new ParameterTypeLengthdescription- String; parameter description or full name of the new ParameterTypeLengthconstraint- Constraint<? super Length>; constraint for parameter values
-
ParameterTypeLength
public ParameterTypeLength(String id, String description, Length defaultValue, Constraint<? super Length> constraint)Construct a new ParameterTypeLength with default value and check.- Parameters:
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 values
-
-
Method Details
-
toString
- Overrides:
toStringin classParameterTypeNumeric<Length>
-