MultiAgentDecisionProcess
Release 0.2.1
Main Page
Namespaces
Classes
Files
File List
File Members
ActionHistory.h
Go to the documentation of this file.
1
28
/* Only include this header file once. */
29
#ifndef _ACTIONHISTORY_H_
30
#define _ACTIONHISTORY_H_ 1
31
32
/* the include directives */
33
#include <iostream>
34
#include "
Globals.h
"
35
#include "
Referrer.h
"
36
#include "
E.h
"
37
#include "
IndividualHistory.h
"
38
39
class
PlanningUnitMADPDiscrete
;
//forward declaration to avoid including each other
40
42
46
class
ActionHistory
:
public
Referrer
<PlanningUnitMADPDiscrete>,
47
public
IndividualHistory
48
{
49
private
:
50
52
Index
_m_actionI
;
56
bool
_m_isEmpty
;
60
ActionHistory
*
_m_pred
;
61
protected
:
62
63
public
:
64
// Constructor, destructor and copy assignment.
67
ActionHistory
(
PlanningUnitMADPDiscrete
& pu,
Index
agentI);
68
71
ActionHistory
(
Index
aI,
ActionHistory
* pred);
72
74
~ActionHistory
();
75
76
//operators:
77
78
//data manipulation (set) functions:
79
80
//get (data) functions:
82
bool
IsEmpty
()
const
83
{
return
_m_isEmpty
;}
85
Index
GetLastActionIndex
()
const
86
{
return
_m_actionI
; }
87
//other
89
virtual
ActionHistory
*
Clone
()
const
90
{
return
new
ActionHistory
(*
this
); }
91
93
std::string
SoftPrint
()
const
;
95
void
Print
()
const
96
{ std::cout <<
SoftPrint
();}
97
};
98
99
100
#endif
/* !_ACTIONHISTORY_H_ */
101
102
// Local Variables: ***
103
// mode:c++ ***
104
// End: ***
src
support
ActionHistory.h
Generated on Mon Sep 23 2013 14:50:06 for MultiAgentDecisionProcess by
1.8.1.2