fuzzylite  6.0
A Fuzzy Logic Control Library in C++
fl::Activation Class Referenceabstract

The Activation class is the abstract class for RuleBlock activation methods. More...

#include <Activation.h>

Inheritance diagram for fl::Activation:
Collaboration diagram for fl::Activation:

Public Member Functions

 Activation ()
 
virtual ~Activation ()
 
virtual std::string className () const =0
 Returns the name of the activation method, which is also utilized to register the activation method in the ActivationFactory. More...
 
virtual std::string parameters () const =0
 Returns the parameters of the activation method, which can be used to configure other instances of the activation method. More...
 
virtual void configure (const std::string &parameters)=0
 Configures the activation method with the given parameters. More...
 
virtual Complexity complexity (const RuleBlock *ruleBlock) const =0
 Computes the estimated complexity of activating the given rule block. More...
 
virtual void activate (RuleBlock *ruleBlock)=0
 Activates the rule block. More...
 
virtual Activationclone () const =0
 Clones the activation method. More...
 

Detailed Description

The Activation class is the abstract class for RuleBlock activation methods.

An activation method implements the criteria to activate the rules within a given rule block. An activation method needs to process every rule and determine whether the rule is to be activated or deactivated. The activation methods were first introduced in version 6.0, but in earlier versions the term activation referred to the TNorm that modulated the consequent of a rule, which is now referred to as the implication operator.

Author
Juan Rada-Vilela, Ph.D.
See also
Rule
RuleBlock
ActivationFactory
Since
6.0

Definition at line 44 of file Activation.h.

Constructor & Destructor Documentation

◆ Activation()

fl::Activation::Activation ( )
inline

Definition at line 47 of file Activation.h.

◆ ~Activation()

virtual fl::Activation::~Activation ( )
inlinevirtual

Definition at line 49 of file Activation.h.

References FL_DEFAULT_COPY_AND_MOVE.

Member Function Documentation

◆ activate()

virtual void fl::Activation::activate ( RuleBlock ruleBlock)
pure virtual

Activates the rule block.

Parameters
ruleBlockis the rule block to activate

Implemented in fl::Threshold, fl::Last, fl::First, fl::Lowest, fl::Highest, fl::General, and fl::Proportional.

◆ className()

virtual std::string fl::Activation::className ( ) const
pure virtual

Returns the name of the activation method, which is also utilized to register the activation method in the ActivationFactory.

Returns
the name of the activation method
See also
ActivationFactory

Implemented in fl::Threshold, fl::Last, fl::First, fl::Highest, fl::Lowest, fl::General, and fl::Proportional.

◆ clone()

virtual Activation* fl::Activation::clone ( ) const
pure virtual

Clones the activation method.

Returns
a clone of the activation method

Implemented in fl::Threshold, fl::Last, fl::First, fl::Lowest, fl::Highest, fl::General, and fl::Proportional.

◆ complexity()

virtual Complexity fl::Activation::complexity ( const RuleBlock ruleBlock) const
pure virtual

Computes the estimated complexity of activating the given rule block.

Returns
the estimated complexity of activating the given rule block

Implemented in fl::Threshold, fl::Last, fl::First, fl::Lowest, fl::Highest, fl::General, and fl::Proportional.

◆ configure()

virtual void fl::Activation::configure ( const std::string &  parameters)
pure virtual

Configures the activation method with the given parameters.

Parameters
parameterscontains a list of space-separated parameter values

Implemented in fl::Threshold, fl::Last, fl::First, fl::Highest, fl::Lowest, fl::General, and fl::Proportional.

◆ parameters()

virtual std::string fl::Activation::parameters ( ) const
pure virtual

Returns the parameters of the activation method, which can be used to configure other instances of the activation method.

Returns
the parameters of the activation method

Implemented in fl::Threshold, fl::Last, fl::First, fl::Highest, fl::Lowest, fl::General, and fl::Proportional.


The documentation for this class was generated from the following file: