Class ImmutableDebugParametersCSV.Builder

java.lang.Object
io.github.ai4ci.output.ImmutableDebugParametersCSV.Builder
Enclosing class:
ImmutableDebugParametersCSV

@NotThreadSafe public static final class ImmutableDebugParametersCSV.Builder extends Object
Builds instances of type ImmutableDebugParametersCSV. Initialize attributes and then invoke the build() method to create an immutable instance.

Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

  • Method Details

    • from

      @CanIgnoreReturnValue public final ImmutableDebugParametersCSV.Builder from(DebugParametersCSV instance)
      Fill a builder with attribute values from the provided io.github.ai4ci.output.DebugParametersCSV instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      @CanIgnoreReturnValue public final ImmutableDebugParametersCSV.Builder from(CommonCSV.Execution instance)
      Fill a builder with attribute values from the provided io.github.ai4ci.output.CommonCSV.Execution instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      @CanIgnoreReturnValue public final ImmutableDebugParametersCSV.Builder from(CommonCSV.Model instance)
      Fill a builder with attribute values from the provided io.github.ai4ci.output.CommonCSV.Model instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setModelName

      @CanIgnoreReturnValue public final ImmutableDebugParametersCSV.Builder setModelName(String modelName)
      Initializes the value for the modelName attribute.
      Parameters:
      modelName - The value for modelName
      Returns:
      this builder for use in a chained invocation
    • setExperimentName

      @CanIgnoreReturnValue public final ImmutableDebugParametersCSV.Builder setExperimentName(String experimentName)
      Initializes the value for the experimentName attribute.
      Parameters:
      experimentName - The value for experimentName
      Returns:
      this builder for use in a chained invocation
    • setModelReplica

      @CanIgnoreReturnValue public final ImmutableDebugParametersCSV.Builder setModelReplica(int modelReplica)
      Initializes the value for the modelReplica attribute.
      Parameters:
      modelReplica - The value for modelReplica
      Returns:
      this builder for use in a chained invocation
    • setExperimentReplica

      @CanIgnoreReturnValue public final ImmutableDebugParametersCSV.Builder setExperimentReplica(int experimentReplica)
      Initializes the value for the experimentReplica attribute.
      Parameters:
      experimentReplica - The value for experimentReplica
      Returns:
      this builder for use in a chained invocation
    • setViralLoadTransmissibilityProbabilityFactor

      @CanIgnoreReturnValue public final ImmutableDebugParametersCSV.Builder setViralLoadTransmissibilityProbabilityFactor(double viralLoadTransmissibilityProbabilityFactor)
      Initializes the value for the viralLoadTransmissibilityProbabilityFactor attribute.
      Parameters:
      viralLoadTransmissibilityProbabilityFactor - The value for viralLoadTransmissibilityProbabilityFactor
      Returns:
      this builder for use in a chained invocation
    • setSeveritySymptomsCutoff

      @CanIgnoreReturnValue public final ImmutableDebugParametersCSV.Builder setSeveritySymptomsCutoff(double severitySymptomsCutoff)
      Initializes the value for the severitySymptomsCutoff attribute.
      Parameters:
      severitySymptomsCutoff - The value for severitySymptomsCutoff
      Returns:
      this builder for use in a chained invocation
    • setSeverityHospitalisationCutoff

      @CanIgnoreReturnValue public final ImmutableDebugParametersCSV.Builder setSeverityHospitalisationCutoff(double severityHospitalisationCutoff)
      Initializes the value for the severityHospitalisationCutoff attribute.
      Parameters:
      severityHospitalisationCutoff - The value for severityHospitalisationCutoff
      Returns:
      this builder for use in a chained invocation
    • setSeverityDeathCutoff

      @CanIgnoreReturnValue public final ImmutableDebugParametersCSV.Builder setSeverityDeathCutoff(double severityDeathCutoff)
      Initializes the value for the severityDeathCutoff attribute.
      Parameters:
      severityDeathCutoff - The value for severityDeathCutoff
      Returns:
      this builder for use in a chained invocation
    • setInfectiveDuration

      @CanIgnoreReturnValue public final ImmutableDebugParametersCSV.Builder setInfectiveDuration(int infectiveDuration)
      Initializes the value for the infectiveDuration attribute.
      Parameters:
      infectiveDuration - The value for infectiveDuration
      Returns:
      this builder for use in a chained invocation
    • build

      Returns:
      An immutable instance of DebugParametersCSV
      Throws:
      IllegalStateException - if any required attributes are missing