MultiAgentDecisionProcess
Release 0.2.1
|
RewardModel represents the reward model in a decision process. More...
#include <RewardModel.h>
Public Member Functions | |
virtual RewardModel * | Clone () const =0 |
Returns a pointer to a copy of this class. | |
virtual double | Get (Index s_i, Index ja_i) const =0 |
Returns R(s,ja) | |
void | Print () const |
Print this to cout. | |
RewardModel (size_t nrS=1, size_t nrJA=1) | |
default Constructor | |
virtual void | Set (Index s_i, Index ja_i, double rew)=0 |
Sets R(s_i,ja_i) | |
virtual std::string | SoftPrint () const =0 |
Prints a description of this to a string. | |
virtual | ~RewardModel () |
Destructor. | |
![]() | |
virtual | ~QTableInterface () |
Protected Attributes | |
size_t | _m_nrJointActions |
The number of joint actions. | |
size_t | _m_nrStates |
The number of states. |
RewardModel represents the reward model in a decision process.
Definition at line 37 of file RewardModel.h.
|
inline |
default Constructor
Definition at line 51 of file RewardModel.h.
|
inlinevirtual |
Destructor.
Definition at line 56 of file RewardModel.h.
|
pure virtual |
Returns a pointer to a copy of this class.
Implements QTableInterface.
Implemented in RewardModelMappingSparse, and RewardModelMapping.
|
pure virtual |
Returns R(s,ja)
Implements QTableInterface.
Implemented in RewardModelMappingSparse, and RewardModelMapping.
Referenced by DecPOMDPDiscrete::GetReward().
|
inline |
Print this to cout.
Reimplemented in RewardModelMappingSparse, and RewardModelMapping.
Definition at line 74 of file RewardModel.h.
References SoftPrint().
|
pure virtual |
Sets R(s_i,ja_i)
Index ja_i, Index s_i, are indices of the state and taken joint action. r is the reward. The order of events is s, ja, so is the arg. list.
Implements QTableInterface.
Implemented in RewardModelMappingSparse, and RewardModelMapping.
Referenced by DecPOMDPDiscrete::SetReward().
|
pure virtual |
Prints a description of this to a string.
Implemented in RewardModelMappingSparse, and RewardModelMapping.
Referenced by Print(), and DecPOMDPDiscrete::SoftPrint().
|
protected |
The number of joint actions.
Definition at line 46 of file RewardModel.h.
Referenced by RewardModelMapping::SoftPrint(), and RewardModelMappingSparse::SoftPrint().
|
protected |
The number of states.
Definition at line 44 of file RewardModel.h.
Referenced by RewardModelMapping::SoftPrint(), and RewardModelMappingSparse::SoftPrint().