CallElevator.h
Go to the documentation of this file.
00001 #ifndef bwi_krexec_CallElevator_h__guard
00002 #define bwi_krexec_CallElevator_h__guard
00003 
00004 #include <boost/shared_ptr.hpp>
00005 
00006 #include "actasp/Action.h"
00007 #include "CallGUI.h"
00008 
00009 namespace bwi_krexec {
00010   
00011 struct CallElevator : public actasp::Action {
00012 
00013   CallElevator();
00014     
00015   int paramNumber() const {return 2;}
00016   
00017   std::string getName() const{return "callelevator";}
00018   
00019   void run();
00020   
00021   bool hasFinished() const;
00022   
00023   bool hasFailed() const;
00024   
00025   actasp::Action *cloneAndInit(const actasp::AspFluent & fluent) const;
00026   
00027   actasp::Action *clone() const {return new CallElevator(*this);}
00028 
00029 private:
00030  
00031 std::vector<std::string> getParameters() const;
00032 
00033 std::string elevator;
00034 bool going_up;
00035 
00036 bool asked;
00037 bool done;
00038 bool failed;
00039 std::vector<std::string> doors;
00040 
00041 boost::shared_ptr<CallGUI> askToCallElevator;
00042 
00043 };
00044   
00045   
00046 }
00047 
00048 #endif


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