MultiAgentDecisionProcess  Release 0.2.1
TransitionModelMapping.cpp
Go to the documentation of this file.
1 
28 #include "TransitionModelMapping.h"
29 
30 using namespace std;
31 
32 #define DEBUG_TM_MAPPING 0
33 
35  TransitionModelDiscrete(nrS, nrJA)
36 {
37  Matrix *T;
38  for(int a=0;a!=nrJA;++a)
39  {
40  T=new Matrix(nrS,nrS);
41  T->clear();
42  _m_T.push_back(T);
43  }
44 }
45 
49 {
50  Matrix *T;
51  for(unsigned int a=0;a!=TM._m_T.size();++a)
52  {
53  T=new Matrix(*TM._m_T[a]);
54  _m_T.push_back(T);
55  }
56 }
57 
59 {
60  for(vector<Matrix*>::iterator it=_m_T.begin();
61  it!=_m_T.end(); ++it)
62  delete(*it);
63  _m_T.clear();
64 }