X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=planner.h;h=3faa6fb6918559f0182e45b51fc167c340920db1;hb=716fc4e282ce52fe953867171c046acd3b614d3b;hp=1b4938b36e7eb04560342e9403baeec3499d896f;hpb=066d3c3659f52a73a0344c3e08989cc73a15164b;p=popboot.git diff --git a/planner.h b/planner.h index 1b4938b..3faa6fb 100644 --- a/planner.h +++ b/planner.h @@ -1,14 +1,29 @@ #ifndef __PLANNER_H__ #define __PLANNER_H__ -#include -#include "node.h" +#include +#include +#include "action.h" + +class Node; class Planner { public: + Planner(std::vector actions, Literals init, Literals goal); + ~Planner(); + + void execute(); protected: - Node start; - std::hash_map addedNodes; + + void makePlan(Node* node); + void addNode(Node* node); + + Node* _start; + Node* _finish; + __gnu_cxx::hash_map _addedNodes; + __gnu_cxx::hash_map _actions; + Literals _init; + Literals _goal; }; #endif