Package microsim.data
Class ParameterDomain
java.lang.Object
microsim.data.ParameterDomain
- Direct Known Subclasses:
ParameterRangeDomain
This class is used as a map to associate arrays of values with certain names.
-
Constructor Summary
ConstructorDescriptionThe default constructor, it only creates an instance of the class.ParameterDomain
(@NonNull String name, @Nullable Object @Nullable [] values) Creates an instance of the class with the given name and provided values. -
Method Summary
Modifier and TypeMethodDescription@NonNull ParameterDomain
Modifies the instance by adding a value to the list of existing values.
-
Constructor Details
-
ParameterDomain
public ParameterDomain()The default constructor, it only creates an instance of the class. -
ParameterDomain
public ParameterDomain(@NonNull @NonNull String name, @Nullable @Nullable Object @Nullable [] values) Creates an instance of the class with the given name and provided values.- Parameters:
name
- The name of the domain.values
- The values of the domains, the array itself can benull
or it can containnull
values.- Throws:
NullPointerException
- whenname
isnull
.
-
-
Method Details
-
addValue
Modifies the instance by adding a value to the list of existing values.- Parameters:
value
- A value object.- Returns:
- the same object.
-