MultiAgentDecisionProcess  Release 0.2.1
PlanningUnitTOIDecPOMDPDiscrete.cpp
Go to the documentation of this file.
1 
29 
30 using namespace std;
31 
32 //Default constructor
35  size_t horizon,
37  ) :
39  PlanningUnitDecPOMDPDiscrete(params,horizon,p)
40 {
41  if(DEBUG_PU_CONSTRUCTORS) cout << "PlanningUnitTOIDecPOMDPDiscrete(PlanningUnitMADPDiscreteParameters params, size_t horizon, DecPOMDPDiscreteInterface* p) called" << endl;
42  if(p!=0)
43  SanityCheck();
44 }
45 
47  size_t horizon,
49  ) :
52 {
53  if(DEBUG_PU_CONSTRUCTORS) cout << "PlanningUnitTOIDecPOMDPDiscrete(size_t horizon, DecPOMDPDiscreteInterface* p) called" << endl;
54  if(p!=0)
55  SanityCheck();
56 }
57 
59 {
60  if(p == GetReferred())
61  return;
62  SetReferred(p);
63 #if 0
64  //set (and initialize) the problem at PlanningUnitDecPOMDPDiscrete level:
66  static_cast<DecPOMDPDiscreteInterface*>(p);
67 #endif
69 
70  SanityCheck();
71 }
72 
74 {
76 
77  return(sane);
78 }
79