BcPOC
SF-HRP ASM implementation
|
00001 #ifndef ACTION_RULE 00002 #define ACTION_RULE 00003 00004 #include "base_rule.hpp" 00005 00009 class ActionRule : public BaseRule { 00010 public: 00011 00012 //parent plan, priority, weight, action, flags, sticky_timeout, fails, successes 00013 ActionRule(std::string &, ptrSimplePlan, unsigned int, unsigned int, std::vector< int> &, 00014 unsigned int, unsigned int, unsigned int, unsigned int); 00015 00016 //when choosen 00017 virtual int GetAction(); 00018 00019 //force fail 00020 //virtual void Fail() = 0; 00021 00022 //force success 00023 //virtual void Success() = 0; 00024 00025 00026 protected: 00027 00028 std::vector<int>::iterator _action_it; 00029 00030 std::vector< int> _actions; 00031 00032 std::string _id; 00033 }; 00034 00035 #endif 00036