Package io.github.ai4ci.output
Class ImmutableDebugParametersCSV
java.lang.Object
io.github.ai4ci.output.ImmutableDebugParametersCSV
- All Implemented Interfaces:
CSVWriter.Writeable
,CommonCSV.Execution
,CommonCSV.Model
,DebugParametersCSV
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableDebugParametersCSV
extends Object
implements DebugParametersCSV
Immutable implementation of
DebugParametersCSV
.
Use the builder to create immutable instances:
ImmutableDebugParametersCSV.builder()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableDebugParametersCSV
.Nested classes/interfaces inherited from interface io.github.ai4ci.output.DebugParametersCSV
DebugParametersCSV.Selector
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableDebugParametersCSV
.static ImmutableDebugParametersCSV
copyOf
(DebugParametersCSV instance) Creates an immutable copy of aDebugParametersCSV
value.boolean
This instance is equal to all instances ofImmutableDebugParametersCSV
that have equal attribute values.int
int
int
double
double
double
double
int
hashCode()
Computes a hash code from attributes:modelName
,experimentName
,modelReplica
,experimentReplica
,viralLoadTransmissibilityProbabilityFactor
,severitySymptomsCutoff
,severityHospitalisationCutoff
,severityDeathCutoff
,infectiveDuration
.Creates a builder forImmutableDebugParametersCSV
.prefilled with attibute values ofthis
instance to easily create modified copies.toString()
Prints the immutable valueDebugParametersCSV
with attribute values.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.withInfectiveDuration
(int value) Copy the current immutable object by setting a value for theinfectiveDuration
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.withSeverityDeathCutoff
(double value) Copy the current immutable object by setting a value for theseverityDeathCutoff
attribute.withSeverityHospitalisationCutoff
(double value) Copy the current immutable object by setting a value for theseverityHospitalisationCutoff
attribute.withSeveritySymptomsCutoff
(double value) Copy the current immutable object by setting a value for theseveritySymptomsCutoff
attribute.withViralLoadTransmissibilityProbabilityFactor
(double value) Copy the current immutable object by setting a value for theviralLoadTransmissibilityProbabilityFactor
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
-
getViralLoadTransmissibilityProbabilityFactor
public double getViralLoadTransmissibilityProbabilityFactor()- Specified by:
getViralLoadTransmissibilityProbabilityFactor
in interfaceDebugParametersCSV
- Returns:
- The value of the
viralLoadTransmissibilityProbabilityFactor
attribute
-
getSeveritySymptomsCutoff
public double getSeveritySymptomsCutoff()- Specified by:
getSeveritySymptomsCutoff
in interfaceDebugParametersCSV
- Returns:
- The value of the
severitySymptomsCutoff
attribute
-
getSeverityHospitalisationCutoff
public double getSeverityHospitalisationCutoff()- Specified by:
getSeverityHospitalisationCutoff
in interfaceDebugParametersCSV
- Returns:
- The value of the
severityHospitalisationCutoff
attribute
-
getSeverityDeathCutoff
public double getSeverityDeathCutoff()- Specified by:
getSeverityDeathCutoff
in interfaceDebugParametersCSV
- Returns:
- The value of the
severityDeathCutoff
attribute
-
getInfectiveDuration
public int getInfectiveDuration()- Specified by:
getInfectiveDuration
in interfaceDebugParametersCSV
- Returns:
- The value of the
infectiveDuration
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
-
withViralLoadTransmissibilityProbabilityFactor
public final ImmutableDebugParametersCSV withViralLoadTransmissibilityProbabilityFactor(double value) Copy the current immutable object by setting a value for theviralLoadTransmissibilityProbabilityFactor
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for viralLoadTransmissibilityProbabilityFactor- Returns:
- A modified copy of the
this
object
-
withSeveritySymptomsCutoff
Copy the current immutable object by setting a value for theseveritySymptomsCutoff
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for severitySymptomsCutoff- Returns:
- A modified copy of the
this
object
-
withSeverityHospitalisationCutoff
Copy the current immutable object by setting a value for theseverityHospitalisationCutoff
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for severityHospitalisationCutoff- Returns:
- A modified copy of the
this
object
-
withSeverityDeathCutoff
Copy the current immutable object by setting a value for theseverityDeathCutoff
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for severityDeathCutoff- Returns:
- A modified copy of the
this
object
-
withInfectiveDuration
Copy the current immutable object by setting a value for theinfectiveDuration
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for infectiveDuration- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableDebugParametersCSV
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:modelName
,experimentName
,modelReplica
,experimentReplica
,viralLoadTransmissibilityProbabilityFactor
,severitySymptomsCutoff
,severityHospitalisationCutoff
,severityDeathCutoff
,infectiveDuration
. -
toString
Prints the immutable valueDebugParametersCSV
with attribute values. -
copyOf
Creates an immutable copy of aDebugParametersCSV
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 DebugParametersCSV instance
-
toBuilder
Creates a builder forImmutableDebugParametersCSV
.prefilled with attibute values ofthis
instance to easily create modified copies.- Returns:
- A new ImmutableDebugParametersCSV builder with attributes of
this
instance
-
builder
Creates a builder forImmutableDebugParametersCSV
.ImmutableDebugParametersCSV.builder() .setModelName(String) // required
modelName
.setExperimentName(String) // requiredexperimentName
.setModelReplica(int) // requiredmodelReplica
.setExperimentReplica(int) // requiredexperimentReplica
.setViralLoadTransmissibilityProbabilityFactor(double) // requiredviralLoadTransmissibilityProbabilityFactor
.setSeveritySymptomsCutoff(double) // requiredseveritySymptomsCutoff
.setSeverityHospitalisationCutoff(double) // requiredseverityHospitalisationCutoff
.setSeverityDeathCutoff(double) // requiredseverityDeathCutoff
.setInfectiveDuration(int) // requiredinfectiveDuration
.build();- Returns:
- A new ImmutableDebugParametersCSV builder
-