Class ParameterTypeDouble

All Implemented Interfaces:
Serializable, Identifiable

public class ParameterTypeDouble
extends ParameterTypeNumeric<Double>
implements Serializable
Wrapper class for double 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

    • ParameterTypeDouble

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

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

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

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

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