MultiAgentDecisionProcess  Release 0.2.1
AgentQMDP Class Reference

AgentQMDP represents an agent which uses a QMDP-based policy. More...

#include <AgentQMDP.h>

+ Inheritance diagram for AgentQMDP:
+ Collaboration diagram for AgentQMDP:

Public Member Functions

Index Act (Index joI)
 Return an individual action index based on a joint observation index.
 AgentQMDP (const PlanningUnitDecPOMDPDiscrete &pu, Index id, const QTable &Q)
 (default) Constructor
 AgentQMDP (const AgentQMDP &a)
 Copy constructor.
void ResetEpisode ()
 Will be called before an episode, to reinitialize the agent.
 ~AgentQMDP ()
 Destructor.
- Public Member Functions inherited from AgentSharedObservations
 AgentSharedObservations (const PlanningUnitDecPOMDPDiscrete &pu, Index id)
 (default) Constructor
 AgentSharedObservations (const AgentSharedObservations &a)
 Copy constructor.
 ~AgentSharedObservations ()
 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 Attributes

JointBeliefSparse _m_jb
Index _m_prevJaI
QTable _m_Q
size_t _m_t

Detailed Description

AgentQMDP represents an agent which uses a QMDP-based policy.

Definition at line 44 of file AgentQMDP.h.

Constructor & Destructor Documentation

AgentQMDP::AgentQMDP ( const PlanningUnitDecPOMDPDiscrete pu,
Index  id,
const QTable Q 
)

(default) Constructor

Definition at line 37 of file AgentQMDP.cpp.

AgentQMDP::AgentQMDP ( const AgentQMDP a)

Copy constructor.

Definition at line 45 of file AgentQMDP.cpp.

AgentQMDP::~AgentQMDP ( )

Destructor.

Definition at line 55 of file AgentQMDP.cpp.

Member Function Documentation

void AgentQMDP::ResetEpisode ( )
virtual

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

Implements SimulationAgent.

Definition at line 95 of file AgentQMDP.cpp.

References _m_jb, _m_prevJaI, _m_t, BeliefInterface::Get(), PlanningUnitMADPDiscrete::GetNewJointBeliefFromISD(), AgentDecPOMDPDiscrete::GetPU(), and BeliefSparse::Set().

Member Data Documentation

JointBeliefSparse AgentQMDP::_m_jb
private

Definition at line 52 of file AgentQMDP.h.

Referenced by Act(), and ResetEpisode().

Index AgentQMDP::_m_prevJaI
private

Definition at line 54 of file AgentQMDP.h.

Referenced by Act(), and ResetEpisode().

QTable AgentQMDP::_m_Q
private

Definition at line 48 of file AgentQMDP.h.

Referenced by Act().

size_t AgentQMDP::_m_t
private

Definition at line 50 of file AgentQMDP.h.

Referenced by Act(), and ResetEpisode().


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