Individuals

hier eine subsection: wie fragt man den Status der agents ab (hier alle funktionen, wie man states queried)

Overview Structs

Overview Functions

Structs

Missing docstring.

Missing docstring for Agent. Check Documenter's build log for details.

GEMS.IndividualType
Individual

A type to represent individuals that act as agents inside the simulation.

Fields

  • General

    • id::Int32: Unique identifier of the individual
    • sex::Int8: Sex (Female (1), Male(2), Diverse (3))
    • age::Int8: Age
    • occupation::Int16: Occupation class (i.e. manual labour, office job, etc...)
    • education::Int8: Education class (i.e. highest degree)
  • Comorbidities

    • comorbidities::UInt16: Bitmask indicating prevalence of certain health conditions
  • Behaviour

    • social_factor::Float32: Parameter for risk-willingness (-1 to 1)
    • mandate_compliance::Float32: Probability of complying to mandates (-1 to 1)
  • Associated Settings

    • household::Int32: Reference to household id
    • office::Int32: Reference to office id
    • schoolclass::Int32: Reference to schoolclass id
    • municipality::Int32: Reference to municipality id
  • Bookkeeping

    • needs_immunity_update::Bool: Flag for deferred immunity calculations
    • number_of_infections::Int8: Lifetime infection count
    • disease_flags::UInt8: Bitpacked disease-state flags (infected/infectious/symptomatic/severe/critical/dead), accessed via the is_*/*! accessors
    • killing_pathogen_id::Int8: Pathogen credited for the host death (set when death is scheduled, read by the death logger)
  • Interventions

    • detected_mask::UInt32: Bitmask of pathogens for which an infection is detected
    • quarantine_tick::Int16: Start tick of quarantine
    • quarantine_release_tick::Int16: End tick of quarantine
    • quarantine_status::Int8: Status indicator (none, household, etc.)
  • Host Care State (current occupancy only; pending transitions live in the Simulation's HealthSchedule)

    • hospital_demands::Int16: Count of active care contributions demanding a hospital bed. The host occupies the level while the count is above zero.
    • icu_demands::Int16: Count of active care contributions demanding ICU.
    • ventilation_demands::Int16: Count of active care contributions demanding ventilation.
    • death::Int16: Tick of host death
  • Pathogen

    • infection_cache::NTuple{N, InfectionState}: Fixed-size cache of current infections
    • infection_head::Int32: Pointer to the first overflow node in the InfectionRegistry
    • active_pathogens_mask::UInt32: Bitmask of currently active pathogen types
  • Immunity

    • immunity_cache::NTuple{N, ImmunityState}: Fixed-size cache of pathogen immunities
    • immunity_head::Int32: Pointer to the first overflow node in the ImmunityRegistry
  • Extensions

    • extensions::Any: Optional container for dynamically added per-individual attributes (nothing when unused)

Constructors

GEMS.IndividualMethod
Individual(properties::Dict)

Create an individual with the provided properties. Properties must have at least keys id, sex, age.

GEMS.IndividualMethod
Individual(properties::DataFrameRow)

Create an individual with the provided properties. Properties must have at least keys id, sex, age.

Functions

GEMS.ageFunction
age(individual::Individual)

Return an individual's age.

GEMS.class_idFunction
class_id(individual::Individual)

Returns an individual's associated class's ID.

GEMS.comorbiditiesFunction
comorbidities(individual::Individual)

Returns an individual's comorbidities.

Missing docstring.

Missing docstring for dead!(::Individual, ::Bool). Check Documenter's build log for details.

GEMS.deathMethod
death(individual::Individual)

Returns the tick the individual is scheduled to die at, DEFAULT_TICK if none.

Missing docstring.

Missing docstring for detected!(::Individual, ::Bool). Check Documenter's build log for details.

GEMS.educationMethod
education(individual::Individual)

Return an individual's education class

GEMS.end_quarantine!Method
end_quarantine!(individual::Individual)

Ends an individuals quarantine.

Missing docstring.

Missing docstring for exposure(::Individual). Check Documenter's build log for details.

Missing docstring.

Missing docstring for exposure!(::Individual, ::Int16). Check Documenter's build log for details.

GEMS.has_municipalityMethod
has_municipality(individual::Individual)

Returns true if individual is assigned to an instance of type Municipality.

GEMS.home_quarantine!Method
home_quarantine!(individual::Individual)

Quarantines an individual in their household.

GEMS.household_idMethod
household_id(individual::Individual)

Returns an individual's associated household's ID.

GEMS.idMethod
id(individual::Individual)

Return the unique identifier of the individual.

Missing docstring.

Missing docstring for infected!(::Individual,::Bool). Check Documenter's build log for details.

Missing docstring.

Missing docstring for infection_id(::Individual). Check Documenter's build log for details.

Missing docstring.

Missing docstring for infectious!(::Individual, ::Bool). Check Documenter's build log for details.

Missing docstring.

Missing docstring for infectiousness!(::Individual, infectiousness). Check Documenter's build log for details.

Missing docstring.

Missing docstring for infectiousness(::Individual). Check Documenter's build log for details.

Missing docstring.

Missing docstring for infectiousness_onset(::Individual). Check Documenter's build log for details.

Missing docstring.

Missing docstring for infectiousness_onset!(::Individual, ::Int16). Check Documenter's build log for details.

GEMS.is_deadMethod
is_dead(individual::Individual)
isdead(individual::Individual)
dead(individual::Individual)

Returns true if the individual is dead.

Missing docstring.

Missing docstring for is_dead(::Individual, ::Int16). Check Documenter's build log for details.

GEMS.is_detectedMethod
is_detected(individual::Individual)

Returns true if the individual has been detected for any currently active pathogen.

Missing docstring.

Missing docstring for is_detected(::Individual, ::Int16). Check Documenter's build log for details.

GEMS.is_exposedMethod
is_exposed(individual::Individual)
isexposed(individual::Individual)
exposed(individual::Individual)

Returns true if the individual is exposed at the current tick. Exposed means infected but not yet infectious.

Missing docstring.

Missing docstring for is_exposed(::Individual, ::Int16). Check Documenter's build log for details.

GEMS.is_hospitalizedMethod
is_hospitalized(individual::Individual)
ishospitalized(individual::Individual)
hospitalized(individual::Individual)

Returns true if the individual is currently in hospital. Care state is realized as the simulation runs, so there is no timeline to query at an arbitrary tick; use health_episodes for past occupancy.

GEMS.is_icuMethod
is_icu(individual::Individual)
isicu(individual::Individual)
icu(individual::Individual)

Returns true if the individual is currently in the ICU.

GEMS.is_infectedMethod
is_infected(individual::Individual)
isinfected(individual::Individual)
infected(individual::Individual)

Returns the infected flag of the individual.

Missing docstring.

Missing docstring for is_infected(::Individual, ::Int16). Check Documenter's build log for details.

GEMS.is_infectiousMethod
is_infectious(individual::Individual)
isinfectious(individual::Individual)
infectious(individual::Individual)

Returns true iff the individual currently has nonzero shedding for at least one of their active pathogens.

Missing docstring.

Missing docstring for is_infectious(::Individual, ::Int16). Check Documenter's build log for details.

Missing docstring.

Missing docstring for is_mild(::Individual, ::Int16). Check Documenter's build log for details.

Missing docstring.

Missing docstring for is_presymptomatic(::Individual, ::Int16). Check Documenter's build log for details.

Missing docstring.

Missing docstring for is_recovered(::Individual, ::Int16). Check Documenter's build log for details.

GEMS.is_severeMethod
is_severe(individual::Individual)
issevere(individual::Individual)
severe(individual::Individual)

Returns the severe flag of the individual.

Missing docstring.

Missing docstring for is_severe(::Individual, ::Int16). Check Documenter's build log for details.

GEMS.is_studentMethod
is_student(individual::Individual)

Returns true if individual is assigned to an instance of type SchoolClass.

GEMS.is_symptomaticMethod
is_symptomatic(individual::Individual)
issymptomatic(individual::Individual)
symptomatic(individual::Individual)

Returns the symptomatic flag of the individual.

Missing docstring.

Missing docstring for is_symptomatic(::Individual, ::Int16). Check Documenter's build log for details.

GEMS.is_ventilatedMethod
is_ventilated(individual::Individual)
isventilated(individual::Individual)
ventilated(individual::Individual)

Returns true if the individual is currently on a ventilator.

GEMS.is_workingMethod
is_working(individual::Individual)

Returns true if individual is assigned to an instance of type Office.

Missing docstring.

Missing docstring for isquarantined(::Individual). Check Documenter's build log for details.

Missing docstring.

Missing docstring for isvaccinated(::Individual). Check Documenter's build log for details.

Missing docstring.

Missing docstring for last_reported_at!(::Individual, ::Int16). Check Documenter's build log for details.

Missing docstring.

Missing docstring for last_reported_at(::Individual). Check Documenter's build log for details.

Missing docstring.

Missing docstring for last_test!(::Individual, ::Int16). Check Documenter's build log for details.

Missing docstring.

Missing docstring for last_test(::Individual). Check Documenter's build log for details.

Missing docstring.

Missing docstring for last_test_result!(::Individual, ::Bool). Check Documenter's build log for details.

Missing docstring.

Missing docstring for last_test_result(::Individual). Check Documenter's build log for details.

Missing docstring.

Missing docstring for mandate_compliance!(::Individual, ::Float32). Check Documenter's build log for details.

GEMS.mandate_complianceMethod
mandate_compliance(individual::Individual)

Return an individual's mandate_compliance value.

GEMS.municipalityMethod
municipality(i::Individual, sim::Simulation)::Municipality

Returns the Municipality instance referenced in an individual.

GEMS.municipality_idMethod
municipality_id(individual::Individual)

Returns an individual's associated municipalities ID.

GEMS.num_of_infectedMethod
num_of_infected(individuals::Vector{Individual})

Takes a vector of individuals and returns the number of infected individuals.

GEMS.number_of_infectionsMethod
number_of_infections(individual::Individual)

Returns an individual's number of infections (currently infected).

Missing docstring.

Missing docstring for number_of_vaccinations(::Individual). Check Documenter's build log for details.

GEMS.occupationMethod
occupation(individual::Individual)

Returns an individual's occupation class.

GEMS.officeMethod
office(i::Individual, sim::Simulation)::Office

Returns the Office instance referenced in an individual.

GEMS.office_idMethod
office_id(individual::Individual)

Returns an individual's associated office's ID.

Missing docstring.

Missing docstring for pathogen_id(::Individual). Check Documenter's build log for details.

Missing docstring.

Missing docstring for progress_disease!(::Individual, ::Int16). Check Documenter's build log for details.

Missing docstring.

Missing docstring for quarantine_release_tick!(::Individual, ::Int16). Check Documenter's build log for details.

GEMS.quarantine_statusMethod
quarantine_status(individual::Individual)

Returns an individuals quarantine status.

Missing docstring.

Missing docstring for quarantine_tick!(::Individual, ::Int16). Check Documenter's build log for details.

GEMS.quarantine_tickMethod
quarantine_tick(individual::Individual)

Returns an individual's quarantine tick.

Missing docstring.

Missing docstring for recovery(::Individual). Check Documenter's build log for details.

Missing docstring.

Missing docstring for recovery!(::Individual, ::Int16). Check Documenter's build log for details.

Missing docstring.

Missing docstring for reset!(::Individual). Check Documenter's build log for details.

Missing docstring.

Missing docstring for setting_id!(::Individual, ::DataType, ::Int32). Check Documenter's build log for details.

Missing docstring.

Missing docstring for setting_id(::Individual, ::DataType). Check Documenter's build log for details.

Missing docstring.

Missing docstring for settings(::Individual, ::Simulation). Check Documenter's build log for details.

Missing docstring.

Missing docstring for severe!(::Individual, ::Bool). Check Documenter's build log for details.

Missing docstring.

Missing docstring for severeness_offset(::Individual). Check Documenter's build log for details.

Missing docstring.

Missing docstring for severeness_offset!(::Individual, ::Int16). Check Documenter's build log for details.

Missing docstring.

Missing docstring for severeness_onset(::Individual). Check Documenter's build log for details.

Missing docstring.

Missing docstring for severeness_onset!(::Individual, ::Int16). Check Documenter's build log for details.

GEMS.sexMethod
sex(individual::Individual)

Return an individual's sex.

Missing docstring.

Missing docstring for social_factor!(::Individual, ::Float32). Check Documenter's build log for details.

GEMS.social_factorMethod
social_factor(individual::Individual)

Returns an individual's social_factor value.

Missing docstring.

Missing docstring for symptom_onset(::Individual). Check Documenter's build log for details.

Missing docstring.

Missing docstring for symptom_onset!(::Individual, ::Int16). Check Documenter's build log for details.

Missing docstring.

Missing docstring for symptomatic!(::Individual, ::Bool). Check Documenter's build log for details.

Missing docstring.

Missing docstring for vaccination_tick(::Individual). Check Documenter's build log for details.

Missing docstring.

Missing docstring for vaccine_id(::Individual). Check Documenter's build log for details.