class Node {
- Node(Action action, std::vector<Node&> children);
-
- addChild(Node& 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;
+ std::vector<Node*> _children;
+ literals _preconditions;
};
#endif