Package io.github.ai4ci.config.inhost
Class ImmutablePhenomenologicalModel
java.lang.Object
io.github.ai4ci.config.inhost.ImmutablePhenomenologicalModel
- All Implemented Interfaces:
DemographicAdjustment.Phenomenological<Abstraction.Distribution,
,Double> InHostConfiguration
,PhenomenologicalModel
,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutablePhenomenologicalModel
extends Object
implements PhenomenologicalModel
Immutable implementation of
PhenomenologicalModel
.
Use the builder to create immutable instances:
ImmutablePhenomenologicalModel.builder()
.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutablePhenomenologicalModel
.Nested classes/interfaces inherited from interface io.github.ai4ci.config.inhost.PhenomenologicalModel
PhenomenologicalModel._PartialPhenomenologicalModel
-
Field Summary
Fields inherited from interface io.github.ai4ci.config.inhost.InHostConfiguration
LIMIT, log
Fields inherited from interface io.github.ai4ci.config.inhost.PhenomenologicalModel
DEFAULT
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutablePhenomenologicalModel
.copyOf
(PhenomenologicalModel instance) Creates an immutable copy of aPhenomenologicalModel
value.boolean
This instance is equal to all instances ofImmutablePhenomenologicalModel
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:infectiousnessCutoff
,incubationPeriod
,approxPeakViralLoad
,incubationToPeakViralLoadDelay
,peakToRecoveryDelay
,approxPeakImmuneResponse
,peakImmuneResponseDelay
,immuneWaningHalfLife
.Creates a builder forImmutablePhenomenologicalModel
.prefilled with attibute values ofthis
instance to easily create modified copies.toString()
Prints the immutable valuePhenomenologicalModel
with attribute values.Copy the current immutable object by setting a value for theapproxPeakImmuneResponse
attribute.Copy the current immutable object by setting a value for theapproxPeakViralLoad
attribute.Copy the current immutable object by setting a value for theimmuneWaningHalfLife
attribute.Copy the current immutable object by setting a value for theincubationPeriod
attribute.Copy the current immutable object by setting a value for theincubationToPeakViralLoadDelay
attribute.withInfectiousnessCutoff
(Double value) Copy the current immutable object by setting a value for theinfectiousnessCutoff
attribute.Copy the current immutable object by setting a value for thepeakImmuneResponseDelay
attribute.Copy the current immutable object by setting a value for thepeakToRecoveryDelay
attribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.github.ai4ci.config.inhost.InHostConfiguration
getSeverityFatalityCutoff, getSeverityHospitalisationCutoff, getSeveritySymptomsCutoff
-
Method Details
-
getInfectiousnessCutoff
- Specified by:
getInfectiousnessCutoff
in interfacePhenomenologicalModel
- Returns:
- The value of the
infectiousnessCutoff
attribute
-
getIncubationPeriod
- Specified by:
getIncubationPeriod
in interfaceDemographicAdjustment.Phenomenological<Abstraction.Distribution,
Double> - Specified by:
getIncubationPeriod
in interfacePhenomenologicalModel
- Returns:
- The value of the
incubationPeriod
attribute
-
getApproxPeakViralLoad
- Specified by:
getApproxPeakViralLoad
in interfacePhenomenologicalModel
- Returns:
- The value of the
approxPeakViralLoad
attribute
-
getIncubationToPeakViralLoadDelay
- Specified by:
getIncubationToPeakViralLoadDelay
in interfacePhenomenologicalModel
- Returns:
- The value of the
incubationToPeakViralLoadDelay
attribute
-
getPeakToRecoveryDelay
- Specified by:
getPeakToRecoveryDelay
in interfaceDemographicAdjustment.Phenomenological<Abstraction.Distribution,
Double> - Specified by:
getPeakToRecoveryDelay
in interfacePhenomenologicalModel
- Returns:
- The value of the
peakToRecoveryDelay
attribute
-
getApproxPeakImmuneResponse
- Specified by:
getApproxPeakImmuneResponse
in interfacePhenomenologicalModel
- Returns:
- The value of the
approxPeakImmuneResponse
attribute
-
getPeakImmuneResponseDelay
- Specified by:
getPeakImmuneResponseDelay
in interfacePhenomenologicalModel
- Returns:
- The value of the
peakImmuneResponseDelay
attribute
-
getImmuneWaningHalfLife
- Specified by:
getImmuneWaningHalfLife
in interfaceDemographicAdjustment.Phenomenological<Abstraction.Distribution,
Double> - Specified by:
getImmuneWaningHalfLife
in interfacePhenomenologicalModel
- Returns:
- The value of the
immuneWaningHalfLife
attribute
-
withInfectiousnessCutoff
Copy the current immutable object by setting a value for theinfectiousnessCutoff
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for infectiousnessCutoff- Returns:
- A modified copy of the
this
object
-
withIncubationPeriod
Copy the current immutable object by setting a value for theincubationPeriod
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for incubationPeriod- Returns:
- A modified copy of the
this
object
-
withApproxPeakViralLoad
Copy the current immutable object by setting a value for theapproxPeakViralLoad
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for approxPeakViralLoad- Returns:
- A modified copy of the
this
object
-
withIncubationToPeakViralLoadDelay
public final ImmutablePhenomenologicalModel withIncubationToPeakViralLoadDelay(Abstraction.Distribution value) Copy the current immutable object by setting a value for theincubationToPeakViralLoadDelay
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for incubationToPeakViralLoadDelay- Returns:
- A modified copy of the
this
object
-
withPeakToRecoveryDelay
Copy the current immutable object by setting a value for thepeakToRecoveryDelay
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for peakToRecoveryDelay- Returns:
- A modified copy of the
this
object
-
withApproxPeakImmuneResponse
public final ImmutablePhenomenologicalModel withApproxPeakImmuneResponse(Abstraction.Distribution value) Copy the current immutable object by setting a value for theapproxPeakImmuneResponse
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for approxPeakImmuneResponse- Returns:
- A modified copy of the
this
object
-
withPeakImmuneResponseDelay
public final ImmutablePhenomenologicalModel withPeakImmuneResponseDelay(Abstraction.Distribution value) Copy the current immutable object by setting a value for thepeakImmuneResponseDelay
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for peakImmuneResponseDelay- Returns:
- A modified copy of the
this
object
-
withImmuneWaningHalfLife
public final ImmutablePhenomenologicalModel withImmuneWaningHalfLife(Abstraction.Distribution value) Copy the current immutable object by setting a value for theimmuneWaningHalfLife
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for immuneWaningHalfLife- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutablePhenomenologicalModel
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:infectiousnessCutoff
,incubationPeriod
,approxPeakViralLoad
,incubationToPeakViralLoadDelay
,peakToRecoveryDelay
,approxPeakImmuneResponse
,peakImmuneResponseDelay
,immuneWaningHalfLife
. -
toString
Prints the immutable valuePhenomenologicalModel
with attribute values. -
copyOf
Creates an immutable copy of aPhenomenologicalModel
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 PhenomenologicalModel instance
-
toBuilder
Creates a builder forImmutablePhenomenologicalModel
.prefilled with attibute values ofthis
instance to easily create modified copies.- Returns:
- A new ImmutablePhenomenologicalModel builder with attributes of
this
instance
-
builder
Creates a builder forImmutablePhenomenologicalModel
.ImmutablePhenomenologicalModel.builder() .setInfectiousnessCutoff(Double) // required
infectiousnessCutoff
.setIncubationPeriod(io.github.ai4ci.abm.mechanics.Abstraction.Distribution) // requiredincubationPeriod
.setApproxPeakViralLoad(io.github.ai4ci.abm.mechanics.Abstraction.Distribution) // requiredapproxPeakViralLoad
.setIncubationToPeakViralLoadDelay(io.github.ai4ci.abm.mechanics.Abstraction.Distribution) // requiredincubationToPeakViralLoadDelay
.setPeakToRecoveryDelay(io.github.ai4ci.abm.mechanics.Abstraction.Distribution) // requiredpeakToRecoveryDelay
.setApproxPeakImmuneResponse(io.github.ai4ci.abm.mechanics.Abstraction.Distribution) // requiredapproxPeakImmuneResponse
.setPeakImmuneResponseDelay(io.github.ai4ci.abm.mechanics.Abstraction.Distribution) // requiredpeakImmuneResponseDelay
.setImmuneWaningHalfLife(io.github.ai4ci.abm.mechanics.Abstraction.Distribution) // requiredimmuneWaningHalfLife
.build();- Returns:
- A new ImmutablePhenomenologicalModel builder
-