MultiAgentDecisionProcess
Release 0.2.1
Main Page
Namespaces
Classes
Files
File List
File Members
JPPVValuePair.cpp
Go to the documentation of this file.
1
28
#include "
JPPVValuePair.h
"
29
#include "
JointPolicyPureVector.h
"
30
31
using namespace
std;
32
33
JPPVValuePair::JPPVValuePair
(
JointPolicyPureVector
* jp,
double
value) :
34
JointPolicyValuePair
(value)
35
{
36
_m_jpol
= jp;
37
}
38
39
JPPVValuePair::JPPVValuePair
(
JointPolicyPureVector
& jp,
double
value) :
40
JointPolicyValuePair
(value)
41
{
42
_m_jpol
= &jp;
43
}
44
45
JPPVValuePair::~JPPVValuePair
()
46
{
47
delete
_m_jpol
;
48
}
49
50
string
JPPVValuePair::SoftPrint
()
const
51
{
52
stringstream ss;
53
ss <<
"JPPVValuePair: value="
<<
GetValue
() <<
", pol:"
;
54
ss <<
_m_jpol
->
SoftPrint
();
55
return
(ss.str());
56
}
57
58
string
JPPVValuePair::SoftPrintBrief
()
const
59
{
60
stringstream ss;
61
ss <<
"JPPVValuePair("
<<
GetValue
() <<
","
62
<<
_m_jpol
->
GetIndex
() <<
"[d="
<<
_m_jpol
->
GetDepth
()
63
<<
"])"
;
64
return
(ss.str());
65
}
src
planning
JPPVValuePair.cpp
Generated on Mon Sep 23 2013 14:50:05 for MultiAgentDecisionProcess by
1.8.1.2