MultiAgentDecisionProcess  Release 0.2.1
SimulationResult.h
Go to the documentation of this file.
1 
28 /* Only include this header file once. */
29 #ifndef _SIMULATIONRESULT_H_
30 #define _SIMULATIONRESULT_H_ 1
31 
32 /* the include directives */
33 #include <iostream>
34 #include <vector>
35 #include <string>
36 #include "Globals.h"
37 
43 {
44 private:
45 
46  double _m_avg_reward;
47  std::vector<double> _m_rewards;
48 
49  unsigned int _m_horizon;
51 
52  unsigned int _m_nr_stored;
53 
54  void UpdateStatistics();
55 
56 protected:
57 
58 public:
59  // Constructor, destructor and copy assignment.
62 
64  SimulationResult(int horizon,int random_seed,int nrRuns);
65 
68 
70  void AddReward(double r);
71 
73  std::vector<double> GetRewards(void);
74 
76  double GetAvgReward(void){ return(_m_avg_reward); }
77 
79  void Save(std::string filename);
80 
82  void Load(std::string filename);
83 
85  void Print(void);
86 
88  void PrintSummary(void);
89 };
90 
91 
92 #endif /* !_SIMULATIONRESULT_H_ */
93 
94 // Local Variables: ***
95 // mode:c++ ***
96 // End: ***