StateObsAct.h
Go to the documentation of this file.
00001 // written by png shao wei
00002 // StateObsAct is for base class
00003 // ObsAct is for Observation and Action
00004 // State inherits StateObsAct and it has additional previous and current values
00005 
00006 #ifndef StateObsAct_H
00007 #define StateObsAct_H
00008 
00009 #include <iostream>
00010 #include <vector>
00011 #include <map>
00012 #include <iterator>
00013 using namespace std;
00014 
00015 class StateObsAct {
00016 
00017     protected:
00018         vector<string> valueEnum;
00019         map<string, int> positionLookup;
00020         void preparePositionLookup();
00021 
00022     public:
00023         void print();
00024         void setValueEnum(const vector<string>& ve);
00025         int getPosition(const string& name);
00026         const vector<string>& getValueEnum() const;
00027         const bool containsInstance(const string& instanceName);
00028 };
00029 
00030 #endif
00031 
00032 


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