Class InputParameterBoolean

java.lang.Object
nl.tudelft.simulation.dsol.model.inputparameters.AbstractInputParameter<Boolean,Boolean>
nl.tudelft.simulation.dsol.model.inputparameters.InputParameterBoolean
All Implemented Interfaces:
Serializable, Cloneable, InputParameter<Boolean,Boolean>

public class InputParameterBoolean extends AbstractInputParameter<Boolean,Boolean>
InputParameterBoolean.java.

Copyright (c) 2003-2024 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl. The source code and binary code of this software is proprietary information of Delft University of Technology.
Author:
Alexander Verbraeck
See Also:
  • Constructor Details

    • InputParameterBoolean

      public InputParameterBoolean(String key, String shortName, String description, boolean defaultValue, double displayPriority)
      Construct a new InputParameterBoolean.
      Parameters:
      key - String; unique (within the parent's input parameter map) name of the new InputParameterBoolean
      shortName - String; concise description of the input parameter
      description - String; long description of the input parameter (may use HTML markup)
      defaultValue - boolean; the default value of this input parameter
      displayPriority - double; sorting order when properties are displayed to the user
      Throws:
      NullPointerException - when key, shortName, defaultValue, or description is null
      IllegalArgumentException - when displayPriority is NaN
  • Method Details

    • getCalculatedValue

      public Boolean getCalculatedValue()
      Retrieve the calculated value of the input parameter. This is often the same as the value type, except in situations where a sub-map or sub-list calculates a different value. This is, for instance, the case with distribution functions where the parameters are present in a sub-map (the value) and the return type of the value is a distribution function class.
      Returns:
      CT; the calculated value of the input parameter
    • setBooleanValue

      public void setBooleanValue(boolean newValue) throws InputParameterException
      Check and set the typed value, and call super.setValue to make the actual allocation.
      Parameters:
      newValue - boolean; the new value for the input parameter
      Throws:
      InputParameterException - when this InputParameter is read-only, or newValue is not valid
    • clone

      public InputParameterBoolean clone()
      Provide the clone() method to make a deep copy.
      Specified by:
      clone in interface InputParameter<Boolean,Boolean>
      Overrides:
      clone in class AbstractInputParameter<Boolean,Boolean>
      Returns:
      a deep copy of the InputParameter