#include <PartialPolicyExecutor.h>
Public Member Functions | |
void | addExecutionObserver (ExecutionObserver *observer) throw () |
void | executeActionStep () |
bool | failed () const throw () |
bool | goalReached () const throw () |
PartialPolicyExecutor (AspKR *kr, MultiPlanner *planner, ActionSelector *selector, const std::map< std::string, Action * > &actionMap, double suboptimality) | |
void | removeExecutionObserver (ExecutionObserver *observer) throw () |
void | setGoal (const std::vector< actasp::AspRule > &goalRules) throw () |
~PartialPolicyExecutor () | |
Private Attributes | |
unsigned int | actionCounter |
std::map< std::string, Action * > | actionMap |
Action * | active |
std::list< ExecutionObserver * > | executionObservers |
std::vector< actasp::AspRule > | goalRules |
bool | hasFailed |
bool | isGoalReached |
AspKR * | kr |
bool | newAction |
MultiPlanner * | planner |
PartialPolicy * | policy |
ActionSelector * | selector |
double | suboptimality |
Definition at line 21 of file PartialPolicyExecutor.h.
actasp::PartialPolicyExecutor::PartialPolicyExecutor | ( | AspKR * | kr, |
MultiPlanner * | planner, | ||
ActionSelector * | selector, | ||
const std::map< std::string, Action * > & | actionMap, | ||
double | suboptimality | ||
) |
Definition at line 19 of file PartialPolicyExecutor.cpp.
Definition at line 39 of file PartialPolicyExecutor.cpp.
void actasp::PartialPolicyExecutor::addExecutionObserver | ( | ExecutionObserver * | observer | ) | throw () [virtual] |
Implements actasp::ActionExecutor.
Definition at line 145 of file PartialPolicyExecutor.cpp.
void actasp::PartialPolicyExecutor::executeActionStep | ( | ) | [virtual] |
Implements actasp::ActionExecutor.
Definition at line 86 of file PartialPolicyExecutor.cpp.
bool actasp::PartialPolicyExecutor::failed | ( | ) | const throw () [virtual] |
Implements actasp::ActionExecutor.
Definition at line 72 of file PartialPolicyExecutor.cpp.
bool actasp::PartialPolicyExecutor::goalReached | ( | ) | const throw () [virtual] |
Implements actasp::ActionExecutor.
Definition at line 69 of file PartialPolicyExecutor.cpp.
void actasp::PartialPolicyExecutor::removeExecutionObserver | ( | ExecutionObserver * | observer | ) | throw () [virtual] |
Implements actasp::ActionExecutor.
Definition at line 149 of file PartialPolicyExecutor.cpp.
void actasp::PartialPolicyExecutor::setGoal | ( | const std::vector< actasp::AspRule > & | goalRules | ) | throw () [virtual] |
Implements actasp::ActionExecutor.
Definition at line 46 of file PartialPolicyExecutor.cpp.
unsigned int actasp::PartialPolicyExecutor::actionCounter [private] |
Definition at line 45 of file PartialPolicyExecutor.h.
std::map<std::string, Action * > actasp::PartialPolicyExecutor::actionMap [private] |
Definition at line 59 of file PartialPolicyExecutor.h.
Action* actasp::PartialPolicyExecutor::active [private] |
Definition at line 47 of file PartialPolicyExecutor.h.
std::list<ExecutionObserver*> actasp::PartialPolicyExecutor::executionObservers [private] |
Definition at line 62 of file PartialPolicyExecutor.h.
std::vector<actasp::AspRule> actasp::PartialPolicyExecutor::goalRules [private] |
Definition at line 52 of file PartialPolicyExecutor.h.
bool actasp::PartialPolicyExecutor::hasFailed [private] |
Definition at line 44 of file PartialPolicyExecutor.h.
bool actasp::PartialPolicyExecutor::isGoalReached [private] |
Definition at line 43 of file PartialPolicyExecutor.h.
AspKR* actasp::PartialPolicyExecutor::kr [private] |
Definition at line 50 of file PartialPolicyExecutor.h.
bool actasp::PartialPolicyExecutor::newAction [private] |
Definition at line 46 of file PartialPolicyExecutor.h.
Definition at line 51 of file PartialPolicyExecutor.h.
Definition at line 54 of file PartialPolicyExecutor.h.
Definition at line 58 of file PartialPolicyExecutor.h.
double actasp::PartialPolicyExecutor::suboptimality [private] |
Definition at line 57 of file PartialPolicyExecutor.h.