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

The FisExporter class is an Exporter that translates an Engine and its components into the Fuzzy Inference System format for Matlab or Octave. More...

#include <FisExporter.h>

Inheritance diagram for fl::FisExporter:
Collaboration diagram for fl::FisExporter:

Public Member Functions

 FisExporter ()
 
virtual ~FisExporter () FL_IOVERRIDE
 
virtual std::string name () const FL_IOVERRIDE
 Returns the name of the exporter. More...
 
virtual std::string toString (const Engine *engine) const FL_IOVERRIDE
 Returns a string representation of the engine. More...
 
virtual std::string toString (const TNorm *tnorm) const
 Returns a string representation of the TNorm in the Fuzzy Inference System format. More...
 
virtual std::string toString (const SNorm *snorm) const
 Returns a string representation of the SNorm in the Fuzzy Inference System format. More...
 
virtual std::string toString (const Defuzzifier *defuzzifier) const
 Returns a string representation of the Defuzzifier in the Fuzzy Inference System format. More...
 
virtual std::string toString (const Term *term) const
 Returns a string representation of the Term in the Fuzzy Inference System format. More...
 
virtual std::string exportSystem (const Engine *engine) const
 Returns a string representation of the [System] configuration. More...
 
virtual std::string exportInputs (const Engine *engine) const
 Returns a string representation of the [Input] configuration. More...
 
virtual std::string exportOutputs (const Engine *engine) const
 Returns a string representation of the [Output] configuration. More...
 
virtual std::string exportRules (const Engine *engine) const
 Returns a string representation of the [Rules] configuration. More...
 
virtual std::string exportRule (const Rule *rule, const Engine *engine) const
 Returns a string representation for the Rule in the Fuzzy Inference System format. More...
 
virtual FisExporterclone () const FL_IOVERRIDE
 Creates a clone of the exporter. More...
 
- Public Member Functions inherited from fl::Exporter
 Exporter ()
 
virtual ~Exporter ()
 
virtual void toFile (const std::string &path, const Engine *engine) const
 Stores the string representation of the engine into the specified file. More...
 

Protected Member Functions

virtual std::string translate (const std::vector< Proposition *> &propositions, const std::vector< Variable *> variables) const
 

Detailed Description

The FisExporter class is an Exporter that translates an Engine and its components into the Fuzzy Inference System format for Matlab or Octave.

Author
Juan Rada-Vilela, Ph.D.
See also
FisImporter
Exporter
Since
4.0

Definition at line 43 of file FisExporter.h.

Constructor & Destructor Documentation

◆ FisExporter()

fl::FisExporter::FisExporter ( )

◆ ~FisExporter()

virtual fl::FisExporter::~FisExporter ( )
virtual

Member Function Documentation

◆ clone()

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

Creates a clone of the exporter.

Returns
a clone of the exporter

Implements fl::Exporter.

◆ exportInputs()

virtual std::string fl::FisExporter::exportInputs ( const Engine engine) const
virtual

Returns a string representation of the [Input] configuration.

Parameters
engineis the engine
Returns
a string representation of the [Input] configuration

◆ exportOutputs()

virtual std::string fl::FisExporter::exportOutputs ( const Engine engine) const
virtual

Returns a string representation of the [Output] configuration.

Parameters
engineis the engine
Returns
a string representation of the [Output] configuration

◆ exportRule()

virtual std::string fl::FisExporter::exportRule ( const Rule rule,
const Engine engine 
) const
virtual

Returns a string representation for the Rule in the Fuzzy Inference System format.

Parameters
ruleis the rule
engineis the engine in which the rule is registered
Returns
a string representation for the rule in the Fuzzy Inference System format

◆ exportRules()

virtual std::string fl::FisExporter::exportRules ( const Engine engine) const
virtual

Returns a string representation of the [Rules] configuration.

Parameters
engineis the engine
Returns
a string representation of the [Rules] configuration

◆ exportSystem()

virtual std::string fl::FisExporter::exportSystem ( const Engine engine) const
virtual

Returns a string representation of the [System] configuration.

Parameters
engineis the engine
Returns
a string representation of the [System] configuration

◆ name()

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

Returns the name of the exporter.

Returns
the name of the exporter

Implements fl::Exporter.

◆ toString() [1/5]

virtual std::string fl::FisExporter::toString ( const Engine engine) const
virtual

Returns a string representation of the engine.

Parameters
engineis the engine to export
Returns
a string representation of the engine

Implements fl::Exporter.

◆ toString() [2/5]

virtual std::string fl::FisExporter::toString ( const TNorm tnorm) const
virtual

Returns a string representation of the TNorm in the Fuzzy Inference System format.

Parameters
tnormis the TNorm
Returns
a string representation of the TNorm in the Fuzzy Inference System format

◆ toString() [3/5]

virtual std::string fl::FisExporter::toString ( const SNorm snorm) const
virtual

Returns a string representation of the SNorm in the Fuzzy Inference System format.

Parameters
snormis the SNorm
Returns
a string representation of the SNorm in the Fuzzy Inference System format

◆ toString() [4/5]

virtual std::string fl::FisExporter::toString ( const Defuzzifier defuzzifier) const
virtual

Returns a string representation of the Defuzzifier in the Fuzzy Inference System format.

Parameters
defuzzifieris the defuzzifier
Returns
a string representation of the Defuzzifier in the Fuzzy Inference System format

◆ toString() [5/5]

virtual std::string fl::FisExporter::toString ( const Term term) const
virtual

Returns a string representation of the Term in the Fuzzy Inference System format.

Parameters
termis the term
Returns
a string representation of the term in the Fuzzy Inference System format

◆ translate()

virtual std::string fl::FisExporter::translate ( const std::vector< Proposition *> &  propositions,
const std::vector< Variable *>  variables 
) const
protectedvirtual

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