MultiAgentDecisionProcess  Release 0.2.1
RewardModel Class Reference

RewardModel represents the reward model in a decision process. More...

#include <RewardModel.h>

+ Inheritance diagram for RewardModel:
+ Collaboration diagram for RewardModel:

Public Member Functions

virtual RewardModelClone () 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.
- Public Member Functions inherited from QTableInterface
virtual ~QTableInterface ()

Protected Attributes

size_t _m_nrJointActions
 The number of joint actions.
size_t _m_nrStates
 The number of states.

Detailed Description

RewardModel represents the reward model in a decision process.

Definition at line 37 of file RewardModel.h.

Constructor & Destructor Documentation

RewardModel::RewardModel ( size_t  nrS = 1,
size_t  nrJA = 1 
)
inline

default Constructor

Definition at line 51 of file RewardModel.h.

virtual RewardModel::~RewardModel ( )
inlinevirtual

Destructor.

Definition at line 56 of file RewardModel.h.

Member Function Documentation

virtual RewardModel* RewardModel::Clone ( ) const
pure virtual

Returns a pointer to a copy of this class.

Implements QTableInterface.

Implemented in RewardModelMappingSparse, and RewardModelMapping.

virtual double RewardModel::Get ( Index  s_i,
Index  ja_i 
) const
pure virtual

Returns R(s,ja)

Implements QTableInterface.

Implemented in RewardModelMappingSparse, and RewardModelMapping.

Referenced by DecPOMDPDiscrete::GetReward().

void RewardModel::Print ( ) const
inline

Print this to cout.

Reimplemented in RewardModelMappingSparse, and RewardModelMapping.

Definition at line 74 of file RewardModel.h.

References SoftPrint().

virtual void RewardModel::Set ( Index  s_i,
Index  ja_i,
double  rew 
)
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().

virtual std::string RewardModel::SoftPrint ( ) const
pure virtual

Prints a description of this to a string.

Implemented in RewardModelMappingSparse, and RewardModelMapping.

Referenced by Print(), and DecPOMDPDiscrete::SoftPrint().

Member Data Documentation

size_t RewardModel::_m_nrJointActions
protected

The number of joint actions.

Definition at line 46 of file RewardModel.h.

Referenced by RewardModelMapping::SoftPrint(), and RewardModelMappingSparse::SoftPrint().

size_t RewardModel::_m_nrStates
protected

The number of states.

Definition at line 44 of file RewardModel.h.

Referenced by RewardModelMapping::SoftPrint(), and RewardModelMappingSparse::SoftPrint().


The documentation for this class was generated from the following file: