BcPOC
SF-HRP ASM implementation
|
00001 #ifndef SF_RULE 00002 #define SF_RULE 00003 00004 #include "base_rule.hpp" 00005 00009 class SFRule : public BaseRule { 00010 public: 00011 00012 //type, id, parent plan, priority, weight, action, flags, sticky_timeout, fails, successes 00013 SFRule(int, std::string &, ptrSimplePlan, unsigned int, unsigned 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 protected: 00026 00027 std::string _id; 00028 int _type; 00029 }; 00030 00031 #endif 00032