Package io.github.ai4ci.config.inhost
Class PartialPhenomenologicalModel.Builder
java.lang.Object
io.github.ai4ci.config.inhost.PartialPhenomenologicalModel.Builder
- Enclosing class:
- PartialPhenomenologicalModel
Builds instances of type
PartialPhenomenologicalModel
.
Initialize attributes and then invoke the build()
method to create an
immutable instance.
Builder
is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a newPartialPhenomenologicalModel
.from
(PhenomenologicalModel instance) Fill a builder with attribute values from the providedio.github.ai4ci.config.inhost.PhenomenologicalModel
instance.Fill a builder with attribute values from the providedio.github.ai4ci.config.inhost.PhenomenologicalModel._PartialPhenomenologicalModel
instance.setApproxPeakImmuneResponse
(Abstraction.Distribution approxPeakImmuneResponse) Initializes the value for theapproxPeakImmuneResponse
attribute.setApproxPeakViralLoad
(Abstraction.Distribution approxPeakViralLoad) Initializes the value for theapproxPeakViralLoad
attribute.setImmuneWaningHalfLife
(Abstraction.Distribution immuneWaningHalfLife) Initializes the value for theimmuneWaningHalfLife
attribute.setIncubationPeriod
(Abstraction.Distribution incubationPeriod) Initializes the value for theincubationPeriod
attribute.setIncubationToPeakViralLoadDelay
(Abstraction.Distribution incubationToPeakViralLoadDelay) Initializes the value for theincubationToPeakViralLoadDelay
attribute.setInfectiousnessCutoff
(Double infectiousnessCutoff) Initializes the value for theinfectiousnessCutoff
attribute.setPeakImmuneResponseDelay
(Abstraction.Distribution peakImmuneResponseDelay) Initializes the value for thepeakImmuneResponseDelay
attribute.setPeakToRecoveryDelay
(Abstraction.Distribution peakToRecoveryDelay) Initializes the value for thepeakToRecoveryDelay
attribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final PartialPhenomenologicalModel.Builder from(PhenomenologicalModel._PartialPhenomenologicalModel instance) Fill a builder with attribute values from the providedio.github.ai4ci.config.inhost.PhenomenologicalModel._PartialPhenomenologicalModel
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final PartialPhenomenologicalModel.Builder from(PhenomenologicalModel instance) Fill a builder with attribute values from the providedio.github.ai4ci.config.inhost.PhenomenologicalModel
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
setInfectiousnessCutoff
@CanIgnoreReturnValue public final PartialPhenomenologicalModel.Builder setInfectiousnessCutoff(Double infectiousnessCutoff) Initializes the value for theinfectiousnessCutoff
attribute.- Parameters:
infectiousnessCutoff
- The value for infectiousnessCutoff (can benull
)- Returns:
this
builder for use in a chained invocation
-
setIncubationPeriod
@CanIgnoreReturnValue public final PartialPhenomenologicalModel.Builder setIncubationPeriod(Abstraction.Distribution incubationPeriod) Initializes the value for theincubationPeriod
attribute.- Parameters:
incubationPeriod
- The value for incubationPeriod (can benull
)- Returns:
this
builder for use in a chained invocation
-
setApproxPeakViralLoad
@CanIgnoreReturnValue public final PartialPhenomenologicalModel.Builder setApproxPeakViralLoad(Abstraction.Distribution approxPeakViralLoad) Initializes the value for theapproxPeakViralLoad
attribute.- Parameters:
approxPeakViralLoad
- The value for approxPeakViralLoad (can benull
)- Returns:
this
builder for use in a chained invocation
-
setIncubationToPeakViralLoadDelay
@CanIgnoreReturnValue public final PartialPhenomenologicalModel.Builder setIncubationToPeakViralLoadDelay(Abstraction.Distribution incubationToPeakViralLoadDelay) Initializes the value for theincubationToPeakViralLoadDelay
attribute.- Parameters:
incubationToPeakViralLoadDelay
- The value for incubationToPeakViralLoadDelay (can benull
)- Returns:
this
builder for use in a chained invocation
-
setPeakToRecoveryDelay
@CanIgnoreReturnValue public final PartialPhenomenologicalModel.Builder setPeakToRecoveryDelay(Abstraction.Distribution peakToRecoveryDelay) Initializes the value for thepeakToRecoveryDelay
attribute.- Parameters:
peakToRecoveryDelay
- The value for peakToRecoveryDelay (can benull
)- Returns:
this
builder for use in a chained invocation
-
setApproxPeakImmuneResponse
@CanIgnoreReturnValue public final PartialPhenomenologicalModel.Builder setApproxPeakImmuneResponse(Abstraction.Distribution approxPeakImmuneResponse) Initializes the value for theapproxPeakImmuneResponse
attribute.- Parameters:
approxPeakImmuneResponse
- The value for approxPeakImmuneResponse (can benull
)- Returns:
this
builder for use in a chained invocation
-
setPeakImmuneResponseDelay
@CanIgnoreReturnValue public final PartialPhenomenologicalModel.Builder setPeakImmuneResponseDelay(Abstraction.Distribution peakImmuneResponseDelay) Initializes the value for thepeakImmuneResponseDelay
attribute.- Parameters:
peakImmuneResponseDelay
- The value for peakImmuneResponseDelay (can benull
)- Returns:
this
builder for use in a chained invocation
-
setImmuneWaningHalfLife
@CanIgnoreReturnValue public final PartialPhenomenologicalModel.Builder setImmuneWaningHalfLife(Abstraction.Distribution immuneWaningHalfLife) Initializes the value for theimmuneWaningHalfLife
attribute.- Parameters:
immuneWaningHalfLife
- The value for immuneWaningHalfLife (can benull
)- Returns:
this
builder for use in a chained invocation
-
build
Builds a newPartialPhenomenologicalModel
.- Returns:
- An immutable instance of PhenomenologicalModel
- Throws:
IllegalStateException
- if any required attributes are missing
-