The Highest class is a RuleBlock Activation method that activates a given number of rules with highest activation degrees in descending order.
More...
#include <Highest.h>
The Highest class is a RuleBlock Activation method that activates a given number of rules with highest activation degrees in descending order.
- Author
- Juan Rada-Vilela, Ph.D.
- See also
- Lowest
-
Rule
-
RuleBlock
-
ActivationFactory
- Since
- 6.0
Definition at line 37 of file Highest.h.
◆ Highest()
fl::Highest::Highest |
( |
int |
numberOfRules = 1 | ) |
|
|
explicit |
◆ ~Highest()
virtual fl::Highest::~Highest |
( |
| ) |
|
|
virtual |
◆ activate()
virtual void fl::Highest::activate |
( |
RuleBlock * |
ruleBlock | ) |
|
|
virtual |
Activates the given number of rules with the highest activation degrees.
- Parameters
-
ruleBlock | is the rule block to activate. |
Implements fl::Activation.
◆ className()
virtual std::string fl::Highest::className |
( |
| ) |
const |
|
virtual |
◆ clone()
virtual Highest* fl::Highest::clone |
( |
| ) |
const |
|
virtual |
Clones the activation method.
- Returns
- a clone of the activation method
Implements fl::Activation.
◆ complexity()
Computes the estimated complexity of activating the given rule block.
- Returns
- the estimated complexity of activating the given rule block
Implements fl::Activation.
◆ configure()
virtual void fl::Highest::configure |
( |
const std::string & |
parameters | ) |
|
|
virtual |
Configures the activation method with the number of rules to activate.
- Parameters
-
parameters | contains the number of rules to activate |
Implements fl::Activation.
◆ constructor()
◆ getNumberOfRules()
virtual int fl::Highest::getNumberOfRules |
( |
| ) |
const |
|
virtual |
Returns the number of rules to activate.
- Returns
- the number of rules to activate
◆ parameters()
virtual std::string fl::Highest::parameters |
( |
| ) |
const |
|
virtual |
Returns the number of rules to activate.
- Returns
- number of rules to activate
Implements fl::Activation.
◆ setNumberOfRules()
virtual void fl::Highest::setNumberOfRules |
( |
int |
numberOfRules | ) |
|
|
virtual |
Sets the number of rules to activate.
- Parameters
-
numberOfRules | is the number of rules to activate |
The documentation for this class was generated from the following file: