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

The FllExporter class is an Exporter that translates an Engine and its components to the FuzzyLite Language (FLL), see http://www.fuzzylite.com/fll-fld for more information. More...

#include <FllExporter.h>

Inheritance diagram for fl::FllExporter:
Collaboration diagram for fl::FllExporter:

Public Member Functions

 FllExporter (const std::string &indent=" ", const std::string &separator="\)
 
virtual ~FllExporter () FL_IOVERRIDE
 
virtual std::string name () const FL_IOVERRIDE
 Returns the name of the exporter. More...
 
virtual void setIndent (const std::string &indent)
 Sets the indent string of the FuzzyLite Language. More...
 
virtual std::string getIndent () const
 Gets the indent string of the FuzzyLite Language. More...
 
virtual void setSeparator (const std::string &separator)
 Gets the separator of the FuzzyLite Language. More...
 
virtual std::string getSeparator () const
 Gets the separator of the FuzzyLite Language. More...
 
virtual std::string toString (const Engine *engine) const FL_IOVERRIDE
 Returns a string representation of the engine. More...
 
virtual std::string toString (const std::vector< Variable *> &variables) const
 Returns a string representation of the vector of variables in the FuzzyLite Language. More...
 
virtual std::string toString (const std::vector< InputVariable *> &inputVariables) const
 Returns a string representation of the vector of input variables in the FuzzyLite Language. More...
 
virtual std::string toString (const std::vector< OutputVariable *> &outputVariables) const
 Returns a string representation of the vector of output variables in the FuzzyLite Language. More...
 
virtual std::string toString (const std::vector< RuleBlock *> &ruleBlocks) const
 Returns a string representation of the vector of rule blocks in the FuzzyLite Language. More...
 
virtual std::string toString (const Variable *variable) const
 Returns a string representation of the Variable in the FuzzyLite Language. More...
 
virtual std::string toString (const InputVariable *inputVariable) const
 Returns a string representation of the InputVariable in the FuzzyLite Language. More...
 
virtual std::string toString (const OutputVariable *outputVariable) const
 Returns a string representation of the OutputVariable in the FuzzyLite Language. More...
 
virtual std::string toString (const RuleBlock *ruleBlock) const
 Returns a string representation of the RuleBlock in the FuzzyLite Language. More...
 
virtual std::string toString (const Rule *rule) const
 Returns a string representation of the Rule in the FuzzyLite Language. More...
 
virtual std::string toString (const Norm *norm) const
 Returns a string representation of the Norm in the FuzzyLite Language. More...
 
virtual std::string toString (const Activation *activation) const
 Returns a string representation of the Activation method in the FuzzyLite Language. More...
 
virtual std::string toString (const Defuzzifier *defuzzifier) const
 Returns a string representation of the Defuzzifier in the FuzzyLite Language. More...
 
virtual std::string toString (const Term *term) const
 Returns a string representation of the Term in the FuzzyLite Language. More...
 
virtual FllExporterclone () 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 FllExporter class is an Exporter that translates an Engine and its components to the FuzzyLite Language (FLL), see http://www.fuzzylite.com/fll-fld for more information.

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

Definition at line 46 of file FllExporter.h.

Constructor & Destructor Documentation

◆ FllExporter()

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

◆ ~FllExporter()

virtual fl::FllExporter::~FllExporter ( )
virtual

Member Function Documentation

◆ clone()

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

Creates a clone of the exporter.

Returns
a clone of the exporter

Implements fl::Exporter.

◆ getIndent()

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

Gets the indent string of the FuzzyLite Language.

Returns
the indent string of the FuzzyLite Language

◆ getSeparator()

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

Gets the separator of the FuzzyLite Language.

Returns
the separator of the FuzzyLite Language

◆ name()

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

Returns the name of the exporter.

Returns
the name of the exporter

Implements fl::Exporter.

◆ setIndent()

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

Sets the indent string of the FuzzyLite Language.

Parameters
indentis the indent string of the FuzzyLite Language

◆ setSeparator()

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

Gets the separator of the FuzzyLite Language.

Parameters
separatorof the FuzzyLite Language

◆ toString() [1/14]

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

virtual std::string fl::FllExporter::toString ( const std::vector< Variable *> &  variables) const
virtual

Returns a string representation of the vector of variables in the FuzzyLite Language.

Parameters
variablesis the vector of variables
Returns
a string representation of the vector of variables in the FuzzyLite Language

◆ toString() [3/14]

virtual std::string fl::FllExporter::toString ( const std::vector< InputVariable *> &  inputVariables) const
virtual

Returns a string representation of the vector of input variables in the FuzzyLite Language.

Parameters
inputVariablesis the vector of input variables
Returns
a string representation of the vector of input variables in the FuzzyLite Language

◆ toString() [4/14]

virtual std::string fl::FllExporter::toString ( const std::vector< OutputVariable *> &  outputVariables) const
virtual

Returns a string representation of the vector of output variables in the FuzzyLite Language.

Parameters
outputVariablesis a vector of output variables
Returns
a string representation of the vector of output variables in the FuzzyLite Language

◆ toString() [5/14]

virtual std::string fl::FllExporter::toString ( const std::vector< RuleBlock *> &  ruleBlocks) const
virtual

Returns a string representation of the vector of rule blocks in the FuzzyLite Language.

Parameters
ruleBlocksis the vector of rule blocks
Returns
a string representation of the vector of rule blocks in the FuzzyLite Language

◆ toString() [6/14]

virtual std::string fl::FllExporter::toString ( const Variable variable) const
virtual

Returns a string representation of the Variable in the FuzzyLite Language.

Parameters
variableis the variable
Returns
a string representation of the variable in the FuzzyLite Language

◆ toString() [7/14]

virtual std::string fl::FllExporter::toString ( const InputVariable inputVariable) const
virtual

Returns a string representation of the InputVariable in the FuzzyLite Language.

Parameters
inputVariableis the input variable to export
Returns
a string representation of the input variable in the FuzzyLite Language

◆ toString() [8/14]

virtual std::string fl::FllExporter::toString ( const OutputVariable outputVariable) const
virtual

Returns a string representation of the OutputVariable in the FuzzyLite Language.

Parameters
outputVariableis the output variable
Returns
a string representation of the output variable in the FuzzyLite Language

◆ toString() [9/14]

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

Returns a string representation of the RuleBlock in the FuzzyLite Language.

Parameters
ruleBlockis the rule block
Returns
a string representation of the rule block in the FuzzyLite Language

◆ toString() [10/14]

virtual std::string fl::FllExporter::toString ( const Rule rule) const
virtual

Returns a string representation of the Rule in the FuzzyLite Language.

Parameters
ruleis the rule
Returns
a string representation of the rule in the FuzzyLite Language

◆ toString() [11/14]

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

Returns a string representation of the Norm in the FuzzyLite Language.

Parameters
normis the norm
Returns
a string representation of the norm in the FuzzyLite Language

◆ toString() [12/14]

virtual std::string fl::FllExporter::toString ( const Activation activation) const
virtual

Returns a string representation of the Activation method in the FuzzyLite Language.

Parameters
activationis the activation method
Returns
a string representation of the activation method in the FuzzyLite Language

◆ toString() [13/14]

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

Returns a string representation of the Defuzzifier in the FuzzyLite Language.

Parameters
defuzzifieris the defuzzifier
Returns
a string representation of the defuzzifier in the FuzzyLite Language

◆ toString() [14/14]

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

Returns a string representation of the Term in the FuzzyLite Language.

Parameters
termis the term
Returns
a string representation of the term in the FuzzyLite Language

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