MultiAgentDecisionProcess
AgentOnlinePlanningMDP Class Reference

AgentOnlinePlanningMDP represents an agent with an online MDP policy. More...

#include <AgentOnlinePlanningMDP.h>

Inheritance diagram for AgentOnlinePlanningMDP:
[legend]

Public Member Functions

virtual Index Act (Index sI, Index joI, double reward)
 Return an individual action based on state, last joint observation and reward. More...
 
 AgentOnlinePlanningMDP (const PlanningUnitDecPOMDPDiscrete *pu, Index id, OnlineMDPPlanner *planner)
 (default) Constructor More...
 
 AgentOnlinePlanningMDP (const AgentOnlinePlanningMDP &a)
 Copy constructor. More...
 
virtual void ResetEpisode ()
 Will be called before an episode, to reinitialize the agent. More...
 
virtual ~AgentOnlinePlanningMDP ()
 Destructor. More...
 
- Public Member Functions inherited from AgentFullyObservable
 AgentFullyObservable (const PlanningUnitDecPOMDPDiscrete *pu, Index id)
 (default) Constructor More...
 
 AgentFullyObservable (const AgentFullyObservable &a)
 Copy constructor. More...
 
 ~AgentFullyObservable ()
 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...
 

Protected Attributes

size_t _m_t
 The episode count. More...
 

Private Attributes

OnlineMDPPlanner_m_planner
 The planning module. Pure learners will have this set to NULL. More...
 

Detailed Description

AgentOnlinePlanningMDP represents an agent with an online MDP policy.

This class implements a basic online MDP planner given an online planning module.

Constructor & Destructor Documentation

AgentOnlinePlanningMDP::AgentOnlinePlanningMDP ( const PlanningUnitDecPOMDPDiscrete pu,
Index  id,
OnlineMDPPlanner planner 
)

(default) Constructor

AgentOnlinePlanningMDP::AgentOnlinePlanningMDP ( const AgentOnlinePlanningMDP a)

Copy constructor.

AgentOnlinePlanningMDP::~AgentOnlinePlanningMDP ( )
virtual

Destructor.

Member Function Documentation

Index AgentOnlinePlanningMDP::Act ( Index  sI,
Index  joI,
double  reward 
)
virtual
void AgentOnlinePlanningMDP::ResetEpisode ( )
virtual

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

Implements SimulationAgent.

References _m_planner, _m_t, and OnlineMDPPlanner::Reset().

Member Data Documentation

OnlineMDPPlanner* AgentOnlinePlanningMDP::_m_planner
private

The planning module. Pure learners will have this set to NULL.

Referenced by Act(), and ResetEpisode().

size_t AgentOnlinePlanningMDP::_m_t
protected

The episode count.

Referenced by Act(), and ResetEpisode().