Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef _FRED_PROFILE_H
00013 #define _FRED_PROFILE_H
00014
00015 class Profile {
00016 int id;
00017 double prob_visit[7][20];
00018 double prob_travel[7];
00019
00020 public:
00021 Profile() {}
00022 void set_prob_visit(int day, int place, double p) { prob_visit[day][place] = p; }
00023 void set_prob_travel(int day, double p) { prob_travel[day] = p; }
00024 double get_prob_visit(int day, int place) { return prob_visit[day][place]; }
00025 double get_prob_travel(int day) { return prob_travel[day]; }
00026 };
00027
00028 void read_profiles(char *filename);
00029 int is_visited(int pos, int prof, int day);
00030
00031 extern int Profiles;
00032 extern Profile Prof[];
00033
00034 #endif // _FRED_PROFILE_H