VariableCombined.h
Go to the documentation of this file.
00001 #ifndef VariableCombined_H
00002 #define VariableCombined_H
00003 
00004 
00005 #include <vector>
00006 #include <string>
00007 #include "MOMDP.h"
00008 #include "MObject.h"
00009 #include "IVariableValue.h"
00010 #include "VariableValue.h"
00011 #include "IVariable.h"
00012 #include "Variable.h"
00013 using namespace std;
00014 using namespace momdp;
00015 
00016 namespace momdp
00017 {
00018         // generic class for variable, holds user defined variable value
00019         class VariableCombined : public Variable
00020         {
00021         private:
00022                 //string variableName;
00023                 //vector<SharedPointer<VariableValue> > values;
00024                 vector<SharedPointer<IVariable> > subVariables;
00025 
00026         public:
00027                 VariableCombined(string name);
00028                 virtual ~VariableCombined(void);
00029 
00030 
00031                 void addSubVar(SharedPointer<IVariable> subVar);
00032                 SharedPointer<IVariable> getSubVar(int index);
00033                 void seal();
00034 
00035 
00036 
00037         };
00038 
00039 }
00040 
00041 #endif
00042 


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