#ifndef __ACTION_H__
#define __ACTION_H__
+#include <vector>
+#include <string>
+
+typedef std::vector<std::string> literals;
+
class Action {
+ public:
+ Action(std::string executable, literals preconditions, literals effects);
+ Action(const Action& action);
+ Action(){};
+ literals effects() const;
+ literals preconditions() const;
+ int execute() const;
protected:
- std::string executable;
- std::vector<string> preconditions;
- std::vector<string> effects;
-
+ std::string _executable;
+ literals _preconditions;
+ literals _effects;
};
#endif