MultiAgentDecisionProcess  Release 0.2.1
PartialJPPVIndexValuePair.cpp
Go to the documentation of this file.
1 
30 
31 using namespace std;
32 
35 {
36  _m_jpol=0;
37  _m_jpolIndex=jp->GetIndex();
38  _m_jpolDepth=jp->GetDepth();
40 }
41 
43  double val) :
45 {
46  _m_jpol=0;
49  _m_pastR = jp.GetPastReward();
51 }
52 
54 {
55  delete _m_jpol;
56 }
57 
59 {
60  if(_m_jpol==0)
61  AllocateJPPV();
62 
63  return(_m_jpol);
64 }
65 
67 {
68  if(_m_jpol==0) // not yet instantiated, do it now
69  {
72 // _m_jpol->SetDepth(_m_jpolDepth);
74  }
75 }
76 
78 {
79  stringstream ss;
80  ss << "PartialJPPVIndexValuePair: val="<< GetValue() <<", jpolIndex:";
81  ss << _m_jpolIndex;
82  return(ss.str());
83 }
84 
86 {
87  stringstream ss;
88  ss << "PartialJPPVIndexValuePair(" << GetValue() << ","
89  << _m_jpolIndex << ")";
90  return(ss.str());
91 }