OpenSimulatedDoor.h
Go to the documentation of this file.
00001 
00002 #ifndef bwi_krexec_OpenSimulatedDoor_h__guard
00003 #define bwi_krexec_OpenSimulatedDoor_h__guard
00004 
00005 #include "actasp/Action.h"
00006 
00007 #include <string>
00008 
00009 namespace bwi_krexec {
00010 
00011 class OpenSimulatedDoor : public actasp::Action{
00012 public:
00013   OpenSimulatedDoor();
00014 
00015   int paramNumber() const {return 1;}
00016   
00017   std::string getName() const {return "opendoor";}
00018   
00019   void run();
00020   
00021   bool hasFinished() const {return done;}
00022   
00023   actasp::Action *cloneAndInit(const actasp::AspFluent & fluent) const;
00024   
00025   virtual actasp::Action *clone() const {return new OpenSimulatedDoor(*this);}
00026   
00027 private:
00028   
00029  std::vector<std::string> getParameters() const;
00030  
00031  std::string door;
00032  bool done;
00033  bool requestSent;
00034  
00035 };
00036 
00037 }
00038  
00039 #endif
00040  


bwi_kr_execution
Author(s): Matteo Leonetti, Piyush Khandelwal
autogenerated on Fri Aug 28 2015 10:14:46