MultiAgentDecisionProcess  Release 0.2.1
AgentBG Class Reference

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

#include <AgentBG.h>

+ Inheritance diagram for AgentBG:
+ Collaboration diagram for AgentBG:

Public Member Functions

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

Private Member Functions

Index GetMaximizingActionIndex (const JointBeliefInterface &jb) const
int 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< PerseusBGPlanner > * _m_QBG
size_t _m_t

Detailed Description

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

Definition at line 45 of file AgentBG.h.

Constructor & Destructor Documentation

AgentBG::AgentBG ( const AgentBG a)

Copy constructor.

Definition at line 56 of file AgentBG.cpp.

References _m_bgip, and _m_jpol.

AgentBG::~AgentBG ( )

Destructor.

Definition at line 72 of file AgentBG.cpp.

References _m_bgip, and _m_jpol.

Member Function Documentation

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

Will be called before an episode, to reinitialize the agent.

Implements SimulationAgent.

Definition at line 161 of file AgentBG.cpp.

References _m_aIs, _m_oIs, _m_prevJaIs, _m_prevJB, _m_prevJoIs, _m_t, BeliefInterface::Get(), PlanningUnitMADPDiscrete::GetNewJointBeliefFromISD(), AgentDecPOMDPDiscrete::GetPU(), and BeliefSparse::Set().

Member Data Documentation

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

Definition at line 59 of file AgentBG.h.

Referenced by Act(), and ResetEpisode().

BayesianGameIdenticalPayoff* AgentBG::_m_bgip
private

Definition at line 55 of file AgentBG.h.

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

Index AgentBG::_m_jaIfirst
private

Definition at line 61 of file AgentBG.h.

Referenced by Act().

JointPolicyPureVector* AgentBG::_m_jpol
private

Definition at line 57 of file AgentBG.h.

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

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

Definition at line 59 of file AgentBG.h.

Referenced by Act(), and ResetEpisode().

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

Definition at line 59 of file AgentBG.h.

Referenced by ResetEpisode().

JointBeliefSparse AgentBG::_m_prevJB
private

Definition at line 53 of file AgentBG.h.

Referenced by Act(), and ResetEpisode().

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

Definition at line 59 of file AgentBG.h.

Referenced by Act(), and ResetEpisode().

QAV<PerseusBGPlanner>* AgentBG::_m_QBG
private

Definition at line 49 of file AgentBG.h.

Referenced by GetMaximizingActionIndex(), and GetMaximizingBGIndex().

size_t AgentBG::_m_t
private

Definition at line 51 of file AgentBG.h.

Referenced by Act(), and ResetEpisode().


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