| 
    Stride Reference Manual
    - generated for commit 9643b11
    
   | 
 
Holds a person's health data. More...
#include <Health.h>

Public Member Functions | |
| Health (unsigned short int start_infectiousness=0U, unsigned int short start_symptomatic=0U, unsigned short int time_infectious=0U, unsigned short int time_symptomatic=0U) | |
| unsigned short int | GetEndInfectiousness () const | 
| unsigned short int | GetEndSymptomatic () const | 
| unsigned short int | GetStartInfectiousness () const | 
| unsigned short int | GetStartSymptomatic () const | 
| bool | IsImmune () const | 
| Is this person immune?  More... | |
| bool | IsInfected () const | 
| Is this person infected?  More... | |
| bool | IsInfectious () const | 
| Is this person infectious.  More... | |
| bool | IsRecovered () const | 
| Is this person recovered?  More... | |
| bool | IsSusceptible () const | 
| Is this person susceptible?  More... | |
| bool | IsSymptomatic () const | 
| Is this person symptomatic?  More... | |
| bool | SymptomsStartedToday () const | 
| Have the symptoms started today?  More... | |
| void | SetImmune () | 
| Set health state to immune.  More... | |
| void | SetSusceptible () | 
| Set health state to susceptible.  More... | |
| void | StartInfection () | 
| Start the infection.  More... | |
| void | StopInfection () | 
| Stop the infection.  More... | |
| void | Update () | 
| Update progress of the disease.  More... | |
Private Member Functions | |
| unsigned short int | GetDiseaseCounter () const | 
| Get the disease counter.  More... | |
| void | IncrementDiseaseCounter () | 
| Increment disease counter.  More... | |
| void | ResetDiseaseCounter () | 
| Reset the disease counter.  More... | |
Private Attributes | |
| unsigned short int | m_disease_counter | 
| The disease counter.  More... | |
| HealthStatus | m_status | 
| The current status of the person w.r.t. the disease.  More... | |
| unsigned short int | m_start_infectiousness | 
| Days after infection to become infectious.  More... | |
| unsigned short int | m_start_symptomatic | 
| Days after infection to become symptomatic.  More... | |
| unsigned short int | m_end_infectiousness | 
| Days after infection to end infectious state.  More... | |
| unsigned short int | m_end_symptomatic | 
| Days after infection to end symptomatic state.  More... | |
      
  | 
  explicit | 
Definition at line 27 of file Health.cpp.
References stride::Susceptible.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
Is this person infected?
Definition at line 61 of file Health.h.
References stride::Exposed, stride::Infectious, stride::InfectiousAndSymptomatic, and stride::Symptomatic.
Referenced by StopInfection(), and Update().

      
  | 
  inline | 
Is this person infectious.
Definition at line 68 of file Health.h.
References stride::Infectious, and stride::InfectiousAndSymptomatic.
      
  | 
  inline | 
      
  | 
  inline | 
Is this person susceptible?
Definition at line 77 of file Health.h.
References stride::Susceptible.
Referenced by stride::Immunizer::Cocoon(), and stride::DiseaseSeeder::Seed().

      
  | 
  inline | 
Is this person symptomatic?
Definition at line 80 of file Health.h.
References stride::InfectiousAndSymptomatic, and stride::Symptomatic.
      
  | 
  inline | 
      
  | 
  inline | 
Set health state to immune.
Definition at line 89 of file Health.h.
References stride::Immune.
Referenced by stride::Immunizer::Cocoon().

      
  | 
  inline | 
Set health state to susceptible.
Definition at line 92 of file Health.h.
References stride::Susceptible.
| void stride::Health::StartInfection | ( | ) | 
Start the infection.
Definition at line 35 of file Health.cpp.
References AssertThrow, stride::Exposed, m_status, ResetDiseaseCounter(), and stride::Susceptible.
Referenced by stride::Infector< LL, TIC, true >::Exec(), and stride::DiseaseSeeder::Seed().


| void stride::Health::StopInfection | ( | ) | 
Stop the infection.
Definition at line 42 of file Health.cpp.
References AssertThrow, IsInfected(), m_status, and stride::Recovered.
Referenced by Update().


| void stride::Health::Update | ( | ) | 
Update progress of the disease.
Definition at line 48 of file Health.cpp.
References GetDiseaseCounter(), IncrementDiseaseCounter(), stride::Infectious, stride::InfectiousAndSymptomatic, IsInfected(), m_end_infectiousness, m_end_symptomatic, m_start_infectiousness, m_start_symptomatic, m_status, StopInfection(), and stride::Symptomatic.

      
  | 
  inlineprivate | 
      
  | 
  inlineprivate | 
      
  | 
  inlineprivate | 
Reset the disease counter.
Definition at line 111 of file Health.h.
Referenced by StartInfection().

      
  | 
  private | 
      
  | 
  private | 
The current status of the person w.r.t. the disease.
Definition at line 115 of file Health.h.
Referenced by StartInfection(), StopInfection(), and Update().
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private |