MultiAgentDecisionProcess  Release 0.2.1
BayesianGameIdenticalPayoffInterface Class Reference

BayesianGameIdenticalPayoffInterface provides an interface for Bayesian Games with identical payoffs. More...

#include <BayesianGameIdenticalPayoffInterface.h>

+ Inheritance diagram for BayesianGameIdenticalPayoffInterface:
+ Collaboration diagram for BayesianGameIdenticalPayoffInterface:

Public Member Functions

 BayesianGameIdenticalPayoffInterface ()
 (default) Constructor
 BayesianGameIdenticalPayoffInterface (size_t nrAgents, const std::vector< size_t > &nrActions, const std::vector< size_t > &nrTypes)
virtual double GetUtility (const Index jtype, const Index ja) const =0
 Gets the utility for (for all agents) jtype, ja.
virtual double GetUtility (const std::vector< Index > &indTypeIndices, const std::vector< Index > &indActionIndices) const =0
 Gets the utility for (for all agents) joint type corresponding to the individual type indices (indTypeIndices) and joint action corresponding to individual action indices (indActionIndices).
virtual void Print () const
 Print this BayesianGameIdenticalPayoff to cout.
virtual std::string SoftPrint () const =0
 Prints a description of this entire BayesianGameIdenticalPayoff to a string.
- Public Member Functions inherited from BayesianGameBase
void AddProbability (const Index i, const double p)
 Adds p to the probability of joint type i.
void AddProbability (const std::vector< Index > &indIndices, const double p)
 Adds p to the probability of joint type corresponding to the individual type indices (indIndices).
virtual bool AreCachedJointToIndivIndices (const PolicyGlobals::IndexDomainCategory pdc) const
 Check whether certain index conversions are cached.
 BayesianGameBase ()
 BayesianGameBase (const size_t nrAgents, const std::vector< size_t > &nrActions, const std::vector< size_t > &nrTypes, int verboseness=0)
 BayesianGameBase (const BayesianGameBase &a)
 Copy constructor.
bool CacheJointToIndivAOH_Indices () const
bool CacheJointToIndivOH_Indices () const
bool CacheJointToIndivType_Indices () const
virtual
PolicyGlobals::IndexDomainCategory 
GetDefaultIndexDomCat () const
 Return the default IndexDomainCategory for the problem.
size_t GetNrActions (Index agentI) const
 Get the number of invididual actions of a particular agent.
const std::vector< size_t > & GetNrActions () const
size_t GetNrAgents () const
 implement the Interface_ProblemToPolicyDiscrete interface:
size_t GetNrJointActions () const
 Get the number of joint actions.
LIndex GetNrJointPolicies () const
size_t GetNrJointTypes () const
LIndex GetNrPolicies (Index ag) const
size_t GetNrPolicyDomainElements (Index agentI, PolicyGlobals::IndexDomainCategory cat, size_t depth=MAXHORIZON) const
 Get the number of elements in the domain of an agent's policy.
const std::vector< size_t > & GetNrTypes () const
size_t GetNrTypes (Index agI) const
virtual double GetProbability (const Index i) const
 Gets the probability of joint type i.
double GetProbability (const std::vector< Index > &indIndices)
 Gets the probability of joint type corresponding to the individual type indices (indIndices)
Index IndividualToJointActionIndices (const Index *IndArr) const
 Converts individual action indices to a joint action index.
Index IndividualToJointActionIndices (const std::vector< Index > &indices) const
 Converts individual action indices to a joint action index.
Index IndividualToJointTypeIndices (const std::vector< Index > &indices) const
std::vector< Index > JointToIndividualActionIndices (Index jaI) const
std::vector< Index > JointToIndividualPolicyDomainIndices (Index jdI, PolicyGlobals::IndexDomainCategory cat) const
 implementation of JointToIndividualPolicyDomainIndices
const std::vector< Index > & JointToIndividualPolicyDomainIndicesRef (Index jdI, PolicyGlobals::IndexDomainCategory cat) const
 implementation of JointToIndividualPolicyDomainIndicesRef
const std::vector< Index > & JointToIndividualTypeIndices (Index jTypeI) const
void PrintAction (Index agentI, Index actionI) const
 y
void PrintPolicyDomain (Index agentI, Index typeIndex) const
bool SanityCheck () const
virtual void SanityCheck ()
void SanityCheckBGBase ()
bool SetInitialized (bool b)
 Sets the initialized status to b.
void SetProbability (const Index i, const double p)
 Sets the probability of joint type i to p.
void SetProbability (const std::vector< Index > &indIndices, const double p)
 Sets the probability of joint type corresponding to the individual type indices (indIndices) to p.
std::string SoftPrintAction (Index agentI, Index actionI) const
std::string SoftPrintPolicyDomainElement (Index agentI, Index typeIndex, PolicyGlobals::IndexDomainCategory cat) const
 ~BayesianGameBase ()
 Destructor.
- Public Member Functions inherited from Interface_ProblemToPolicyDiscretePure
LIndex GetNrJointPolicies (PolicyGlobals::IndexDomainCategory cat, size_t depth=MAXHORIZON) const
 Get the number of joint policies, given the policy's domain.
LIndex GetNrPolicies (Index ag, PolicyGlobals::IndexDomainCategory cat, size_t depth=MAXHORIZON) const
 Get the number of policies for an agent, given the policy's domain.
virtual ~Interface_ProblemToPolicyDiscretePure ()
 Destructor.
- Public Member Functions inherited from Interface_ProblemToPolicyDiscrete
 Interface_ProblemToPolicyDiscrete ()
 (default) Constructor
virtual ~Interface_ProblemToPolicyDiscrete ()
 Destructor.

Additional Inherited Members

- Protected Attributes inherited from BayesianGameBase
bool _m_initialized
 private bool to indicate whether this BG is initialized.
std::vector< size_t > _m_nrActions
 the number of actions for each agent
size_t _m_nrAgents
 the number of players (or agents)
size_t _m_nrJA
 the number of joint types:
size_t _m_nrJTypes
 the number of joint actions:
std::vector< size_t > _m_nrTypes
 the number of types for each agent
size_t * _m_stepSizeActions
 an size_t array that caches the stepsize array for actions:
size_t * _m_stepSizeTypes
 an size_t array that caches the stepsize array for types:
int _m_verboseness
 _m_verboseness >0 verbose, <0 is quiet

Detailed Description

BayesianGameIdenticalPayoffInterface provides an interface for Bayesian Games with identical payoffs.

Definition at line 38 of file BayesianGameIdenticalPayoffInterface.h.

Constructor & Destructor Documentation

BayesianGameIdenticalPayoffInterface::BayesianGameIdenticalPayoffInterface ( )
inline

(default) Constructor

Definition at line 49 of file BayesianGameIdenticalPayoffInterface.h.

BayesianGameIdenticalPayoffInterface::BayesianGameIdenticalPayoffInterface ( size_t  nrAgents,
const std::vector< size_t > &  nrActions,
const std::vector< size_t > &  nrTypes 
)
inline

Definition at line 51 of file BayesianGameIdenticalPayoffInterface.h.

Member Function Documentation

virtual double BayesianGameIdenticalPayoffInterface::GetUtility ( const Index  jtype,
const Index  ja 
) const
pure virtual
virtual double BayesianGameIdenticalPayoffInterface::GetUtility ( const std::vector< Index > &  indTypeIndices,
const std::vector< Index > &  indActionIndices 
) const
pure virtual

Gets the utility for (for all agents) joint type corresponding to the individual type indices (indTypeIndices) and joint action corresponding to individual action indices (indActionIndices).

Implemented in BayesianGameIdenticalPayoff.

virtual void BayesianGameIdenticalPayoffInterface::Print ( ) const
inlinevirtual

Print this BayesianGameIdenticalPayoff to cout.

Reimplemented from BayesianGameBase.

Reimplemented in BayesianGameForDecPOMDPStage, and BayesianGameIdenticalPayoff.

Definition at line 72 of file BayesianGameIdenticalPayoffInterface.h.

References SoftPrint().

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

Prints a description of this entire BayesianGameIdenticalPayoff to a string.

Reimplemented from BayesianGameBase.

Implemented in BayesianGameForDecPOMDPStage, and BayesianGameIdenticalPayoff.

Referenced by Print().


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