MultiAgentDecisionProcess
Release 0.2.1
Main Page
Namespaces
Classes
Files
File List
File Members
QFunctionJAOHTree.h
Go to the documentation of this file.
1
28
/* Only include this header file once. */
29
#ifndef _QFUNCTIONJOINTHISTORYTREE_H_
30
#define _QFUNCTIONJOINTHISTORYTREE_H_ 1
31
32
/* the include directives */
33
#include "
Globals.h
"
34
#include "
QFunctionJAOH.h
"
35
38
class
QFunctionJAOHTree
:
public
QFunctionJAOH
39
{
40
private
:
41
42
bool
_m_initialized
;
43
44
void
Initialize
();
45
void
DeInitialize
();
46
48
50
#if QFunctionJAOH_useIndices
51
virtual
double
ComputeRecursively
(
size_t
time_step,
52
LIndex
jaohI,
53
Index
lastJAI) = 0;
54
#else
55
virtual
double
ComputeRecursively
(
size_t
time_step,
56
JointActionObservationHistoryTree
* jaoht,
57
Index
lastJAI) = 0;
58
#endif
59
61
69
void
ComputeQ
();
70
71
72
protected
:
73
74
public
:
75
// Constructor, destructor and copy assignment.
77
QFunctionJAOHTree
(
const
PlanningUnitDecPOMDPDiscrete
&pu);
78
80
virtual
~QFunctionJAOHTree
();
81
82
//get (data) funct
85
double
GetQ
(
Index
jaohI,
Index
jaI)
const
86
{
return
(
_m_QValues
(jaohI,jaI)); }
87
90
void
Compute
();
91
92
void
SetPU
(
const
PlanningUnitDecPOMDPDiscrete
& pu);
93
94
void
Load
(std::string filename);
95
void
Save
(std::string filename)
const
;
96
97
};
98
99
100
#endif
/* !_QFUNCTIONJOINTHISTORYTREE_H_ */
101
102
// Local Variables: ***
103
// mode:c++ ***
104
// End: ***
src
planning
QFunctionJAOHTree.h
Generated on Mon Sep 23 2013 14:50:06 for MultiAgentDecisionProcess by
1.8.1.2