Class ImmutablePersonDemographicsCSV

java.lang.Object
io.github.ai4ci.output.ImmutablePersonDemographicsCSV
All Implemented Interfaces:
CSVWriter.Writeable, CommonCSV.Execution, CommonCSV.Model, PersonDemographicsCSV

@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutablePersonDemographicsCSV extends Object implements PersonDemographicsCSV
Immutable implementation of PersonDemographicsCSV.

Use the builder to create immutable instances: ImmutablePersonDemographicsCSV.builder().

  • Method Details

    • getModelName

      public String getModelName()
      Specified by:
      getModelName in interface CommonCSV.Model
      Returns:
      The value of the modelName attribute
    • getExperimentName

      public String getExperimentName()
      Specified by:
      getExperimentName in interface CommonCSV.Model
      Returns:
      The value of the experimentName attribute
    • getModelReplica

      public int getModelReplica()
      Specified by:
      getModelReplica in interface CommonCSV.Execution
      Returns:
      The value of the modelReplica attribute
    • getExperimentReplica

      public int getExperimentReplica()
      Specified by:
      getExperimentReplica in interface CommonCSV.Execution
      Returns:
      The value of the experimentReplica attribute
    • getId

      public int getId()
      Specified by:
      getId in interface PersonDemographicsCSV
      Returns:
      The value of the id attribute
    • getAge

      public double getAge()
      Specified by:
      getAge in interface PersonDemographicsCSV
      Returns:
      The value of the age attribute
    • getMobilityBaseline

      public Double getMobilityBaseline()
      Specified by:
      getMobilityBaseline in interface PersonDemographicsCSV
      Returns:
      The value of the mobilityBaseline attribute
    • getAppUseProbability

      public Double getAppUseProbability()
      Specified by:
      getAppUseProbability in interface PersonDemographicsCSV
      Returns:
      The value of the appUseProbability attribute
    • getComplianceBaseline

      public Double getComplianceBaseline()
      Specified by:
      getComplianceBaseline in interface PersonDemographicsCSV
      Returns:
      The value of the complianceBaseline attribute
    • getHilbertX

      public long getHilbertX()
      Specified by:
      getHilbertX in interface PersonDemographicsCSV
      Returns:
      The value of the hilbertX attribute
    • getHilbertY

      public long getHilbertY()
      Specified by:
      getHilbertY in interface PersonDemographicsCSV
      Returns:
      The value of the hilbertY attribute
    • withModelName

      public final ImmutablePersonDemographicsCSV withModelName(String value)
      Copy the current immutable object by setting a value for the modelName attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for modelName
      Returns:
      A modified copy of the this object
    • withExperimentName

      public final ImmutablePersonDemographicsCSV withExperimentName(String value)
      Copy the current immutable object by setting a value for the experimentName attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for experimentName
      Returns:
      A modified copy of the this object
    • withModelReplica

      public final ImmutablePersonDemographicsCSV withModelReplica(int value)
      Copy the current immutable object by setting a value for the modelReplica attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for modelReplica
      Returns:
      A modified copy of the this object
    • withExperimentReplica

      public final ImmutablePersonDemographicsCSV withExperimentReplica(int value)
      Copy the current immutable object by setting a value for the experimentReplica attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for experimentReplica
      Returns:
      A modified copy of the this object
    • withId

      public final ImmutablePersonDemographicsCSV withId(int value)
      Copy the current immutable object by setting a value for the id attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for id
      Returns:
      A modified copy of the this object
    • withAge

      public final ImmutablePersonDemographicsCSV withAge(double value)
      Copy the current immutable object by setting a value for the age attribute. A value strict bits equality used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for age
      Returns:
      A modified copy of the this object
    • withMobilityBaseline

      public final ImmutablePersonDemographicsCSV withMobilityBaseline(Double value)
      Copy the current immutable object by setting a value for the mobilityBaseline attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for mobilityBaseline
      Returns:
      A modified copy of the this object
    • withAppUseProbability

      public final ImmutablePersonDemographicsCSV withAppUseProbability(Double value)
      Copy the current immutable object by setting a value for the appUseProbability attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for appUseProbability
      Returns:
      A modified copy of the this object
    • withComplianceBaseline

      public final ImmutablePersonDemographicsCSV withComplianceBaseline(Double value)
      Copy the current immutable object by setting a value for the complianceBaseline attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for complianceBaseline
      Returns:
      A modified copy of the this object
    • withHilbertX

      public final ImmutablePersonDemographicsCSV withHilbertX(long value)
      Copy the current immutable object by setting a value for the hilbertX attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for hilbertX
      Returns:
      A modified copy of the this object
    • withHilbertY

      public final ImmutablePersonDemographicsCSV withHilbertY(long value)
      Copy the current immutable object by setting a value for the hilbertY attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for hilbertY
      Returns:
      A modified copy of the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutablePersonDemographicsCSV that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: modelName, experimentName, modelReplica, experimentReplica, id, age, mobilityBaseline, appUseProbability, complianceBaseline, hilbertX, hilbertY.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value PersonDemographicsCSV with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static ImmutablePersonDemographicsCSV copyOf(PersonDemographicsCSV instance)
      Creates an immutable copy of a PersonDemographicsCSV value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
      Parameters:
      instance - The instance to copy
      Returns:
      A copied immutable PersonDemographicsCSV instance
    • toBuilder

      Creates a builder for ImmutablePersonDemographicsCSV.prefilled with attibute values of this instance to easily create modified copies.
      Returns:
      A new ImmutablePersonDemographicsCSV builder with attributes of this instance
    • builder

      public static ImmutablePersonDemographicsCSV.Builder builder()
      Creates a builder for ImmutablePersonDemographicsCSV.
       ImmutablePersonDemographicsCSV.builder()
          .setModelName(String) // required modelName
          .setExperimentName(String) // required experimentName
          .setModelReplica(int) // required modelReplica
          .setExperimentReplica(int) // required experimentReplica
          .setId(int) // required id
          .setAge(double) // required age
          .setMobilityBaseline(Double) // required mobilityBaseline
          .setAppUseProbability(Double) // required appUseProbability
          .setComplianceBaseline(Double) // required complianceBaseline
          .setHilbertX(long) // required hilbertX
          .setHilbertY(long) // required hilbertY
          .build();
       
      Returns:
      A new ImmutablePersonDemographicsCSV builder