household.h Source File
|
CPP API
|
household.h
Go to the documentation of this file.
mio::Index< Tag > size() const
returns the size along the dimension provided as template parameter
Definition: custom_index_array.h:204
A HouseholdGroup represented by different Households.
Definition: household.h:156
int m_number_of_households
Number of Households in this group.
Definition: household.h:192
int get_total_number_of_households() const
Returns the number of Households in the HouseholdGroup.
Definition: household.h:170
HouseholdGroup()
Constructs a new HouseholdGroup.
Definition: household.h:161
std::vector< std::tuple< Household, int > > m_household_list
A list of types of Households and the amount of times it is in the group.
Definition: household.h:193
const std::vector< std::tuple< Household, int > > & get_households() const
Returns the Households of the HouseholdGroup.
Definition: household.h:179
void add_households(Household household, int number_of_households)
Adds a number of Households of the same kind, e.g. same members, to a HouseholdGroup.
Definition: household.cpp:53
A HouseholdMember represented by a weighted age distribution.
Definition: household.h:52
const CustomIndexArray< int, mio::AgeGroup > & get_age_weights() const
Returns the CustomIndexArray with the weights of each AgeGroup.
Definition: household.h:78
CustomIndexArray< int, mio::AgeGroup > m_age_weights
Weights of every AgeGroup.
Definition: household.h:84
void set_age_weight(mio::AgeGroup age_group, int weight)
Sets the weight of an AgeGroup.
Definition: household.h:69
HouseholdMember(size_t num_agegroups)
Constructs a new HouseholdMember.
Definition: household.h:58
A Household represented by a vector with HouseholdMembers.
Definition: household.h:92
int get_space_per_member() const
Get the space per member of the Household, measured in cubic meters.
Definition: household.h:124
void add_members(HouseholdMember household_member, int number_of_members)
Adds a number of the same HouseholdMembers to a Household.
Definition: household.cpp:47
const std::vector< std::tuple< HouseholdMember, int > > & get_members() const
Get the HouseholdMembers of the Household.
Definition: household.h:132
int m_number_of_members
Total number of Persons in the Household.
Definition: household.h:145
void set_space_per_member(int space_per_member)
Set the space per member for the computation of the LocationCapacity of the Household.
Definition: household.h:116
int get_total_number_of_members() const
Returns the number of members, i.e. Persons in the Household.
Definition: household.h:107
std::vector< std::tuple< HouseholdMember, int > > m_household_member_list
HouseholdMembers of the Household and the respective number of Persons.
Definition: household.h:147
int m_space_per_member
Space per Person in cubic meters (constant maximal capacity over time).
Definition: household.h:146
void add_household_to_model(Model &model, const Household &household)
Adds a specific Household to the Model.
Definition: household.cpp:59
void add_household_group_to_model(Model &model, const HouseholdGroup &household_group)
Adds Households from a HouseholdGroup to the Model.
Definition: household.cpp:78
A collection of classes to simplify handling of matrix shapes in meta programming.
Definition: models/abm/analyze_result.h:30
The AgeGroup struct is used as a dynamically sized tag for all age dependent categories.
Definition: age_group.h:32
Generated by