Package io.github.ai4ci.config
Class PartialDemographicAdjustment
java.lang.Object
io.github.ai4ci.config.PartialDemographicAdjustment
- All Implemented Interfaces:
DemographicAdjustment._PartialDemographicAdjustment
,DemographicAdjustment.Execution<Abstraction.SimpleFunction,
,Abstraction.SimpleFunction> DemographicAdjustment.Markov<Abstraction.SimpleFunction,
,Abstraction.SimpleFunction> DemographicAdjustment.Phenomenological<Abstraction.SimpleFunction,
,Abstraction.SimpleFunction> Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class PartialDemographicAdjustment
extends Object
implements DemographicAdjustment._PartialDemographicAdjustment
Immutable implementation of
DemographicAdjustment._PartialDemographicAdjustment
.
Use the builder to create immutable instances:
PartialDemographicAdjustment.builder()
.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typePartialDemographicAdjustment
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forPartialDemographicAdjustment
.static PartialDemographicAdjustment
Creates an immutable copy of aDemographicAdjustment._PartialDemographicAdjustment
value.boolean
This instance is equal to all instances ofPartialDemographicAdjustment
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:asymptomaticFraction
,caseHospitalisationRate
,caseFatalityRate
,complianceProbability
,appUseProbability
,maximumSocialContactReduction
,peakToRecoveryDelay
,incubationPeriod
,immuneWaningHalfLife
,infectiousDuration
,symptomDuration
.toString()
Prints the immutable valueDemographicAdjustment
with attribute values.Copy the current immutable object by setting a value for theappUseProbability
attribute.Copy the current immutable object by setting a value for theasymptomaticFraction
attribute.Copy the current immutable object by setting a value for thecaseFatalityRate
attribute.Copy the current immutable object by setting a value for thecaseHospitalisationRate
attribute.Copy the current immutable object by setting a value for thecomplianceProbability
attribute.Copy the current immutable object by setting a value for theimmuneWaningHalfLife
attribute.Copy the current immutable object by setting a value for theincubationPeriod
attribute.Copy the current immutable object by setting a value for theinfectiousDuration
attribute.Copy the current immutable object by setting a value for themaximumSocialContactReduction
attribute.Copy the current immutable object by setting a value for thepeakToRecoveryDelay
attribute.Copy the current immutable object by setting a value for thesymptomDuration
attribute.
-
Method Details
-
getAsymptomaticFraction
- Specified by:
getAsymptomaticFraction
in interfaceDemographicAdjustment.Execution<Abstraction.SimpleFunction,
Abstraction.SimpleFunction> - Returns:
- The value of the
asymptomaticFraction
attribute
-
getCaseHospitalisationRate
- Specified by:
getCaseHospitalisationRate
in interfaceDemographicAdjustment.Execution<Abstraction.SimpleFunction,
Abstraction.SimpleFunction> - Returns:
- The value of the
caseHospitalisationRate
attribute
-
getCaseFatalityRate
- Specified by:
getCaseFatalityRate
in interfaceDemographicAdjustment.Execution<Abstraction.SimpleFunction,
Abstraction.SimpleFunction> - Returns:
- The value of the
caseFatalityRate
attribute
-
getComplianceProbability
- Specified by:
getComplianceProbability
in interfaceDemographicAdjustment.Execution<Abstraction.SimpleFunction,
Abstraction.SimpleFunction> - Returns:
- The value of the
complianceProbability
attribute
-
getAppUseProbability
- Specified by:
getAppUseProbability
in interfaceDemographicAdjustment.Execution<Abstraction.SimpleFunction,
Abstraction.SimpleFunction> - Returns:
- The value of the
appUseProbability
attribute
-
getMaximumSocialContactReduction
- Specified by:
getMaximumSocialContactReduction
in interfaceDemographicAdjustment.Execution<Abstraction.SimpleFunction,
Abstraction.SimpleFunction> - Returns:
- The value of the
maximumSocialContactReduction
attribute
-
getPeakToRecoveryDelay
- Specified by:
getPeakToRecoveryDelay
in interfaceDemographicAdjustment.Phenomenological<Abstraction.SimpleFunction,
Abstraction.SimpleFunction> - Returns:
- The value of the
peakToRecoveryDelay
attribute
-
getIncubationPeriod
- Specified by:
getIncubationPeriod
in interfaceDemographicAdjustment.Markov<Abstraction.SimpleFunction,
Abstraction.SimpleFunction> - Specified by:
getIncubationPeriod
in interfaceDemographicAdjustment.Phenomenological<Abstraction.SimpleFunction,
Abstraction.SimpleFunction> - Returns:
- The value of the
incubationPeriod
attribute
-
getImmuneWaningHalfLife
- Specified by:
getImmuneWaningHalfLife
in interfaceDemographicAdjustment.Markov<Abstraction.SimpleFunction,
Abstraction.SimpleFunction> - Specified by:
getImmuneWaningHalfLife
in interfaceDemographicAdjustment.Phenomenological<Abstraction.SimpleFunction,
Abstraction.SimpleFunction> - Returns:
- The value of the
immuneWaningHalfLife
attribute
-
getInfectiousDuration
- Specified by:
getInfectiousDuration
in interfaceDemographicAdjustment.Markov<Abstraction.SimpleFunction,
Abstraction.SimpleFunction> - Returns:
- The value of the
infectiousDuration
attribute
-
getSymptomDuration
- Specified by:
getSymptomDuration
in interfaceDemographicAdjustment.Markov<Abstraction.SimpleFunction,
Abstraction.SimpleFunction> - Returns:
- The value of the
symptomDuration
attribute
-
withAsymptomaticFraction
public final PartialDemographicAdjustment withAsymptomaticFraction(Abstraction.SimpleFunction value) Copy the current immutable object by setting a value for theasymptomaticFraction
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for asymptomaticFraction (can benull
)- Returns:
- A modified copy of the
this
object
-
withCaseHospitalisationRate
public final PartialDemographicAdjustment withCaseHospitalisationRate(Abstraction.SimpleFunction value) Copy the current immutable object by setting a value for thecaseHospitalisationRate
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for caseHospitalisationRate (can benull
)- Returns:
- A modified copy of the
this
object
-
withCaseFatalityRate
Copy the current immutable object by setting a value for thecaseFatalityRate
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for caseFatalityRate (can benull
)- Returns:
- A modified copy of the
this
object
-
withComplianceProbability
public final PartialDemographicAdjustment withComplianceProbability(Abstraction.SimpleFunction value) Copy the current immutable object by setting a value for thecomplianceProbability
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for complianceProbability (can benull
)- Returns:
- A modified copy of the
this
object
-
withAppUseProbability
Copy the current immutable object by setting a value for theappUseProbability
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for appUseProbability (can benull
)- Returns:
- A modified copy of the
this
object
-
withMaximumSocialContactReduction
public final PartialDemographicAdjustment withMaximumSocialContactReduction(Abstraction.SimpleFunction value) Copy the current immutable object by setting a value for themaximumSocialContactReduction
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for maximumSocialContactReduction (can benull
)- Returns:
- A modified copy of the
this
object
-
withPeakToRecoveryDelay
Copy the current immutable object by setting a value for thepeakToRecoveryDelay
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for peakToRecoveryDelay (can benull
)- Returns:
- A modified copy of the
this
object
-
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
-
withImmuneWaningHalfLife
public final PartialDemographicAdjustment withImmuneWaningHalfLife(Abstraction.SimpleFunction value) 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
-
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
-
equals
This instance is equal to all instances ofPartialDemographicAdjustment
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:asymptomaticFraction
,caseHospitalisationRate
,caseFatalityRate
,complianceProbability
,appUseProbability
,maximumSocialContactReduction
,peakToRecoveryDelay
,incubationPeriod
,immuneWaningHalfLife
,infectiousDuration
,symptomDuration
. -
toString
Prints the immutable valueDemographicAdjustment
with attribute values. -
copyOf
public static PartialDemographicAdjustment copyOf(DemographicAdjustment._PartialDemographicAdjustment instance) Creates an immutable copy of aDemographicAdjustment._PartialDemographicAdjustment
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 DemographicAdjustment instance
-
builder
Creates a builder forPartialDemographicAdjustment
.PartialDemographicAdjustment.builder() .setAsymptomaticFraction(io.github.ai4ci.abm.mechanics.Abstraction.SimpleFunction | null) // nullable
asymptomaticFraction
.setCaseHospitalisationRate(io.github.ai4ci.abm.mechanics.Abstraction.SimpleFunction | null) // nullablecaseHospitalisationRate
.setCaseFatalityRate(io.github.ai4ci.abm.mechanics.Abstraction.SimpleFunction | null) // nullablecaseFatalityRate
.setComplianceProbability(io.github.ai4ci.abm.mechanics.Abstraction.SimpleFunction | null) // nullablecomplianceProbability
.setAppUseProbability(io.github.ai4ci.abm.mechanics.Abstraction.SimpleFunction | null) // nullableappUseProbability
.setMaximumSocialContactReduction(io.github.ai4ci.abm.mechanics.Abstraction.SimpleFunction | null) // nullablemaximumSocialContactReduction
.setPeakToRecoveryDelay(io.github.ai4ci.abm.mechanics.Abstraction.SimpleFunction | null) // nullablepeakToRecoveryDelay
.setIncubationPeriod(io.github.ai4ci.abm.mechanics.Abstraction.SimpleFunction | null) // nullableincubationPeriod
.setImmuneWaningHalfLife(io.github.ai4ci.abm.mechanics.Abstraction.SimpleFunction | null) // nullableimmuneWaningHalfLife
.setInfectiousDuration(io.github.ai4ci.abm.mechanics.Abstraction.SimpleFunction | null) // nullableinfectiousDuration
.setSymptomDuration(io.github.ai4ci.abm.mechanics.Abstraction.SimpleFunction | null) // nullablesymptomDuration
.build();- Returns:
- A new PartialDemographicAdjustment builder
-