MultiAgentDecisionProcess  Release 0.2.1
JointPolicyPureVector.cpp
Go to the documentation of this file.
1 
28 #include "JointPolicyPureVector.h"
29 #include "IndexTools.h"
30 
31 using namespace std;
32 
33 #define DEBUG_JPPT 0
34 #define DEBUG_JPPT_GETJA_LOCAL 0
35 
36 //TODO: check this code
38 {
39 #if DEBUG_JPOLASSIGN
40  cout << "JointPolicyPureVector::operator=(const JointPolicyPureVector& jp) called"<<endl;
41 #endif
42  if (this == &o) return *this; // Gracefully handle self assignment
43  // Put the normal assignment duties here...
46  return *this;
47 }
48 
50 {
51 #if DEBUG_JPOLASSIGN
52  cerr << "JointPolicyPureVector::operator=(const JointPolicyDiscretePure& jp) called"<<endl;
53 #endif
54  if (this == &o) return *this; // Gracefully handle self assignment
55  const JointPolicyPureVector& p =
56  dynamic_cast<const JointPolicyPureVector&>( o );
57  return operator=(p);
58 }
59 
60 
62 {
63  stringstream ss;
64  ss << "JointPolicyPureVector: " <<endl;
66  return(ss.str());
67 }
68 
70 {
71  stringstream ss;
72  ss << "JPPV: ";
74  return ss.str();
75 }
76 
77 
79 {
80  return new JointPolicyPureVector(*this);
81 }