Class InputParameterDistContinuousSelection
java.lang.Object
nl.tudelft.simulation.dsol.model.inputparameters.AbstractInputParameter<T,T>
nl.tudelft.simulation.dsol.model.inputparameters.InputParameterSelectionMap<String,InputParameterMapDistContinuous>
nl.tudelft.simulation.dsol.model.inputparameters.InputParameterDistContinuousSelection
- All Implemented Interfaces:
Serializable
,Cloneable
,InputParameter<InputParameterMapDistContinuous,
InputParameterMapDistContinuous>
public class InputParameterDistContinuousSelection
extends InputParameterSelectionMap<String,InputParameterMapDistContinuous>
InputParameterDistContinuousSelection takes care of exposing the necessary parameters for each of the continuous distribution
functions. It has a function called getDist() which returns the distribution of the current choice.
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.
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:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
InputParameterDistContinuous.Beta class.static class
InputParameterDistContinuous.Constant class.static class
InputParameterDistContinuous.Erlang class.static class
InputParameterDistContinuous.Exponential class.static class
InputParameterDistContinuous.Gamma class.static class
InputParameterDistContinuous.LogNormal class.static class
InputParameterDistContinuous.Normal class.static class
InputParameterDistContinuous.Pearson5 class.static class
InputParameterDistContinuous.Pearson6 class.static class
InputParameterDistContinuous.Triangular class.static class
InputParameterDistContinuous.Uniform class.static class
InputParameterDistContinuous.Weibull class. -
Constructor Summary
ConstructorDescriptionInputParameterDistContinuousSelection
(String key, String shortName, String description, StreamInterface stream, double displayPriority) -
Method Summary
Modifier and TypeMethodDescriptiongetDist()
Return the distribution function corresponding to the chosen distribution and parameters.static final SortedMap<String,
InputParameterMapDistContinuous> Methods inherited from class nl.tudelft.simulation.dsol.model.inputparameters.InputParameterSelectionMap
clone, getCalculatedValue, getKeyforValue, getKeyforValue, getOptions, setKeyforValue, setMapValue, setObjectValue
Methods inherited from class nl.tudelft.simulation.dsol.model.inputparameters.AbstractInputParameter
getDefaultValue, getDescription, getDisplayPriority, getExtendedKey, getKey, getParent, getShortName, getValue, isReadOnly, setDefaultValue, setParent, setReadOnly, setValue, toString
-
Constructor Details
-
InputParameterDistContinuousSelection
public InputParameterDistContinuousSelection(String key, String shortName, String description, StreamInterface stream, double displayPriority) throws InputParameterException - Parameters:
key
- String; unique name for the selection parameter of the distribution functionshortName
- String; concise description of the input parameterdescription
- String; long description of the input parameter (may use HTML markup)stream
- StreamInterface; the random number stream to use for the distributiondisplayPriority
- double; sorting order when properties are displayed to the user- Throws:
NullPointerException
- when key, shortName, defaultValue, description, or stream is nullIllegalArgumentException
- when displayPriority is NaNInputParameterException
- in case the default value is not part of the list; should not happen
-
-
Method Details
-
getDist
Return the distribution function corresponding to the chosen distribution and parameters.- Returns:
- DistContinuous; the distribution function corresponding to the chosen distribution and parameters
- Throws:
InputParameterException
- on error retrieving the values for the distribution
-
getDistOptions
- Returns:
- distOptions
-
getStream
- Returns:
- stream
-