MultiAgentDecisionProcess
LocalBGValueFunctionBGCGWrapper Class Reference

LocalBGValueFunctionBGCGWrapper is a class that represents a wrapper for a BayesianGameCollaborativeGraphical such that it implements the LocalBGValueFunctionInterface. More...

#include <LocalBGValueFunctionBGCGWrapper.h>

Inheritance diagram for LocalBGValueFunctionBGCGWrapper:
[legend]

Public Member Functions

Scope GetAgentScope () const
 
double GetValue (Index jpolI) const
 
double GetValue (std::vector< Index > indPols) const
 
 LocalBGValueFunctionBGCGWrapper (const boost::shared_ptr< const BayesianGameCollaborativeGraphical > &bgcg, Index LRF)
 (default) Constructor More...
 
void Print () const
 
void SetValue (Index jpolI, double value)
 Copy constructor. More...
 
void SetValue (std::vector< Index > indPol, double value)
 
std::string SoftPrint () const
 
- Public Member Functions inherited from LocalBGValueFunctionInterface
virtual ~LocalBGValueFunctionInterface ()
 (default) Constructor More...
 

Private Attributes

boost::shared_ptr< const
BayesianGameCollaborativeGraphical
_m_bgcg
 
Index _m_LRF
 

Detailed Description

LocalBGValueFunctionBGCGWrapper is a class that represents a wrapper for a BayesianGameCollaborativeGraphical such that it implements the LocalBGValueFunctionInterface.

When solving a BayesianGameCollaborativeGraphical using nonserial dynamic programming (NDP), each LRF (i.e., each local payoff function of the BGCG) is treated as a local value function (i.e. a LocalBGValueFunctionInterface).

Note that not every local value function (LVF) is necessaririly a LRF: NDP creates new LVFs (that do not correspond to any LRF) when eliminating agents.

This class creates a wrapper object, that can be queried like an LocalBGValueFunctionInterface, but uses BayesianGameCollaborativeGraphical as its back end.

Constructor & Destructor Documentation

LocalBGValueFunctionBGCGWrapper::LocalBGValueFunctionBGCGWrapper ( const boost::shared_ptr< const BayesianGameCollaborativeGraphical > &  bgcg,
Index  LRF 
)

(default) Constructor

Member Function Documentation

Scope LocalBGValueFunctionBGCGWrapper::GetAgentScope ( ) const
virtual
double LocalBGValueFunctionBGCGWrapper::GetValue ( Index  jpolI) const
virtual
void LocalBGValueFunctionBGCGWrapper::Print ( ) const
inlinevirtual

Implements LocalBGValueFunctionInterface.

References SoftPrint().

void LocalBGValueFunctionBGCGWrapper::SetValue ( Index  jpolI,
double  value 
)
inlinevirtual

Copy constructor.

Implements LocalBGValueFunctionInterface.

void LocalBGValueFunctionBGCGWrapper::SetValue ( std::vector< Index indPol,
double  value 
)
inlinevirtual
string LocalBGValueFunctionBGCGWrapper::SoftPrint ( void  ) const
virtual

Member Data Documentation

boost::shared_ptr<const BayesianGameCollaborativeGraphical> LocalBGValueFunctionBGCGWrapper::_m_bgcg
private
Index LocalBGValueFunctionBGCGWrapper::_m_LRF
private