X-Git-Url: https://ruin.nu/git/?p=popboot.git;a=blobdiff_plain;f=planner.h;h=8d116933f14a6d0122aaa0182ca22f21686ca277;hp=3faa6fb6918559f0182e45b51fc167c340920db1;hb=a1941ebc8535c578f0989f847794917096274f8e;hpb=716fc4e282ce52fe953867171c046acd3b614d3b diff --git a/planner.h b/planner.h index 3faa6fb..8d11693 100644 --- a/planner.h +++ b/planner.h @@ -3,6 +3,9 @@ #include #include +#include +#include +#include #include "action.h" class Node; @@ -14,16 +17,23 @@ class Planner { void execute(); + protected: void makePlan(Node* node); void addNode(Node* node); + + sem_t _nodes; + sem_t _list; + std::queue _executedNodes; Node* _start; Node* _finish; - __gnu_cxx::hash_map _addedNodes; - __gnu_cxx::hash_map _actions; + __gnu_cxx::hash_map _addedEffects; + __gnu_cxx::hash_map _actionEffects; Literals _init; Literals _goal; + std::vector _addedNodes; + std::vector _actions; }; #endif