Class ParameterTypeDuration

All Implemented Interfaces:
Serializable, Identifiable

public class ParameterTypeDuration
extends ParameterTypeNumeric<Duration>
implements Serializable
Wrapper class for Time 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
  • Constructor Details

    • ParameterTypeDuration

      public ParameterTypeDuration​(String id, String description)
      Construct a new ParameterTypeDuration without default value and check.
      Parameters:
      id - String; short name of the new ParameterTypeDuration
      description - String; parameter description or full name of the new ParameterTypeDuration
    • ParameterTypeDuration

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

      public ParameterTypeDuration​(String id, String description, Constraint<? super Duration> constraint)
      Construct a new ParameterTypeDuration without default value, with check.
      Parameters:
      id - String; short name of the new ParameterTypeDuration
      description - String; parameter description or full name of the new ParameterTypeDuration
      constraint - Constraint<? super Duration>; Constraint for parameter values
    • ParameterTypeDuration

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