The DefuzzifierFactory class is a ConstructionFactory of Defuzzifiers. More...
#include <DefuzzifierFactory.h>
Public Member Functions | |
| DefuzzifierFactory () | |
| virtual | ~DefuzzifierFactory () FL_IOVERRIDE |
| virtual Defuzzifier * | constructDefuzzifier (const std::string &key, int resolution, WeightedDefuzzifier::Type type) const |
| Creates a Defuzzifier by executing the registered constructor. More... | |
| virtual Defuzzifier * | constructDefuzzifier (const std::string &key, int resolution) const |
| Creates a Defuzzifier by executing the registered constructor. More... | |
| virtual Defuzzifier * | constructDefuzzifier (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 Defuzzifier * | constructObject (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... | |
The DefuzzifierFactory class is a ConstructionFactory of Defuzzifiers.
Definition at line 37 of file DefuzzifierFactory.h.
| fl::DefuzzifierFactory::DefuzzifierFactory | ( | ) |
|
virtual |
|
virtual |
Creates a Defuzzifier by executing the registered constructor.
| key | is the unique name by which constructors are registered |
| resolution | is the resolution of an IntegralDefuzzifier |
| type | is the type of a WeightedDefuzzifier |
|
virtual |
Creates a Defuzzifier by executing the registered constructor.
| key | is the unique name by which constructors are registered |
| resolution | is the resolution of an IntegralDefuzzifier |
|
virtual |
Creates a Defuzzifier by executing the registered constructor.
| key | is the unique name by which constructors are registered |
| type | is the type of a WeightedDefuzzifier |