|
BcPOC
SF-HRP ASM implementation
|
#include <base_rule.hpp>
Public Types | |
| enum | RuleFlags { NO_FLAGS = 0, INTERRUPT_SAFE = 1, RELEASER_SAFE = 2, STICKY = 4 } |
Public Member Functions | |
| BaseRule (ptrSimplePlan, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) | |
| virtual void | Activate () |
| virtual void | Deactivate () |
| virtual int | GetAction ()=0 |
| bool | CheckFlags (RuleFlags) |
| unsigned int | GetPriority () const |
| unsigned int | GetWeight () const |
| void | out () |
Protected Attributes | |
| ptrSimplePlan | _parent_plan |
| unsigned int | _priority |
| unsigned int | _weight |
| unsigned int | _flags |
| unsigned int | _sticky_timeout |
| unsigned int | _fails |
| unsigned int | _successes |
| unsigned int | _fails_act |
| unsigned int | _successes_act |
| enum BaseRule::RuleFlags |
| BaseRule::BaseRule | ( | ptrSimplePlan | pp, |
| unsigned int | prio, | ||
| unsigned int | weight, | ||
| unsigned int | flags, | ||
| unsigned int | stt, | ||
| unsigned int | fails, | ||
| unsigned int | successes | ||
| ) |
| void BaseRule::Activate | ( | ) | [virtual] |
Condition changed value to true
Implements IReleaseable.
| bool BaseRule::CheckFlags | ( | RuleFlags | flags | ) |
| void BaseRule::Deactivate | ( | ) | [virtual] |
Condition changed value tu false
Implements IReleaseable.
| virtual int BaseRule::GetAction | ( | ) | [pure virtual] |
Implemented in ActionRule, PlanRule, and SFRule.
| unsigned int BaseRule::GetPriority | ( | ) | const |
| unsigned int BaseRule::GetWeight | ( | ) | const |
| void BaseRule::out | ( | ) | [inline] |
unsigned int BaseRule::_fails [protected] |
unsigned int BaseRule::_fails_act [protected] |
unsigned int BaseRule::_flags [protected] |
ptrSimplePlan BaseRule::_parent_plan [protected] |
unsigned int BaseRule::_priority [protected] |
unsigned int BaseRule::_sticky_timeout [protected] |
unsigned int BaseRule::_successes [protected] |
unsigned int BaseRule::_successes_act [protected] |
unsigned int BaseRule::_weight [protected] |
1.7.4