MultiAgentDecisionProcess
Release 0.2.1
Main Page
Namespaces
Classes
Files
File List
File Members
PolicyPoolJPolValPair.h
Go to the documentation of this file.
1
28
/* Only include this header file once. */
29
#ifndef _POLICYPOOLJPOLVALPAIR_H_
30
#define _POLICYPOOLJPOLVALPAIR_H_ 1
31
32
/* the include directives */
33
#include <iostream>
34
#include <queue>
35
#include "
Globals.h
"
36
#include "
JointPolicyValuePair.h
"
37
#include "
PolicyPoolInterface.h
"
38
39
42
class
PolicyPoolJPolValPair
:
public
PolicyPoolInterface
43
{
44
private
:
46
std::priority_queue<JointPolicyValuePair*> *
_m_jpvpQueue_p
;
47
48
protected
:
49
50
public
:
51
// Constructor, destructor and copy assignment.
53
PolicyPoolJPolValPair
();
55
~PolicyPoolJPolValPair
();
57
PolicyPoolJPolValPair
&
operator=
(
const
PolicyPoolJPolValPair
& o);
58
PolicyPoolInterface
&
operator=
(
const
PolicyPoolInterface
& o);
59
60
//operators:
61
62
//data manipulation (set) functions:
69
void
Init
(
const
Interface_ProblemToPolicyDiscretePure
* pu);
70
78
PolicyPoolItemInterface
*
Select
()
const
;
85
void
Pop
();
98
PolicyPoolItemInterface
*
GetBestRanked
()
const
99
{
return
(
Select
());};
109
void
PopBestRanked
()
110
{
Pop
();};
115
void
Insert
(
PolicyPoolItemInterface
* ppi);
116
121
void
Union
(
PolicyPoolInterface
* pp);
122
void
Prune
(
double
v);
123
//get (data) functions:
124
129
size_t
Size
()
const
130
{
131
return
(
_m_jpvpQueue_p
->size());
132
}
133
};
134
135
136
#endif
/* !_POLICYPOOLJPOLVALPAIR_H_ */
137
138
// Local Variables: ***
139
// mode:c++ ***
140
// End: ***
src
planning
PolicyPoolJPolValPair.h
Generated on Mon Sep 23 2013 14:50:05 for MultiAgentDecisionProcess by
1.8.1.2