MultiAgentDecisionProcess
Release 0.2.1
Main Page
Namespaces
Classes
Files
File List
File Members
BGIP_SolverCreator_BFS.h
Go to the documentation of this file.
1
28
/* Only include this header file once. */
29
#ifndef _BGIP_SOLVERCREATOR_BFS_H_
30
#define _BGIP_SOLVERCREATOR_BFS_H_ 1
31
32
/* the include directives */
33
#include "
Globals.h
"
34
#include "
BGIP_SolverCreatorInterface.h
"
35
36
//We have to include this (otherwise compiler doesn't know that
37
//BGIP_SolverBruteForceSearch is-a BayesianGameIdenticalPayoffSolver
38
//and thus that the virtual function "operator()" is implemented...
39
#include "
BGIP_SolverBruteForceSearch.h
"
40
//class BGIP_SolverBruteForceSearch;
41
44
template
<
class
JP>
45
class
BGIP_SolverCreator_BFS
:
public
BGIP_SolverCreatorInterface
<JP>
46
{
47
private
:
48
size_t
_m_verbose
;
49
size_t
_m_nrSolutions
;
50
51
protected
:
52
53
public
:
54
// Constructor, destructor and copy assignment.
56
BGIP_SolverCreator_BFS
(
size_t
verbose=0,
57
size_t
nrSolutions=1)
58
:
59
_m_verbose
(verbose),
60
_m_nrSolutions
(nrSolutions)
61
{}
62
63
//operators:
64
BGIP_SolverBruteForceSearch<JP>
* operator()
65
(
const
BayesianGameIdenticalPayoffInterface
& bg)
const
66
{
67
return
(
68
new
BGIP_SolverBruteForceSearch<JP>
(
69
bg,
70
_m_verbose
,
71
_m_nrSolutions
72
)
73
);
74
};
75
76
//data manipulation (set) functions:
77
78
//get (data) functions:
79
std::string
SoftPrint
()
const
80
{
81
std::stringstream ss;
82
ss <<
"BGIP_SolverCreator_BFS object with "
<<
83
", _m_verbose="
<<
_m_verbose
<<
84
", _m_nrSolutions="
<<
_m_nrSolutions
<<
85
std::endl;
86
return
(ss.str());
87
}
88
89
};
90
91
92
#endif
/* !_BGIP_SOLVERCREATOR_BFS_H_ */
93
94
// Local Variables: ***
95
// mode:c++ ***
96
// End: ***
src
planning
BGIP_SolverCreator_BFS.h
Generated on Mon Sep 23 2013 14:50:05 for MultiAgentDecisionProcess by
1.8.1.2