Class ImmutableDebugParametersCSV

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

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

Use the builder to create immutable instances: ImmutableDebugParametersCSV.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
    • getViralLoadTransmissibilityProbabilityFactor

      public double getViralLoadTransmissibilityProbabilityFactor()
      Specified by:
      getViralLoadTransmissibilityProbabilityFactor in interface DebugParametersCSV
      Returns:
      The value of the viralLoadTransmissibilityProbabilityFactor attribute
    • getSeveritySymptomsCutoff

      public double getSeveritySymptomsCutoff()
      Specified by:
      getSeveritySymptomsCutoff in interface DebugParametersCSV
      Returns:
      The value of the severitySymptomsCutoff attribute
    • getSeverityHospitalisationCutoff

      public double getSeverityHospitalisationCutoff()
      Specified by:
      getSeverityHospitalisationCutoff in interface DebugParametersCSV
      Returns:
      The value of the severityHospitalisationCutoff attribute
    • getSeverityDeathCutoff

      public double getSeverityDeathCutoff()
      Specified by:
      getSeverityDeathCutoff in interface DebugParametersCSV
      Returns:
      The value of the severityDeathCutoff attribute
    • getInfectiveDuration

      public int getInfectiveDuration()
      Specified by:
      getInfectiveDuration in interface DebugParametersCSV
      Returns:
      The value of the infectiveDuration attribute
    • withModelName

      public final ImmutableDebugParametersCSV 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 ImmutableDebugParametersCSV 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 ImmutableDebugParametersCSV 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 ImmutableDebugParametersCSV 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
    • withViralLoadTransmissibilityProbabilityFactor

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

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

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

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

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

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableDebugParametersCSV 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, viralLoadTransmissibilityProbabilityFactor, severitySymptomsCutoff, severityHospitalisationCutoff, severityDeathCutoff, infectiveDuration.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      public static ImmutableDebugParametersCSV copyOf(DebugParametersCSV instance)
      Creates an immutable copy of a DebugParametersCSV 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 DebugParametersCSV instance
    • toBuilder

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

      public static ImmutableDebugParametersCSV.Builder builder()
      Creates a builder for ImmutableDebugParametersCSV.
       ImmutableDebugParametersCSV.builder()
          .setModelName(String) // required modelName
          .setExperimentName(String) // required experimentName
          .setModelReplica(int) // required modelReplica
          .setExperimentReplica(int) // required experimentReplica
          .setViralLoadTransmissibilityProbabilityFactor(double) // required viralLoadTransmissibilityProbabilityFactor
          .setSeveritySymptomsCutoff(double) // required severitySymptomsCutoff
          .setSeverityHospitalisationCutoff(double) // required severityHospitalisationCutoff
          .setSeverityDeathCutoff(double) // required severityDeathCutoff
          .setInfectiveDuration(int) // required infectiveDuration
          .build();
       
      Returns:
      A new ImmutableDebugParametersCSV builder