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

The FclImporter class is an Importer that configures an Engine and its components utilizing the Fuzzy Control Language specification. More...

#include <FclImporter.h>

Inheritance diagram for fl::FclImporter:
Collaboration diagram for fl::FclImporter:

Public Member Functions

 FclImporter ()
 
virtual ~FclImporter () FL_IOVERRIDE
 
virtual std::string name () const FL_IOVERRIDE
 Returns the name of the importer. More...
 
virtual EnginefromString (const std::string &fcl) const FL_IOVERRIDE
 Imports the engine from the given text. More...
 
virtual FclImporterclone () const FL_IOVERRIDE
 Creates a clone of the importer. More...
 
- Public Member Functions inherited from fl::Importer
 Importer ()
 
virtual ~Importer ()
 
virtual EnginefromFile (const std::string &path) const
 Imports the engine from the given file. More...
 

Protected Member Functions

virtual void processBlock (const std::string &tag, const std::string &block, Engine *engine) const
 
virtual void processVar (const std::string &var, const std::string &block, Engine *engine) const
 
virtual void processFuzzify (const std::string &block, Engine *engine) const
 
virtual void processDefuzzify (const std::string &block, Engine *engine) const
 
virtual void processRuleBlock (const std::string &block, Engine *engine) const
 
virtual TNormparseTNorm (const std::string &line) const
 
virtual SNormparseSNorm (const std::string &line) const
 
virtual TermparseTerm (const std::string &line, const Engine *engine) const
 
virtual DefuzzifierparseDefuzzifier (const std::string &line) const
 
virtual std::pair< scalar, bool > parseDefaultValue (const std::string &line) const
 
virtual std::pair< scalar, scalarparseRange (const std::string &line) const
 
virtual std::pair< bool, bool > parseLocks (const std::string &line) const
 
virtual bool parseEnabled (const std::string &line) const
 

Detailed Description

The FclImporter class is an Importer that configures an Engine and its components utilizing the Fuzzy Control Language specification.

Author
Juan Rada-Vilela, Ph.D.
See also
FclExporter
Importer
Since
4.0

Definition at line 43 of file FclImporter.h.

Constructor & Destructor Documentation

◆ FclImporter()

fl::FclImporter::FclImporter ( )

◆ ~FclImporter()

virtual fl::FclImporter::~FclImporter ( )
virtual

Member Function Documentation

◆ clone()

virtual FclImporter* fl::FclImporter::clone ( ) const
virtual

Creates a clone of the importer.

Returns
a clone of the importer

Implements fl::Importer.

◆ fromString()

virtual Engine* fl::FclImporter::fromString ( const std::string &  text) const
virtual

Imports the engine from the given text.

Parameters
textis the string representation of the engine to import from
Returns
the engine represented by the text

Implements fl::Importer.

◆ name()

virtual std::string fl::FclImporter::name ( ) const
virtual

Returns the name of the importer.

Returns
the name of the importer

Implements fl::Importer.

◆ parseDefaultValue()

virtual std::pair<scalar, bool> fl::FclImporter::parseDefaultValue ( const std::string &  line) const
protectedvirtual

◆ parseDefuzzifier()

virtual Defuzzifier* fl::FclImporter::parseDefuzzifier ( const std::string &  line) const
protectedvirtual

◆ parseEnabled()

virtual bool fl::FclImporter::parseEnabled ( const std::string &  line) const
protectedvirtual

◆ parseLocks()

virtual std::pair<bool, bool> fl::FclImporter::parseLocks ( const std::string &  line) const
protectedvirtual

◆ parseRange()

virtual std::pair<scalar, scalar> fl::FclImporter::parseRange ( const std::string &  line) const
protectedvirtual

◆ parseSNorm()

virtual SNorm* fl::FclImporter::parseSNorm ( const std::string &  line) const
protectedvirtual

◆ parseTerm()

virtual Term* fl::FclImporter::parseTerm ( const std::string &  line,
const Engine engine 
) const
protectedvirtual

◆ parseTNorm()

virtual TNorm* fl::FclImporter::parseTNorm ( const std::string &  line) const
protectedvirtual

◆ processBlock()

virtual void fl::FclImporter::processBlock ( const std::string &  tag,
const std::string &  block,
Engine engine 
) const
protectedvirtual

◆ processDefuzzify()

virtual void fl::FclImporter::processDefuzzify ( const std::string &  block,
Engine engine 
) const
protectedvirtual

◆ processFuzzify()

virtual void fl::FclImporter::processFuzzify ( const std::string &  block,
Engine engine 
) const
protectedvirtual

◆ processRuleBlock()

virtual void fl::FclImporter::processRuleBlock ( const std::string &  block,
Engine engine 
) const
protectedvirtual

◆ processVar()

virtual void fl::FclImporter::processVar ( const std::string &  var,
const std::string &  block,
Engine engine 
) const
protectedvirtual

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