MultiAgentDecisionProcess
Release 0.2.1
|
Interface_ProblemToPolicyDiscretePure is an interface from discrete problems to pure policies. More...
#include <Interface_ProblemToPolicyDiscretePure.h>
Public Member Functions | |
LIndex | GetNrJointPolicies (PolicyGlobals::IndexDomainCategory cat, size_t depth=MAXHORIZON) const |
Get the number of joint policies, given the policy's domain. | |
LIndex | GetNrPolicies (Index ag, PolicyGlobals::IndexDomainCategory cat, size_t depth=MAXHORIZON) const |
Get the number of policies for an agent, given the policy's domain. | |
virtual | ~Interface_ProblemToPolicyDiscretePure () |
Destructor. | |
![]() | |
virtual bool | AreCachedJointToIndivIndices (const PolicyGlobals::IndexDomainCategory pdc) const =0 |
Check whether certain index conversions are cached. | |
virtual PolicyGlobals::IndexDomainCategory | GetDefaultIndexDomCat () const =0 |
Return the default IndexDomainCategory for the problem. | |
virtual size_t | GetNrActions (Index agentI) const =0 |
Get the number of invididual actions of a particular agent. | |
virtual size_t | GetNrAgents () const =0 |
Get the number of agents involved in this problem. | |
size_t | GetNrJointActions () const |
Get the number of joint actions. | |
virtual size_t | GetNrPolicyDomainElements (Index agentI, PolicyGlobals::IndexDomainCategory cat, size_t depth=MAXHORIZON) const =0 |
Get the number of elements in the domain of an agent's policy. | |
virtual Index | IndividualToJointActionIndices (const Index *indivIndices) const =0 |
Converts individual action indices to a joint action index. | |
virtual Index | IndividualToJointActionIndices (const std::vector< Index > &indivIndices) const =0 |
Converts individual action indices to a joint action index. | |
Interface_ProblemToPolicyDiscrete () | |
(default) Constructor | |
virtual std::vector< Index > | JointToIndividualPolicyDomainIndices (Index jdI, PolicyGlobals::IndexDomainCategory cat) const =0 |
Converts joint indices to individual policy domain element indices. | |
virtual const std::vector < Index > & | JointToIndividualPolicyDomainIndicesRef (Index jdI, PolicyGlobals::IndexDomainCategory cat) const =0 |
Converts individual policy domain element indices to joint indices. | |
virtual std::string | SoftPrintAction (Index agentI, Index actionI) const =0 |
Virtual function that has to be implemented by derived class. | |
virtual std::string | SoftPrintPolicyDomainElement (Index agentI, Index dIndex, PolicyGlobals::IndexDomainCategory cat) const =0 |
Virtual function that has to be implemented by derived class. | |
virtual | ~Interface_ProblemToPolicyDiscrete () |
Destructor. |
Interface_ProblemToPolicyDiscretePure is an interface from discrete problems to pure policies.
I.e., it defines functions that must be implemented by a derived (problem) class such that it can be used to construct a JointPolicyPureVector / PolicyPureVector.
(the class (Joint)PolicyPureVector refers to objects implementing this interface. )
Definition at line 49 of file Interface_ProblemToPolicyDiscretePure.h.
|
inlinevirtual |
Destructor.
Definition at line 57 of file Interface_ProblemToPolicyDiscretePure.h.
|
inline |
Get the number of joint policies, given the policy's domain.
Definition at line 82 of file Interface_ProblemToPolicyDiscretePure.h.
References Interface_ProblemToPolicyDiscrete::GetNrAgents(), and GetNrPolicies().
Referenced by BayesianGameBase::GetNrJointPolicies().
|
inline |
Get the number of policies for an agent, given the policy's domain.
Definition at line 60 of file Interface_ProblemToPolicyDiscretePure.h.
References Interface_ProblemToPolicyDiscrete::GetNrActions(), and Interface_ProblemToPolicyDiscrete::GetNrPolicyDomainElements().
Referenced by JPolComponent_VectorImplementation::GetIndex(), GetNrJointPolicies(), BayesianGameBase::GetNrPolicies(), and JPolComponent_VectorImplementation::SetIndex().