MultiAgentDecisionProcess  Release 0.2.1
DecPOMDP Class Reference

DecPOMDP is a simple implementation of DecPOMDPInterface. More...

#include <DecPOMDP.h>

+ Inheritance diagram for DecPOMDP:
+ Collaboration diagram for DecPOMDP:

Public Member Functions

 DecPOMDP ()
 Default constructor. sets RewardType to REWARD and discount to 1.0.
double GetDiscount () const
 Returns the discount parameter.
double GetDiscountForAgent (Index agentI) const
 Returns the discount parameter.
reward_t GetRewardType () const
 Returns the reward type.
reward_t GetRewardTypeForAgent (Index agentI) const
 Returns the reward type.
void SetDiscount (double d)
 Sets the discount parameter to d.
void SetDiscountForAgent (Index agentI, double d)
 Functions needed for POSGInterface:
void SetRewardType (reward_t r)
 Sets the reward type to reward_t r.
void SetRewardTypeForAgent (Index agentI, reward_t r)
 Sets the reward type to reward_t r.
std::string SoftPrint () const
 SoftPrints some information on the DecPOMDP.
- Public Member Functions inherited from DecPOMDPInterface
virtual DecPOMDPInterfaceClone () const =0
 Returns a pointer to a copy of this class.
virtual double GetReward (State *s, JointAction *ja) const =0
 Function that returns the reward for a state and joint action.
virtual void SetReward (State *s, JointAction *ja, double r)=0
 Function that sets the reward for a state and joint action.
virtual ~DecPOMDPInterface ()
 Virtual destructor.
- Public Member Functions inherited from POSGInterface
virtual double GetRewardForAgent (Index agentI, State *s, JointAction *ja) const =0
 Function that returns the reward for a state and joint action.
virtual void SetRewardForAgent (Index agentI, State *s, JointAction *ja, double r)=0
 Function that sets the reward for an agent, state and joint action.
virtual ~POSGInterface ()
 Virtual destructor.
- Public Member Functions inherited from MultiAgentDecisionProcessInterface
virtual size_t GetNrAgents () const =0
 Return the number of agents.
virtual std::string GetUnixName () const =0
 Returns the base part of the problem filename.
virtual ~MultiAgentDecisionProcessInterface ()
 Destructor.

Private Attributes

double _m_discount
 The discount parameter.
reward_t _m_rewardType
 Do the agents get rewards or costs?

Detailed Description

DecPOMDP is a simple implementation of DecPOMDPInterface.

It defines a couple of functions that relate to the (types of) rewards and discount factor.

Conceptually an MultiAgentDecisionProcess that implements this interface, is a Dec-POMDP: the system is cooperative and there is only 1 reward function.

Definition at line 46 of file DecPOMDP.h.

Constructor & Destructor Documentation

DecPOMDP::DecPOMDP ( )

Default constructor. sets RewardType to REWARD and discount to 1.0.

Definition at line 32 of file DecPOMDP.cpp.

References Globals::REWARD.

Member Function Documentation

double DecPOMDP::GetDiscount ( ) const
inlinevirtual

Returns the discount parameter.

Implements DecPOMDPInterface.

Definition at line 70 of file DecPOMDP.h.

References _m_discount.

Referenced by GetDiscountForAgent().

double DecPOMDP::GetDiscountForAgent ( Index  agentI) const
inlinevirtual

Returns the discount parameter.

Implements POSGInterface.

Definition at line 85 of file DecPOMDP.h.

References GetDiscount().

reward_t DecPOMDP::GetRewardType ( ) const
inlinevirtual

Returns the reward type.

Implements DecPOMDPInterface.

Definition at line 75 of file DecPOMDP.h.

References _m_rewardType.

Referenced by GetRewardTypeForAgent().

reward_t DecPOMDP::GetRewardTypeForAgent ( Index  agentI) const
inlinevirtual

Returns the reward type.

Implements POSGInterface.

Definition at line 93 of file DecPOMDP.h.

References GetRewardType().

void DecPOMDP::SetDiscount ( double  d)
virtual
void DecPOMDP::SetDiscountForAgent ( Index  agentI,
double  d 
)
inlinevirtual

Functions needed for POSGInterface:

Implements POSGInterface.

Definition at line 81 of file DecPOMDP.h.

References SetDiscount().

void DecPOMDP::SetRewardType ( reward_t  r)
virtual

Sets the reward type to reward_t r.

At the moment only REWARD is supported.

Implements DecPOMDPInterface.

Definition at line 54 of file DecPOMDP.cpp.

References Globals::REWARD.

Referenced by SetRewardTypeForAgent().

void DecPOMDP::SetRewardTypeForAgent ( Index  agentI,
reward_t  r 
)
inlinevirtual

Sets the reward type to reward_t r.

Implements POSGInterface.

Definition at line 89 of file DecPOMDP.h.

References SetRewardType().

string DecPOMDP::SoftPrint ( ) const

SoftPrints some information on the DecPOMDP.

Reimplemented in TOIDecPOMDPDiscrete, DecPOMDPDiscrete, TOICompactRewardDecPOMDPDiscrete, and TOIFactoredRewardDecPOMDPDiscrete.

Definition at line 46 of file DecPOMDP.cpp.

Member Data Documentation

double DecPOMDP::_m_discount
private

The discount parameter.

When agents have different interests (the POSG setting), they may also have different discount factors. For a Dec-POMDP, however, we have one global discount factor (which typically is 1.0 in the finite horizon case).

Definition at line 56 of file DecPOMDP.h.

Referenced by GetDiscount().

reward_t DecPOMDP::_m_rewardType
private

Do the agents get rewards or costs?

Definition at line 58 of file DecPOMDP.h.

Referenced by GetRewardType().


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