Package io.github.ai4ci.abm.inhost
Class ImmutableInHostMarkovStateMachine
java.lang.Object
io.github.ai4ci.abm.inhost.ImmutableInHostMarkovStateMachine
- All Implemented Interfaces:
InHostMarkovState.InHostMarkovStateMachine
,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableInHostMarkovStateMachine
extends Object
implements InHostMarkovState.InHostMarkovStateMachine
Immutable implementation of
InHostMarkovState.InHostMarkovStateMachine
.
Use the builder to create immutable instances:
ImmutableInHostMarkovStateMachine.builder()
.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableInHostMarkovStateMachine
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableInHostMarkovStateMachine
.Creates an immutable copy of aInHostMarkovState.InHostMarkovStateMachine
value.boolean
This instance is equal to all instances ofImmutableInHostMarkovStateMachine
that have equal attribute values.double
this is the per day probability of becoming symptomatic given that you are infected. it is 1-(1-infection_case_rate)^duration_of_infectiondouble
double
double
double
double
double
double
double
int
hashCode()
Computes a hash code from attributes:pExposedInfectious
,pInfectiousImmune
,pImmuneSusceptible
,pAsymptomaticSymptomatic
,pSymptomaticAsymptomatic
,pSymptomaticHospitalised
,pSymptomaticDead
,pHospitalisedDead
,pHospitalisedAsymptomatic
.Creates a builder forImmutableInHostMarkovStateMachine
.prefilled with attibute values ofthis
instance to easily create modified copies.toString()
Prints the immutable valueInHostMarkovStateMachine
with attribute values.withPAsymptomaticSymptomatic
(double value) Copy the current immutable object by setting a value for thepAsymptomaticSymptomatic
attribute.withPExposedInfectious
(double value) Copy the current immutable object by setting a value for thepExposedInfectious
attribute.withPHospitalisedAsymptomatic
(double value) Copy the current immutable object by setting a value for thepHospitalisedAsymptomatic
attribute.withPHospitalisedDead
(double value) Copy the current immutable object by setting a value for thepHospitalisedDead
attribute.withPImmuneSusceptible
(double value) Copy the current immutable object by setting a value for thepImmuneSusceptible
attribute.withPInfectiousImmune
(double value) Copy the current immutable object by setting a value for thepInfectiousImmune
attribute.withPSymptomaticAsymptomatic
(double value) Copy the current immutable object by setting a value for thepSymptomaticAsymptomatic
attribute.withPSymptomaticDead
(double value) Copy the current immutable object by setting a value for thepSymptomaticDead
attribute.withPSymptomaticHospitalised
(double value) Copy the current immutable object by setting a value for thepSymptomaticHospitalised
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.InHostMarkovState.InHostMarkovStateMachine
updateDiseaseState, updateSymptomState
-
Method Details
-
getPExposedInfectious
public double getPExposedInfectious()- Specified by:
getPExposedInfectious
in interfaceInHostMarkovState.InHostMarkovStateMachine
- Returns:
- The value of the
pExposedInfectious
attribute
-
getPInfectiousImmune
public double getPInfectiousImmune()- Specified by:
getPInfectiousImmune
in interfaceInHostMarkovState.InHostMarkovStateMachine
- Returns:
- The value of the
pInfectiousImmune
attribute
-
getPImmuneSusceptible
public double getPImmuneSusceptible()- Specified by:
getPImmuneSusceptible
in interfaceInHostMarkovState.InHostMarkovStateMachine
- Returns:
- The value of the
pImmuneSusceptible
attribute
-
getPAsymptomaticSymptomatic
public double getPAsymptomaticSymptomatic()this is the per day probability of becoming symptomatic given that you are infected. it is 1-(1-infection_case_rate)^duration_of_infection- Specified by:
getPAsymptomaticSymptomatic
in interfaceInHostMarkovState.InHostMarkovStateMachine
- Returns:
-
getPSymptomaticAsymptomatic
public double getPSymptomaticAsymptomatic()- Specified by:
getPSymptomaticAsymptomatic
in interfaceInHostMarkovState.InHostMarkovStateMachine
- Returns:
- The value of the
pSymptomaticAsymptomatic
attribute
-
getPSymptomaticHospitalised
public double getPSymptomaticHospitalised()- Specified by:
getPSymptomaticHospitalised
in interfaceInHostMarkovState.InHostMarkovStateMachine
- Returns:
- The value of the
pSymptomaticHospitalised
attribute
-
getPSymptomaticDead
public double getPSymptomaticDead()- Specified by:
getPSymptomaticDead
in interfaceInHostMarkovState.InHostMarkovStateMachine
- Returns:
- The value of the
pSymptomaticDead
attribute
-
getPHospitalisedDead
public double getPHospitalisedDead()- Specified by:
getPHospitalisedDead
in interfaceInHostMarkovState.InHostMarkovStateMachine
- Returns:
- The value of the
pHospitalisedDead
attribute
-
getPHospitalisedAsymptomatic
public double getPHospitalisedAsymptomatic()- Specified by:
getPHospitalisedAsymptomatic
in interfaceInHostMarkovState.InHostMarkovStateMachine
- Returns:
- The value of the
pHospitalisedAsymptomatic
attribute
-
withPExposedInfectious
Copy the current immutable object by setting a value for thepExposedInfectious
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for pExposedInfectious- Returns:
- A modified copy of the
this
object
-
withPInfectiousImmune
Copy the current immutable object by setting a value for thepInfectiousImmune
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for pInfectiousImmune- Returns:
- A modified copy of the
this
object
-
withPImmuneSusceptible
Copy the current immutable object by setting a value for thepImmuneSusceptible
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for pImmuneSusceptible- Returns:
- A modified copy of the
this
object
-
withPAsymptomaticSymptomatic
Copy the current immutable object by setting a value for thepAsymptomaticSymptomatic
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for pAsymptomaticSymptomatic- Returns:
- A modified copy of the
this
object
-
withPSymptomaticAsymptomatic
Copy the current immutable object by setting a value for thepSymptomaticAsymptomatic
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for pSymptomaticAsymptomatic- Returns:
- A modified copy of the
this
object
-
withPSymptomaticHospitalised
Copy the current immutable object by setting a value for thepSymptomaticHospitalised
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for pSymptomaticHospitalised- Returns:
- A modified copy of the
this
object
-
withPSymptomaticDead
Copy the current immutable object by setting a value for thepSymptomaticDead
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for pSymptomaticDead- Returns:
- A modified copy of the
this
object
-
withPHospitalisedDead
Copy the current immutable object by setting a value for thepHospitalisedDead
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for pHospitalisedDead- Returns:
- A modified copy of the
this
object
-
withPHospitalisedAsymptomatic
Copy the current immutable object by setting a value for thepHospitalisedAsymptomatic
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for pHospitalisedAsymptomatic- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableInHostMarkovStateMachine
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:pExposedInfectious
,pInfectiousImmune
,pImmuneSusceptible
,pAsymptomaticSymptomatic
,pSymptomaticAsymptomatic
,pSymptomaticHospitalised
,pSymptomaticDead
,pHospitalisedDead
,pHospitalisedAsymptomatic
. -
toString
Prints the immutable valueInHostMarkovStateMachine
with attribute values. -
copyOf
public static ImmutableInHostMarkovStateMachine copyOf(InHostMarkovState.InHostMarkovStateMachine instance) Creates an immutable copy of aInHostMarkovState.InHostMarkovStateMachine
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 InHostMarkovStateMachine instance
-
toBuilder
Creates a builder forImmutableInHostMarkovStateMachine
.prefilled with attibute values ofthis
instance to easily create modified copies.- Returns:
- A new ImmutableInHostMarkovStateMachine builder with attributes of
this
instance
-
builder
Creates a builder forImmutableInHostMarkovStateMachine
.ImmutableInHostMarkovStateMachine.builder() .setPExposedInfectious(double) // required
pExposedInfectious
.setPInfectiousImmune(double) // requiredpInfectiousImmune
.setPImmuneSusceptible(double) // requiredpImmuneSusceptible
.setPAsymptomaticSymptomatic(double) // requiredpAsymptomaticSymptomatic
.setPSymptomaticAsymptomatic(double) // requiredpSymptomaticAsymptomatic
.setPSymptomaticHospitalised(double) // requiredpSymptomaticHospitalised
.setPSymptomaticDead(double) // requiredpSymptomaticDead
.setPHospitalisedDead(double) // requiredpHospitalisedDead
.setPHospitalisedAsymptomatic(double) // requiredpHospitalisedAsymptomatic
.build();- Returns:
- A new ImmutableInHostMarkovStateMachine builder
-