![]() |
Virtual Belgium
2.0
A micro-simulation platform for the Belgian population
|
The individual agent class. More...
#include <Individual.hpp>
Public Member Functions | |
| Individual (repast::AgentId id, repast::AgentId hh_id, int municipality, char gender, int age_class, char education, char hh_relationship) | |
| Constructor (initialize every attributes but house, sps status, age and activity chain). More... | |
| Individual (repast::AgentId id, repast::AgentId hh_id, int municipality, char gender, int age_class, int age, char education) | |
| Constructor (initialize every attributes but house, sps status, household relationship status and activity chain). More... | |
| Individual (repast::AgentId id, repast::AgentId hh_id, int municipality, char gender, int age_class, char education, char hh_relationship, long house) | |
| Constructor (initialize every attributes but age, sps status and activity chain). More... | |
| Individual (repast::AgentId id, repast::AgentId hh_id, int municipality, char gender, int age_class, int age, char education, char hh_relationship, long house) | |
| Constructor (initialize every attributes but sps status and activity chain). More... | |
| Individual (repast::AgentId id, repast::AgentId hh_id, int municipality, char gender, int age_class, char education, char sps_status, char driving_license, char hh_relationship, long house, std::vector< Activity > act_chain) | |
| Constructor (initialize every attributes but age). More... | |
| Individual (repast::AgentId id, repast::AgentId hh_id, int municipality, char gender, int age_class, int age, char education, char sps_status, char driving_license, char hh_relationship, long house, std::vector< Activity > act_chain) | |
| Constructor (initialize every attributes). More... | |
| virtual | ~Individual () |
| Destructor. More... | |
| char | getGender () const |
| Return individual's gender. More... | |
| void | setGender (char val) |
| Set individual's gender. More... | |
| int | getAgeClass () const |
| Return individual's age class. More... | |
| void | setAgeClass (int val) |
| Set individual's age class. More... | |
| int | getAge () const |
| Return individual's age. More... | |
| void | setAge (int val) |
| Set individual's age. More... | |
| int | getMunicipality () const |
| Return the ins code of individual's municipality. More... | |
| void | setMunicipality (int val) |
| Set individual's muncipality. More... | |
| char | getEducation () const |
| Return individual's education level. More... | |
| void | setEducation (char val) |
| Set individual's education level. More... | |
| char | getSpsStatus () const |
| Return individual's socio-professional status. More... | |
| void | setSpsStatus (char val) |
| Set individual's socio-professional status. More... | |
| char | getDrivingLicense () const |
| Return individual's driving license ownership. More... | |
| void | setDrivingLicense (char val) |
| Set individual's driving license ownership. More... | |
| char | getHhRelationship () const |
| Return individual's household relationship status (head, mate, child, adult). More... | |
| void | setHhRelationship (char val) |
| Set individual's household relationship status (head, mate, child, adult). More... | |
| std::vector< Activity > | getActChain () const |
| Return individual's activity chain. More... | |
| void | setActChain (std::vector< Activity > val) |
| Set individual's activity chain. More... | |
| void | addActChain (Activity val) |
| Add an activity to individual's activity chain. More... | |
| repast::AgentId & | getHhId () |
| Return Repast AgentId of the individual's household. More... | |
| const repast::AgentId & | getHhId () const |
| Return Repast AgentId of the individual's household. More... | |
| void | setHhId (repast::AgentId val) |
| Set the Repast AgentId of the individual's household. More... | |
| long | getHouse () const |
| Return the house localization (i.e. a node id, see Network class). More... | |
| void | setHouse (long val) |
| Set individual's house localization (i.e. a node id, see Network class). More... | |
| repast::AgentId & | getId () |
| Return the individual Repast agent id (required by Repast). More... | |
| const repast::AgentId & | getId () const |
| Return the individual Repast agent id (required by Repast). More... | |
| void | aging () |
| Incrementing the age of an Individual. More... | |
| void | initAge () |
| Initialize the age of an Individual. More... | |
| bool | isDying () |
| Death process. More... | |
| bool | givingbirth () |
| Determine whether the individual is giving birth to a baby. More... | |
| Individual | birthInd (long babyId) |
| Generate a baby by the individual. More... | |
Private Attributes | |
| repast::AgentId | _id |
| Individual's Repast::AgentId. More... | |
| repast::AgentId | _hh_id |
| Household's Repast::AgentId. More... | |
| int | _municipality |
| Municipality of the individual. More... | |
| char | _gender |
| Gender of the individual (Male, Female). More... | |
| int | _age_class |
| Age class of the individual. More... | |
| int | _age |
| Actual age of the individual. More... | |
| char | _education |
| Education level (No diploma, Primary school, High School, Master degree). More... | |
| char | _sps_status |
| Socio-professional status. More... | |
| char | _driving_license |
| Driving license ownership. More... | |
| char | _hh_relationship |
| Household status relationship. More... | |
| long | _house |
| Network's node's id of the individual's house. More... | |
| std::vector< Activity > | _act_chain |
| Activity chain of the individual. More... | |
Friends | |
| class | boost::serialization::access |
The individual agent class.
This class implements the individual agents in VirtualBelgium. Each individual is characterized by
| Individual::Individual | ( | repast::AgentId | id, |
| repast::AgentId | hh_id, | ||
| int | municipality, | ||
| char | gender, | ||
| int | age_class, | ||
| char | education, | ||
| char | hh_relationship | ||
| ) |
Constructor (initialize every attributes but house, sps status, age and activity chain).
| id | a Repast agent id |
| hh_id | the individual's household Repast agent id |
| municipality | the ins code of the agent's municipality |
| gender | the gender of the individual |
| age_class | the age class of the individual |
| education | an education level |
| hh_relationship | an household relationship status |
| Individual::Individual | ( | repast::AgentId | id, |
| repast::AgentId | hh_id, | ||
| int | municipality, | ||
| char | gender, | ||
| int | age_class, | ||
| int | age, | ||
| char | education | ||
| ) |
Constructor (initialize every attributes but house, sps status, household relationship status and activity chain).
| id | a Repast agent id |
| hh_id | the individual's household Repast agent id |
| municipality | the ins code of the agent's municipality |
| gender | the gender of the individual |
| age_class | the age class of the individual |
| age | the individual's age |
| education | an education level |
| Individual::Individual | ( | repast::AgentId | id, |
| repast::AgentId | hh_id, | ||
| int | municipality, | ||
| char | gender, | ||
| int | age_class, | ||
| char | education, | ||
| char | hh_relationship, | ||
| long | house | ||
| ) |
Constructor (initialize every attributes but age, sps status and activity chain).
| id | a Repast agent id |
| hh_id | the individual's household Repast agent id |
| municipality | the ins code of the agent's municipality |
| gender | the gender of the individual |
| age_class | the age class of the individual |
| education | an education level |
| hh_relationship | an household relationship status |
| house | a road network node id |
| Individual::Individual | ( | repast::AgentId | id, |
| repast::AgentId | hh_id, | ||
| int | municipality, | ||
| char | gender, | ||
| int | age_class, | ||
| int | age, | ||
| char | education, | ||
| char | hh_relationship, | ||
| long | house | ||
| ) |
Constructor (initialize every attributes but sps status and activity chain).
| id | a Repast agent id |
| hh_id | the individual's household Repast agent id |
| municipality | the ins code of the agent's municipality |
| gender | the gender of the individual |
| age_class | the age class of the individual |
| age | the individual's age |
| education | an education level |
| hh_relationship | an household relationship status |
| house | a road network node id |
| Individual::Individual | ( | repast::AgentId | id, |
| repast::AgentId | hh_id, | ||
| int | municipality, | ||
| char | gender, | ||
| int | age_class, | ||
| char | education, | ||
| char | sps_status, | ||
| char | driving_license, | ||
| char | hh_relationship, | ||
| long | house, | ||
| std::vector< Activity > | act_chain | ||
| ) |
Constructor (initialize every attributes but age).
| id | a Repast agent id |
| hh_id | the individual's household Repast agent id |
| municipality | the ins code of the agent's municipality |
| gender | the gender of the individual |
| age_class | the age class of the individual |
| education | an education level |
| sps_status | socio-professional status |
| driving_license | driving license ownership |
| hh_relationship | an household relationship status |
| house | a road network node id |
| act_chain | an activity chain |
| Individual::Individual | ( | repast::AgentId | id, |
| repast::AgentId | hh_id, | ||
| int | municipality, | ||
| char | gender, | ||
| int | age_class, | ||
| int | age, | ||
| char | education, | ||
| char | sps_status, | ||
| char | driving_license, | ||
| char | hh_relationship, | ||
| long | house, | ||
| std::vector< Activity > | act_chain | ||
| ) |
Constructor (initialize every attributes).
| id | a Repast agent id |
| hh_id | the individual's household Repast agent id |
| municipality | the ins code of the agent's municipality |
| gender | the gender of the individual |
| age_class | the age class of the individual |
| age | the individual's age |
| education | an education level |
| sps_status | socio-professional status |
| driving_license | driving license ownership |
| hh_relationship | an household relationship status |
| house | a road network node id |
| act_chain | an activity chain |
|
virtual |
Destructor.
|
inline |
| void Individual::aging | ( | ) |
Incrementing the age of an Individual.
| Individual Individual::birthInd | ( | long | babyId | ) |
Generate a baby by the individual.
|
inline |
|
inline |
Return individual's age.
|
inline |
Return individual's age class.
|
inline |
Return individual's driving license ownership.
|
inline |
Return individual's education level.
|
inline |
Return individual's gender.
|
inline |
Return Repast AgentId of the individual's household.
|
inline |
Return Repast AgentId of the individual's household.
|
inline |
Return individual's household relationship status (head, mate, child, adult).
|
inline |
Return the house localization (i.e. a node id, see Network class).
|
inline |
Return the individual Repast agent id (required by Repast).
|
inline |
Return the individual Repast agent id (required by Repast).
|
inline |
Return the ins code of individual's municipality.
|
inline |
Return individual's socio-professional status.
| bool Individual::givingbirth | ( | ) |
Determine whether the individual is giving birth to a baby.
| void Individual::initAge | ( | ) |
Initialize the age of an Individual.
| bool Individual::isDying | ( | ) |
Death process.
|
inline |
|
inline |
Set individual's age.
| val | a new age |
|
inline |
Set individual's age class.
| val | a new age class |
|
inline |
Set individual's driving license ownership.
| val | a new driving license ownership |
|
inline |
Set individual's education level.
| val | a new education level |
|
inline |
Set individual's gender.
| val | a new gender |
|
inline |
Set the Repast AgentId of the individual's household.
| val | a Repast AgentId designing an household |
|
inline |
Set individual's household relationship status (head, mate, child, adult).
| val | a household relationship status |
|
inline |
Set individual's house localization (i.e. a node id, see Network class).
| val | a node id |
|
inline |
Set individual's muncipality.
| val | a new municipality ins code |
|
inline |
Set individual's socio-professional status.
| val | a new socio-professional status |
|
friend |
|
private |
Actual age of the individual.
|
private |
Age class of the individual.
|
private |
Driving license ownership.
|
private |
Education level (No diploma, Primary school, High School, Master degree).
|
private |
Gender of the individual (Male, Female).
|
private |
Household's Repast::AgentId.
|
private |
Household status relationship.
|
private |
Network's node's id of the individual's house.
|
private |
Individual's Repast::AgentId.
|
private |
Municipality of the individual.
|
private |
Socio-professional status.