Package io.github.ai4ci.abm.inhost
Class ImmutableInHostStochasticState
java.lang.Object
io.github.ai4ci.abm.inhost.ImmutableInHostStochasticState
- All Implemented Interfaces:
InHostModelState<StochasticModel>
,InHostStochasticState
,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableInHostStochasticState
extends Object
implements InHostStochasticState
Immutable implementation of
InHostStochasticState
.
Use the builder to create immutable instances:
ImmutableInHostStochasticState.builder()
.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableInHostStochasticState
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableInHostStochasticState
.copyOf
(InHostStochasticState instance) Creates an immutable copy of aInHostStochasticState
value.boolean
This instance is equal to all instances ofImmutableInHostStochasticState
that have equal attribute values.double
double
double
int
double
int
int
double
double
double
double
double
int
int
double
int
int
int
int
getTime()
int
int
int
int
hashCode()
Computes a hash code from attributes:targets
,immuneTargetRatio
,immuneActivationRate
,immuneWaningRate
,infectionCarrierProbability
,targetRecoveryRate
,time
,virions
,virionsProduced
,targetSusceptible
,targetExposed
,targetInfected
,immune
,immunePriming
,immuneActive
,baselineViralReplicationRate
,baselineViralInfectionRate
,virionsDiseaseCutoff
,targetRemoved
,normalisedViralLoad
,normalisedSeverity
,immuneActivity
,immuneDormant
.Creates a builder forImmutableInHostStochasticState
.prefilled with attibute values ofthis
instance to easily create modified copies.toString()
Prints the immutable valueInHostStochasticState
with attribute values.withBaselineViralInfectionRate
(double value) Copy the current immutable object by setting a value for thebaselineViralInfectionRate
attribute.withBaselineViralReplicationRate
(double value) Copy the current immutable object by setting a value for thebaselineViralReplicationRate
attribute.withImmune
(Integer value) Copy the current immutable object by setting a value for theimmune
attribute.withImmuneActivationRate
(double value) Copy the current immutable object by setting a value for theimmuneActivationRate
attribute.withImmuneActive
(int value) Copy the current immutable object by setting a value for theimmuneActive
attribute.withImmunePriming
(int value) Copy the current immutable object by setting a value for theimmunePriming
attribute.withImmuneTargetRatio
(double value) Copy the current immutable object by setting a value for theimmuneTargetRatio
attribute.withImmuneWaningRate
(double value) Copy the current immutable object by setting a value for theimmuneWaningRate
attribute.withInfectionCarrierProbability
(double value) Copy the current immutable object by setting a value for theinfectionCarrierProbability
attribute.withTargetExposed
(int value) Copy the current immutable object by setting a value for thetargetExposed
attribute.withTargetInfected
(int value) Copy the current immutable object by setting a value for thetargetInfected
attribute.withTargetRecoveryRate
(double value) Copy the current immutable object by setting a value for thetargetRecoveryRate
attribute.withTargets
(int value) Copy the current immutable object by setting a value for thetargets
attribute.withTargetSusceptible
(int value) Copy the current immutable object by setting a value for thetargetSusceptible
attribute.withTime
(int value) Copy the current immutable object by setting a value for thetime
attribute.withVirions
(int value) Copy the current immutable object by setting a value for thevirions
attribute.withVirionsDiseaseCutoff
(int value) Copy the current immutable object by setting a value for thevirionsDiseaseCutoff
attribute.withVirionsProduced
(int value) Copy the current immutable object by setting a value for thevirionsProduced
attribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.github.ai4ci.abm.inhost.InHostModelState
update
Methods inherited from interface io.github.ai4ci.abm.inhost.InHostStochasticState
isInfected, update
-
Method Details
-
getTargets
public int getTargets()- Specified by:
getTargets
in interfaceInHostStochasticState
- Returns:
- The value of the
targets
attribute
-
getImmuneTargetRatio
public double getImmuneTargetRatio()- Specified by:
getImmuneTargetRatio
in interfaceInHostStochasticState
- Returns:
- The value of the
immuneTargetRatio
attribute
-
getImmuneActivationRate
public double getImmuneActivationRate()- Specified by:
getImmuneActivationRate
in interfaceInHostStochasticState
- Returns:
- The value of the
immuneActivationRate
attribute
-
getImmuneWaningRate
public double getImmuneWaningRate()- Specified by:
getImmuneWaningRate
in interfaceInHostStochasticState
- Returns:
- The value of the
immuneWaningRate
attribute
-
getInfectionCarrierProbability
public double getInfectionCarrierProbability()- Specified by:
getInfectionCarrierProbability
in interfaceInHostStochasticState
- Returns:
- The value of the
infectionCarrierProbability
attribute
-
getTargetRecoveryRate
public double getTargetRecoveryRate()- Specified by:
getTargetRecoveryRate
in interfaceInHostStochasticState
- Returns:
- The value of the
targetRecoveryRate
attribute
-
getTime
public int getTime()- Specified by:
getTime
in interfaceInHostModelState<StochasticModel>
- Specified by:
getTime
in interfaceInHostStochasticState
- Returns:
- The value of the
time
attribute
-
getVirions
public int getVirions()- Specified by:
getVirions
in interfaceInHostStochasticState
- Returns:
- The value of the
virions
attribute
-
getVirionsProduced
public int getVirionsProduced()- Specified by:
getVirionsProduced
in interfaceInHostStochasticState
- Returns:
- The value of the
virionsProduced
attribute
-
getTargetSusceptible
public int getTargetSusceptible()- Specified by:
getTargetSusceptible
in interfaceInHostStochasticState
- Returns:
- The value of the
targetSusceptible
attribute
-
getTargetExposed
public int getTargetExposed()- Specified by:
getTargetExposed
in interfaceInHostStochasticState
- Returns:
- The value of the
targetExposed
attribute
-
getTargetInfected
public int getTargetInfected()- Specified by:
getTargetInfected
in interfaceInHostStochasticState
- Returns:
- The value of the
targetInfected
attribute
-
getImmune
- Specified by:
getImmune
in interfaceInHostStochasticState
- Returns:
- The value of the
immune
attribute
-
getImmunePriming
public int getImmunePriming()- Specified by:
getImmunePriming
in interfaceInHostStochasticState
- Returns:
- The value of the
immunePriming
attribute
-
getImmuneActive
public int getImmuneActive()- Specified by:
getImmuneActive
in interfaceInHostStochasticState
- Returns:
- The value of the
immuneActive
attribute
-
getBaselineViralReplicationRate
public double getBaselineViralReplicationRate()- Specified by:
getBaselineViralReplicationRate
in interfaceInHostStochasticState
- Returns:
- The value of the
baselineViralReplicationRate
attribute
-
getBaselineViralInfectionRate
public double getBaselineViralInfectionRate()- Specified by:
getBaselineViralInfectionRate
in interfaceInHostStochasticState
- Returns:
- The value of the
baselineViralInfectionRate
attribute
-
getVirionsDiseaseCutoff
public int getVirionsDiseaseCutoff()- Specified by:
getVirionsDiseaseCutoff
in interfaceInHostStochasticState
- Returns:
- The value of the
virionsDiseaseCutoff
attribute
-
getTargetRemoved
public int getTargetRemoved()- Specified by:
getTargetRemoved
in interfaceInHostStochasticState
- Returns:
- The computed-at-construction value of the
targetRemoved
attribute
-
getNormalisedViralLoad
public double getNormalisedViralLoad()- Specified by:
getNormalisedViralLoad
in interfaceInHostModelState<StochasticModel>
- Specified by:
getNormalisedViralLoad
in interfaceInHostStochasticState
- Returns:
- The computed-at-construction value of the
normalisedViralLoad
attribute
-
getNormalisedSeverity
public double getNormalisedSeverity()- Specified by:
getNormalisedSeverity
in interfaceInHostModelState<StochasticModel>
- Specified by:
getNormalisedSeverity
in interfaceInHostStochasticState
- Returns:
- The computed-at-construction value of the
normalisedSeverity
attribute
-
getImmuneActivity
public double getImmuneActivity()- Specified by:
getImmuneActivity
in interfaceInHostModelState<StochasticModel>
- Specified by:
getImmuneActivity
in interfaceInHostStochasticState
- Returns:
- The computed-at-construction value of the
immuneActivity
attribute
-
getImmuneDormant
public int getImmuneDormant()- Specified by:
getImmuneDormant
in interfaceInHostStochasticState
- Returns:
- The computed-at-construction value of the
immuneDormant
attribute
-
withTargets
Copy the current immutable object by setting a value for thetargets
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for targets- Returns:
- A modified copy of the
this
object
-
withImmuneTargetRatio
Copy the current immutable object by setting a value for theimmuneTargetRatio
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for immuneTargetRatio- Returns:
- A modified copy of the
this
object
-
withImmuneActivationRate
Copy the current immutable object by setting a value for theimmuneActivationRate
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for immuneActivationRate- Returns:
- A modified copy of the
this
object
-
withImmuneWaningRate
Copy the current immutable object by setting a value for theimmuneWaningRate
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for immuneWaningRate- Returns:
- A modified copy of the
this
object
-
withInfectionCarrierProbability
Copy the current immutable object by setting a value for theinfectionCarrierProbability
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for infectionCarrierProbability- Returns:
- A modified copy of the
this
object
-
withTargetRecoveryRate
Copy the current immutable object by setting a value for thetargetRecoveryRate
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for targetRecoveryRate- Returns:
- A modified copy of the
this
object
-
withTime
Copy the current immutable object by setting a value for thetime
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for time- Returns:
- A modified copy of the
this
object
-
withVirions
Copy the current immutable object by setting a value for thevirions
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for virions- Returns:
- A modified copy of the
this
object
-
withVirionsProduced
Copy the current immutable object by setting a value for thevirionsProduced
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for virionsProduced- Returns:
- A modified copy of the
this
object
-
withTargetSusceptible
Copy the current immutable object by setting a value for thetargetSusceptible
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for targetSusceptible- Returns:
- A modified copy of the
this
object
-
withTargetExposed
Copy the current immutable object by setting a value for thetargetExposed
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for targetExposed- Returns:
- A modified copy of the
this
object
-
withTargetInfected
Copy the current immutable object by setting a value for thetargetInfected
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for targetInfected- Returns:
- A modified copy of the
this
object
-
withImmune
Copy the current immutable object by setting a value for theimmune
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for immune- Returns:
- A modified copy of the
this
object
-
withImmunePriming
Copy the current immutable object by setting a value for theimmunePriming
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for immunePriming- Returns:
- A modified copy of the
this
object
-
withImmuneActive
Copy the current immutable object by setting a value for theimmuneActive
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for immuneActive- Returns:
- A modified copy of the
this
object
-
withBaselineViralReplicationRate
Copy the current immutable object by setting a value for thebaselineViralReplicationRate
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for baselineViralReplicationRate- Returns:
- A modified copy of the
this
object
-
withBaselineViralInfectionRate
Copy the current immutable object by setting a value for thebaselineViralInfectionRate
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for baselineViralInfectionRate- Returns:
- A modified copy of the
this
object
-
withVirionsDiseaseCutoff
Copy the current immutable object by setting a value for thevirionsDiseaseCutoff
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for virionsDiseaseCutoff- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableInHostStochasticState
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:targets
,immuneTargetRatio
,immuneActivationRate
,immuneWaningRate
,infectionCarrierProbability
,targetRecoveryRate
,time
,virions
,virionsProduced
,targetSusceptible
,targetExposed
,targetInfected
,immune
,immunePriming
,immuneActive
,baselineViralReplicationRate
,baselineViralInfectionRate
,virionsDiseaseCutoff
,targetRemoved
,normalisedViralLoad
,normalisedSeverity
,immuneActivity
,immuneDormant
. -
toString
Prints the immutable valueInHostStochasticState
with attribute values. -
copyOf
Creates an immutable copy of aInHostStochasticState
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 InHostStochasticState instance
-
toBuilder
Creates a builder forImmutableInHostStochasticState
.prefilled with attibute values ofthis
instance to easily create modified copies.- Returns:
- A new ImmutableInHostStochasticState builder with attributes of
this
instance
-
builder
Creates a builder forImmutableInHostStochasticState
.ImmutableInHostStochasticState.builder() .setTargets(int) // required
targets
.setImmuneTargetRatio(double) // requiredimmuneTargetRatio
.setImmuneActivationRate(double) // requiredimmuneActivationRate
.setImmuneWaningRate(double) // requiredimmuneWaningRate
.setInfectionCarrierProbability(double) // requiredinfectionCarrierProbability
.setTargetRecoveryRate(double) // requiredtargetRecoveryRate
.setTime(int) // requiredtime
.setVirions(int) // requiredvirions
.setVirionsProduced(int) // requiredvirionsProduced
.setTargetSusceptible(int) // requiredtargetSusceptible
.setTargetExposed(int) // requiredtargetExposed
.setTargetInfected(int) // requiredtargetInfected
.setImmune(Integer) // optionalimmune
.setImmunePriming(int) // requiredimmunePriming
.setImmuneActive(int) // requiredimmuneActive
.setBaselineViralReplicationRate(double) // requiredbaselineViralReplicationRate
.setBaselineViralInfectionRate(double) // requiredbaselineViralInfectionRate
.setVirionsDiseaseCutoff(int) // requiredvirionsDiseaseCutoff
.build();- Returns:
- A new ImmutableInHostStochasticState builder
-