Package microsim.data

Class ParameterDomain

java.lang.Object
microsim.data.ParameterDomain
Direct Known Subclasses:
ParameterRangeDomain

public class ParameterDomain extends Object
This class is used as a map to associate arrays of values with certain names.
  • 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 be null or it can contain null values.
      Throws:
      NullPointerException - when name is null.
  • Method Details

    • addValue

      @NonNull public @NonNull ParameterDomain addValue(@Nullable @Nullable Object value)
      Modifies the instance by adding a value to the list of existing values.
      Parameters:
      value - A value object.
      Returns:
      the same object.