Class ParameterTypeDuration

java.lang.Object
org.opentrafficsim.base.parameters.ParameterType<T>
org.opentrafficsim.base.parameters.ParameterTypeNumeric<org.djunits.value.vdouble.scalar.Duration>
org.opentrafficsim.base.parameters.ParameterTypeDuration
All Implemented Interfaces:
Identifiable, Type<ParameterType<org.djunits.value.vdouble.scalar.Duration>>

public class ParameterTypeDuration extends ParameterTypeNumeric<org.djunits.value.vdouble.scalar.Duration>
Wrapper class for Time parameters.

Copyright (c) 2013-2026 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Author:
Alexander Verbraeck, Wouter Schakel
  • Constructor Details

    • ParameterTypeDuration

      public ParameterTypeDuration(String id, String description, org.djunits.value.vdouble.scalar.Duration defaultValue)
      Construct a new ParameterTypeDuration with default value, without check.
      Parameters:
      id - short name of the new ParameterTypeDuration
      description - parameter description or full name of the new ParameterTypeDuration
      defaultValue - the default value for the new ParameterTypeDuration
    • ParameterTypeDuration

      public ParameterTypeDuration(String id, String description, org.djunits.value.vdouble.scalar.Duration defaultValue, Constraint<? super org.djunits.value.vdouble.scalar.Duration> constraint)
      Construct a new ParameterTypeDuration with default value and check.
      Parameters:
      id - short name of the new ParameterTypeDuration
      description - parameter description or full name of the new ParameterTypeDuration
      defaultValue - Default value of the new ParameterTypeDuration
      constraint - Constraint for parameter values
  • Method Details