Package io.github.ai4ci.config.inhost
Class PartialPhenomenologicalModel
java.lang.Object
io.github.ai4ci.config.inhost.PartialPhenomenologicalModel
- All Implemented Interfaces:
Abstraction.Modification<PhenomenologicalModel>
,DemographicAdjustment.Phenomenological<Abstraction.Distribution,
,Double> InHostConfiguration
,PhenomenologicalModel
,PhenomenologicalModel._PartialPhenomenologicalModel
,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class PartialPhenomenologicalModel
extends Object
implements PhenomenologicalModel._PartialPhenomenologicalModel
Immutable implementation of
PhenomenologicalModel._PartialPhenomenologicalModel
.
Use the builder to create immutable instances:
PartialPhenomenologicalModel.builder()
.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typePartialPhenomenologicalModel
.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 forPartialPhenomenologicalModel
.static PartialPhenomenologicalModel
Creates an immutable copy of aPhenomenologicalModel._PartialPhenomenologicalModel
value.boolean
This instance is equal to all instances ofPartialPhenomenologicalModel
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:infectiousnessCutoff
,incubationPeriod
,approxPeakViralLoad
,incubationToPeakViralLoadDelay
,peakToRecoveryDelay
,approxPeakImmuneResponse
,peakImmuneResponseDelay
,immuneWaningHalfLife
.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
Methods inherited from interface io.github.ai4ci.config.inhost.PhenomenologicalModel._PartialPhenomenologicalModel
self
-
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 (can benull
)- 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 (can benull
)- 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 (can benull
)- Returns:
- A modified copy of the
this
object
-
withIncubationToPeakViralLoadDelay
public final PartialPhenomenologicalModel 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 (can benull
)- 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 (can benull
)- Returns:
- A modified copy of the
this
object
-
withApproxPeakImmuneResponse
public final PartialPhenomenologicalModel 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 (can benull
)- Returns:
- A modified copy of the
this
object
-
withPeakImmuneResponseDelay
public final PartialPhenomenologicalModel 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 (can benull
)- Returns:
- A modified copy of the
this
object
-
withImmuneWaningHalfLife
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 (can benull
)- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofPartialPhenomenologicalModel
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
public static PartialPhenomenologicalModel copyOf(PhenomenologicalModel._PartialPhenomenologicalModel instance) Creates an immutable copy of aPhenomenologicalModel._PartialPhenomenologicalModel
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
-
builder
Creates a builder forPartialPhenomenologicalModel
.PartialPhenomenologicalModel.builder() .setInfectiousnessCutoff(Double | null) // nullable
infectiousnessCutoff
.setIncubationPeriod(io.github.ai4ci.abm.mechanics.Abstraction.Distribution | null) // nullableincubationPeriod
.setApproxPeakViralLoad(io.github.ai4ci.abm.mechanics.Abstraction.Distribution | null) // nullableapproxPeakViralLoad
.setIncubationToPeakViralLoadDelay(io.github.ai4ci.abm.mechanics.Abstraction.Distribution | null) // nullableincubationToPeakViralLoadDelay
.setPeakToRecoveryDelay(io.github.ai4ci.abm.mechanics.Abstraction.Distribution | null) // nullablepeakToRecoveryDelay
.setApproxPeakImmuneResponse(io.github.ai4ci.abm.mechanics.Abstraction.Distribution | null) // nullableapproxPeakImmuneResponse
.setPeakImmuneResponseDelay(io.github.ai4ci.abm.mechanics.Abstraction.Distribution | null) // nullablepeakImmuneResponseDelay
.setImmuneWaningHalfLife(io.github.ai4ci.abm.mechanics.Abstraction.Distribution | null) // nullableimmuneWaningHalfLife
.build();- Returns:
- A new PartialPhenomenologicalModel builder
-