MultiAgentDecisionProcess  Release 0.2.1
JPPVValuePair.cpp
Go to the documentation of this file.
1 
28 #include "JPPVValuePair.h"
29 #include "JointPolicyPureVector.h"
30 
31 using namespace std;
32 
35 {
36  _m_jpol = jp;
37 }
38 
41 {
42  _m_jpol = &jp;
43 }
44 
46 {
47  delete _m_jpol;
48 }
49 
51 {
52  stringstream ss;
53  ss << "JPPVValuePair: value="<< GetValue() <<", pol:";
54  ss << _m_jpol->SoftPrint();
55  return(ss.str());
56 }
57 
59 {
60  stringstream ss;
61  ss << "JPPVValuePair(" << GetValue() << ","
62  << _m_jpol->GetIndex() << "[d=" << _m_jpol->GetDepth()
63  << "])";
64  return(ss.str());
65 }