31 void Person::Update(
bool isWorkOff,
bool isSchoolOff,
bool adaptiveSymptomaticBehavior)
37 if (m_health.IsSymptomatic() && adaptiveSymptomaticBehavior) {
38 m_in_pools[Id::K12School] =
false;
39 m_in_pools[Id::College] =
false;
40 m_in_pools[Id::Workplace] =
false;
41 m_in_pools[Id::PrimaryCommunity] =
false;
42 m_in_pools[Id::SecondaryCommunity] =
false;
43 }
else if (isWorkOff || (m_age <=
MinAdultAge() && isSchoolOff)) {
44 m_in_pools[Id::K12School] =
false;
45 m_in_pools[Id::College] =
false;
46 m_in_pools[Id::Workplace] =
false;
47 m_in_pools[Id::PrimaryCommunity] =
true;
48 m_in_pools[Id::SecondaryCommunity] =
false;
50 m_in_pools[Id::K12School] =
true;
51 m_in_pools[Id::College] =
true;
52 m_in_pools[Id::Workplace] =
true;
53 m_in_pools[Id::PrimaryCommunity] =
false;
54 m_in_pools[Id::SecondaryCommunity] =
true;
Header file for the Person class.
Definition of ContactPool Id Type.
constexpr unsigned int MinAdultAge()
Maximum age for Person's.
Namespace for the simulator and related classes.
void Update(bool isWorkOff, bool isSchoolOff, bool adaptiveSymptomaticBehavior)
Update the health status and presence in contact pools.
Namespace to manage types of ContactPool.