FRED
Neighborhood.h
00001 /*
00002  Copyright 2009 by the University of Pittsburgh
00003  Licensed under the Academic Free License version 3.0
00004  See the file "LICENSE" for more information
00005  */
00006 
00007 //
00008 //
00009 // File: Neighborhood.h
00010 //
00011 
00012 #ifndef _FRED_NEIGHBORHOOD_H
00013 #define _FRED_NEIGHBORHOOD_H
00014 
00015 #include "Place.h"
00016 
00023 class Neighborhood : public Place {
00024 public: 
00025 
00029   Neighborhood() {};
00030   ~Neighborhood() {};
00031 
00037   Neighborhood(int loc, const char *lab, double lon, double lat, Place *container, Population* pop);
00038 
00045   void get_parameters(int diseases);
00046 
00050   int get_group(int disease, Person * per);
00051 
00060   double get_transmission_prob(int disease, Person * i, Person * s);
00061 
00070   double get_contacts_per_day(int disease);
00071 
00079   bool should_be_open(int day, int disease) { return true; }
00080 
00086   static double get_weekend_contact_rate(int disease) { return Weekend_contact_rate[disease]; }
00087 
00088 private:
00089   static double * Weekend_contact_rate;
00090   static double * Neighborhood_contacts_per_day;
00091   static double *** Neighborhood_contact_prob;
00092   static bool Neighborhood_parameters_set;
00093 };
00094 
00095 #endif // _FRED_NEIGHBORHOOD_H
00096 
 All Classes Functions