MultiAgentDecisionProcess
RewardModelDiscreteInterface Class Referenceabstract

RewardModelDiscreteInterface is an interface for discrete reward models. More...

#include <RewardModelDiscreteInterface.h>

Inheritance diagram for RewardModelDiscreteInterface:
[legend]

Public Member Functions

virtual
RewardModelDiscreteInterface
Clone () const =0
 Returns a pointer to a copy of this class. More...
 
virtual double Get (Index s_i, Index ja_i) const =0
 Returns R(s,ja) More...
 
void Print () const
 Print this to cout. More...
 
 RewardModelDiscreteInterface ()
 default Constructor More...
 
virtual void Set (Index s_i, Index ja_i, double rew)=0
 Sets R(s_i,ja_i) More...
 
virtual std::string SoftPrint () const =0
 Prints a description of this to a string. More...
 
virtual ~RewardModelDiscreteInterface ()
 Destructor. More...
 
- Public Member Functions inherited from QTableInterface
virtual ~QTableInterface ()
 

Detailed Description

RewardModelDiscreteInterface is an interface for discrete reward models.

Constructor & Destructor Documentation

RewardModelDiscreteInterface::RewardModelDiscreteInterface ( )
inline

default Constructor

virtual RewardModelDiscreteInterface::~RewardModelDiscreteInterface ( )
inlinevirtual

Destructor.

Member Function Documentation

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

Returns a pointer to a copy of this class.

Implements QTableInterface.

Implemented in RewardModelMappingSparseMapped, RewardModelMappingSparse, and RewardModelMapping.

Referenced by BayesianGameIdenticalPayoff::operator=().

virtual double RewardModelDiscreteInterface::Get ( Index  s_i,
Index  ja_i 
) const
pure virtual
void RewardModelDiscreteInterface::Print ( ) const
inline

Print this to cout.

References SoftPrint().

virtual void RewardModelDiscreteInterface::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 RewardModelMappingSparseMapped, RewardModelMappingSparse, and RewardModelMapping.

Referenced by FactoredDecPOMDPDiscrete::CacheFlatRewardModel(), FactoredDecPOMDPDiscrete::ClipRewardModel(), DecPOMDPDiscrete::SetReward(), and BayesianGameIdenticalPayoff::SetUtility().

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

Prints a description of this to a string.

Implemented in RewardModelMappingSparseMapped, RewardModelMappingSparse, and RewardModelMapping.

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