MultiAgentDecisionProcess
|
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. More... | |
double | Get (Index sI, Index jaI, Index sucSI) const |
Returns P(s'|s,ja) More... | |
const Matrix * | GetMatrixPtr (Index a) const |
Get a pointer to a transition matrix for a particular action. More... | |
void | Set (Index sI, Index jaI, Index sucSI, double prob) |
Sets P(s'|s,ja) More... | |
TransitionModelMapping (int nrS=1, int nrJA=1) | |
default Constructor More... | |
TransitionModelMapping (const TransitionModelMapping &TM) | |
Copy constructor. More... | |
~TransitionModelMapping () | |
Destructor. More... | |
Public Member Functions inherited from TransitionModelDiscrete | |
Index | SampleSuccessorState (Index sI, Index jaI) |
Sample a successor state. More... | |
std::string | SoftPrint () const |
SoftPrints tabular transition model. More... | |
TransitionModelDiscrete (int nrS=1, int nrJA=1) | |
Constructor with the dimensions of the transition model. More... | |
virtual | ~TransitionModelDiscrete () |
Public Member Functions inherited from TransitionModelDiscreteInterface | |
TransitionModelDiscreteInterface () | |
Constructor. More... | |
virtual | ~TransitionModelDiscreteInterface () |
Public Member Functions inherited from TransitionModel | |
void | Print () const |
TransitionModel () | |
default Constructor More... | |
virtual | ~TransitionModel () |
Destructor. More... | |
Private Attributes | |
std::vector< Matrix * > | _m_T |
Friends | |
class | TGet_TransitionModelMapping |
TransitionModelMapping implements a TransitionModelDiscrete.
Uses full matrices.
typedef boost::numeric::ublas::matrix<double> TransitionModelMapping::Matrix |
TransitionModelMapping::TransitionModelMapping | ( | int | nrS = 1 , |
int | nrJA = 1 |
||
) |
TransitionModelMapping::TransitionModelMapping | ( | const TransitionModelMapping & | TM | ) |
Copy constructor.
References _m_T.
TransitionModelMapping::~TransitionModelMapping | ( | ) |
Destructor.
References _m_T.
|
inlinevirtual |
Returns a pointer to a copy of this class.
Implements TransitionModelDiscrete.
References TransitionModelMapping().
Returns P(s'|s,ja)
Implements TransitionModelDiscreteInterface.
Get a pointer to a transition matrix for a particular action.
Referenced by AlphaVectorPlanning::Initialize(), MDPValueIteration::Plan(), and JointBeliefEventDriven::Update().
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 TransitionModelDiscreteInterface.
|
friend |
|
private |