MultiAgentDecisionProcess
Release 0.2.1
Main Page
Namespaces
Classes
Files
File List
File Members
PolicyPoolPartialJPolValPair.h
Go to the documentation of this file.
1
28
/* Only include this header file once. */
29
#ifndef _POLICYPOOLPARTIALJPOLVALPAIR_H_
30
#define _POLICYPOOLPARTIALJPOLVALPAIR_H_ 1
31
32
/* the include directives */
33
#include <iostream>
34
#include <queue>
35
#include "
Globals.h
"
36
#include "
PartialJPDPValuePair.h
"
37
#include "
PartialPolicyPoolInterface.h
"
38
39
40
43
class
PolicyPoolPartialJPolValPair
:
public
PartialPolicyPoolInterface
44
{
45
private
:
47
std::priority_queue<PartialJPDPValuePair*> *
_m_jpvpQueue_p
;
48
49
protected
:
50
51
public
:
52
// Constructor, destructor and copy assignment.
54
PolicyPoolPartialJPolValPair
();
56
//PolicyPoolPartialJPolValPair(const PolicyPoolPartialJPolValPair& a);
58
~PolicyPoolPartialJPolValPair
();
60
PolicyPoolPartialJPolValPair
&
operator=
(
const
PolicyPoolPartialJPolValPair
& o);
61
PartialPolicyPoolInterface
&
operator=
(
const
PartialPolicyPoolInterface
& o);
62
63
//operators:
64
65
//data manipulation (set) functions:
72
void
Init
(
const
Interface_ProblemToPolicyDiscretePure
* pu);
73
81
PartialPolicyPoolItemInterface
*
Select
()
const
;
88
void
Pop
();
101
PartialPolicyPoolItemInterface
*
GetBestRanked
()
const
102
{
return
(
Select
());};
112
void
PopBestRanked
()
113
{
Pop
();};
118
void
Insert
(
PartialPolicyPoolItemInterface
* ppi);
119
124
void
Union
(
PartialPolicyPoolInterface
* pp);
125
void
Prune
(
double
v);
126
//get (data) functions:
127
132
size_t
Size
()
const
133
{
134
return
(
_m_jpvpQueue_p
->size());
135
}
136
};
137
138
139
#endif
/* !_POLICYPOOLPARTIALJPOLVALPAIR_H_ */
140
141
// Local Variables: ***
142
// mode:c++ ***
143
// End: ***
src
planning
PolicyPoolPartialJPolValPair.h
Generated on Mon Sep 23 2013 14:50:05 for MultiAgentDecisionProcess by
1.8.1.2