AlphaPlane.h
Go to the documentation of this file.
00001 #ifndef AlphaPlane_H
00002 #define AlphaPlane_H
00003 
00004 #include "MObject.h"
00005 #include "Tuple.h"
00006 #include "FacmodelStructs.h"
00007 #include "BeliefTreeNode.h"
00008 #include "tinyxml.h"
00009 
00010 using namespace momdp;
00011 namespace momdp 
00012 {
00013 class AlphaPlane :      public MObject
00014 {
00015 public:
00016                 //constructor
00017                 AlphaPlane();
00018                 
00019 
00020                 //AlphaPlane(const alpha_vector& _alpha, int _action, state_val _sval);
00021 
00022                 //AlphaPlane(const alpha_vector& _alpha, int _action, state_val _sval, int _timeStamp);
00023 
00024                 //methods
00025                 void copyFrom(SharedPointer<alpha_vector> _alpha, int _action, state_val _sval);
00026 
00027         virtual ~AlphaPlane(void);
00028 
00029                 
00030                 SharedPointer<alpha_vector> alpha;
00031                 int action;
00032                 state_val sval;
00033         
00034                 Tuple* solverData;
00035                 int timeStamp;
00036                 int used; //for recording its usage in corner point dominations
00037         
00038 
00039                 void setTimeStamp(int _timeStamp);
00040 
00041                 void init(int _timeStamp, BeliefTreeNode* _birthBelief);
00042 
00043                 void addDominatedBelief(int _timeStamp, BeliefTreeNode* _belief);
00044 
00045                 bool certDuplicated(BeliefTreeNode* n);
00046 
00047                 SharedPointer<AlphaPlane> duplicate();
00048                 void write(std::ofstream& out) const;   //write XML dense vector
00049                 void writeSparse(std::ofstream& out) const; //write XML sparse vector 
00050                 //void write(std::ostream& out) const;  //write plane in old IV format
00051 
00052 
00053 };
00054 }
00055 
00056 #endif


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