MultiAgentDecisionProcess  Release 0.2.1
TOIFactoredRewardDecPOMDPDiscrete.h
Go to the documentation of this file.
1 
28 /* Only include this header file once. */
29 #ifndef _TOIFACTOREDREWARDDECPOMDPDISCRETE_H_
30 #define _TOIFACTOREDREWARDDECPOMDPDISCRETE_H_ 1
31 
32 /* the include directives */
33 #include <iostream>
34 #include "Globals.h"
35 #include "TOIDecPOMDPDiscrete.h"
36 
37 
38 
44  public TOIDecPOMDPDiscrete
45 {
46 private:
49 protected:
50  std::vector<RewardModel*> _m_p_rModels;
51 public:
52  // Constructor, destructor and copy assignment.
55  std::string name="received unspec. by TOIFactoredRewardDecPOMDPDiscrete",
56  std::string descr="received unspec. by TOIFactoredRewardDecPOMDPDiscrete",
57  std::string pf="received unspec. by TOIFactoredRewardDecPOMDPDiscrete");
58 
59 
62 
64 
67 
71  virtual bool SetInitialized(bool b);
72 
73  void SetIndividualRewardModel(RewardModel* rewardModel,
74  Index agentID);
75 
76  //get (data) functions:
78  double GetReward(Index sI, Index jaI) const;
79  double GetReward(const std::vector<Index> &sIs,
80  const std::vector<Index> &aIs) const;
81 
82  double GetIndividualReward(Index indSI, Index indAI, Index agentID) const;
83 
86  { return new TOIFactoredRewardDecPOMDPDiscrete(*this); }
87 
89  std::string SoftPrint() const;
90 };
91 
92 
93 #endif /* !_TOIFACTOREDREWARDDECPOMDPDISCRETE_H_ */
94 
95 // Local Variables: ***
96 // mode:c++ ***
97 // End: ***