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:
java.io.Serializable,Identifiable
public class ParameterTypeLinearDensity extends ParameterTypeNumeric<LinearDensity> implements java.io.Serializable
Wrapper class for LinearDensity 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 ParameterTypeLinearDensity(java.lang.String id, java.lang.String description)Construct a new ParameterTypeLinearDensity without default value and check.ParameterTypeLinearDensity(java.lang.String id, java.lang.String description, LinearDensity defaultValue)Construct a new ParameterTypeLinearDensity with default value, without check.ParameterTypeLinearDensity(java.lang.String id, java.lang.String description, LinearDensity defaultValue, Constraint<? super LinearDensity> constraint)Construct a new ParameterTypeLinearDensity with default value and check.ParameterTypeLinearDensity(java.lang.String id, java.lang.String description, Constraint<? super LinearDensity> constraint)Construct a new ParameterTypeLinearDensity 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
-
ParameterTypeLinearDensity
public ParameterTypeLinearDensity(java.lang.String id, java.lang.String description)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
public ParameterTypeLinearDensity(java.lang.String id, java.lang.String description, LinearDensity defaultValue)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(java.lang.String id, java.lang.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(java.lang.String id, java.lang.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 Detail
-
toString
public final java.lang.String toString()
- Overrides:
toStringin classParameterTypeNumeric<LinearDensity>
-
-