MultiAgentDecisionProcess
Release 0.2.1
|
TransitionModelDiscrete represents a discrete transition model. More...
#include <TransitionModelDiscrete.h>
Public Member Functions | |
virtual TransitionModelDiscrete * | Clone () const =0 |
Returns a pointer to a copy of this class. | |
virtual double | Get (Index sI, Index jaI, Index sucSI) const =0 |
Returns P(s'|s,ja). | |
Index | SampleSuccessorState (Index sI, Index jaI) |
Sample a successor state. | |
virtual void | Set (Index sI, Index jaI, Index sucSI, double prob)=0 |
Sets P(s'|s,ja) | |
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 | |
int | _m_nrJointActions |
The number of joint actions. | |
int | _m_nrStates |
The number of states. |
TransitionModelDiscrete represents a discrete transition model.
Definition at line 38 of file TransitionModelDiscrete.h.
TransitionModelDiscrete::TransitionModelDiscrete | ( | int | nrS = 1 , |
int | nrJA = 1 |
||
) |
Constructor with the dimensions of the transition model.
Definition at line 32 of file TransitionModelDiscrete.cpp.
|
virtual |
Definition at line 38 of file TransitionModelDiscrete.cpp.
|
pure virtual |
Returns a pointer to a copy of this class.
Implements TransitionModel.
Implemented in TransitionModelMappingSparse, and TransitionModelMapping.
|
pure virtual |
Returns P(s'|s,ja).
Implemented in TransitionModelMappingSparse, and TransitionModelMapping.
Referenced by MultiAgentDecisionProcessDiscrete::GetTransitionProbability(), SampleSuccessorState(), and SoftPrint().
Index TransitionModelDiscrete::SampleSuccessorState | ( | Index | sI, |
Index | jaI | ||
) |
Sample a successor state.
Definition at line 58 of file TransitionModelDiscrete.cpp.
References _m_nrStates, and Get().
Referenced by MultiAgentDecisionProcessDiscrete::SampleSuccessorState().
|
pure virtual |
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
Implemented in TransitionModelMappingSparse, and TransitionModelMapping.
Referenced by TransitionObservationIndependentMADPDiscrete::CreateCentralizedFullModels(), TransitionObservationIndependentMADPDiscrete::CreateCentralizedSparseModels(), and MultiAgentDecisionProcessDiscrete::SetTransitionProbability().
|
virtual |
SoftPrints tabular transition model.
Implements TransitionModel.
Definition at line 42 of file TransitionModelDiscrete.cpp.
References _m_nrJointActions, _m_nrStates, and Get().
Referenced by MultiAgentDecisionProcessDiscrete::SoftPrint().
|
private |
The number of joint actions.
Definition at line 45 of file TransitionModelDiscrete.h.
Referenced by SoftPrint().
|
private |
The number of states.
Definition at line 43 of file TransitionModelDiscrete.h.
Referenced by SampleSuccessorState(), and SoftPrint().