Package io.github.ai4ci.output
Class ImmutablePersonStateCSV
java.lang.Object
io.github.ai4ci.output.ImmutablePersonStateCSV
- All Implemented Interfaces:
CSVWriter.Writeable
,CommonCSV.Execution
,CommonCSV.Model
,CommonCSV.State
,PersonStateCSV
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutablePersonStateCSV
extends Object
implements PersonStateCSV
Immutable implementation of
PersonStateCSV
.
Use the builder to create immutable instances:
ImmutablePersonStateCSV.builder()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutablePersonStateCSV
.Nested classes/interfaces inherited from interface io.github.ai4ci.output.PersonStateCSV
PersonStateCSV.Selector
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutablePersonStateCSV
.static ImmutablePersonStateCSV
copyOf
(PersonStateCSV instance) Creates an immutable copy of aPersonStateCSV
value.boolean
This instance is equal to all instances ofImmutablePersonStateCSV
that have equal attribute values.long
double
int
long
double
int
double
double
int
double
double
int
getTime()
double
int
hashCode()
Computes a hash code from attributes:modelName
,experimentName
,modelReplica
,experimentReplica
,time
,personId
,behaviour
,infectious
,symptomatic
,requiringHospitalisation
,dead
,normalisedSeverity
,normalisedViralLoad
,contactExposure
,presumedLocalPrevalence
,trueLocalPrevalence
,probabilityInfectiousToday
,logOddsInfectiousToday
,contactCount
,exposureCount
,incidentInfection
.boolean
isDead()
boolean
boolean
boolean
boolean
Creates a builder forImmutablePersonStateCSV
.prefilled with attibute values ofthis
instance to easily create modified copies.toString()
Prints the immutable valuePersonStateCSV
with attribute values.final ImmutablePersonStateCSV
withBehaviour
(String value) Copy the current immutable object by setting a value for thebehaviour
attribute.final ImmutablePersonStateCSV
withContactCount
(long value) Copy the current immutable object by setting a value for thecontactCount
attribute.final ImmutablePersonStateCSV
withContactExposure
(double value) Copy the current immutable object by setting a value for thecontactExposure
attribute.final ImmutablePersonStateCSV
withDead
(boolean value) Copy the current immutable object by setting a value for thedead
attribute.final ImmutablePersonStateCSV
withExperimentName
(String value) Copy the current immutable object by setting a value for theexperimentName
attribute.final ImmutablePersonStateCSV
withExperimentReplica
(int value) Copy the current immutable object by setting a value for theexperimentReplica
attribute.final ImmutablePersonStateCSV
withExposureCount
(long value) Copy the current immutable object by setting a value for theexposureCount
attribute.final ImmutablePersonStateCSV
withIncidentInfection
(boolean value) Copy the current immutable object by setting a value for theincidentInfection
attribute.final ImmutablePersonStateCSV
withInfectious
(boolean value) Copy the current immutable object by setting a value for theinfectious
attribute.final ImmutablePersonStateCSV
withLogOddsInfectiousToday
(double value) Copy the current immutable object by setting a value for thelogOddsInfectiousToday
attribute.final ImmutablePersonStateCSV
withModelName
(String value) Copy the current immutable object by setting a value for themodelName
attribute.final ImmutablePersonStateCSV
withModelReplica
(int value) Copy the current immutable object by setting a value for themodelReplica
attribute.final ImmutablePersonStateCSV
withNormalisedSeverity
(double value) Copy the current immutable object by setting a value for thenormalisedSeverity
attribute.final ImmutablePersonStateCSV
withNormalisedViralLoad
(double value) Copy the current immutable object by setting a value for thenormalisedViralLoad
attribute.final ImmutablePersonStateCSV
withPersonId
(int value) Copy the current immutable object by setting a value for thepersonId
attribute.final ImmutablePersonStateCSV
withPresumedLocalPrevalence
(double value) Copy the current immutable object by setting a value for thepresumedLocalPrevalence
attribute.final ImmutablePersonStateCSV
withProbabilityInfectiousToday
(double value) Copy the current immutable object by setting a value for theprobabilityInfectiousToday
attribute.final ImmutablePersonStateCSV
withRequiringHospitalisation
(boolean value) Copy the current immutable object by setting a value for therequiringHospitalisation
attribute.final ImmutablePersonStateCSV
withSymptomatic
(boolean value) Copy the current immutable object by setting a value for thesymptomatic
attribute.final ImmutablePersonStateCSV
withTime
(int value) Copy the current immutable object by setting a value for thetime
attribute.final ImmutablePersonStateCSV
withTrueLocalPrevalence
(double value) Copy the current immutable object by setting a value for thetrueLocalPrevalence
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
-
getPersonId
public int getPersonId()- Specified by:
getPersonId
in interfacePersonStateCSV
- Returns:
- The value of the
personId
attribute
-
getBehaviour
- Specified by:
getBehaviour
in interfacePersonStateCSV
- Returns:
- The value of the
behaviour
attribute
-
isInfectious
public boolean isInfectious()- Specified by:
isInfectious
in interfacePersonStateCSV
- Returns:
- The value of the
infectious
attribute
-
isSymptomatic
public boolean isSymptomatic()- Specified by:
isSymptomatic
in interfacePersonStateCSV
- Returns:
- The value of the
symptomatic
attribute
-
isRequiringHospitalisation
public boolean isRequiringHospitalisation()- Specified by:
isRequiringHospitalisation
in interfacePersonStateCSV
- Returns:
- The value of the
requiringHospitalisation
attribute
-
isDead
public boolean isDead()- Specified by:
isDead
in interfacePersonStateCSV
- Returns:
- The value of the
dead
attribute
-
getNormalisedSeverity
public double getNormalisedSeverity()- Specified by:
getNormalisedSeverity
in interfacePersonStateCSV
- Returns:
- The value of the
normalisedSeverity
attribute
-
getNormalisedViralLoad
public double getNormalisedViralLoad()- Specified by:
getNormalisedViralLoad
in interfacePersonStateCSV
- Returns:
- The value of the
normalisedViralLoad
attribute
-
getContactExposure
public double getContactExposure()- Specified by:
getContactExposure
in interfacePersonStateCSV
- Returns:
- The value of the
contactExposure
attribute
-
getPresumedLocalPrevalence
public double getPresumedLocalPrevalence()- Specified by:
getPresumedLocalPrevalence
in interfacePersonStateCSV
- Returns:
- The value of the
presumedLocalPrevalence
attribute
-
getTrueLocalPrevalence
public double getTrueLocalPrevalence()- Specified by:
getTrueLocalPrevalence
in interfacePersonStateCSV
- Returns:
- The value of the
trueLocalPrevalence
attribute
-
getProbabilityInfectiousToday
public double getProbabilityInfectiousToday()- Specified by:
getProbabilityInfectiousToday
in interfacePersonStateCSV
- Returns:
- The value of the
probabilityInfectiousToday
attribute
-
getLogOddsInfectiousToday
public double getLogOddsInfectiousToday()- Specified by:
getLogOddsInfectiousToday
in interfacePersonStateCSV
- Returns:
- The value of the
logOddsInfectiousToday
attribute
-
getContactCount
public long getContactCount()- Specified by:
getContactCount
in interfacePersonStateCSV
- Returns:
- The value of the
contactCount
attribute
-
getExposureCount
public long getExposureCount()- Specified by:
getExposureCount
in interfacePersonStateCSV
- Returns:
- The value of the
exposureCount
attribute
-
isIncidentInfection
public boolean isIncidentInfection()- Specified by:
isIncidentInfection
in interfacePersonStateCSV
- Returns:
- The value of the
incidentInfection
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
-
withPersonId
Copy the current immutable object by setting a value for thepersonId
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for personId- Returns:
- A modified copy of the
this
object
-
withBehaviour
Copy the current immutable object by setting a value for thebehaviour
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for behaviour- Returns:
- A modified copy of the
this
object
-
withInfectious
Copy the current immutable object by setting a value for theinfectious
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for infectious- Returns:
- A modified copy of the
this
object
-
withSymptomatic
Copy the current immutable object by setting a value for thesymptomatic
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for symptomatic- Returns:
- A modified copy of the
this
object
-
withRequiringHospitalisation
Copy the current immutable object by setting a value for therequiringHospitalisation
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for requiringHospitalisation- Returns:
- A modified copy of the
this
object
-
withDead
Copy the current immutable object by setting a value for thedead
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for dead- Returns:
- A modified copy of the
this
object
-
withNormalisedSeverity
Copy the current immutable object by setting a value for thenormalisedSeverity
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for normalisedSeverity- Returns:
- A modified copy of the
this
object
-
withNormalisedViralLoad
Copy the current immutable object by setting a value for thenormalisedViralLoad
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for normalisedViralLoad- Returns:
- A modified copy of the
this
object
-
withContactExposure
Copy the current immutable object by setting a value for thecontactExposure
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for contactExposure- Returns:
- A modified copy of the
this
object
-
withPresumedLocalPrevalence
Copy the current immutable object by setting a value for thepresumedLocalPrevalence
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for presumedLocalPrevalence- Returns:
- A modified copy of the
this
object
-
withTrueLocalPrevalence
Copy the current immutable object by setting a value for thetrueLocalPrevalence
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for trueLocalPrevalence- Returns:
- A modified copy of the
this
object
-
withProbabilityInfectiousToday
Copy the current immutable object by setting a value for theprobabilityInfectiousToday
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for probabilityInfectiousToday- Returns:
- A modified copy of the
this
object
-
withLogOddsInfectiousToday
Copy the current immutable object by setting a value for thelogOddsInfectiousToday
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for logOddsInfectiousToday- Returns:
- A modified copy of the
this
object
-
withContactCount
Copy the current immutable object by setting a value for thecontactCount
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for contactCount- Returns:
- A modified copy of the
this
object
-
withExposureCount
Copy the current immutable object by setting a value for theexposureCount
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for exposureCount- Returns:
- A modified copy of the
this
object
-
withIncidentInfection
Copy the current immutable object by setting a value for theincidentInfection
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for incidentInfection- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutablePersonStateCSV
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:modelName
,experimentName
,modelReplica
,experimentReplica
,time
,personId
,behaviour
,infectious
,symptomatic
,requiringHospitalisation
,dead
,normalisedSeverity
,normalisedViralLoad
,contactExposure
,presumedLocalPrevalence
,trueLocalPrevalence
,probabilityInfectiousToday
,logOddsInfectiousToday
,contactCount
,exposureCount
,incidentInfection
. -
toString
Prints the immutable valuePersonStateCSV
with attribute values. -
copyOf
Creates an immutable copy of aPersonStateCSV
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 PersonStateCSV instance
-
toBuilder
Creates a builder forImmutablePersonStateCSV
.prefilled with attibute values ofthis
instance to easily create modified copies.- Returns:
- A new ImmutablePersonStateCSV builder with attributes of
this
instance
-
builder
Creates a builder forImmutablePersonStateCSV
.ImmutablePersonStateCSV.builder() .setModelName(String) // required
modelName
.setExperimentName(String) // requiredexperimentName
.setModelReplica(int) // requiredmodelReplica
.setExperimentReplica(int) // requiredexperimentReplica
.setTime(int) // requiredtime
.setPersonId(int) // requiredpersonId
.setBehaviour(String) // requiredbehaviour
.setInfectious(boolean) // requiredinfectious
.setSymptomatic(boolean) // requiredsymptomatic
.setRequiringHospitalisation(boolean) // requiredrequiringHospitalisation
.setDead(boolean) // requireddead
.setNormalisedSeverity(double) // requirednormalisedSeverity
.setNormalisedViralLoad(double) // requirednormalisedViralLoad
.setContactExposure(double) // requiredcontactExposure
.setPresumedLocalPrevalence(double) // requiredpresumedLocalPrevalence
.setTrueLocalPrevalence(double) // requiredtrueLocalPrevalence
.setProbabilityInfectiousToday(double) // requiredprobabilityInfectiousToday
.setLogOddsInfectiousToday(double) // requiredlogOddsInfectiousToday
.setContactCount(long) // requiredcontactCount
.setExposureCount(long) // requiredexposureCount
.setIncidentInfection(boolean) // requiredincidentInfection
.build();- Returns:
- A new ImmutablePersonStateCSV builder
-