Class ParameterTypeFrequency
- java.lang.Object
-
- org.opentrafficsim.base.Type<ParameterType<T>>
-
- org.opentrafficsim.base.parameters.ParameterType<T>
-
- org.opentrafficsim.base.parameters.ParameterTypeNumeric<Frequency>
-
- org.opentrafficsim.base.parameters.ParameterTypeFrequency
-
- All Implemented Interfaces:
Serializable,Identifiable
public class ParameterTypeFrequency extends ParameterTypeNumeric<Frequency> implements Serializable
Wrapper class for Frequency 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 ParameterTypeFrequency(String id, String description)Construct a new ParameterTypeFrequency without default value and check.ParameterTypeFrequency(String id, String description, Frequency defaultValue)Construct a new ParameterTypeFrequency with default value, without check.ParameterTypeFrequency(String id, String description, Frequency defaultValue, Constraint<? super Frequency> constraint)Construct a new ParameterTypeFrequency with default value and check.ParameterTypeFrequency(String id, String description, Constraint<? super Frequency> constraint)Construct a new ParameterTypeFrequency without default value, with check.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
ParameterTypeFrequency
public ParameterTypeFrequency(String id, String description)
Construct a new ParameterTypeFrequency without default value and check.- Parameters:
id- String; short name of the new ParameterTypeFrequencydescription- String; parameter description or full name of the new ParameterTypeFrequency
-
ParameterTypeFrequency
public ParameterTypeFrequency(String id, String description, Frequency defaultValue)
Construct a new ParameterTypeFrequency with default value, without check.- Parameters:
id- String; short name of the new ParameterTypeFrequencydescription- String; parameter description or full name of the new ParameterTypeFrequencydefaultValue- Frequency; the default value of the new ParameterTypeFrequency
-
ParameterTypeFrequency
public ParameterTypeFrequency(String id, String description, Constraint<? super Frequency> constraint)
Construct a new ParameterTypeFrequency without default value, with check.- Parameters:
id- String; short name of the new ParameterTypeFrequencydescription- String; parameter description or full name of the new ParameterTypeFrequencyconstraint- Constraint<? super Frequency>; constraint for parameter values
-
ParameterTypeFrequency
public ParameterTypeFrequency(String id, String description, Frequency defaultValue, Constraint<? super Frequency> constraint)
Construct a new ParameterTypeFrequency with default value and check.- Parameters:
id- String; short name of the new ParameterTypeFrequencydescription- String; parameter description or full name of the new ParameterTypeFrequencydefaultValue- Frequency; the default value of the new ParameterTypeFrequencyconstraint- Constraint<? super Frequency>; constraint for parameter values
-
-
Method Detail
-
toString
public final String toString()
- Overrides:
toStringin classParameterTypeNumeric<Frequency>
-
-