Package io.github.ai4ci.output
Class ImmutableOutbreakCSV
java.lang.Object
io.github.ai4ci.output.ImmutableOutbreakCSV
- All Implemented Interfaces:
CSVWriter.Writeable
,CommonCSV.Execution
,CommonCSV.Model
,CommonCSV.State
,OutbreakCSV
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableOutbreakCSV
extends Object
implements OutbreakCSV
Immutable implementation of
OutbreakCSV
.
Use the builder to create immutable instances:
ImmutableOutbreakCSV.builder()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableOutbreakCSV
.Nested classes/interfaces inherited from interface io.github.ai4ci.output.OutbreakCSV
OutbreakCSV.Selector
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableOutbreakCSV.Builder
builder()
Creates a builder forImmutableOutbreakCSV
.static ImmutableOutbreakCSV
copyOf
(OutbreakCSV instance) Creates an immutable copy of aOutbreakCSV
value.boolean
This instance is equal to all instances ofImmutableOutbreakCSV
that have equal attribute values.double
double
double
long
long
int
long
long
long
int
double
double
double
long
long
long
int
getTime()
int
hashCode()
Computes a hash code from attributes:modelName
,experimentName
,modelReplica
,experimentReplica
,time
,incidence
,prevalence
,cumulativeInfections
,cumulativeDeaths
,hospitalisedCount
,infectedCount
,symptomaticCount
,averageMobility
,averageViralLoad
,averageCompliance
,testPositivesByResultDate
,testNegativesByResultDate
,presumedTestPositivePrevalence
,rtEffective
,policy
.Creates a builder forImmutableOutbreakCSV
.prefilled with attibute values ofthis
instance to easily create modified copies.toString()
Prints the immutable valueOutbreakCSV
with attribute values.final ImmutableOutbreakCSV
withAverageCompliance
(double value) Copy the current immutable object by setting a value for theaverageCompliance
attribute.final ImmutableOutbreakCSV
withAverageMobility
(double value) Copy the current immutable object by setting a value for theaverageMobility
attribute.final ImmutableOutbreakCSV
withAverageViralLoad
(double value) Copy the current immutable object by setting a value for theaverageViralLoad
attribute.final ImmutableOutbreakCSV
withCumulativeDeaths
(long value) Copy the current immutable object by setting a value for thecumulativeDeaths
attribute.final ImmutableOutbreakCSV
withCumulativeInfections
(long value) Copy the current immutable object by setting a value for thecumulativeInfections
attribute.final ImmutableOutbreakCSV
withExperimentName
(String value) Copy the current immutable object by setting a value for theexperimentName
attribute.final ImmutableOutbreakCSV
withExperimentReplica
(int value) Copy the current immutable object by setting a value for theexperimentReplica
attribute.final ImmutableOutbreakCSV
withHospitalisedCount
(long value) Copy the current immutable object by setting a value for thehospitalisedCount
attribute.final ImmutableOutbreakCSV
withIncidence
(long value) Copy the current immutable object by setting a value for theincidence
attribute.final ImmutableOutbreakCSV
withInfectedCount
(long value) Copy the current immutable object by setting a value for theinfectedCount
attribute.final ImmutableOutbreakCSV
withModelName
(String value) Copy the current immutable object by setting a value for themodelName
attribute.final ImmutableOutbreakCSV
withModelReplica
(int value) Copy the current immutable object by setting a value for themodelReplica
attribute.final ImmutableOutbreakCSV
withPolicy
(String value) Copy the current immutable object by setting a value for thepolicy
attribute.final ImmutableOutbreakCSV
withPresumedTestPositivePrevalence
(double value) Copy the current immutable object by setting a value for thepresumedTestPositivePrevalence
attribute.final ImmutableOutbreakCSV
withPrevalence
(double value) Copy the current immutable object by setting a value for theprevalence
attribute.final ImmutableOutbreakCSV
withRtEffective
(double value) Copy the current immutable object by setting a value for thertEffective
attribute.final ImmutableOutbreakCSV
withSymptomaticCount
(long value) Copy the current immutable object by setting a value for thesymptomaticCount
attribute.final ImmutableOutbreakCSV
withTestNegativesByResultDate
(long value) Copy the current immutable object by setting a value for thetestNegativesByResultDate
attribute.final ImmutableOutbreakCSV
withTestPositivesByResultDate
(long value) Copy the current immutable object by setting a value for thetestPositivesByResultDate
attribute.final ImmutableOutbreakCSV
withTime
(int value) Copy the current immutable object by setting a value for thetime
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
-
getIncidence
public long getIncidence()- Specified by:
getIncidence
in interfaceOutbreakCSV
- Returns:
- The value of the
incidence
attribute
-
getPrevalence
public double getPrevalence()- Specified by:
getPrevalence
in interfaceOutbreakCSV
- Returns:
- The value of the
prevalence
attribute
-
getCumulativeInfections
public long getCumulativeInfections()- Specified by:
getCumulativeInfections
in interfaceOutbreakCSV
- Returns:
- The value of the
cumulativeInfections
attribute
-
getCumulativeDeaths
public long getCumulativeDeaths()- Specified by:
getCumulativeDeaths
in interfaceOutbreakCSV
- Returns:
- The value of the
cumulativeDeaths
attribute
-
getHospitalisedCount
public long getHospitalisedCount()- Specified by:
getHospitalisedCount
in interfaceOutbreakCSV
- Returns:
- The value of the
hospitalisedCount
attribute
-
getInfectedCount
public long getInfectedCount()- Specified by:
getInfectedCount
in interfaceOutbreakCSV
- Returns:
- The value of the
infectedCount
attribute
-
getSymptomaticCount
public long getSymptomaticCount()- Specified by:
getSymptomaticCount
in interfaceOutbreakCSV
- Returns:
- The value of the
symptomaticCount
attribute
-
getAverageMobility
public double getAverageMobility()- Specified by:
getAverageMobility
in interfaceOutbreakCSV
- Returns:
- The value of the
averageMobility
attribute
-
getAverageViralLoad
public double getAverageViralLoad()- Specified by:
getAverageViralLoad
in interfaceOutbreakCSV
- Returns:
- The value of the
averageViralLoad
attribute
-
getAverageCompliance
public double getAverageCompliance()- Specified by:
getAverageCompliance
in interfaceOutbreakCSV
- Returns:
- The value of the
averageCompliance
attribute
-
getTestPositivesByResultDate
public long getTestPositivesByResultDate()- Specified by:
getTestPositivesByResultDate
in interfaceOutbreakCSV
- Returns:
- The value of the
testPositivesByResultDate
attribute
-
getTestNegativesByResultDate
public long getTestNegativesByResultDate()- Specified by:
getTestNegativesByResultDate
in interfaceOutbreakCSV
- Returns:
- The value of the
testNegativesByResultDate
attribute
-
getPresumedTestPositivePrevalence
public double getPresumedTestPositivePrevalence()- Specified by:
getPresumedTestPositivePrevalence
in interfaceOutbreakCSV
- Returns:
- The value of the
presumedTestPositivePrevalence
attribute
-
getRtEffective
public double getRtEffective()- Specified by:
getRtEffective
in interfaceOutbreakCSV
- Returns:
- The value of the
rtEffective
attribute
-
getPolicy
- Specified by:
getPolicy
in interfaceOutbreakCSV
- Returns:
- The value of the
policy
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
-
withIncidence
Copy the current immutable object by setting a value for theincidence
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for incidence- Returns:
- A modified copy of the
this
object
-
withPrevalence
Copy the current immutable object by setting a value for theprevalence
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for prevalence- 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
-
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
-
withHospitalisedCount
Copy the current immutable object by setting a value for thehospitalisedCount
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for hospitalisedCount- Returns:
- A modified copy of the
this
object
-
withInfectedCount
Copy the current immutable object by setting a value for theinfectedCount
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for infectedCount- Returns:
- A modified copy of the
this
object
-
withSymptomaticCount
Copy the current immutable object by setting a value for thesymptomaticCount
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for symptomaticCount- Returns:
- A modified copy of the
this
object
-
withAverageMobility
Copy the current immutable object by setting a value for theaverageMobility
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for averageMobility- Returns:
- A modified copy of the
this
object
-
withAverageViralLoad
Copy the current immutable object by setting a value for theaverageViralLoad
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for averageViralLoad- Returns:
- A modified copy of the
this
object
-
withAverageCompliance
Copy the current immutable object by setting a value for theaverageCompliance
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for averageCompliance- Returns:
- A modified copy of the
this
object
-
withTestPositivesByResultDate
Copy the current immutable object by setting a value for thetestPositivesByResultDate
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for testPositivesByResultDate- Returns:
- A modified copy of the
this
object
-
withTestNegativesByResultDate
Copy the current immutable object by setting a value for thetestNegativesByResultDate
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for testNegativesByResultDate- Returns:
- A modified copy of the
this
object
-
withPresumedTestPositivePrevalence
Copy the current immutable object by setting a value for thepresumedTestPositivePrevalence
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for presumedTestPositivePrevalence- Returns:
- A modified copy of the
this
object
-
withRtEffective
Copy the current immutable object by setting a value for thertEffective
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for rtEffective- Returns:
- A modified copy of the
this
object
-
withPolicy
Copy the current immutable object by setting a value for thepolicy
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for policy- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableOutbreakCSV
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:modelName
,experimentName
,modelReplica
,experimentReplica
,time
,incidence
,prevalence
,cumulativeInfections
,cumulativeDeaths
,hospitalisedCount
,infectedCount
,symptomaticCount
,averageMobility
,averageViralLoad
,averageCompliance
,testPositivesByResultDate
,testNegativesByResultDate
,presumedTestPositivePrevalence
,rtEffective
,policy
. -
toString
Prints the immutable valueOutbreakCSV
with attribute values. -
copyOf
Creates an immutable copy of aOutbreakCSV
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 OutbreakCSV instance
-
toBuilder
Creates a builder forImmutableOutbreakCSV
.prefilled with attibute values ofthis
instance to easily create modified copies.- Returns:
- A new ImmutableOutbreakCSV builder with attributes of
this
instance
-
builder
Creates a builder forImmutableOutbreakCSV
.ImmutableOutbreakCSV.builder() .setModelName(String) // required
modelName
.setExperimentName(String) // requiredexperimentName
.setModelReplica(int) // requiredmodelReplica
.setExperimentReplica(int) // requiredexperimentReplica
.setTime(int) // requiredtime
.setIncidence(long) // requiredincidence
.setPrevalence(double) // requiredprevalence
.setCumulativeInfections(long) // requiredcumulativeInfections
.setCumulativeDeaths(long) // requiredcumulativeDeaths
.setHospitalisedCount(long) // requiredhospitalisedCount
.setInfectedCount(long) // requiredinfectedCount
.setSymptomaticCount(long) // requiredsymptomaticCount
.setAverageMobility(double) // requiredaverageMobility
.setAverageViralLoad(double) // requiredaverageViralLoad
.setAverageCompliance(double) // requiredaverageCompliance
.setTestPositivesByResultDate(long) // requiredtestPositivesByResultDate
.setTestNegativesByResultDate(long) // requiredtestNegativesByResultDate
.setPresumedTestPositivePrevalence(double) // requiredpresumedTestPositivePrevalence
.setRtEffective(double) // requiredrtEffective
.setPolicy(String) // requiredpolicy
.build();- Returns:
- A new ImmutableOutbreakCSV builder
-