Package io.github.ai4ci.abm.behaviour
Enum LockdownIsolation
- All Implemented Interfaces:
BehaviourModel
,State<ImmutablePersonState.Builder,
,ImmutablePersonHistory.Builder, PersonState, StateMachine.BehaviourState> StateMachine.BehaviourState
,StateUtils.DoesPCRIfSymptomatic
,Serializable
,Comparable<LockdownIsolation>
,java.lang.constant.Constable
public enum LockdownIsolation
extends Enum<LockdownIsolation>
implements BehaviourModel, StateUtils.DoesPCRIfSymptomatic
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEveryone enters minimal mobility state immediately in instruction to lock down (@seeWAIT
).After the lockdown is released, triggered byReactiveLockdown.LOCKDOWN
, people return to a mobility state larger than their baseline, gradually return to their default mobility over the next 10 days, and return to whatever state they were in before the lockdown was triggered.In the locked down waiting state people's compliance levels will decrease linearly. -
Method Summary
Modifier and TypeMethodDescriptionstatic LockdownIsolation
Returns the enum constant of this type with the specified name.static LockdownIsolation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface io.github.ai4ci.abm.mechanics.State
filter, getEnumClass, getName, nextState
Methods inherited from interface io.github.ai4ci.abm.mechanics.StateMachine.BehaviourState
name
Methods inherited from interface io.github.ai4ci.abm.mechanics.StateUtils.DoesPCRIfSymptomatic
updateHistory
-
Enum Constant Details
-
ISOLATE
Everyone enters minimal mobility state immediately in instruction to lock down (@seeWAIT
). This is triggered byReactiveLockdown.MONITOR
. This is centrally enforced and results in the person branching from their previous behaviour pausing that. -
WAIT
In the locked down waiting state people's compliance levels will decrease linearly. If the person's compliance level falls too low the person will randomly become non-compliant to lockdown. In the case of becoming non compliant to lockdown the person will return to whatever they were doing before lockdown (but with reduced compliance) -
RELEASE
After the lockdown is released, triggered byReactiveLockdown.LOCKDOWN
, people return to a mobility state larger than their baseline, gradually return to their default mobility over the next 10 days, and return to whatever state they were in before the lockdown was triggered.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-