Class ParameterTypeLinearDensity
java.lang.Object
org.opentrafficsim.base.Type<ParameterType<T>>
org.opentrafficsim.base.parameters.ParameterType<T>
org.opentrafficsim.base.parameters.ParameterTypeNumeric<LinearDensity>
org.opentrafficsim.base.parameters.ParameterTypeLinearDensity
- All Implemented Interfaces:
Serializable,Identifiable
public class ParameterTypeLinearDensity extends ParameterTypeNumeric<LinearDensity> implements Serializable
Wrapper class for LinearDensity 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 ParameterTypeLinearDensity(String id, String description)Construct a new ParameterTypeLinearDensity without default value and check.ParameterTypeLinearDensity(String id, String description, LinearDensity defaultValue)Construct a new ParameterTypeLinearDensity with default value, without check.ParameterTypeLinearDensity(String id, String description, LinearDensity defaultValue, Constraint<? super LinearDensity> constraint)Construct a new ParameterTypeLinearDensity with default value and check.ParameterTypeLinearDensity(String id, String description, Constraint<? super LinearDensity> constraint)Construct a new ParameterTypeLinearDensity 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
-
ParameterTypeLinearDensity
Construct a new ParameterTypeLinearDensity without default value and check.- Parameters:
id- String; short name of the new ParameterTypeLinearDensitydescription- String; parameter description or full name of the new ParameterTypeLinearDensity
-
ParameterTypeLinearDensity
Construct a new ParameterTypeLinearDensity with default value, without check.- Parameters:
id- String; short name of the new ParameterTypeLinearDensitydescription- String; parameter description or full name of the new ParameterTypeLinearDensitydefaultValue- LinearDensity; the default value of the new ParameterTypeLinearDensity
-
ParameterTypeLinearDensity
public ParameterTypeLinearDensity(String id, String description, Constraint<? super LinearDensity> constraint)Construct a new ParameterTypeLinearDensity without default value, with check.- Parameters:
id- String; short name of the new ParameterTypeLinearDensitydescription- String; parameter description or full name of the new ParameterTypeLinearDensityconstraint- Constraint<? super LinearDensity>; constraint for parameter values
-
ParameterTypeLinearDensity
public ParameterTypeLinearDensity(String id, String description, LinearDensity defaultValue, Constraint<? super LinearDensity> constraint)Construct a new ParameterTypeLinearDensity with default value and check.- Parameters:
id- String; short name of the new ParameterTypeLinearDensitydescription- String; parameter description or full name of the new ParameterTypeLinearDensitydefaultValue- LinearDensity; the default value of the new ParameterTypeLinearDensityconstraint- Constraint<? super LinearDensity>; constraint for parameter values
-
-
Method Details
-
toString
- Overrides:
toStringin classParameterTypeNumeric<LinearDensity>
-