MultiAgentDecisionProcess
Release 0.2.1
Main Page
Namespaces
Classes
Files
File List
File Members
JointActionHistory.h
Go to the documentation of this file.
1
28
/* Only include this header file once. */
29
#ifndef _JOINTACTIONHISTORY_H_
30
#define _JOINTACTIONHISTORY_H_ 1
31
32
/* the include directives */
33
#include <iostream>
34
#include <vector>
35
36
#include "
Globals.h
"
37
#include "
Referrer.h
"
38
#include "
TreeNode.h
"
39
#include "
JointHistory.h
"
40
41
//#include "PlanningUnitMADPDiscrete.h"
42
class
PlanningUnitMADPDiscrete
;
//forward declaration to avoid including each other
43
45
49
class
JointActionHistory
:
public
Referrer
<PlanningUnitMADPDiscrete>,
50
public
JointHistory
51
{
52
private
:
53
55
Index
_m_jointActionI
;
60
bool
_m_isEmpty
;
64
JointActionHistory
*
_m_pred
;
68
std::vector<Index>
_m_individualActionHistories
;
69
70
71
protected
:
72
73
public
:
74
// Constructor, destructor and copy assignment.
78
JointActionHistory
(
PlanningUnitMADPDiscrete
& pu);
81
JointActionHistory
(
PlanningUnitMADPDiscrete
& pu,
Index
jObsI);
84
JointActionHistory
(
Index
jObsI,
JointActionHistory
* pred);
86
JointActionHistory
(
const
JointActionHistory
& a);
88
~JointActionHistory
();
89
90
//operators:
91
92
//data manipulation (set) functions:
93
94
//get (data) functions:
96
const
std::vector<Index>&
GetIndividualActionHistoryIndices
()
const
;
97
//other
99
virtual
JointActionHistory
*
Clone
()
const
100
{
return
new
JointActionHistory
(*
this
); }
101
103
std::string
SoftPrint
()
const
;
105
void
Print
()
const
{ std::cout <<
SoftPrint
(); }
106
107
};
108
109
#endif
/* !_JOINTACTIONHISTORY_H_ */
110
111
112
// Local Variables: ***
113
// mode:c++ ***
114
// End: ***
src
support
JointActionHistory.h
Generated on Mon Sep 23 2013 14:50:06 for MultiAgentDecisionProcess by
1.8.1.2