MultiAgentDecisionProcess
AgentBG Class Reference

AgentBG represents an agent which uses a BG-based policy. More...

#include <AgentBG.h>

Inheritance diagram for AgentBG:
[legend]

Public Member Functions

Index Act (Index oI, Index prevJoI)
 
 AgentBG (const PlanningUnitDecPOMDPDiscrete *pu, Index id, QAV< PerseusBGPlanner > *QBG)
 (default) Constructor More...
 
 AgentBG (const PlanningUnitDecPOMDPDiscrete *pu, Index id, QAV< PerseusBGNSPlanner > *QBG)
 
 AgentBG (const AgentBG &a)
 Copy constructor. More...
 
void ResetEpisode ()
 Will be called before an episode, to reinitialize the agent. More...
 
 ~AgentBG ()
 Destructor. More...
 
- Public Member Functions inherited from AgentDelayedSharedObservations
 AgentDelayedSharedObservations (const PlanningUnitDecPOMDPDiscrete *pu, Index id)
 (default) Constructor More...
 
 AgentDelayedSharedObservations (const AgentDelayedSharedObservations &a)
 Copy constructor. More...
 
 ~AgentDelayedSharedObservations ()
 Destructor. More...
 
- Public Member Functions inherited from AgentDecPOMDPDiscrete
 AgentDecPOMDPDiscrete (const PlanningUnitDecPOMDPDiscrete *pu, Index id)
 (default) Constructor More...
 
 AgentDecPOMDPDiscrete (const AgentDecPOMDPDiscrete &a)
 Copy constructor. More...
 
const
PlanningUnitDecPOMDPDiscrete
GetPU () const
 
- Public Member Functions inherited from SimulationAgent
virtual Index GetIndex () const
 Retrieves the index of this agent. More...
 
virtual bool GetVerbose () const
 If true, the agent will report more. More...
 
void Print () const
 Print out some information about this agent. More...
 
virtual void SetIndex (Index id)
 Sets the index of this agent. More...
 
virtual void SetVerbose (bool verbose)
 Set whether this agent should be verbose. More...
 
 SimulationAgent (Index id, bool verbose=false)
 (default) Constructor More...
 
virtual std::string SoftPrint () const
 Return some information about this agent. More...
 
virtual ~SimulationAgent ()
 Destructor. More...
 

Private Member Functions

Index GetMaximizingActionIndex (const JointBeliefInterface &jb) const
 
AlphaVector::BGPolicyIndex GetMaximizingBGIndex (const JointBeliefInterface &jb) const
 

Private Attributes

std::vector< Index_m_aIs
 
BayesianGameIdenticalPayoff_m_bgip
 
Index _m_jaIfirst
 
JointPolicyPureVector_m_jpol
 
std::vector< Index_m_oIs
 
std::vector< Index_m_prevJaIs
 
JointBeliefSparse _m_prevJB
 
std::vector< Index_m_prevJoIs
 
QAV< PerseusBGNSPlanner > * _m_QBGnonStationary
 
QAV< PerseusBGPlanner > * _m_QBGstationary
 
size_t _m_t
 

Detailed Description

AgentBG represents an agent which uses a BG-based policy.

Constructor & Destructor Documentation

AgentBG::AgentBG ( const AgentBG a)

Copy constructor.

References _m_bgip, and _m_jpol.

AgentBG::~AgentBG ( )

Destructor.

References _m_bgip, and _m_jpol.

Member Function Documentation

Index AgentBG::GetMaximizingActionIndex ( const JointBeliefInterface jb) const
private
void AgentBG::ResetEpisode ( )
virtual

Member Data Documentation

std::vector<Index> AgentBG::_m_aIs
private

Referenced by Act(), and ResetEpisode().

BayesianGameIdenticalPayoff* AgentBG::_m_bgip
private

Referenced by AgentBG(), and ~AgentBG().

Index AgentBG::_m_jaIfirst
private

Referenced by Act().

JointPolicyPureVector* AgentBG::_m_jpol
private

Referenced by Act(), AgentBG(), and ~AgentBG().

std::vector<Index> AgentBG::_m_oIs
private

Referenced by Act(), and ResetEpisode().

std::vector<Index> AgentBG::_m_prevJaIs
private

Referenced by ResetEpisode().

JointBeliefSparse AgentBG::_m_prevJB
private

Referenced by Act(), and ResetEpisode().

std::vector<Index> AgentBG::_m_prevJoIs
private

Referenced by Act(), and ResetEpisode().

QAV<PerseusBGNSPlanner>* AgentBG::_m_QBGnonStationary
private
QAV<PerseusBGPlanner>* AgentBG::_m_QBGstationary
private
size_t AgentBG::_m_t
private