Package io.github.ai4ci.abm
Class ImmutablePersonBaseline
java.lang.Object
io.github.ai4ci.abm.ImmutablePersonBaseline
- All Implemented Interfaces:
PersonBaseline
,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutablePersonBaseline
extends Object
implements PersonBaseline
Immutable implementation of
PersonBaseline
.
Use the builder to create immutable instances:
ImmutablePersonBaseline.builder()
.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutablePersonBaseline
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutablePersonBaseline
.static ImmutablePersonBaseline
copyOf
(PersonBaseline instance) Creates an immutable copy of aPersonBaseline
value.boolean
This instance is equal to all instances ofImmutablePersonBaseline
that have equal attribute values.A probability of contact of another person in the social network.The minimum mobility modifier that a person will experience.Am odds ratio on the probability of transmission to someone else given an infectious contact that reflects intrinsic host specific factors that don't vary with time.int
hashCode()
Computes a hash code from attributes:mobilityBaseline
,transmissibilityModifier
,complianceBaseline
,symptomSpecificity
,symptomSensitivity
,defaultBehaviourState
,selfIsolationDepth
,appUseProbability
.Creates a builder forImmutablePersonBaseline
.prefilled with attibute values ofthis
instance to easily create modified copies.toString()
Prints the immutable valuePersonBaseline
with attribute values.final ImmutablePersonBaseline
withAppUseProbability
(Double value) Copy the current immutable object by setting a value for theappUseProbability
attribute.final ImmutablePersonBaseline
withComplianceBaseline
(Double value) Copy the current immutable object by setting a value for thecomplianceBaseline
attribute.final ImmutablePersonBaseline
Copy the current immutable object by setting a value for thedefaultBehaviourState
attribute.final ImmutablePersonBaseline
withMobilityBaseline
(Double value) Copy the current immutable object by setting a value for themobilityBaseline
attribute.final ImmutablePersonBaseline
withSelfIsolationDepth
(Double value) Copy the current immutable object by setting a value for theselfIsolationDepth
attribute.final ImmutablePersonBaseline
withSymptomSensitivity
(Double value) Copy the current immutable object by setting a value for thesymptomSensitivity
attribute.final ImmutablePersonBaseline
withSymptomSpecificity
(Double value) Copy the current immutable object by setting a value for thesymptomSpecificity
attribute.final ImmutablePersonBaseline
Copy the current immutable object by setting a value for thetransmissibilityModifier
attribute.
-
Method Details
-
getMobilityBaseline
A probability of contact of another person in the social network.- Specified by:
getMobilityBaseline
in interfacePersonBaseline
- Returns:
-
getTransmissibilityModifier
Am odds ratio on the probability of transmission to someone else given an infectious contact that reflects intrinsic host specific factors that don't vary with time. Inherent susceptibility due to e.g. age.- Specified by:
getTransmissibilityModifier
in interfacePersonBaseline
- Returns:
-
getComplianceBaseline
- Specified by:
getComplianceBaseline
in interfacePersonBaseline
- Returns:
- The value of the
complianceBaseline
attribute
-
getSymptomSpecificity
- Specified by:
getSymptomSpecificity
in interfacePersonBaseline
- Returns:
- The value of the
symptomSpecificity
attribute
-
getSymptomSensitivity
- Specified by:
getSymptomSensitivity
in interfacePersonBaseline
- Returns:
- The value of the
symptomSensitivity
attribute
-
getDefaultBehaviourState
- Specified by:
getDefaultBehaviourState
in interfacePersonBaseline
- Returns:
- The value of the
defaultBehaviourState
attribute
-
getSelfIsolationDepth
The minimum mobility modifier that a person will experience. This is an odds ratio that is applied to their baseline probability- Specified by:
getSelfIsolationDepth
in interfacePersonBaseline
- Returns:
-
getAppUseProbability
- Specified by:
getAppUseProbability
in interfacePersonBaseline
- Returns:
- The value of the
appUseProbability
attribute
-
withMobilityBaseline
Copy the current immutable object by setting a value for themobilityBaseline
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for mobilityBaseline- Returns:
- A modified copy of the
this
object
-
withTransmissibilityModifier
Copy the current immutable object by setting a value for thetransmissibilityModifier
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for transmissibilityModifier- Returns:
- A modified copy of the
this
object
-
withComplianceBaseline
Copy the current immutable object by setting a value for thecomplianceBaseline
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for complianceBaseline- Returns:
- A modified copy of the
this
object
-
withSymptomSpecificity
Copy the current immutable object by setting a value for thesymptomSpecificity
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for symptomSpecificity- Returns:
- A modified copy of the
this
object
-
withSymptomSensitivity
Copy the current immutable object by setting a value for thesymptomSensitivity
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for symptomSensitivity- Returns:
- A modified copy of the
this
object
-
withDefaultBehaviourState
Copy the current immutable object by setting a value for thedefaultBehaviourState
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for defaultBehaviourState- Returns:
- A modified copy of the
this
object
-
withSelfIsolationDepth
Copy the current immutable object by setting a value for theselfIsolationDepth
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for selfIsolationDepth- Returns:
- A modified copy of the
this
object
-
withAppUseProbability
Copy the current immutable object by setting a value for theappUseProbability
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for appUseProbability- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutablePersonBaseline
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:mobilityBaseline
,transmissibilityModifier
,complianceBaseline
,symptomSpecificity
,symptomSensitivity
,defaultBehaviourState
,selfIsolationDepth
,appUseProbability
. -
toString
Prints the immutable valuePersonBaseline
with attribute values. -
copyOf
Creates an immutable copy of aPersonBaseline
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 PersonBaseline instance
-
toBuilder
Creates a builder forImmutablePersonBaseline
.prefilled with attibute values ofthis
instance to easily create modified copies.- Returns:
- A new ImmutablePersonBaseline builder with attributes of
this
instance
-
builder
Creates a builder forImmutablePersonBaseline
.ImmutablePersonBaseline.builder() .setMobilityBaseline(Double) // required
mobilityBaseline
.setTransmissibilityModifier(Double) // requiredtransmissibilityModifier
.setComplianceBaseline(Double) // requiredcomplianceBaseline
.setSymptomSpecificity(Double) // requiredsymptomSpecificity
.setSymptomSensitivity(Double) // requiredsymptomSensitivity
.setDefaultBehaviourState(io.github.ai4ci.abm.mechanics.StateMachine.BehaviourState) // requireddefaultBehaviourState
.setSelfIsolationDepth(Double) // requiredselfIsolationDepth
.setAppUseProbability(Double) // requiredappUseProbability
.build();- Returns:
- A new ImmutablePersonBaseline builder
-