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

The FclExporter class is an Exporter that translates an Engine and its components to the Fuzzy Control Language specification. More...

#include <FclExporter.h>

Inheritance diagram for fl::FclExporter:
Collaboration diagram for fl::FclExporter:

Public Member Functions

 FclExporter (const std::string &indent=" ")
 
virtual ~FclExporter () FL_IOVERRIDE
 
virtual void setIndent (const std::string &indent)
 Sets the indentation string within blocks. More...
 
virtual std::string getIndent () const
 Gets the indentation string within blocks. More...
 
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 InputVariable *variable) const
 Returns a string representation of the InputVariable according to the Fuzzy Control Language specification. More...
 
virtual std::string toString (const OutputVariable *variable) const
 Returns a string representation of the OutputVariable according to the Fuzzy Control Language specification. More...
 
virtual std::string toString (const RuleBlock *ruleBlock) const
 Returns a string representation of the RuleBlock according to the Fuzzy Control Language specification. More...
 
virtual std::string toString (const Norm *norm) const
 Returns a string representation of the Norm according to the Fuzzy Control Language specification. More...
 
virtual std::string toString (const Defuzzifier *defuzzifier) const
 Returns a string representation of the Defuzzifier according to the Fuzzy Control Language specification. More...
 
virtual std::string toString (const Term *term) const
 Returns a string representation of the Term according to the Fuzzy Control Language specification. More...
 
virtual FclExporterclone () 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...
 

Detailed Description

The FclExporter class is an Exporter that translates an Engine and its components to the Fuzzy Control Language specification.

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

Definition at line 41 of file FclExporter.h.

Constructor & Destructor Documentation

◆ FclExporter()

fl::FclExporter::FclExporter ( const std::string &  indent = "  ")
explicit

◆ ~FclExporter()

virtual fl::FclExporter::~FclExporter ( )
virtual

Member Function Documentation

◆ clone()

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

Creates a clone of the exporter.

Returns
a clone of the exporter

Implements fl::Exporter.

◆ getIndent()

virtual std::string fl::FclExporter::getIndent ( ) const
virtual

Gets the indentation string within blocks.

Returns
the indentation string within blocks

◆ name()

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

Returns the name of the exporter.

Returns
the name of the exporter

Implements fl::Exporter.

◆ setIndent()

virtual void fl::FclExporter::setIndent ( const std::string &  indent)
virtual

Sets the indentation string within blocks.

Parameters
indentis the indentation string within blocks

◆ toString() [1/7]

virtual std::string fl::FclExporter::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/7]

virtual std::string fl::FclExporter::toString ( const InputVariable variable) const
virtual

Returns a string representation of the InputVariable according to the Fuzzy Control Language specification.

Parameters
variableis the input variable
Returns
a string representation of the input variable according to the Fuzzy Control Language specification

◆ toString() [3/7]

virtual std::string fl::FclExporter::toString ( const OutputVariable variable) const
virtual

Returns a string representation of the OutputVariable according to the Fuzzy Control Language specification.

Parameters
variableis the output variable
Returns
a string representation of the output variable according to the Fuzzy Control Language specification

◆ toString() [4/7]

virtual std::string fl::FclExporter::toString ( const RuleBlock ruleBlock) const
virtual

Returns a string representation of the RuleBlock according to the Fuzzy Control Language specification.

Parameters
ruleBlockis the rule block
Returns
a string representation of the rule block according to the Fuzzy Control Language specification

◆ toString() [5/7]

virtual std::string fl::FclExporter::toString ( const Norm norm) const
virtual

Returns a string representation of the Norm according to the Fuzzy Control Language specification.

Parameters
normis the norm
Returns
a string representation of the norm according to the Fuzzy Control Language specification

◆ toString() [6/7]

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

Returns a string representation of the Defuzzifier according to the Fuzzy Control Language specification.

Parameters
defuzzifieris the defuzzifier
Returns
a string representation of the defuzzifier according to the Fuzzy Control Language specification

◆ toString() [7/7]

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

Returns a string representation of the Term according to the Fuzzy Control Language specification.

Parameters
termis the term
Returns
a string representation of the term according to the Fuzzy Control Language specification

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