#include <Community.h>
Inherits Place.
List of all members.
Public Member Functions |
| Community () |
| ~Community () |
| Community (int, const char *, double, double, Place *, Population *) |
void | reset () |
void | get_parameters (int strains) |
int | get_group (int strain, Person *per) |
double | get_transmission_prob (int strain, Person *i, Person *s) |
double | get_contacts_per_day (int strain) |
void | spread_infection (int day, int sstrin) |
Person * | get_possible_infectee (int strain, Person *infector, double lat, double lon) |
void | add_susceptible (int strain, Person *per) |
void | delete_susceptible (int strain, Person *per) |
void | add_infectious (int strain, Person *per) |
void | delete_infectious (int strain, Person *per) |
double | geo_dist (double lat1, double lat2, double lon1, double lon2, int ic) |
Constructor & Destructor Documentation
Community::Community |
( |
|
) |
[inline] |
Community::~Community |
( |
|
) |
[inline] |
Community::Community |
( |
int |
loc, |
|
|
const char * |
lab, |
|
|
double |
lon, |
|
|
double |
lat, |
|
|
Place * |
container, |
|
|
Population * |
pop | |
|
) |
| | |
Member Function Documentation
void Community::add_infectious |
( |
int |
strain, |
|
|
Person * |
per | |
|
) |
| | [virtual] |
Reimplemented from Place.
void Community::add_susceptible |
( |
int |
strain, |
|
|
Person * |
per | |
|
) |
| | [virtual] |
Reimplemented from Place.
void Community::delete_infectious |
( |
int |
strain, |
|
|
Person * |
per | |
|
) |
| | [virtual] |
Reimplemented from Place.
void Community::delete_susceptible |
( |
int |
strain, |
|
|
Person * |
per | |
|
) |
| | [virtual] |
Reimplemented from Place.
double Community::geo_dist |
( |
double |
lat1, |
|
|
double |
lat2, |
|
|
double |
lon1, |
|
|
double |
lon2, |
|
|
int |
ic | |
|
) |
| | |
double Community::get_contacts_per_day |
( |
int |
strain |
) |
[virtual] |
int Community::get_group |
( |
int |
strain, |
|
|
Person * |
per | |
|
) |
| | [virtual] |
void Community::get_parameters |
( |
int |
strains |
) |
[virtual] |
Person * Community::get_possible_infectee |
( |
int |
strain, |
|
|
Person * |
infector, |
|
|
double |
lat, |
|
|
double |
lon | |
|
) |
| | |
double Community::get_transmission_prob |
( |
int |
strain, |
|
|
Person * |
i, |
|
|
Person * |
s | |
|
) |
| | [virtual] |
void Community::reset |
( |
|
) |
[virtual] |
Reimplemented from Place.
void Community::spread_infection |
( |
int |
day, |
|
|
int |
sstrin | |
|
) |
| | [virtual] |
Reimplemented from Place.
The documentation for this class was generated from the following files: