FRED
Classroom.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: Classroom.h
00010 //
00011 
00012 #ifndef _FRED_CLASSROOM_H
00013 #define _FRED_CLASSROOM_H
00014 
00015 #include "Place.h"
00016 
00023 class Classroom: public Place {
00024   
00025 public: 
00026 
00030   Classroom() {}
00031   ~Classroom() {}
00032 
00038   Classroom(int loc, const char *lab, double lon, double lat, Place *container, Population *pop);
00039 
00047   void get_parameters(int diseases);
00048 
00057   void enroll(Person * per);
00058 
00062   int get_group(int disease, Person * per);
00063 
00072   double get_transmission_prob(int disease, Person * i, Person * s);
00073 
00077   bool should_be_open(int day, int disease);
00078 
00087   double get_contacts_per_day(int disease);
00088 
00092   int get_age_level() { return age_level; }
00093 
00094  private:
00095   static double * Classroom_contacts_per_day;
00096   static double *** Classroom_contact_prob;
00097   static char Classroom_closure_policy[];
00098   static int Classroom_closure_day;
00099   static double Classroom_closure_threshold;
00100   static int Classroom_closure_period;
00101   static int Classroom_closure_delay;
00102   static bool Classroom_parameters_set;
00103 
00104   int age_level;
00105 };
00106 
00107 #endif // _FRED_CLASSROOM_H
00108 
 All Classes Functions