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

The FllImporter class is an Importer that configures an Engine and its components utilizing the FuzzyLite Language (FLL), see http://www.fuzzylite.com/fll-fld for more information. More...

#include <FllImporter.h>

Inheritance diagram for fl::FllImporter:
Collaboration diagram for fl::FllImporter:

Public Member Functions

 FllImporter (const std::string &separator="\)
 
virtual ~FllImporter () FL_IOVERRIDE
 
virtual void setSeparator (const std::string &separator)
 Sets the separator of the language (default separator is a new line '
') More...
 
virtual std::string getSeparator () const
 Gets the separator of the language (default separator is a new line '
') More...
 
virtual std::string name () const FL_IOVERRIDE
 Returns the name of the importer. More...
 
virtual EnginefromString (const std::string &fll) const FL_IOVERRIDE
 Imports the engine from the given text. More...
 
virtual FllImporterclone () 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 process (const std::string &tag, const std::string &block, Engine *engine) const
 
virtual void processInputVariable (const std::string &block, Engine *engine) const
 
virtual void processOutputVariable (const std::string &block, Engine *engine) const
 
virtual void processRuleBlock (const std::string &block, Engine *engine) const
 
virtual TNormparseTNorm (const std::string &name) const
 
virtual SNormparseSNorm (const std::string &name) const
 
virtual ActivationparseActivation (const std::string &name) const
 
virtual TermparseTerm (const std::string &text, Engine *engine) const
 
virtual DefuzzifierparseDefuzzifier (const std::string &line) const
 
virtual std::pair< scalar, scalarparseRange (const std::string &line) const
 
virtual bool parseBoolean (const std::string &boolean) const
 
virtual std::pair< std::string, std::string > parseKeyValue (const std::string &text, char separator=':') const
 

Detailed Description

The FllImporter class is an Importer that configures an Engine and its components utilizing the FuzzyLite Language (FLL), see http://www.fuzzylite.com/fll-fld for more information.

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

Definition at line 43 of file FllImporter.h.

Constructor & Destructor Documentation

◆ FllImporter()

fl::FllImporter::FllImporter ( )
explicit

◆ ~FllImporter()

virtual fl::FllImporter::~FllImporter ( )
virtual

Member Function Documentation

◆ clone()

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

Creates a clone of the importer.

Returns
a clone of the importer

Implements fl::Importer.

◆ fromString()

virtual Engine* fl::FllImporter::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.

◆ getSeparator()

virtual std::string fl::FllImporter::getSeparator ( ) const
virtual

Gets the separator of the language (default separator is a new line '
')

Returns
the separator of the language

◆ name()

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

Returns the name of the importer.

Returns
the name of the importer

Implements fl::Importer.

◆ parseActivation()

virtual Activation* fl::FllImporter::parseActivation ( const std::string &  name) const
protectedvirtual

◆ parseBoolean()

virtual bool fl::FllImporter::parseBoolean ( const std::string &  boolean) const
protectedvirtual

◆ parseDefuzzifier()

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

◆ parseKeyValue()

virtual std::pair<std::string, std::string> fl::FllImporter::parseKeyValue ( const std::string &  text,
char  separator = ':' 
) const
protectedvirtual

◆ parseRange()

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

◆ parseSNorm()

virtual SNorm* fl::FllImporter::parseSNorm ( const std::string &  name) const
protectedvirtual

◆ parseTerm()

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

◆ parseTNorm()

virtual TNorm* fl::FllImporter::parseTNorm ( const std::string &  name) const
protectedvirtual

◆ process()

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

◆ processInputVariable()

virtual void fl::FllImporter::processInputVariable ( const std::string &  block,
Engine engine 
) const
protectedvirtual

◆ processOutputVariable()

virtual void fl::FllImporter::processOutputVariable ( const std::string &  block,
Engine engine 
) const
protectedvirtual

◆ processRuleBlock()

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

◆ setSeparator()

virtual void fl::FllImporter::setSeparator ( const std::string &  separator)
virtual

Sets the separator of the language (default separator is a new line '
')

Parameters
separatoris the separator of the language

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