MultiAgentDecisionProcess
Release 0.2.1
Main Page
Namespaces
Classes
Files
File List
File Members
ActionObservationHistory.h
Go to the documentation of this file.
1
28
/* Only include this header file once. */
29
#ifndef _ACTIONOBSERVATIONHISTORY_H_
30
#define _ACTIONOBSERVATIONHISTORY_H_ 1
31
32
/* the include directives */
33
#include <iostream>
34
#include "
Globals.h
"
35
#include "
Referrer.h
"
36
#include "
IndividualHistory.h
"
37
38
//forward declation:
39
class
PlanningUnitMADPDiscrete
;
40
41
42
44
class
ActionObservationHistory
:
public
Referrer
<PlanningUnitMADPDiscrete>,
45
public
IndividualHistory
46
{
47
private
:
48
50
Index
_m_ohI
;
52
Index
_m_ahI
;
53
57
ActionObservationHistory
*
_m_pred
;
58
59
protected
:
60
61
public
:
62
// Constructor, destructor and copy assignment.
65
ActionObservationHistory
(
PlanningUnitMADPDiscrete
& pu,
Index
agentI);
68
ActionObservationHistory
(
Index
aI,
Index
oI,
69
ActionObservationHistory
* pred);
70
71
//operators:
72
73
//data manipulation (set) functions:
75
void
SetActionHistoryIndex
(
Index
ahI)
76
{
_m_ahI
= ahI;}
78
void
SetObservationHistoryIndex
(
Index
ohI)
79
{
_m_ohI
= ohI;}
80
81
//get (data) functions:
82
84
Index
GetActionHistoryIndex
()
const
85
{
return
_m_ahI
;}
87
Index
GetObservationHistoryIndex
()
const
88
{
return
_m_ohI
;}
89
//other
91
virtual
ActionObservationHistory
*
Clone
()
const
92
{
return
new
ActionObservationHistory
(*
this
); }
93
94
std::string
SoftPrint
()
const
;
95
void
Print
()
const
{ std::cout <<
SoftPrint
();};
96
97
};
98
99
100
#endif
/* !_ACTIONOBSERVATIONHISTORY_H_ */
101
102
// Local Variables: ***
103
// mode:c++ ***
104
// End: ***
src
support
ActionObservationHistory.h
Generated on Mon Sep 23 2013 14:50:06 for MultiAgentDecisionProcess by
1.8.1.2