MultiAgentDecisionProcess  Release 0.2.1
PlanningUnitDecPOMDPDiscrete.h
Go to the documentation of this file.
1 
28 /* Only include this header file once. */
29 #ifndef _PLANNINGUNITDECPOMDPDISCRETE_H_
30 #define _PLANNINGUNITDECPOMDPDISCRETE_H_ 1
31 
32 /* the include directives */
33 #include <iostream>
34 #include "Globals.h"
35 #include "Referrer.h"
38 
40 
44  public Referrer<DecPOMDPDiscreteInterface>,
46 {
47  private:
48 
49  protected:
50 
52  bool SanityCheck() const;
53 
54  public:
55  // Constructor, destructor and copy assignment.
59  size_t horizon=3,
61  );
63  size_t horizon=3,
65  );
66 
67  //operators:
68 
69  //data manipulation (set) functions:
70 
76 
77  //get (data) functions:
78 
80 
85 
87  double GetReward(Index sI, Index jaI) const
88  { return(GetReferred()->GetReward(sI, jaI)); }
89 
91  double GetDiscount() const
92  {return GetReferred()->GetDiscount();}
93 
95  virtual double GetExpectedReward() const = 0;
98  {throw E("PlanningUnitDecPOMDPDiscrete::GetJointPolicyPureVector - Error this function should be overriden by the derived PU!");}
99 
100 };
101 
102 
103 #endif /* !_PLANNINGUNITDECPOMDPDISCRETE_H_ */
104 
105 // Local Variables: ***
106 // mode:c++ ***
107 // End: ***