Package io.github.ai4ci.output
Class ImmutableOutbreakFinalStateCSV
java.lang.Object
io.github.ai4ci.output.ImmutableOutbreakFinalStateCSV
- All Implemented Interfaces:
CSVWriter.Writeable
,CommonCSV.Execution
,CommonCSV.Model
,CommonCSV.State
,OutbreakFinalStateCSV
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableOutbreakFinalStateCSV
extends Object
implements OutbreakFinalStateCSV
Immutable implementation of
OutbreakFinalStateCSV
.
Use the builder to create immutable instances:
ImmutableOutbreakFinalStateCSV.builder()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableOutbreakFinalStateCSV
.Nested classes/interfaces inherited from interface io.github.ai4ci.output.OutbreakFinalStateCSV
OutbreakFinalStateCSV.Selector
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableOutbreakFinalStateCSV
.copyOf
(OutbreakFinalStateCSV instance) Creates an immutable copy of aOutbreakFinalStateCSV
value.boolean
This instance is equal to all instances ofImmutableOutbreakFinalStateCSV
that have equal attribute values.long
double
long
long
double
int
long
long
double
int
int
getTime()
long
int
hashCode()
Computes a hash code from attributes:modelName
,experimentName
,modelReplica
,experimentReplica
,time
,cumulativeInfections
,cumulativeAdmissions
,cumulativeDeaths
,maximumPrevalence
,maximumIncidence
,timeToMaximumIncidence
,maximumHospitalBurden
,cumulativeMobilityDecrease
,cumulativeComplianceDecrease
.Creates a builder forImmutableOutbreakFinalStateCSV
.prefilled with attibute values ofthis
instance to easily create modified copies.toString()
Prints the immutable valueOutbreakFinalStateCSV
with attribute values.withCumulativeAdmissions
(long value) Copy the current immutable object by setting a value for thecumulativeAdmissions
attribute.withCumulativeComplianceDecrease
(double value) Copy the current immutable object by setting a value for thecumulativeComplianceDecrease
attribute.withCumulativeDeaths
(long value) Copy the current immutable object by setting a value for thecumulativeDeaths
attribute.withCumulativeInfections
(long value) Copy the current immutable object by setting a value for thecumulativeInfections
attribute.withCumulativeMobilityDecrease
(double value) Copy the current immutable object by setting a value for thecumulativeMobilityDecrease
attribute.withExperimentName
(String value) Copy the current immutable object by setting a value for theexperimentName
attribute.withExperimentReplica
(int value) Copy the current immutable object by setting a value for theexperimentReplica
attribute.withMaximumHospitalBurden
(long value) Copy the current immutable object by setting a value for themaximumHospitalBurden
attribute.withMaximumIncidence
(long value) Copy the current immutable object by setting a value for themaximumIncidence
attribute.withMaximumPrevalence
(double value) Copy the current immutable object by setting a value for themaximumPrevalence
attribute.withModelName
(String value) Copy the current immutable object by setting a value for themodelName
attribute.withModelReplica
(int value) Copy the current immutable object by setting a value for themodelReplica
attribute.withTime
(int value) Copy the current immutable object by setting a value for thetime
attribute.withTimeToMaximumIncidence
(long value) Copy the current immutable object by setting a value for thetimeToMaximumIncidence
attribute.
-
Method Details
-
getModelName
- Specified by:
getModelName
in interfaceCommonCSV.Model
- Returns:
- The value of the
modelName
attribute
-
getExperimentName
- Specified by:
getExperimentName
in interfaceCommonCSV.Model
- Returns:
- The value of the
experimentName
attribute
-
getModelReplica
public int getModelReplica()- Specified by:
getModelReplica
in interfaceCommonCSV.Execution
- Returns:
- The value of the
modelReplica
attribute
-
getExperimentReplica
public int getExperimentReplica()- Specified by:
getExperimentReplica
in interfaceCommonCSV.Execution
- Returns:
- The value of the
experimentReplica
attribute
-
getTime
public int getTime()- Specified by:
getTime
in interfaceCommonCSV.State
- Returns:
- The value of the
time
attribute
-
getCumulativeInfections
public long getCumulativeInfections()- Specified by:
getCumulativeInfections
in interfaceOutbreakFinalStateCSV
- Returns:
- The value of the
cumulativeInfections
attribute
-
getCumulativeAdmissions
public long getCumulativeAdmissions()- Specified by:
getCumulativeAdmissions
in interfaceOutbreakFinalStateCSV
- Returns:
- The value of the
cumulativeAdmissions
attribute
-
getCumulativeDeaths
public long getCumulativeDeaths()- Specified by:
getCumulativeDeaths
in interfaceOutbreakFinalStateCSV
- Returns:
- The value of the
cumulativeDeaths
attribute
-
getMaximumPrevalence
public double getMaximumPrevalence()- Specified by:
getMaximumPrevalence
in interfaceOutbreakFinalStateCSV
- Returns:
- The value of the
maximumPrevalence
attribute
-
getMaximumIncidence
public long getMaximumIncidence()- Specified by:
getMaximumIncidence
in interfaceOutbreakFinalStateCSV
- Returns:
- The value of the
maximumIncidence
attribute
-
getTimeToMaximumIncidence
public long getTimeToMaximumIncidence()- Specified by:
getTimeToMaximumIncidence
in interfaceOutbreakFinalStateCSV
- Returns:
- The value of the
timeToMaximumIncidence
attribute
-
getMaximumHospitalBurden
public long getMaximumHospitalBurden()- Specified by:
getMaximumHospitalBurden
in interfaceOutbreakFinalStateCSV
- Returns:
- The value of the
maximumHospitalBurden
attribute
-
getCumulativeMobilityDecrease
public double getCumulativeMobilityDecrease()- Specified by:
getCumulativeMobilityDecrease
in interfaceOutbreakFinalStateCSV
- Returns:
- The value of the
cumulativeMobilityDecrease
attribute
-
getCumulativeComplianceDecrease
public double getCumulativeComplianceDecrease()- Specified by:
getCumulativeComplianceDecrease
in interfaceOutbreakFinalStateCSV
- Returns:
- The value of the
cumulativeComplianceDecrease
attribute
-
withModelName
Copy the current immutable object by setting a value for themodelName
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for modelName- Returns:
- A modified copy of the
this
object
-
withExperimentName
Copy the current immutable object by setting a value for theexperimentName
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for experimentName- Returns:
- A modified copy of the
this
object
-
withModelReplica
Copy the current immutable object by setting a value for themodelReplica
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for modelReplica- Returns:
- A modified copy of the
this
object
-
withExperimentReplica
Copy the current immutable object by setting a value for theexperimentReplica
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for experimentReplica- Returns:
- A modified copy of the
this
object
-
withTime
Copy the current immutable object by setting a value for thetime
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for time- Returns:
- A modified copy of the
this
object
-
withCumulativeInfections
Copy the current immutable object by setting a value for thecumulativeInfections
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for cumulativeInfections- Returns:
- A modified copy of the
this
object
-
withCumulativeAdmissions
Copy the current immutable object by setting a value for thecumulativeAdmissions
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for cumulativeAdmissions- Returns:
- A modified copy of the
this
object
-
withCumulativeDeaths
Copy the current immutable object by setting a value for thecumulativeDeaths
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for cumulativeDeaths- Returns:
- A modified copy of the
this
object
-
withMaximumPrevalence
Copy the current immutable object by setting a value for themaximumPrevalence
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for maximumPrevalence- Returns:
- A modified copy of the
this
object
-
withMaximumIncidence
Copy the current immutable object by setting a value for themaximumIncidence
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for maximumIncidence- Returns:
- A modified copy of the
this
object
-
withTimeToMaximumIncidence
Copy the current immutable object by setting a value for thetimeToMaximumIncidence
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for timeToMaximumIncidence- Returns:
- A modified copy of the
this
object
-
withMaximumHospitalBurden
Copy the current immutable object by setting a value for themaximumHospitalBurden
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for maximumHospitalBurden- Returns:
- A modified copy of the
this
object
-
withCumulativeMobilityDecrease
Copy the current immutable object by setting a value for thecumulativeMobilityDecrease
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for cumulativeMobilityDecrease- Returns:
- A modified copy of the
this
object
-
withCumulativeComplianceDecrease
Copy the current immutable object by setting a value for thecumulativeComplianceDecrease
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for cumulativeComplianceDecrease- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableOutbreakFinalStateCSV
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:modelName
,experimentName
,modelReplica
,experimentReplica
,time
,cumulativeInfections
,cumulativeAdmissions
,cumulativeDeaths
,maximumPrevalence
,maximumIncidence
,timeToMaximumIncidence
,maximumHospitalBurden
,cumulativeMobilityDecrease
,cumulativeComplianceDecrease
. -
toString
Prints the immutable valueOutbreakFinalStateCSV
with attribute values. -
copyOf
Creates an immutable copy of aOutbreakFinalStateCSV
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 OutbreakFinalStateCSV instance
-
toBuilder
Creates a builder forImmutableOutbreakFinalStateCSV
.prefilled with attibute values ofthis
instance to easily create modified copies.- Returns:
- A new ImmutableOutbreakFinalStateCSV builder with attributes of
this
instance
-
builder
Creates a builder forImmutableOutbreakFinalStateCSV
.ImmutableOutbreakFinalStateCSV.builder() .setModelName(String) // required
modelName
.setExperimentName(String) // requiredexperimentName
.setModelReplica(int) // requiredmodelReplica
.setExperimentReplica(int) // requiredexperimentReplica
.setTime(int) // requiredtime
.setCumulativeInfections(long) // requiredcumulativeInfections
.setCumulativeAdmissions(long) // requiredcumulativeAdmissions
.setCumulativeDeaths(long) // requiredcumulativeDeaths
.setMaximumPrevalence(double) // requiredmaximumPrevalence
.setMaximumIncidence(long) // requiredmaximumIncidence
.setTimeToMaximumIncidence(long) // requiredtimeToMaximumIncidence
.setMaximumHospitalBurden(long) // requiredmaximumHospitalBurden
.setCumulativeMobilityDecrease(double) // requiredcumulativeMobilityDecrease
.setCumulativeComplianceDecrease(double) // requiredcumulativeComplianceDecrease
.build();- Returns:
- A new ImmutableOutbreakFinalStateCSV builder
-