MultiAgentDecisionProcess
Release 0.2.1
Main Page
Namespaces
Classes
Files
File List
File Members
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
"
36
#include "
PlanningUnitMADPDiscrete.h
"
37
#include "
DecPOMDPDiscreteInterface.h
"
38
39
class
JointPolicyPureVector
;
40
43
class
PlanningUnitDecPOMDPDiscrete
:
44
public
Referrer
<DecPOMDPDiscreteInterface>,
45
public
PlanningUnitMADPDiscrete
46
{
47
private
:
48
49
protected
:
50
52
bool
SanityCheck
()
const
;
53
54
public
:
55
// Constructor, destructor and copy assignment.
57
PlanningUnitDecPOMDPDiscrete
(
58
const
PlanningUnitMADPDiscreteParameters
¶ms,
59
size_t
horizon=3,
60
DecPOMDPDiscreteInterface
* p=0
61
);
62
PlanningUnitDecPOMDPDiscrete
(
63
size_t
horizon=3,
64
DecPOMDPDiscreteInterface
* p=0
65
);
66
67
//operators:
68
69
//data manipulation (set) functions:
70
72
void
SetReferred
(
DecPOMDPDiscreteInterface
* p)
73
{
Referrer<DecPOMDPDiscreteInterface>::SetReferred
(p);}
75
void
SetProblem
(
DecPOMDPDiscreteInterface
* p);
76
77
//get (data) functions:
78
80
83
DecPOMDPDiscreteInterface
*
GetReferred
()
const
84
{
return
(
Referrer<DecPOMDPDiscreteInterface>::GetReferred
() );}
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;
97
virtual
JointPolicyPureVector
*
GetJointPolicyPureVector
(
void
)
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: ***
src
support
PlanningUnitDecPOMDPDiscrete.h
Generated on Mon Sep 23 2013 14:50:06 for MultiAgentDecisionProcess by
1.8.1.2