List of all members.
Constructor & Destructor Documentation
Population::Population |
( |
| ) |
|
Member Function Documentation
void Population::add_person |
( |
Person * |
per | ) |
|
void Population::assign_classrooms |
( |
| ) |
|
Assign agents in Schools to specific Classrooms within the school
void Population::assign_offices |
( |
| ) |
|
Assign agents in Workplaces to specific Offices within the workplace
void Population::delete_person |
( |
Person * |
per | ) |
|
void Population::end_of_run |
( |
| ) |
|
Perform end of run operations (clean up)
AV_Manager* Population::get_av_manager |
( |
| ) |
[inline] |
Disease * Population::get_disease |
( |
int |
disease_id | ) |
|
- Parameters:
-
- Returns:
- a pointer to the Disease indexed by s
void Population::get_network_stats |
( |
char * |
directory | ) |
|
Write degree information to a file degree.txt
- Parameters:
-
directory | the directory where the file will be written |
int Population::get_next_id |
( |
| ) |
[static] |
Static function to get and increment the next_id
- Returns:
- the next id value
void Population::get_parameters |
( |
| ) |
|
Sets the static variables for the class from the parameter file.
Person* Population::get_person |
( |
int |
n | ) |
[inline] |
- Parameters:
-
n | the index of the Person Return a pointer to the Person object with index n |
int Population::get_pop_size |
( |
| ) |
[inline] |
char * Population::get_pstring |
( |
int |
id | ) |
|
- Parameters:
-
- Returns:
- the population string used during setup that matches the id
void Population::prepare_to_die |
( |
int |
day, |
|
|
Person * |
per |
|
) |
| |
Perform the necessary steps for an agent's death
- Parameters:
-
day | the simulation day |
per | the agent who will die |
void Population::prepare_to_give_birth |
( |
int |
day, |
|
|
Person * |
per |
|
) |
| |
Perform the necessary steps for an agent to give birth
- Parameters:
-
day | the simulation day |
per | the agent who will give birth |
void Population::print |
( |
int |
incremental = 0 , |
|
|
int |
day = 0 |
|
) |
| |
Print out information about this object. This print can be adjusted to limit the output to just those agents who have changed status (0:print all, 1:incremental, -1:unchanged) with the incremental flag.
- Parameters:
-
incremental | the flag to adjust the agents who are actually printed out |
day | the simulation day |
void Population::quality_control |
( |
| ) |
|
Used during debugging to verify that code is functioning properly.
void Population::read_population |
( |
| ) |
|
Read the population from the population file
void Population::report |
( |
int |
day | ) |
|
Report the disease statistics for a given day
- Parameters:
-
void Population::report_birth |
( |
int |
day, |
|
|
Person * |
per |
|
) |
| const |
Print the birth information to the status file
- See also:
- Global::Birthfp
- Parameters:
-
day | the simulation day |
per | a pointer to the Person object that has given birth |
void Population::report_death |
( |
int |
day, |
|
|
Person * |
per |
|
) |
| const |
Print the death information to the status file
- See also:
- Global::Deathfp
- Parameters:
-
day | the simulation day |
per | a pointer to the Person object that has died |
Person * Population::select_random_person |
( |
| ) |
|
- Returns:
- a pointer to a random Person in this population
void Population::set_changed |
( |
Person * |
p | ) |
|
Sets the changed flag for a Person so that the incremental print option will know that the agent has indeed changed
- Parameters:
-
p | pointer to the Person object that has changed |
void Population::setup |
( |
| ) |
|
void Population::update |
( |
int |
day | ) |
|
Perform beginning of day operations
- Parameters:
-
The documentation for this class was generated from the following files: