MultiAgentDecisionProcess
Release 0.2.1
Main Page
Namespaces
Classes
Files
File List
File Members
PlanningUnitTOIDecPOMDPDiscrete.cpp
Go to the documentation of this file.
1
28
#include "
PlanningUnitTOIDecPOMDPDiscrete.h
"
29
30
using namespace
std;
31
32
//Default constructor
33
PlanningUnitTOIDecPOMDPDiscrete::PlanningUnitTOIDecPOMDPDiscrete
(
34
const
PlanningUnitMADPDiscreteParameters
¶ms,
35
size_t
horizon,
36
TOIDecPOMDPDiscrete
* p
37
) :
38
Referrer
<
TOIDecPOMDPDiscrete
>(p),
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
46
PlanningUnitTOIDecPOMDPDiscrete::PlanningUnitTOIDecPOMDPDiscrete
(
47
size_t
horizon,
48
TOIDecPOMDPDiscrete
* p
49
) :
50
Referrer
<
TOIDecPOMDPDiscrete
>(p),
51
PlanningUnitDecPOMDPDiscrete
(horizon,p)
52
{
53
if
(
DEBUG_PU_CONSTRUCTORS
) cout <<
"PlanningUnitTOIDecPOMDPDiscrete(size_t horizon, DecPOMDPDiscreteInterface* p) called"
<< endl;
54
if
(p!=0)
55
SanityCheck
();
56
}
57
58
void
PlanningUnitTOIDecPOMDPDiscrete::SetProblem
(
TOIDecPOMDPDiscrete
* p)
59
{
60
if
(p ==
GetReferred
())
61
return
;
62
SetReferred
(p);
63
#if 0
64
//set (and initialize) the problem at PlanningUnitDecPOMDPDiscrete level:
65
DecPOMDPDiscreteInterface
* p2 =
66
static_cast<
DecPOMDPDiscreteInterface
*
>
(p);
67
#endif
68
PlanningUnitDecPOMDPDiscrete::SetProblem
(p);
69
70
SanityCheck
();
71
}
72
73
bool
PlanningUnitTOIDecPOMDPDiscrete::SanityCheck
()
const
74
{
75
bool
sane=
PlanningUnitDecPOMDPDiscrete::SanityCheck
();
76
77
return
(sane);
78
}
79
src
support
PlanningUnitTOIDecPOMDPDiscrete.cpp
Generated on Mon Sep 23 2013 14:50:06 for MultiAgentDecisionProcess by
1.8.1.2