Uses of Class
io.github.ai4ci.abm.ImmutablePersonHistory.Builder
Packages that use ImmutablePersonHistory.Builder
-
Uses of ImmutablePersonHistory.Builder in io.github.ai4ci.abm
Methods in io.github.ai4ci.abm that return ImmutablePersonHistory.BuilderModifier and TypeMethodDescriptionImmutablePersonHistory.Builder.addAllTodaysTests
(Iterable<? extends TestResult> elements) Adds elements totodaysTests
list.ImmutablePersonHistory.Builder.addTodaysTest
(TestResult element) Adds one element totodaysTests
list.ImmutablePersonHistory.Builder.addTodaysTests
(TestResult... elements) Adds elements totodaysTests
list.ImmutablePersonHistory.builder()
Creates a builder forImmutablePersonHistory
.ImmutablePersonHistory.Builder.from
(PersonHistory instance) Fill a builder with attribute values from the providedio.github.ai4ci.abm.PersonHistory
instance.ImmutablePersonHistory.Builder.from
(PersonTemporalState instance) Fill a builder with attribute values from the providedio.github.ai4ci.abm.PersonTemporalState
instance.ImmutablePersonHistory.Builder.setContactExposure
(double contactExposure) Initializes the value for thecontactExposure
attribute.ImmutablePersonHistory.Builder.setDead
(boolean dead) Initializes the value for thedead
attribute.Initializes the value for theentity
attribute.ImmutablePersonHistory.Builder.setInfectious
(boolean infectious) Initializes the value for theinfectious
attribute.ImmutablePersonHistory.Builder.setNormalisedSeverity
(double normalisedSeverity) Initializes the value for thenormalisedSeverity
attribute.ImmutablePersonHistory.Builder.setNormalisedViralLoad
(double normalisedViralLoad) Initializes the value for thenormalisedViralLoad
attribute.ImmutablePersonHistory.Builder.setPresumedLocalPrevalence
(double presumedLocalPrevalence) Initializes the value for thepresumedLocalPrevalence
attribute.ImmutablePersonHistory.Builder.setReportedSymptomatic
(boolean reportedSymptomatic) Initializes the value for thereportedSymptomatic
attribute.ImmutablePersonHistory.Builder.setRequiringHospitalisation
(boolean requiringHospitalisation) Initializes the value for therequiringHospitalisation
attribute.ImmutablePersonHistory.Builder.setSymptomatic
(boolean symptomatic) Initializes the value for thesymptomatic
attribute.Initializes the value for thetime
attribute.ImmutablePersonHistory.Builder.setTodaysContacts
(Contact... todaysContacts) Initializes the value for thetodaysContacts
attribute.ImmutablePersonHistory.Builder.setTodaysExposures
(Exposure... todaysExposures) Initializes the value for thetodaysExposures
attribute.ImmutablePersonHistory.Builder.setTodaysTests
(Iterable<? extends TestResult> elements) Sets or replaces all elements fortodaysTests
list.ImmutablePersonHistory.toBuilder()
Creates a builder forImmutablePersonHistory
.prefilled with attibute values ofthis
instance to easily create modified copies.Methods in io.github.ai4ci.abm that return types with arguments of type ImmutablePersonHistory.BuilderModifier and TypeMethodDescriptionModifiablePerson.getNextHistory()
abstract Ephemeral<ImmutablePersonHistory.Builder>
Person.getNextHistory()
Method parameters in io.github.ai4ci.abm with type arguments of type ImmutablePersonHistory.BuilderModifier and TypeMethodDescriptionModifiablePerson.setNextHistory
(Ephemeral<ImmutablePersonHistory.Builder> nextHistory) Assigns a value to thenextHistory
attribute. -
Uses of ImmutablePersonHistory.Builder in io.github.ai4ci.abm.mechanics
Methods in io.github.ai4ci.abm.mechanics with parameters of type ImmutablePersonHistory.BuilderModifier and TypeMethodDescriptionstatic 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.void
StateMachine.performHistoryUpdate
(ImmutablePersonHistory.Builder builder, PersonState person, Sampler rng) static 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)