Uses of Interface
io.github.ai4ci.abm.PersonState
Packages that use PersonState
Package
Description
-
Uses of PersonState in io.github.ai4ci.abm
Classes in io.github.ai4ci.abm that implement PersonStateMethods in io.github.ai4ci.abm that return PersonStateModifier and TypeMethodDescriptionfinal PersonState
ModifiablePerson.getCurrentState()
abstract PersonState
Person.getCurrentState()
default PersonState
Contact.getParticipantState
(PersonTemporalState one) Methods in io.github.ai4ci.abm with parameters of type PersonStateModifier and TypeMethodDescriptionContact.asExposure
(Contact contact, PersonState ph, PersonState infector) static ImmutablePersonState
ImmutablePersonState.copyOf
(PersonState instance) Creates an immutable copy of aPersonState
value.abstract PersonHistory
HistoryMapper.createHistory
(PersonState currentState) HistoryMapperImpl.createHistory
(PersonState currentState) HistoryMapper.currentHistory
(PersonState currentState, int offset) Deprecated.ImmutablePersonState.Builder.from
(PersonState instance) Fill a builder with attribute values from the providedio.github.ai4ci.abm.PersonState
instance.default PersonHistory
Contact.getParticipant
(PersonState one) HistoryMapper.personStateId
(PersonState source) ModifiablePerson.setCurrentState
(PersonState currentState) Assigns a value to thecurrentState
attribute. -
Uses of PersonState in io.github.ai4ci.abm.mechanics
Methods in io.github.ai4ci.abm.mechanics with parameters of type PersonStateModifier and TypeMethodDescriptionstatic StateMachine.BehaviourState
StateUtils.branchTo
(PersonState current, StateMachine.BehaviourState behaviour) Force one person to branch to a set behaviour, the current state is pushed to allow them to return to the current behaviour (using a returnFromBranch call).static void
StateUtils.complianceFatigue
(ImmutablePersonState.Builder builder, PersonState person) Linear step reduction in compliance until reaches zero.static void
StateUtils.complianceRestoreSlowly
(ImmutablePersonState.Builder builder, PersonState person) Linear step improvement in compliance until reaches 1.static void
StateUtils.decreaseSociabilityIfCompliant
(ImmutablePersonState.Builder builder, PersonState person) Self isolate but only if compliant.static void
StateUtils.decreaseSociabilityIfSymptomatic
(ImmutablePersonState.Builder builder, PersonState person) Self isolate in response to symptoms but only if person is compliant.static void
StateUtils.decreaseSociabilitySlowlyIfSymptomatic
(ImmutablePersonState.Builder builder, PersonState person) Decrease mobility by a set proportion for every day that the person is symptomatic, towards the minimum value of their self isolationstatic void
StateUtils.decreaseSociabilityStrictly
(ImmutablePersonState.Builder builder, PersonState person) Self isolate.static TestResult
StateUtils.doLFT
(ImmutablePersonHistory.Builder builder, PersonState person) do a LFT test.static TestResult
StateUtils.doPCR
(ImmutablePersonHistory.Builder builder, PersonState person) do a PCR test.static boolean
StateUtils.isHighRiskOfInfectionAndCompliant
(PersonState person, double cutoff) static boolean
StateUtils.isLFTTestingAllowed
(PersonState person) The person is compliant and they have not had a recent LFT test (within the last 2 days.static boolean
StateUtils.isPCRTestingAllowed
(PersonState person) The person is compliant and they have not had a recent test (within the presumed incubation period of disease).static boolean
StateUtils.isPositiveTestToday
(PersonState person) Only for use in nextState behaviour methods.static boolean
StateUtils.isSymptomaticAndCompliant
(PersonState person, int days) static boolean
StateUtils.isTestedToday
(PersonState person) Only for use in nextState behaviour methods.void
StateMachine.performHistoryUpdate
(ImmutablePersonHistory.Builder builder, PersonState person, Sampler rng) void
StateMachine.performStateUpdate
(ImmutablePersonState.Builder builder, PersonState person, Sampler rng) Update the state machine and store the new statestatic void
StateUtils.resetBehaviour
(ImmutablePersonState.Builder builder, PersonState current) Restore mobility and transmissibility to baseline.static void
StateUtils.restoreSociabilitySlowly
(ImmutablePersonState.Builder builder, PersonState person) Restore mobility and transmissibility by a set proportion to their default levels.static void
StateUtils.restoreSociabilitySlowlyIfAsymptomatic
(ImmutablePersonState.Builder builder, PersonState person) Restore mobility and transmissibility by a set proportion to their default levels while a patient remains asymptomaticstatic void
StateUtils.seekPcrIfSymptomatic
(ImmutablePersonHistory.Builder builder, PersonState person) Seek a test if any symptoms (and compliant, and not recently tested)static void
StateUtils.seekPcrIfSymptomatic
(ImmutablePersonHistory.Builder builder, PersonState person, int days) The person will test themselves using PCR (immediately) if they are symptomatic consecutively for a number of days, compliant and they have not recently been tested.default void
StateUtils.DefaultNoTesting.updateHistory
(ImmutablePersonHistory.Builder builder, PersonState person, StateMachineContext context, Sampler rng) default void
StateUtils.DoesPCRIfSymptomatic.updateHistory
(ImmutablePersonHistory.Builder builder, PersonState person, StateMachineContext context, Sampler rng) -
Uses of PersonState in io.github.ai4ci.output
Methods in io.github.ai4ci.output with parameters of type PersonStateModifier and TypeMethodDescriptionabstract ImmutablePersonStateCSV
CSVMapper.toCSV
(PersonState state) CSVMapperImpl.toCSV
(PersonState state) -
Uses of PersonState in io.github.ai4ci.util
Methods in io.github.ai4ci.util that return PersonStateMethods in io.github.ai4ci.util that return types with arguments of type PersonStateModifier and TypeMethodDescriptionstatic Stream<PersonState>
ModelNav.peopleState
(OutbreakState current) Methods in io.github.ai4ci.util with parameters of type PersonStateModifier and TypeMethodDescriptionstatic Optional<PersonHistory>
ModelNav.history
(PersonState person) static Stream<PersonHistory>
ModelNav.history
(PersonState person, int days)