HouseholdMember Class Reference
|
CPP API
|
mio::abm::HouseholdMember Class Reference
A HouseholdMember represented by a weighted age distribution. More...
#include <household.h>
Collaboration diagram for mio::abm::HouseholdMember:
Public Member Functions | |
| const CustomIndexArray< int, mio::AgeGroup > & | get_age_weights () const |
| Returns the CustomIndexArray with the weights of each AgeGroup. More... | |
| HouseholdMember (size_t num_agegroups) | |
| Constructs a new HouseholdMember. More... | |
| void | set_age_weight (mio::AgeGroup age_group, int weight) |
| Sets the weight of an AgeGroup. More... | |
Private Attributes | |
| CustomIndexArray< int, mio::AgeGroup > | m_age_weights |
| Weights of every AgeGroup. More... | |
Detailed Description
A HouseholdMember represented by a weighted age distribution.
For every AgeGroup there is a weight which is used to calculate the age of the Person living in this Household.
Constructor & Destructor Documentation
◆ HouseholdMember()
|
inline |
Constructs a new HouseholdMember.
- Parameters
-
[in] agegroups the age groups in the model.
Member Function Documentation
◆ get_age_weights()
|
inline |
Returns the CustomIndexArray with the weights of each AgeGroup.
◆ set_age_weight()
|
inline |
Member Data Documentation
◆ m_age_weights
|
private |
Weights of every AgeGroup.
Generated by