00001 #ifndef RewardOnPath_H 00002 #define RewardOnPath_H 00003 00004 00005 #include <vector> 00006 #include <string> 00007 #include "MObject.h" 00008 #include "IVariableValue.h" 00009 #include "IVariable.h" 00010 #include "VariableValue.h" 00011 #include "Variable.h" 00012 #include "VariableRelation.h" 00013 #include "Map2DPosValue.h" 00014 #include "Map2DPosVar.h" 00015 #include "Map2DPath.h" 00016 #include "ProblemParams.h" 00017 00018 using namespace std; 00019 using namespace momdp; 00020 00021 namespace momdp 00022 { 00023 // generic class for variable, holds user defined variable value 00024 class RewardOnPath: public VariableRelation 00025 { 00026 private: 00027 SharedPointer<Variable> rewardVar; 00028 SharedPointer<Map2DPosVar> auvPos; 00029 SharedPointer<ProblemParams> params; 00030 SharedPointer<Map2DPath> path; 00031 00032 public: 00033 RewardOnPath(SharedPointer<Variable> rewardVar, SharedPointer<Map2DPosVar> auvPos, SharedPointer<Map2DPath> path, SharedPointer<ProblemParams> params); 00034 virtual ~RewardOnPath(void); 00035 00036 virtual vector<SharedPointer<RelEntry> > getProb(map<string, SharedPointer<IVariableValue> > sourceVals); 00037 00038 }; 00039 00040 } 00041 00042 #endif 00043