TransitionModelMapping Class Reference

TransitionModelMapping implements a TransitionModelDiscrete. More...

#include <TransitionModelMapping.h>

Inheritance diagram for TransitionModelMapping:

Public Types

< double > 

Public Member Functions

virtual TransitionModelMappingClone () 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 MatrixGetMatrixPtr (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


class TGet_TransitionModelMapping

Detailed Description

TransitionModelMapping implements a TransitionModelDiscrete.

Uses full matrices.

Member Typedef Documentation

typedef boost::numeric::ublas::matrix<double> TransitionModelMapping::Matrix

Constructor & Destructor Documentation

TransitionModelMapping::TransitionModelMapping ( int  nrS = 1,
int  nrJA = 1 

default Constructor

References _m_T.

Referenced by Clone().

TransitionModelMapping::TransitionModelMapping ( const TransitionModelMapping TM)

Copy constructor.

References _m_T.

TransitionModelMapping::~TransitionModelMapping ( )


References _m_T.

Member Function Documentation

virtual TransitionModelMapping* TransitionModelMapping::Clone ( ) const

Returns a pointer to a copy of this class.

Implements TransitionModelDiscrete.

References TransitionModelMapping().

double TransitionModelMapping::Get ( Index  sI,
Index  jaI,
Index  sucSI 
) const

Returns P(s'|s,ja)

Implements TransitionModelDiscreteInterface.

const Matrix* TransitionModelMapping::GetMatrixPtr ( Index  a) const

Get a pointer to a transition matrix for a particular action.

Referenced by AlphaVectorPlanning::Initialize(), MDPValueIteration::Plan(), and JointBeliefEventDriven::Update().

void TransitionModelMapping::Set ( Index  sI,
Index  jaI,
Index  sucSI,
double  prob 

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.

Friends And Related Function Documentation

friend class TGet_TransitionModelMapping

Member Data Documentation

std::vector<Matrix* > TransitionModelMapping::_m_T