MultiAgentDecisionProcess  Release 0.2.1
PolicyDiscretePure Class Reference

PolicyDiscretePure is an abstract class that represents a pure policy for a discrete MADP. More...

#include <PolicyDiscretePure.h>

+ Inheritance diagram for PolicyDiscretePure:
+ Collaboration diagram for PolicyDiscretePure:

Public Member Functions

virtual PolicyDiscretePureClone () const =0
 Returns a pointer to a copy of this class.
virtual Index GetActionIndex (Index i) const =0
 Returns the jaI taken by this policy for domain index i.
double GetActionProb (Index i, Index aI) const
 Returns the probability that the policy specifies action aI for domain index i.
const
Interface_ProblemToPolicyDiscretePure
GetInterfacePTPDiscretePure () const
 Return pointer to the Interface_ProblemToPolicyDiscretePure.
 PolicyDiscretePure (const Interface_ProblemToPolicyDiscretePure &pu, PolicyGlobals::IndexDomainCategory idc, Index agentI)
 (default) Constructor
 PolicyDiscretePure (const PolicyDiscretePure &a)
 Copy constructor.
virtual void RandomInitialization (Index agentI)=0
 Randomly initialize the policy.
virtual ~PolicyDiscretePure ()
 Destructor.
- Public Member Functions inherited from PolicyDiscrete
IndexDomainCategory GetIndexDomainCategory () const
 Returns the Category of the domain over which the indices of this policy are specified.
const
Interface_ProblemToPolicyDiscrete
GetInterfacePTPDiscrete () const
 return a pointer to the referred Interface_ProblemToPolicyDiscrete.
 PolicyDiscrete (const Interface_ProblemToPolicyDiscrete &iptpd, PolicyGlobals::IndexDomainCategory idc, Index agentI)
 (default) Constructor
 PolicyDiscrete (const PolicyDiscrete &a)
 Copy constructor.
Index SampleAction (Index i) const
 samples an action for domain index i.
void SetIndexDomainCategory (IndexDomainCategory idc)
 Sets the category of the domain over which the indices of this policy are specified.
virtual ~PolicyDiscrete ()
 Destructor.
- Public Member Functions inherited from Policy
size_t GetDepth () const
 Returns the depth of the policy.
 Policy (Index agentI)
 Constructor, initializes the depth to the maximum horizon.
virtual void Print () const
 Prints a description of a policy to cout.
virtual void SetDepth (size_t d)
 Sets the depth of the policy.
virtual std::string SoftPrint () const =0
 Prints a description of a policy to a string.
virtual ~Policy ()
 Destructor.

Additional Inherited Members

- Protected Attributes inherited from Policy
Index _m_agentI

Detailed Description

PolicyDiscretePure is an abstract class that represents a pure policy for a discrete MADP.

The number of pure policies as represented by this class is finite. Therefore it is possible

Definition at line 44 of file PolicyDiscretePure.h.

Constructor & Destructor Documentation

PolicyDiscretePure::PolicyDiscretePure ( const Interface_ProblemToPolicyDiscretePure pu,
PolicyGlobals::IndexDomainCategory  idc,
Index  agentI 
)

(default) Constructor

Definition at line 31 of file PolicyDiscretePure.cpp.

PolicyDiscretePure::PolicyDiscretePure ( const PolicyDiscretePure a)

Copy constructor.

Definition at line 40 of file PolicyDiscretePure.cpp.

virtual PolicyDiscretePure::~PolicyDiscretePure ( )
inlinevirtual

Destructor.

Definition at line 61 of file PolicyDiscretePure.h.

Member Function Documentation

virtual PolicyDiscretePure* PolicyDiscretePure::Clone ( ) const
pure virtual

Returns a pointer to a copy of this class.

Implements PolicyDiscrete.

Implemented in PolicyPureVector.

virtual Index PolicyDiscretePure::GetActionIndex ( Index  i) const
pure virtual

Returns the jaI taken by this policy for domain index i.

Implemented in PolicyPureVector.

Referenced by GetActionProb().

double PolicyDiscretePure::GetActionProb ( Index  i,
Index  aI 
) const
virtual

Returns the probability that the policy specifies action aI for domain index i.

Required by PolicyDiscrete.

Implements PolicyDiscrete.

Definition at line 47 of file PolicyDiscretePure.cpp.

References GetActionIndex().

virtual void PolicyDiscretePure::RandomInitialization ( Index  agentI)
pure virtual

Randomly initialize the policy.

Randomly initialize the policy for agentI.

Implemented in PolicyPureVector.


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