MultiAgentDecisionProcess
Release 0.2.1
|
PartialJointPolicyDiscretePure is a discrete and pure PartialJointPolicy. More...
#include <PartialJointPolicyDiscretePure.h>
Public Member Functions | |
virtual PartialJointPolicyDiscretePure & | operator= (const PartialJointPolicyDiscretePure &o) |
Destructor. | |
PartialJointPolicyDiscretePure () | |
(default) Constructor | |
PartialJointPolicyDiscretePure (const Interface_ProblemToPolicyDiscretePure &pu, PolicyGlobals::IndexDomainCategory idc, double pastReward=0.0) | |
PartialJointPolicyDiscretePure (const PartialJointPolicyDiscretePure &a) | |
Copy constructor. | |
![]() | |
virtual JointPolicyDiscretePure * | Clone () const =0 |
Returns a pointer to a copy of this class. | |
virtual Index | GetActionIndex (Index aI, Index domainI) const =0 |
Returns the action index for domainI for agent aI. | |
double | GetActionProb (Index agentI, Index domI, Index aI) const |
Returns the probability that the policy specifies action aI for domain index domI for agentI. | |
const Interface_ProblemToPolicyDiscretePure * | GetInterfacePTPDiscretePure () const |
Return pointer to the Interface_ProblemToPolicyDiscretePure. | |
virtual Index | GetJointActionIndex (Index i) const =0 |
Returns the jaI taken by this policy for joint domain index johI. | |
double | GetJointActionProb (Index i, Index ja) const |
Returns the probability that the policy specifies joint action a for domain index i. | |
JointPolicyDiscretePure () | |
default Constructor - constructs empty policy | |
JointPolicyDiscretePure (const Interface_ProblemToPolicyDiscretePure &pu, PolicyGlobals::IndexDomainCategory idc) | |
(default) Constructor | |
JointPolicyDiscretePure (const JointPolicyDiscretePure &a) | |
Copy constructor. | |
virtual JointPolicyDiscretePure & | operator= (const JointPolicyDiscretePure &o) |
Copy assignment operator. | |
virtual void | RandomInitialization ()=0 |
Randomly initialize the joint policy. | |
virtual void | RandomInitialization (Index agentI)=0 |
Randomly initialize the policy for agentI. | |
virtual void | SetAction (Index agentI, Index domainI, Index aI)=0 |
Sets the policy for agentI to domainI->aI. | |
void | SetInterfacePTPDiscretePure (Interface_ProblemToPolicyDiscretePure *pu) |
Sets the planning unit for this joint policy. | |
virtual std::string | SoftPrint () const =0 |
Prints a description of this JointPolicyPureVector to a string. | |
virtual std::string | SoftPrintBrief () const =0 |
Prints a brief description to a string. | |
virtual JointPolicyPureVector * | ToJointPolicyPureVector () const =0 |
virtual | ~JointPolicyDiscretePure () |
Destructor. | |
![]() | |
IndexDomainCategory | GetIndexDomainCategory () const |
returns the Category of the domain over which the indices of this policy are specified. | |
virtual PolicyDiscrete * | GetIndividualPolicyDiscrete (Index agI) const =0 |
return pointer to individual policy of agent agI | |
const Interface_ProblemToPolicyDiscrete * | GetInterfacePTPDiscrete () const |
return a pointer to the referred Interface_ProblemToPolicyDiscrete. | |
size_t | GetNrDomainElements (Index agentI) const |
Returns the number of policy domain elements for agent agentI. | |
JointPolicyDiscrete () | |
default constructor creates an empty policy | |
JointPolicyDiscrete (const Interface_ProblemToPolicyDiscrete &pu, PolicyGlobals::IndexDomainCategory idc) | |
(default) Constructor | |
JointPolicyDiscrete (const JointPolicyDiscrete &a) | |
Copy constructor. | |
virtual JointPolicyDiscrete & | operator= (const JointPolicyDiscrete &o) |
Assignment operator. | |
Index | SampleJointAction (Index i) const |
Returns a sampled joint action. | |
Index | SampleJointAction (const std::vector< Index > &Is) const |
Returns a sampled joint action. | |
void | SampleJointActionVector (Index i, std::vector< Index > &jaVec) const |
Returns a sampled joint action. | |
void | SampleJointActionVector (const std::vector< Index > &Is, std::vector< Index > &jaVec) const |
Returns a sampled joint action. | |
void | SetIndexDomainCategory (IndexDomainCategory idc) |
sets the category of the domain over which the indices of this policy are specified. | |
void | SetInterfacePTPDiscrete (const Interface_ProblemToPolicyDiscrete *p) |
sets the pointer to the Interface_ProblemToPolicyDiscrete. | |
virtual | ~JointPolicyDiscrete () |
Destructor. | |
![]() | |
size_t | GetDepth () const |
Returns the depth of the joint policy. | |
size_t | GetNrAgents () const |
Returns the number of agents for which the joint policy is defined. | |
JointPolicy (size_t nrAg) | |
Constructor, initializes the depth to the maximum horizon. | |
JointPolicy (const JointPolicy &o) | |
copy constructor: | |
virtual JointPolicy & | operator= (const JointPolicy &o) |
copy assignment operator | |
virtual void | Print () const |
Prints a description of a joint policy to cout. | |
virtual void | SetDepth (size_t d) |
Sets the depth of the joint policy. | |
virtual | ~JointPolicy () |
Destructor. | |
![]() | |
double | GetPastReward () const |
PartialJointPolicy & | operator= (const PartialJointPolicy &o) |
Destructor. | |
PartialJointPolicy (double r=0.0) | |
(default) Constructor | |
PartialJointPolicy (const PartialJointPolicy &a) | |
Copy constructor. | |
void | SetPastReward (double r) |
Additional Inherited Members | |
![]() | |
size_t | _m_nrAgents |
some other numbers we cache: |
PartialJointPolicyDiscretePure is a discrete and pure PartialJointPolicy.
Definition at line 39 of file PartialJointPolicyDiscretePure.h.
|
inline |
(default) Constructor
Definition at line 51 of file PartialJointPolicyDiscretePure.h.
|
inline |
Definition at line 53 of file PartialJointPolicyDiscretePure.h.
|
inline |
Copy constructor.
Definition at line 62 of file PartialJointPolicyDiscretePure.h.
|
virtual |
Destructor.
Copy assignment operator
Definition at line 33 of file PartialJointPolicyDiscretePure.cpp.
References PartialJointPolicy::operator=(), and JointPolicyDiscretePure::operator=().