Class ParameterTypeDouble

All Implemented Interfaces:
Identifiable, Type<ParameterType<Double>>

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

    • ParameterTypeDouble

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

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