Package io.github.ai4ci.config.inhost
Class PartialStochasticModel
java.lang.Object
io.github.ai4ci.config.inhost.PartialStochasticModel
- All Implemented Interfaces:
Abstraction.Modification<StochasticModel>
,InHostConfiguration
,StochasticModel
,StochasticModel._PartialStochasticModel
,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class PartialStochasticModel
extends Object
implements StochasticModel._PartialStochasticModel
Immutable implementation of
StochasticModel._PartialStochasticModel
.
Use the builder to create immutable instances:
PartialStochasticModel.builder()
.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typePartialStochasticModel
.Nested classes/interfaces inherited from interface io.github.ai4ci.config.inhost.StochasticModel
StochasticModel._PartialStochasticModel
-
Field Summary
Fields inherited from interface io.github.ai4ci.config.inhost.InHostConfiguration
LIMIT, log
Fields inherited from interface io.github.ai4ci.config.inhost.StochasticModel
DEFAULT
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forPartialStochasticModel
.static PartialStochasticModel
Creates an immutable copy of aStochasticModel._PartialStochasticModel
value.boolean
This instance is equal to all instances ofPartialStochasticModel
that have equal attribute values.Given the parameters for the virus, what is the unit of virions.int
hashCode()
Computes a hash code from attributes:targetCellCount
,immuneTargetRatio
,immuneActivationRate
,immuneWaningRate
,infectionCarrierProbability
,targetRecoveryRate
,baselineViralInfectionRate
,baselineViralReplicationRate
,virionsDiseaseCutoff
.toString()
Prints the immutable valueStochasticModel
with attribute values.final PartialStochasticModel
Copy the current immutable object by setting a value for thebaselineViralInfectionRate
attribute.final PartialStochasticModel
Copy the current immutable object by setting a value for thebaselineViralReplicationRate
attribute.final PartialStochasticModel
Copy the current immutable object by setting a value for theimmuneActivationRate
attribute.final PartialStochasticModel
Copy the current immutable object by setting a value for theimmuneTargetRatio
attribute.final PartialStochasticModel
Copy the current immutable object by setting a value for theimmuneWaningRate
attribute.final PartialStochasticModel
Copy the current immutable object by setting a value for theinfectionCarrierProbability
attribute.final PartialStochasticModel
withTargetCellCount
(Integer value) Copy the current immutable object by setting a value for thetargetCellCount
attribute.final PartialStochasticModel
Copy the current immutable object by setting a value for thetargetRecoveryRate
attribute.final PartialStochasticModel
withVirionsDiseaseCutoff
(Integer value) Copy the current immutable object by setting a value for thevirionsDiseaseCutoff
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.StochasticModel._PartialStochasticModel
self
-
Method Details
-
getTargetCellCount
- Specified by:
getTargetCellCount
in interfaceStochasticModel
- Returns:
- The value of the
targetCellCount
attribute
-
getImmuneTargetRatio
- Specified by:
getImmuneTargetRatio
in interfaceStochasticModel
- Returns:
- The value of the
immuneTargetRatio
attribute
-
getImmuneActivationRate
- Specified by:
getImmuneActivationRate
in interfaceStochasticModel
- Returns:
- The value of the
immuneActivationRate
attribute
-
getImmuneWaningRate
- Specified by:
getImmuneWaningRate
in interfaceStochasticModel
- Returns:
- The value of the
immuneWaningRate
attribute
-
getInfectionCarrierProbability
- Specified by:
getInfectionCarrierProbability
in interfaceStochasticModel
- Returns:
- The value of the
infectionCarrierProbability
attribute
-
getTargetRecoveryRate
- Specified by:
getTargetRecoveryRate
in interfaceStochasticModel
- Returns:
- The value of the
targetRecoveryRate
attribute
-
getBaselineViralInfectionRate
- Specified by:
getBaselineViralInfectionRate
in interfaceStochasticModel
- Returns:
- The value of the
baselineViralInfectionRate
attribute
-
getBaselineViralReplicationRate
- Specified by:
getBaselineViralReplicationRate
in interfaceStochasticModel
- Returns:
- The value of the
baselineViralReplicationRate
attribute
-
getVirionsDiseaseCutoff
Given the parameters for the virus, what is the unit of virions. This is a calibration parameter, and defines the limit of what is considered disease. It should be the lowest value that is transmissible and defines a patient as "infected" it does not follow that an uninfected patient does not have a small in-host viral load.- Specified by:
getVirionsDiseaseCutoff
in interfaceStochasticModel
- Returns:
- the cutoff
-
withTargetCellCount
Copy the current immutable object by setting a value for thetargetCellCount
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for targetCellCount (can benull
)- Returns:
- A modified copy of the
this
object
-
withImmuneTargetRatio
Copy the current immutable object by setting a value for theimmuneTargetRatio
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for immuneTargetRatio (can benull
)- Returns:
- A modified copy of the
this
object
-
withImmuneActivationRate
Copy the current immutable object by setting a value for theimmuneActivationRate
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for immuneActivationRate (can benull
)- Returns:
- A modified copy of the
this
object
-
withImmuneWaningRate
Copy the current immutable object by setting a value for theimmuneWaningRate
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for immuneWaningRate (can benull
)- Returns:
- A modified copy of the
this
object
-
withInfectionCarrierProbability
Copy the current immutable object by setting a value for theinfectionCarrierProbability
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for infectionCarrierProbability (can benull
)- Returns:
- A modified copy of the
this
object
-
withTargetRecoveryRate
Copy the current immutable object by setting a value for thetargetRecoveryRate
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for targetRecoveryRate (can benull
)- Returns:
- A modified copy of the
this
object
-
withBaselineViralInfectionRate
Copy the current immutable object by setting a value for thebaselineViralInfectionRate
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for baselineViralInfectionRate (can benull
)- Returns:
- A modified copy of the
this
object
-
withBaselineViralReplicationRate
Copy the current immutable object by setting a value for thebaselineViralReplicationRate
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for baselineViralReplicationRate (can benull
)- Returns:
- A modified copy of the
this
object
-
withVirionsDiseaseCutoff
Copy the current immutable object by setting a value for thevirionsDiseaseCutoff
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for virionsDiseaseCutoff (can benull
)- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofPartialStochasticModel
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:targetCellCount
,immuneTargetRatio
,immuneActivationRate
,immuneWaningRate
,infectionCarrierProbability
,targetRecoveryRate
,baselineViralInfectionRate
,baselineViralReplicationRate
,virionsDiseaseCutoff
. -
toString
Prints the immutable valueStochasticModel
with attribute values. -
copyOf
Creates an immutable copy of aStochasticModel._PartialStochasticModel
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 StochasticModel instance
-
builder
Creates a builder forPartialStochasticModel
.PartialStochasticModel.builder() .setTargetCellCount(Integer | null) // nullable
targetCellCount
.setImmuneTargetRatio(io.github.ai4ci.abm.mechanics.Abstraction.Distribution | null) // nullableimmuneTargetRatio
.setImmuneActivationRate(io.github.ai4ci.abm.mechanics.Abstraction.Distribution | null) // nullableimmuneActivationRate
.setImmuneWaningRate(io.github.ai4ci.abm.mechanics.Abstraction.Distribution | null) // nullableimmuneWaningRate
.setInfectionCarrierProbability(io.github.ai4ci.abm.mechanics.Abstraction.Distribution | null) // nullableinfectionCarrierProbability
.setTargetRecoveryRate(io.github.ai4ci.abm.mechanics.Abstraction.Distribution | null) // nullabletargetRecoveryRate
.setBaselineViralInfectionRate(Double | null) // nullablebaselineViralInfectionRate
.setBaselineViralReplicationRate(Double | null) // nullablebaselineViralReplicationRate
.setVirionsDiseaseCutoff(Integer | null) // nullablevirionsDiseaseCutoff
.build();- Returns:
- A new PartialStochasticModel builder
-