MultiAgentDecisionProcess
Release 0.2.1
Main Page
Namespaces
Classes
Files
File List
File Members
ObservationHistory.h
Go to the documentation of this file.
1
28
/* Only include this header file once. */
29
#ifndef _OBSERVATIONHISTORY_H_
30
#define _OBSERVATIONHISTORY_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
41
42
44
48
class
ObservationHistory
:
public
Referrer
<PlanningUnitMADPDiscrete>,
49
public
IndividualHistory
50
{
51
private
:
52
54
Index
_m_observationI
;
55
61
bool
_m_containsEmptyOI
;
65
ObservationHistory
*
_m_pred
;
66
protected
:
67
68
public
:
69
// Constructor, destructor and copy assignment.
72
ObservationHistory
(
PlanningUnitMADPDiscrete
& pu,
Index
agentI);
75
ObservationHistory
(
PlanningUnitMADPDiscrete
& pu,
Index
agentI,
76
Index
obsI);
79
ObservationHistory
(
Index
obsI,
ObservationHistory
* pred);
81
//ObservationHistory(const ObservationHistory& a);
83
~ObservationHistory
();
84
85
//operators:
86
87
//data manipulation (set) functions:
88
89
//get (data) functions:
91
bool
ContainsEmptyOI
()
const
92
{
return
_m_containsEmptyOI
;}
94
const
ObservationHistory
*
GetPredecessor
()
const
95
{
return
_m_pred
;}
97
Index
GetLastObservationIndex
()
const
98
{
return
_m_observationI
; }
99
100
//other
102
virtual
ObservationHistory
*
Clone
()
const
103
{
return
new
ObservationHistory
(*
this
); }
104
106
std::string
SoftPrint
()
const
;
108
void
Print
()
const
109
{ std::cout <<
SoftPrint
();}
110
};
111
112
113
#endif
/* !_OBSERVATIONHISTORY_H_ */
114
115
// Local Variables: ***
116
// mode:c++ ***
117
// End: ***
src
support
ObservationHistory.h
Generated on Mon Sep 23 2013 14:50:06 for MultiAgentDecisionProcess by
1.8.1.2