Package io.github.ai4ci.config.inhost
Class PartialMarkovStateModel
java.lang.Object
io.github.ai4ci.config.inhost.PartialMarkovStateModel
- All Implemented Interfaces:
Abstraction.Modification<MarkovStateModel>
,DemographicAdjustment.Markov<Abstraction.Distribution,
,Double> InHostConfiguration
,MarkovStateModel
,MarkovStateModel._PartialMarkovStateModel
,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class PartialMarkovStateModel
extends Object
implements MarkovStateModel._PartialMarkovStateModel
Immutable implementation of
MarkovStateModel._PartialMarkovStateModel
.
Use the builder to create immutable instances:
PartialMarkovStateModel.builder()
.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typePartialMarkovStateModel
.Nested classes/interfaces inherited from interface io.github.ai4ci.config.inhost.MarkovStateModel
MarkovStateModel._PartialMarkovStateModel
-
Field Summary
Fields inherited from interface io.github.ai4ci.config.inhost.InHostConfiguration
LIMIT, log
Fields inherited from interface io.github.ai4ci.config.inhost.MarkovStateModel
DEFAULT
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forPartialMarkovStateModel
.static PartialMarkovStateModel
Creates an immutable copy of aMarkovStateModel._PartialMarkovStateModel
value.boolean
This instance is equal to all instances ofPartialMarkovStateModel
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:incubationPeriod
,infectiousDuration
,symptomDuration
,immuneWaningHalfLife
.toString()
Prints the immutable valueMarkovStateModel
with attribute values.final PartialMarkovStateModel
Copy the current immutable object by setting a value for theimmuneWaningHalfLife
attribute.final PartialMarkovStateModel
Copy the current immutable object by setting a value for theincubationPeriod
attribute.final PartialMarkovStateModel
Copy the current immutable object by setting a value for theinfectiousDuration
attribute.final PartialMarkovStateModel
Copy the current immutable object by setting a value for thesymptomDuration
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.MarkovStateModel
getSeverityFatalityCutoff, getSeverityHospitalisationCutoff, getSeveritySymptomsCutoff
Methods inherited from interface io.github.ai4ci.config.inhost.MarkovStateModel._PartialMarkovStateModel
self
-
Method Details
-
getIncubationPeriod
- Specified by:
getIncubationPeriod
in interfaceDemographicAdjustment.Markov<Abstraction.Distribution,
Double> - Specified by:
getIncubationPeriod
in interfaceMarkovStateModel
- Returns:
- The value of the
incubationPeriod
attribute
-
getInfectiousDuration
- Specified by:
getInfectiousDuration
in interfaceDemographicAdjustment.Markov<Abstraction.Distribution,
Double> - Specified by:
getInfectiousDuration
in interfaceMarkovStateModel
- Returns:
- The value of the
infectiousDuration
attribute
-
getSymptomDuration
- Specified by:
getSymptomDuration
in interfaceDemographicAdjustment.Markov<Abstraction.Distribution,
Double> - Specified by:
getSymptomDuration
in interfaceMarkovStateModel
- Returns:
- The value of the
symptomDuration
attribute
-
getImmuneWaningHalfLife
- Specified by:
getImmuneWaningHalfLife
in interfaceDemographicAdjustment.Markov<Abstraction.Distribution,
Double> - Specified by:
getImmuneWaningHalfLife
in interfaceMarkovStateModel
- Returns:
- The value of the
immuneWaningHalfLife
attribute
-
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
-
withInfectiousDuration
Copy the current immutable object by setting a value for theinfectiousDuration
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for infectiousDuration (can benull
)- Returns:
- A modified copy of the
this
object
-
withSymptomDuration
Copy the current immutable object by setting a value for thesymptomDuration
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for symptomDuration (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 ofPartialMarkovStateModel
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:incubationPeriod
,infectiousDuration
,symptomDuration
,immuneWaningHalfLife
. -
toString
Prints the immutable valueMarkovStateModel
with attribute values. -
copyOf
Creates an immutable copy of aMarkovStateModel._PartialMarkovStateModel
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 MarkovStateModel instance
-
builder
Creates a builder forPartialMarkovStateModel
.PartialMarkovStateModel.builder() .setIncubationPeriod(io.github.ai4ci.abm.mechanics.Abstraction.Distribution | null) // nullable
incubationPeriod
.setInfectiousDuration(io.github.ai4ci.abm.mechanics.Abstraction.Distribution | null) // nullableinfectiousDuration
.setSymptomDuration(io.github.ai4ci.abm.mechanics.Abstraction.Distribution | null) // nullablesymptomDuration
.setImmuneWaningHalfLife(io.github.ai4ci.abm.mechanics.Abstraction.Distribution | null) // nullableimmuneWaningHalfLife
.build();- Returns:
- A new PartialMarkovStateModel builder
-