Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef _FRED_COMMUNITY_H
00013 #define _FRED_COMMUNITY_H
00014
00015 #include "Place.h"
00016
00017 extern double * Community_contacts_per_day;
00018 extern double *** Community_contact_prob;
00019 extern int Community_parameters_set;
00020
00021 class Community : public Place {
00022 public:
00023 Community() {};
00024 ~Community() {};
00025 Community(int, const char*,double,double,Place *, Population *);
00026 void reset();
00027 void get_parameters(int strains);
00028 int get_group(int strain, Person * per);
00029 double get_transmission_prob(int strain, Person * i, Person * s);
00030 double get_contacts_per_day(int strain);
00031 void spread_infection(int day, int sstrin);
00032 Person * get_possible_infectee(int strain, Person * infector, double lat, double lon);
00033 void add_susceptible(int strain, Person * per);
00034 void delete_susceptible(int strain, Person * per);
00035 void add_infectious(int strain, Person * per);
00036 void delete_infectious(int strain, Person * per);
00037 double geo_dist(double lat1, double lat2, double lon1, double lon2, int ic);
00038 private:
00039 set <Person *> ** infectious_list;
00040 int groups;
00041 };
00042
00043 #endif // _FRED_COMMUNITY_H
00044