Class ImmutableOutbreakCSV.Builder

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

@NotThreadSafe public static final class ImmutableOutbreakCSV.Builder extends Object
Builds instances of type ImmutableOutbreakCSV. 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 ImmutableOutbreakCSV.Builder from(OutbreakCSV instance)
      Fill a builder with attribute values from the provided io.github.ai4ci.output.OutbreakCSV instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      @CanIgnoreReturnValue public final ImmutableOutbreakCSV.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 ImmutableOutbreakCSV.Builder from(CommonCSV.State instance)
      Fill a builder with attribute values from the provided io.github.ai4ci.output.CommonCSV.State instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      @CanIgnoreReturnValue public final ImmutableOutbreakCSV.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 ImmutableOutbreakCSV.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 ImmutableOutbreakCSV.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 ImmutableOutbreakCSV.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 ImmutableOutbreakCSV.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
    • setTime

      @CanIgnoreReturnValue public final ImmutableOutbreakCSV.Builder setTime(int time)
      Initializes the value for the time attribute.
      Parameters:
      time - The value for time
      Returns:
      this builder for use in a chained invocation
    • setIncidence

      @CanIgnoreReturnValue public final ImmutableOutbreakCSV.Builder setIncidence(long incidence)
      Initializes the value for the incidence attribute.
      Parameters:
      incidence - The value for incidence
      Returns:
      this builder for use in a chained invocation
    • setPrevalence

      @CanIgnoreReturnValue public final ImmutableOutbreakCSV.Builder setPrevalence(double prevalence)
      Initializes the value for the prevalence attribute.
      Parameters:
      prevalence - The value for prevalence
      Returns:
      this builder for use in a chained invocation
    • setCumulativeInfections

      @CanIgnoreReturnValue public final ImmutableOutbreakCSV.Builder setCumulativeInfections(long cumulativeInfections)
      Initializes the value for the cumulativeInfections attribute.
      Parameters:
      cumulativeInfections - The value for cumulativeInfections
      Returns:
      this builder for use in a chained invocation
    • setCumulativeDeaths

      @CanIgnoreReturnValue public final ImmutableOutbreakCSV.Builder setCumulativeDeaths(long cumulativeDeaths)
      Initializes the value for the cumulativeDeaths attribute.
      Parameters:
      cumulativeDeaths - The value for cumulativeDeaths
      Returns:
      this builder for use in a chained invocation
    • setHospitalisedCount

      @CanIgnoreReturnValue public final ImmutableOutbreakCSV.Builder setHospitalisedCount(long hospitalisedCount)
      Initializes the value for the hospitalisedCount attribute.
      Parameters:
      hospitalisedCount - The value for hospitalisedCount
      Returns:
      this builder for use in a chained invocation
    • setInfectedCount

      @CanIgnoreReturnValue public final ImmutableOutbreakCSV.Builder setInfectedCount(long infectedCount)
      Initializes the value for the infectedCount attribute.
      Parameters:
      infectedCount - The value for infectedCount
      Returns:
      this builder for use in a chained invocation
    • setSymptomaticCount

      @CanIgnoreReturnValue public final ImmutableOutbreakCSV.Builder setSymptomaticCount(long symptomaticCount)
      Initializes the value for the symptomaticCount attribute.
      Parameters:
      symptomaticCount - The value for symptomaticCount
      Returns:
      this builder for use in a chained invocation
    • setAverageMobility

      @CanIgnoreReturnValue public final ImmutableOutbreakCSV.Builder setAverageMobility(double averageMobility)
      Initializes the value for the averageMobility attribute.
      Parameters:
      averageMobility - The value for averageMobility
      Returns:
      this builder for use in a chained invocation
    • setAverageViralLoad

      @CanIgnoreReturnValue public final ImmutableOutbreakCSV.Builder setAverageViralLoad(double averageViralLoad)
      Initializes the value for the averageViralLoad attribute.
      Parameters:
      averageViralLoad - The value for averageViralLoad
      Returns:
      this builder for use in a chained invocation
    • setAverageCompliance

      @CanIgnoreReturnValue public final ImmutableOutbreakCSV.Builder setAverageCompliance(double averageCompliance)
      Initializes the value for the averageCompliance attribute.
      Parameters:
      averageCompliance - The value for averageCompliance
      Returns:
      this builder for use in a chained invocation
    • setTestPositivesByResultDate

      @CanIgnoreReturnValue public final ImmutableOutbreakCSV.Builder setTestPositivesByResultDate(long testPositivesByResultDate)
      Initializes the value for the testPositivesByResultDate attribute.
      Parameters:
      testPositivesByResultDate - The value for testPositivesByResultDate
      Returns:
      this builder for use in a chained invocation
    • setTestNegativesByResultDate

      @CanIgnoreReturnValue public final ImmutableOutbreakCSV.Builder setTestNegativesByResultDate(long testNegativesByResultDate)
      Initializes the value for the testNegativesByResultDate attribute.
      Parameters:
      testNegativesByResultDate - The value for testNegativesByResultDate
      Returns:
      this builder for use in a chained invocation
    • setPresumedTestPositivePrevalence

      @CanIgnoreReturnValue public final ImmutableOutbreakCSV.Builder setPresumedTestPositivePrevalence(double presumedTestPositivePrevalence)
      Initializes the value for the presumedTestPositivePrevalence attribute.
      Parameters:
      presumedTestPositivePrevalence - The value for presumedTestPositivePrevalence
      Returns:
      this builder for use in a chained invocation
    • setRtEffective

      @CanIgnoreReturnValue public final ImmutableOutbreakCSV.Builder setRtEffective(double rtEffective)
      Initializes the value for the rtEffective attribute.
      Parameters:
      rtEffective - The value for rtEffective
      Returns:
      this builder for use in a chained invocation
    • setPolicy

      @CanIgnoreReturnValue public final ImmutableOutbreakCSV.Builder setPolicy(String policy)
      Initializes the value for the policy attribute.
      Parameters:
      policy - The value for policy
      Returns:
      this builder for use in a chained invocation
    • build

      public ImmutableOutbreakCSV build()
      Builds a new ImmutableOutbreakCSV.
      Returns:
      An immutable instance of OutbreakCSV
      Throws:
      IllegalStateException - if any required attributes are missing