MultiAgentDecisionProcess  Release 0.2.1
JointBeliefInterface Class Reference

JointBeliefInterface represents an interface for joint beliefs. More...

#include <JointBeliefInterface.h>

+ Inheritance diagram for JointBeliefInterface:
+ Collaboration diagram for JointBeliefInterface:

Public Member Functions

virtual JointBeliefInterfaceClone () const =0
 Returns a pointer to a copy of this class.
 JointBeliefInterface ()
 (default) Constructor
virtual JointBeliefInterfaceoperator= (const JointBeliefInterface &o)=0
 assignment operator.
virtual double Update (const MultiAgentDecisionProcessDiscreteInterface &pu, Index lastJAI, Index newJOI)=0
 Performs a joint belief update on this joint belief.
virtual ~JointBeliefInterface ()
 Destructor.
- Public Member Functions inherited from BeliefInterface
 BeliefInterface ()
 (default) Constructor
virtual void Clear ()=0
 Clears the belief.
virtual double Get (Index sI) const =0
 Gets the probability of the sI'th state.
virtual std::vector< double > Get () const =0
 Gets a vector of probabilities representing the belief.
virtual BeliefIteratorGeneric GetIterator () const =0
virtual double InnerProduct (const std::vector< double > &values) const =0
 Computes the inner product of a belief with the vector values.
virtual std::vector< double > InnerProduct (const VectorSet &v) const =0
 Computes the inner product of a belief with the VectorSet v.
virtual std::vector< double > InnerProduct (const VectorSet &v, const std::vector< bool > &mask) const =0
 Computes the inner product of a belief with the VectorSet v.
virtual BeliefInterfaceoperator= (const BeliefInterface &o)=0
 Copy assignment operator.
virtual double & operator[] (Index &i)=0
 Gets the probability of the i'th state.
virtual double & operator[] (int &i)=0
 Gets the probability of the i'th state.
virtual void Print () const =0
 Prints the belief.
virtual bool SanityCheck () const =0
 Checks whether the belief is a valid probability distribution.
virtual void Set (const StateDistribution &belief)=0
 Copy the belief into this object.
virtual void Set (const std::vector< double > &belief)=0
 Copy the belief into this object.
virtual void Set (const BeliefInterface &belief)=0
 Copy the belief into this object.
virtual void Set (Index sI, double prob)=0
 Sets probability of the sI'th state to prob .
virtual unsigned int Size () const =0
 Returns the size of this belief.
virtual std::string SoftPrint () const =0
 Prints the belief.
virtual ~BeliefInterface ()
 Destructor.

Detailed Description

JointBeliefInterface represents an interface for joint beliefs.

Definition at line 40 of file JointBeliefInterface.h.

Constructor & Destructor Documentation

JointBeliefInterface::JointBeliefInterface ( )
inline

(default) Constructor

Definition at line 49 of file JointBeliefInterface.h.

virtual JointBeliefInterface::~JointBeliefInterface ( )
inlinevirtual

Destructor.

Definition at line 52 of file JointBeliefInterface.h.

Member Function Documentation

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

Returns a pointer to a copy of this class.

Implements BeliefInterface.

Implemented in JointBeliefSparse, and JointBelief.

virtual JointBeliefInterface& JointBeliefInterface::operator= ( const JointBeliefInterface o)
pure virtual

assignment operator.

This must be implemented by the derived class (with this prototype).

For now, this function is purely abstract. Might there be some members added to this (base) class, then an implementation could be made. This should then be called using PolicyPoolInterface::operator=(o) from the copy assignment operator of the derived class. See also http://www.icu-project.org/docs/papers/cpp_report/the_assignment_operator_revisited.html .

Implemented in JointBeliefSparse, and JointBelief.

virtual double JointBeliefInterface::Update ( const MultiAgentDecisionProcessDiscreteInterface pu,
Index  lastJAI,
Index  newJOI 
)
pure virtual

Performs a joint belief update on this joint belief.

Performs the belief update. I.e., given the current joint belief b (which is represented by this), we compute P(s'|b, a, o) for all new states s'. This function updates this belief (alter this object). Returned is the normalization factor P(o|b,a), which is also to probability that this new history (belief) occurs given the previous one.

Implemented in JointBeliefSparse, and JointBelief.

Referenced by AgentPOMDP::Act(), PlanningUnitMADPDiscrete::GetJAOHProbsRecursively(), PlanningUnitMADPDiscrete::GetJointBeliefInterface(), PlanningUnitMADPDiscrete::InitializeJointActionObservationHistories(), BayesianGameForDecPOMDPStage::ProbRewardForjoahI(), and AlphaVectorPlanning::SampleBeliefs().


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