MultiAgentDecisionProcess  Release 0.2.1
POSG.h
Go to the documentation of this file.
1 
28 #ifndef _POSG_H_
29 #define _POSG_H_ 1
30 
31 /* the include directives */
32 
33 #include <iostream>
34 #include "Globals.h"
35 #include "POSGInterface.h"
36 
37 
46 class POSG :
47  virtual public POSGInterface
48 {
49  private:
53  size_t _m_nrAgents;
54 
56 
62  std::vector<double> _m_discount;
64  std::vector<reward_t> _m_rewardType;
65  protected:
66 
67  public:
68 
69  // constructors etc.
70  // Default constructor. sets initialized to false
71  POSG();
72 
74  bool SetInitialized(bool b);
75 
77  void SetNrAgents (size_t nrAgents);
78 
80  void SetDiscount(Index agentI, double d);
82  double GetDiscount(Index agentI) const {return _m_discount.at(agentI);}
84 
85  void SetRewardType(Index agentI, reward_t r);
87  reward_t GetRewardType(Index agentI) const
88  {return _m_rewardType.at(agentI);}
89 
91  std::string SoftPrint() const;
92 
93 };
94 
95 #endif
96 
97 // Local Variables: ***
98 // mode:c++ ***
99 // End: ***