MultiAgentDecisionProcess  Release 0.2.1
AlphaVector Class Reference

AlphaVector represent an alpha vector used in POMDP solving. More...

#include <AlphaVector.h>

+ Collaboration diagram for AlphaVector:

Public Member Functions

 AlphaVector ()
 Default constructor.
 AlphaVector (size_t nrS)
 Constructor that reserves memory for nrS values.
 AlphaVector (size_t nrS, double val)
 Constructor that reserves memory for nrS values, and sets every value to val.
bool Equal (const AlphaVector &alpha) const
Index GetAction () const
int GetBetaI () const
unsigned int GetNrValues () const
double GetValue (Index i) const
const std::vector< double > & GetValues () const
AlphaVectoroperator= (const AlphaVector &o)
 Copy assignment operator.
void Print () const
void SetAction (Index a)
void SetBetaI (int betaI)
void SetValue (double v, Index i)
void SetValues (const std::vector< double > &vs)
std::string SoftPrint () const
 ~AlphaVector ()
 Destructor.

Private Attributes

Index _m_action
int _m_betaI
std::vector< double > _m_values

Detailed Description

AlphaVector represent an alpha vector used in POMDP solving.

It's basically a vector of values and an action index.

Definition at line 39 of file AlphaVector.h.

Constructor & Destructor Documentation

AlphaVector::AlphaVector ( )

Default constructor.

Definition at line 33 of file AlphaVector.cpp.

AlphaVector::AlphaVector ( size_t  nrS)

Constructor that reserves memory for nrS values.

Definition at line 39 of file AlphaVector.cpp.

AlphaVector::AlphaVector ( size_t  nrS,
double  val 
)

Constructor that reserves memory for nrS values, and sets every value to val.

Definition at line 45 of file AlphaVector.cpp.

AlphaVector::~AlphaVector ( )

Destructor.

Definition at line 52 of file AlphaVector.cpp.

Member Function Documentation

bool AlphaVector::Equal ( const AlphaVector alpha) const

Definition at line 90 of file AlphaVector.cpp.

References GetAction(), GetBetaI(), GetNrValues(), and GetValues().

Referenced by AlphaVectorBG::BeliefBackup().

Index AlphaVector::GetAction ( ) const
inline

Definition at line 76 of file AlphaVector.h.

References _m_action.

Referenced by Equal(), and AlphaVectorPlanning::VectorIsInValueFunction().

int AlphaVector::GetBetaI ( ) const
inline

Definition at line 81 of file AlphaVector.h.

References _m_betaI.

Referenced by Equal().

unsigned int AlphaVector::GetNrValues ( ) const
inline

Definition at line 80 of file AlphaVector.h.

References _m_values.

Referenced by Equal(), and AlphaVectorPlanning::VectorIsInValueFunction().

double AlphaVector::GetValue ( Index  i) const
inline

Definition at line 78 of file AlphaVector.h.

References _m_values.

Referenced by AlphaVectorPlanning::VectorIsInValueFunction().

const std::vector<double>& AlphaVector::GetValues ( ) const
inline

Definition at line 77 of file AlphaVector.h.

References _m_values.

Referenced by PerseusPOMDPPlanner::BackupStage(), Equal(), and BeliefValue::GetValue().

AlphaVector & AlphaVector::operator= ( const AlphaVector o)

Copy assignment operator.

Definition at line 56 of file AlphaVector.cpp.

References _m_action, _m_betaI, and _m_values.

void AlphaVector::Print ( ) const
inline

Definition at line 84 of file AlphaVector.h.

References SoftPrint().

Referenced by PerseusPOMDPPlanner::BackupStage().

void AlphaVector::SetValues ( const std::vector< double > &  vs)

Definition at line 82 of file AlphaVector.cpp.

Referenced by AlphaVectorPlanning::ImportValueFunction().

string AlphaVector::SoftPrint ( void  ) const

Definition at line 68 of file AlphaVector.cpp.

Referenced by Print().

Member Data Documentation

Index AlphaVector::_m_action
private

Definition at line 43 of file AlphaVector.h.

Referenced by GetAction(), operator=(), and SetAction().

int AlphaVector::_m_betaI
private

Definition at line 44 of file AlphaVector.h.

Referenced by GetBetaI(), operator=(), and SetBetaI().

std::vector<double> AlphaVector::_m_values
private

Definition at line 45 of file AlphaVector.h.

Referenced by GetNrValues(), GetValue(), GetValues(), operator=(), and SetValue().


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