Class ParameterTypeSpeed

All Implemented Interfaces:
Serializable, Identifiable

public class ParameterTypeSpeed
extends ParameterTypeNumeric<Speed>
implements Serializable
Wrapper class for Speed 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
  • Constructor Details

    • ParameterTypeSpeed

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

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

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

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