#define __node_h__
#include <vector>
+#include "action.h"
class Node {
+ public:
+ Node(Action action);
+ void addChild(Node* node);
+ const Action& action() const;
+ void execute(const literals& effects);
+
protected:
- Action action;
- std::vector<Node*> children;
+ Action _action;
+ std::vector<Node*> _children;
+ literals _preconditions;
};
#endif