41 Person(
unsigned int id,
float age,
unsigned int householdId,
unsigned int k12SchoolId,
unsigned int collegeId,
42 unsigned int workId,
unsigned int primaryCommunityId,
unsigned int secondaryCommunityId)
44 workId, primaryCommunityId, secondaryCommunityId},
77 void Update(
bool isWorkOff,
bool isSchoolOff,
bool adaptiveSymptomaticBehavior);
Health & GetHealth()
Return person's health status.
Id
Enumerates the ContactPool types.
bool IsSurveyParticipant() const
Does this person participates in the social contact study?
Health m_health
Is person present/absent in pools of each of the types (school, work, etc)?
Specialisation of IdSubscriptArray foor booleans.
Person(unsigned int id, float age, unsigned int householdId, unsigned int k12SchoolId, unsigned int collegeId, unsigned int workId, unsigned int primaryCommunityId, unsigned int secondaryCommunityId)
Constructor: set the person data.
unsigned int GetPoolId(const ContactType::Id &poolType) const
Get ID of contactpool_type.
void SetId(unsigned int id)
Set the id.
unsigned int GetId() const
Get the id.
void SetPoolId(ContactType::Id type, unsigned int poolId)
Sets (for the type of ContactPool) the Id of the ContactPool the person belongs to.
Holds a person's health data.
ContactType::IdSubscriptArray< unsigned int > m_pool_ids
Health info (immune, infected, etc) for this person.
float GetAge() const
Get the age.
Header for the Health class.
Definition of ContactPool Id Type.
Container for the contact pools of various type (household, work, ...).
const Health & GetHealth() const
Return person's health status.
bool IsInPool(const ContactType::Id &poolType) const
Check if a person is present today in a given contact pool.
void SetAge(unsigned int newAge)
Set the age of the person.
Person()
Default construction (for population vector).
Store and handle person data.
Namespace for the simulator and related classes.
void Update(bool isWorkOff, bool isSchoolOff, bool adaptiveSymptomaticBehavior)
Update the health status and presence in contact pools.
ContactType::IdSubscriptArray< bool > m_in_pools
Is this a participant in the social contact study?
bool operator!=(const Person &p) const
Is this person not equal to the given person?
void ParticipateInSurvey()
Participate in social contact study and log person details.