00001 #ifndef bwi_actexec_GotoObject_h__guard 00002 #define bwi_actexec_GotoObject_h__guard 00003 00004 #include "LogicalNavigation.h" 00005 00006 namespace bwi_krexec { 00007 00008 00009 class GotoObject : public LogicalNavigation { 00010 public: 00011 explicit GotoObject(const std::string& objectName); 00012 00013 void run(); 00014 00015 bool hasFailed() const {return failed;} 00016 00017 Action *cloneAndInit(const actasp::AspFluent & fluent) const { 00018 return new GotoObject(fluent.getParameters().at(0)); 00019 } 00020 00021 virtual Action *clone() const {return new GotoObject(*this);} 00022 00023 private: 00024 bool failed; 00025 00026 }; 00027 } 00028 00029 #endif