Package io.github.ai4ci.output
Class ImmutableOutbreakFinalStateCSV.Builder
java.lang.Object
io.github.ai4ci.output.ImmutableOutbreakFinalStateCSV.Builder
- Enclosing class:
- ImmutableOutbreakFinalStateCSV
Builds instances of type
ImmutableOutbreakFinalStateCSV
.
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 Summary
Modifier and TypeMethodDescriptionbuild()
Builds a newImmutableOutbreakFinalStateCSV
.from
(CommonCSV.Execution instance) Fill a builder with attribute values from the providedio.github.ai4ci.output.CommonCSV.Execution
instance.from
(CommonCSV.Model instance) Fill a builder with attribute values from the providedio.github.ai4ci.output.CommonCSV.Model
instance.from
(CommonCSV.State instance) Fill a builder with attribute values from the providedio.github.ai4ci.output.CommonCSV.State
instance.from
(OutbreakFinalStateCSV instance) Fill a builder with attribute values from the providedio.github.ai4ci.output.OutbreakFinalStateCSV
instance.setCumulativeAdmissions
(long cumulativeAdmissions) Initializes the value for thecumulativeAdmissions
attribute.setCumulativeComplianceDecrease
(double cumulativeComplianceDecrease) Initializes the value for thecumulativeComplianceDecrease
attribute.setCumulativeDeaths
(long cumulativeDeaths) Initializes the value for thecumulativeDeaths
attribute.setCumulativeInfections
(long cumulativeInfections) Initializes the value for thecumulativeInfections
attribute.setCumulativeMobilityDecrease
(double cumulativeMobilityDecrease) Initializes the value for thecumulativeMobilityDecrease
attribute.setExperimentName
(String experimentName) Initializes the value for theexperimentName
attribute.setExperimentReplica
(int experimentReplica) Initializes the value for theexperimentReplica
attribute.setMaximumHospitalBurden
(long maximumHospitalBurden) Initializes the value for themaximumHospitalBurden
attribute.setMaximumIncidence
(long maximumIncidence) Initializes the value for themaximumIncidence
attribute.setMaximumPrevalence
(double maximumPrevalence) Initializes the value for themaximumPrevalence
attribute.setModelName
(String modelName) Initializes the value for themodelName
attribute.setModelReplica
(int modelReplica) Initializes the value for themodelReplica
attribute.setTime
(int time) Initializes the value for thetime
attribute.setTimeToMaximumIncidence
(long timeToMaximumIncidence) Initializes the value for thetimeToMaximumIncidence
attribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableOutbreakFinalStateCSV.Builder from(CommonCSV.Execution instance) Fill a builder with attribute values from the providedio.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 ImmutableOutbreakFinalStateCSV.Builder from(CommonCSV.State instance) Fill a builder with attribute values from the providedio.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 ImmutableOutbreakFinalStateCSV.Builder from(CommonCSV.Model instance) Fill a builder with attribute values from the providedio.github.ai4ci.output.CommonCSV.Model
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutableOutbreakFinalStateCSV.Builder from(OutbreakFinalStateCSV instance) Fill a builder with attribute values from the providedio.github.ai4ci.output.OutbreakFinalStateCSV
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
setModelName
@CanIgnoreReturnValue public final ImmutableOutbreakFinalStateCSV.Builder setModelName(String modelName) Initializes the value for themodelName
attribute.- Parameters:
modelName
- The value for modelName- Returns:
this
builder for use in a chained invocation
-
setExperimentName
@CanIgnoreReturnValue public final ImmutableOutbreakFinalStateCSV.Builder setExperimentName(String experimentName) Initializes the value for theexperimentName
attribute.- Parameters:
experimentName
- The value for experimentName- Returns:
this
builder for use in a chained invocation
-
setModelReplica
@CanIgnoreReturnValue public final ImmutableOutbreakFinalStateCSV.Builder setModelReplica(int modelReplica) Initializes the value for themodelReplica
attribute.- Parameters:
modelReplica
- The value for modelReplica- Returns:
this
builder for use in a chained invocation
-
setExperimentReplica
@CanIgnoreReturnValue public final ImmutableOutbreakFinalStateCSV.Builder setExperimentReplica(int experimentReplica) Initializes the value for theexperimentReplica
attribute.- Parameters:
experimentReplica
- The value for experimentReplica- Returns:
this
builder for use in a chained invocation
-
setTime
Initializes the value for thetime
attribute.- Parameters:
time
- The value for time- Returns:
this
builder for use in a chained invocation
-
setCumulativeInfections
@CanIgnoreReturnValue public final ImmutableOutbreakFinalStateCSV.Builder setCumulativeInfections(long cumulativeInfections) Initializes the value for thecumulativeInfections
attribute.- Parameters:
cumulativeInfections
- The value for cumulativeInfections- Returns:
this
builder for use in a chained invocation
-
setCumulativeAdmissions
@CanIgnoreReturnValue public final ImmutableOutbreakFinalStateCSV.Builder setCumulativeAdmissions(long cumulativeAdmissions) Initializes the value for thecumulativeAdmissions
attribute.- Parameters:
cumulativeAdmissions
- The value for cumulativeAdmissions- Returns:
this
builder for use in a chained invocation
-
setCumulativeDeaths
@CanIgnoreReturnValue public final ImmutableOutbreakFinalStateCSV.Builder setCumulativeDeaths(long cumulativeDeaths) Initializes the value for thecumulativeDeaths
attribute.- Parameters:
cumulativeDeaths
- The value for cumulativeDeaths- Returns:
this
builder for use in a chained invocation
-
setMaximumPrevalence
@CanIgnoreReturnValue public final ImmutableOutbreakFinalStateCSV.Builder setMaximumPrevalence(double maximumPrevalence) Initializes the value for themaximumPrevalence
attribute.- Parameters:
maximumPrevalence
- The value for maximumPrevalence- Returns:
this
builder for use in a chained invocation
-
setMaximumIncidence
@CanIgnoreReturnValue public final ImmutableOutbreakFinalStateCSV.Builder setMaximumIncidence(long maximumIncidence) Initializes the value for themaximumIncidence
attribute.- Parameters:
maximumIncidence
- The value for maximumIncidence- Returns:
this
builder for use in a chained invocation
-
setTimeToMaximumIncidence
@CanIgnoreReturnValue public final ImmutableOutbreakFinalStateCSV.Builder setTimeToMaximumIncidence(long timeToMaximumIncidence) Initializes the value for thetimeToMaximumIncidence
attribute.- Parameters:
timeToMaximumIncidence
- The value for timeToMaximumIncidence- Returns:
this
builder for use in a chained invocation
-
setMaximumHospitalBurden
@CanIgnoreReturnValue public final ImmutableOutbreakFinalStateCSV.Builder setMaximumHospitalBurden(long maximumHospitalBurden) Initializes the value for themaximumHospitalBurden
attribute.- Parameters:
maximumHospitalBurden
- The value for maximumHospitalBurden- Returns:
this
builder for use in a chained invocation
-
setCumulativeMobilityDecrease
@CanIgnoreReturnValue public final ImmutableOutbreakFinalStateCSV.Builder setCumulativeMobilityDecrease(double cumulativeMobilityDecrease) Initializes the value for thecumulativeMobilityDecrease
attribute.- Parameters:
cumulativeMobilityDecrease
- The value for cumulativeMobilityDecrease- Returns:
this
builder for use in a chained invocation
-
setCumulativeComplianceDecrease
@CanIgnoreReturnValue public final ImmutableOutbreakFinalStateCSV.Builder setCumulativeComplianceDecrease(double cumulativeComplianceDecrease) Initializes the value for thecumulativeComplianceDecrease
attribute.- Parameters:
cumulativeComplianceDecrease
- The value for cumulativeComplianceDecrease- Returns:
this
builder for use in a chained invocation
-
build
Builds a newImmutableOutbreakFinalStateCSV
.- Returns:
- An immutable instance of OutbreakFinalStateCSV
- Throws:
IllegalStateException
- if any required attributes are missing
-