MultiAgentDecisionProcess
Release 0.2.1
Main Page
Namespaces
Classes
Files
File List
File Members
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
34
TransitionModelMapping::TransitionModelMapping
(
int
nrS,
int
nrJA) :
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
46
TransitionModelMapping::
47
TransitionModelMapping
(
const
TransitionModelMapping
& TM) :
48
TransitionModelDiscrete
(TM)
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
58
TransitionModelMapping::~TransitionModelMapping
()
59
{
60
for
(vector<Matrix*>::iterator it=
_m_T
.begin();
61
it!=
_m_T
.end(); ++it)
62
delete
(*it);
63
_m_T
.clear();
64
}
src
base
TransitionModelMapping.cpp
Generated on Mon Sep 23 2013 14:50:05 for MultiAgentDecisionProcess by
1.8.1.2