fuzzylite  6.0
A Fuzzy Logic Control Library in C++
fl::DefuzzifierFactory Class Reference

The DefuzzifierFactory class is a ConstructionFactory of Defuzzifiers. More...

#include <DefuzzifierFactory.h>

Inheritance diagram for fl::DefuzzifierFactory:
Collaboration diagram for fl::DefuzzifierFactory:

Public Member Functions

 DefuzzifierFactory ()
 
virtual ~DefuzzifierFactory () FL_IOVERRIDE
 
virtual DefuzzifierconstructDefuzzifier (const std::string &key, int resolution, WeightedDefuzzifier::Type type) const
 Creates a Defuzzifier by executing the registered constructor. More...
 
virtual DefuzzifierconstructDefuzzifier (const std::string &key, int resolution) const
 Creates a Defuzzifier by executing the registered constructor. More...
 
virtual DefuzzifierconstructDefuzzifier (const std::string &key, WeightedDefuzzifier::Type type)
 Creates a Defuzzifier by executing the registered constructor. More...
 
- Public Member Functions inherited from fl::ConstructionFactory< Defuzzifier *>
 ConstructionFactory (const std::string &name)
 
virtual ~ConstructionFactory ()
 
virtual std::string name () const
 Returns the name of the factory. More...
 
virtual void registerConstructor (const std::string &key, Constructor constructor)
 Registers the constructor in the factory. More...
 
virtual void deregisterConstructor (const std::string &key)
 Deregisters from the factory the constructor associated to the given key. More...
 
virtual bool hasConstructor (const std::string &key) const
 Checks whether the factory has a constructor registered by the given key. More...
 
virtual Constructor getConstructor (const std::string &key) const
 Gets the constructor registered by the given key. More...
 
virtual DefuzzifierconstructObject (const std::string &key) const
 Creates an object by executing the constructor associated to the given key. More...
 
virtual std::vector< std::string > available () const
 Returns a vector of keys for the constructors available. More...
 
virtual std::map< std::string, Constructor > & constructors ()
 Gets the map of registered keys and constructors. More...
 
virtual const std::map< std::string, Constructor > & constructors () const
 Gets an immutable map of registered keys and constructors. More...
 

Additional Inherited Members

- Public Types inherited from fl::ConstructionFactory< Defuzzifier *>
typedef Defuzzifier *(* Constructor) ()
 The Constructor type definition refers to a zero-parameter method which returns an instance of T. More...
 

Detailed Description

The DefuzzifierFactory class is a ConstructionFactory of Defuzzifiers.

Author
Juan Rada-Vilela, Ph.D.
See also
Defuzzifier
ConstructionFactory
FactoryManager
Since
4.0

Definition at line 37 of file DefuzzifierFactory.h.

Constructor & Destructor Documentation

◆ DefuzzifierFactory()

fl::DefuzzifierFactory::DefuzzifierFactory ( )

◆ ~DefuzzifierFactory()

virtual fl::DefuzzifierFactory::~DefuzzifierFactory ( )
virtual

Member Function Documentation

◆ constructDefuzzifier() [1/3]

virtual Defuzzifier* fl::DefuzzifierFactory::constructDefuzzifier ( const std::string &  key,
int  resolution,
WeightedDefuzzifier::Type  type 
) const
virtual

Creates a Defuzzifier by executing the registered constructor.

Parameters
keyis the unique name by which constructors are registered
resolutionis the resolution of an IntegralDefuzzifier
typeis the type of a WeightedDefuzzifier
Returns
a Defuzzifier by executing the registered constructor and setting its resolution or type accordingly

◆ constructDefuzzifier() [2/3]

virtual Defuzzifier* fl::DefuzzifierFactory::constructDefuzzifier ( const std::string &  key,
int  resolution 
) const
virtual

Creates a Defuzzifier by executing the registered constructor.

Parameters
keyis the unique name by which constructors are registered
resolutionis the resolution of an IntegralDefuzzifier
Returns
a Defuzzifier by executing the registered constructor and setting its resolution

◆ constructDefuzzifier() [3/3]

virtual Defuzzifier* fl::DefuzzifierFactory::constructDefuzzifier ( const std::string &  key,
WeightedDefuzzifier::Type  type 
)
virtual

Creates a Defuzzifier by executing the registered constructor.

Parameters
keyis the unique name by which constructors are registered
typeis the type of a WeightedDefuzzifier
Returns
a Defuzzifier by executing the registered constructor and setting its type

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