MultiAgentDecisionProcess
Release 0.2.1
|
TransitionModelMapping implements a TransitionModelDiscrete. More...
#include <TransitionModelMapping.h>
Public Types | |
typedef boost::numeric::ublas::matrix < double > | Matrix |
Public Member Functions | |
virtual TransitionModelMapping * | Clone () const |
Returns a pointer to a copy of this class. | |
double | Get (Index sI, Index jaI, Index sucSI) const |
Returns P(s'|s,ja) | |
const Matrix * | GetMatrixPtr (Index a) const |
Get a pointer to a transition matrix for a particular action. | |
void | Set (Index sI, Index jaI, Index sucSI, double prob) |
Sets P(s'|s,ja) | |
TransitionModelMapping (int nrS=1, int nrJA=1) | |
default Constructor | |
TransitionModelMapping (const TransitionModelMapping &TM) | |
Copy constructor. | |
~TransitionModelMapping () | |
Destructor. | |
![]() | |
Index | SampleSuccessorState (Index sI, Index jaI) |
Sample a successor state. | |
std::string | SoftPrint () const |
SoftPrints tabular transition model. | |
TransitionModelDiscrete (int nrS=1, int nrJA=1) | |
Constructor with the dimensions of the transition model. | |
virtual | ~TransitionModelDiscrete () |
![]() | |
void | Print () const |
TransitionModel () | |
default Constructor | |
virtual | ~TransitionModel () |
Destructor. |
Private Attributes | |
std::vector< Matrix * > | _m_T |
Friends | |
class | TGet_TransitionModelMapping |
TransitionModelMapping implements a TransitionModelDiscrete.
Uses full matrices.
Definition at line 42 of file TransitionModelMapping.h.
typedef boost::numeric::ublas::matrix<double> TransitionModelMapping::Matrix |
Definition at line 46 of file TransitionModelMapping.h.
TransitionModelMapping::TransitionModelMapping | ( | int | nrS = 1 , |
int | nrJA = 1 |
||
) |
default Constructor
Definition at line 34 of file TransitionModelMapping.cpp.
References _m_T.
Referenced by Clone().
TransitionModelMapping::TransitionModelMapping | ( | const TransitionModelMapping & | TM | ) |
TransitionModelMapping::~TransitionModelMapping | ( | ) |
|
inlinevirtual |
Returns a pointer to a copy of this class.
Implements TransitionModelDiscrete.
Definition at line 83 of file TransitionModelMapping.h.
References TransitionModelMapping().
|
inlinevirtual |
Returns P(s'|s,ja)
Implements TransitionModelDiscrete.
Definition at line 66 of file TransitionModelMapping.h.
References _m_T.
|
inline |
Get a pointer to a transition matrix for a particular action.
Definition at line 79 of file TransitionModelMapping.h.
References _m_T.
Referenced by AlphaVectorPlanning::Initialize(), and MDPValueIteration::Plan().
|
inlinevirtual |
Sets P(s'|s,ja)
sI, jaI, sucSI, are indices of the state, taken joint action and resulting successor state. prob is the probability. The order of events is s, ja, s', so is the arg. list
Implements TransitionModelDiscrete.
Definition at line 75 of file TransitionModelMapping.h.
|
friend |
Definition at line 86 of file TransitionModelMapping.h.
|
private |
Definition at line 50 of file TransitionModelMapping.h.
Referenced by Get(), GetMatrixPtr(), Set(), TGet_TransitionModelMapping::TGet_TransitionModelMapping(), TransitionModelMapping(), and ~TransitionModelMapping().