00001 #ifndef StateTransitionXY_H 00002 #define StateTransitionXY_H 00003 00004 #include "Const.h" 00005 #include "Observations.h" 00006 #include "Actions.h" 00007 #include "States.h" 00008 #include "MathLib.h" 00009 #include "VariableRelation.h" 00010 #include "StateTransitionY.h" 00011 00012 using namespace std; 00013 using namespace momdp; 00014 namespace momdp 00015 { 00016 class MOMDP; 00017 class StateTransitionXY : public StateTransitionY 00018 { 00019 friend class MOMDP; 00020 private: 00021 vector<vector<SharedPointer<SparseMatrix> > > matrix; 00022 vector<vector<SharedPointer<SparseMatrix> > > matrixTr; 00023 00024 public: 00025 StateTransitionXY(void); 00026 virtual ~StateTransitionXY(void); 00027 00028 virtual SharedPointer<SparseMatrix> getMatrix(int a, int x, int xp); 00029 virtual SharedPointer<SparseMatrix> getMatrixTr(int a, int x, int xp); 00030 }; 00031 } 00032 00033 #endif 00034