EvaluatorSampleEngine.h
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) // modified for factored, prevly, virtual list<int> 
00038                 {
00039                         return list<cacherow_stval>();
00040                 }
00041 
00042                 //virtual list<cacherow_stval> sample(cacherow_stval beliefIndex)=0; // modified for factored, prevly, virtual list<int> sample(int beliefIndex)=0;
00043                 virtual void samplePrepare(cacherow_stval beliefIndex_Sval); // modified for factored, prevly, void samplePrepare(int beliefIndex);
00044                 virtual void samplePrepare(BeliefTreeNode* cn);
00045 
00046                 //tree related methods
00047                 virtual BeliefTreeNode* getNode(SharedPointer<BeliefWithState>& s); // modified for factored, prevly, BeliefTreeNode* getNode(const state_vector& s);
00048                 virtual void expand(BeliefTreeNode& cn);
00049                 
00050                 virtual BeliefForest* getGlobalNode(void);
00051 
00052                 //destructor
00053                 virtual ~EvaluatorSampleEngine(void){}
00054 
00055 
00056         };
00057 
00058 }; // namespace momdp
00059 
00060 
00061 #endif


appl
Author(s): petercai
autogenerated on Tue Jan 7 2014 11:02:29