MultiAgentDecisionProcess  Release 0.2.1
PartialJointPolicyPureVector.cpp
Go to the documentation of this file.
1 
29 #include "JointPolicyPureVector.h"
30 
31 using namespace std;
32 
36  double pastReward,
37  size_t depth) :
38  PartialJointPolicyDiscretePure(pu, idc, pastReward),
40 {
41  SetDepth(depth);
42 }
43 
44 //Copy assignment operator
46 {
47  if (this == &o) return *this; // Gracefully handle self assignment
48  // Put the normal assignment duties here...
51  return *this;
52 }
55 {
56  if (this == &o) return *this; // Gracefully handle self assignment
58  dynamic_cast<const PartialJointPolicyPureVector&>( o );
59  return operator=(p);
60 
61 }
62 
63 
65 {
66  stringstream ss;
67  ss << "PartialJointPolicyPureVector, past reward="<<GetPastReward()<<endl;
69  return ss.str();
70 }
71 
73 {
74  stringstream ss;
75  ss << "PartialJPPV, past R="<<GetPastReward()<<", ";
77  return ss.str();
78 }
79 
81 {
82  return new JointPolicyPureVector(*this, *this);
83 }