Go to the documentation of this file.00001 #ifndef EvaluatorSampleEngine_H
00002 #define EvaluatorSampleEngine_H
00003
00004
00005 #include <list>
00006 #include <vector>
00007 #include "Belief.h"
00008 #include "Sample.h"
00009 #include "BeliefTreeNode.h"
00010 #include "BeliefForest.h"
00011 #include "PointBasedAlgorithm.h"
00012 using namespace std;
00013 using namespace momdp;
00014
00015 namespace momdp
00016 {
00017 class MOMDP;
00018
00019
00020 class EvaluatorSampleEngine : public Sample
00021 {
00022 public:
00023 EvaluatorSampleEngine()
00024 {
00025 numStatesExpanded = 0;
00026 }
00027
00028 virtual void setup(PointBasedAlgorithm* _solver, SharedPointer<MOMDP> _problem, vector <BeliefCache *> *_beliefCacheSet, BeliefForest* _beliefForest)
00029 {
00030 this->solver = _solver;
00031 this->problem = _problem;
00032 this->beliefCacheSet = _beliefCacheSet;
00033 this->beliefForest = _beliefForest;
00034 }
00035
00036
00037 virtual list<cacherow_stval> sample(cacherow_stval beliefIndex, unsigned int currentRoot)
00038 {
00039 return list<cacherow_stval>();
00040 }
00041
00042
00043 virtual void samplePrepare(cacherow_stval beliefIndex_Sval);
00044 virtual void samplePrepare(BeliefTreeNode* cn);
00045
00046
00047 virtual BeliefTreeNode* getNode(SharedPointer<BeliefWithState>& s);
00048 virtual void expand(BeliefTreeNode& cn);
00049
00050 virtual BeliefForest* getGlobalNode(void);
00051
00052
00053 virtual ~EvaluatorSampleEngine(void){}
00054
00055
00056 };
00057
00058 };
00059
00060
00061 #endif