Go to the documentation of this file.00001
00021 #ifndef RZSTATS_H
00022 #define RZSTATS_H
00023
00024 #include <map>
00025 #include <string>
00026 #include <iostream>
00027 using namespace std;
00028
00029 enum RZState {RZ_BLANK, RZ_MAPPED, RZ_RUNNING, RZ_RECONFIG};
00030
00031 class RZStats {
00032
00033 private:
00034 double rzStateTimes[4];
00035 map<string, double> taskExecutionTimes;
00036 bool isRZ;
00037 string name;
00038
00039 public:
00040 RZStats(string n, bool RZ, double blank, double mapped, double running, double reconfig, map<string, double> execTimes) {
00041 isRZ = RZ;
00042 name = n;
00043 rzStateTimes[RZ_BLANK] = blank;
00044 rzStateTimes[RZ_MAPPED] = mapped;
00045 rzStateTimes[RZ_RUNNING] = running;
00046 rzStateTimes[RZ_RECONFIG] = reconfig;
00047 taskExecutionTimes = execTimes;
00048 }
00049
00050 double getRZStateTime(RZState);
00051 void printRZStats(void);
00052 map<string, double> getTaskExecutionTimesMap(void);
00053
00054 };
00055
00056 #endif