Package microsim.data
Class ParameterRangeDomain
java.lang.Object
microsim.data.ParameterDomain
microsim.data.ParameterRangeDomain
This class is an extension of
ParameterDomain
where values that are stored are elements of arithmetic
progressions of floating-point numbers generated from intervals.-
Constructor Summary
ConstructorDescriptionThe default constructor, creates an instance only.ParameterRangeDomain
(@NonNull String name, @NonNull Double min, @NonNull Double max, @NonNull Double step) Creates an instance of the class, sets the name andmin
,max
, andstep
values. -
Method Summary
Methods inherited from class microsim.data.ParameterDomain
addValue
-
Constructor Details
-
ParameterRangeDomain
public ParameterRangeDomain()The default constructor, creates an instance only. -
ParameterRangeDomain
public ParameterRangeDomain(@NonNull @NonNull String name, @NonNull @NonNull Double min, @NonNull @NonNull Double max, @NonNull @NonNull Double step) Creates an instance of the class, sets the name andmin
,max
, andstep
values.- Parameters:
name
- The range name.min
- The left bound of the interval.max
- The right bound of the interval.step
- The step of the progression.- Throws:
NullPointerException
- when any of the input parameters isnull
.
-
-
Method Details
-
getValues
Generates the actual arithmetic progression and returns all the values.- Returns:
- an array of objects that are instances of
Double
, always notnull
. - Implementation Note:
- The left bound is always included, but the right one might or might not be. That depends on the actual parameters of the progression, various numerical errors also affect the result.
-
setValues
This method is not supported.- Throws:
UnsupportedOperationException
- when executed.
-