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
ConstructorsConstructorDescriptionThe 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 ParameterDomainModifies 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 benullor it can containnullvalues.- Throws:
NullPointerException- whennameisnull.
-
-
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.
-