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

The JavaExporter class is an Exporter that translates an Engine and its components to the Java programming language using the jfuzzylite library. More...

#include <JavaExporter.h>

Inheritance diagram for fl::JavaExporter:
Collaboration diagram for fl::JavaExporter:

Public Member Functions

 JavaExporter (bool usingVariableNames=true)
 
virtual ~JavaExporter () FL_IOVERRIDE
 
virtual std::string name () const FL_IOVERRIDE
 Returns the name of the exporter. More...
 
virtual void setUsingVariableNames (bool usingVariableNames)
 Sets whether variables are exported using their names (e.g., power.setValue(Double.NaN)) instead of numbered identifiers (e.g., inputVariable1.setValue(Double.NaN)) More...
 
virtual bool isUsingVariableNames () const
 Gets whether variables are exported using their names (e.g., power.setValue(Double.NaN)) instead of numbered identifiers (e.g., inputVariable1.setValue(Double.NaN)) 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 *inputVariable, const Engine *engine) const
 Returns a string representation of the InputVariable in the Java programming language. More...
 
virtual std::string toString (const OutputVariable *outputVariable, const Engine *engine) const
 Returns a string representation of the OutputVariable in the Java programming language. More...
 
virtual std::string toString (const RuleBlock *ruleBlock, const Engine *engine) const
 Returns a string representation of the RuleBlock in the Java programming language. More...
 
virtual std::string toString (const Term *term) const
 Returns a string representation of the Term in the Java programming language. More...
 
virtual std::string toString (const Activation *activation) const
 Returns a string representation of the Activation method in the Java programming language. More...
 
virtual std::string toString (const Defuzzifier *defuzzifier) const
 Returns a string representation of the Defuzzifier in the Java programming language. More...
 
virtual std::string toString (const Norm *norm) const
 Returns a string representation of the Norm in the Java programming language. More...
 
virtual std::string toString (scalar value) const
 Returns a string representation of the scalar value in the Java programming language. More...
 
virtual JavaExporterclone () 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 JavaExporter class is an Exporter that translates an Engine and its components to the Java programming language using the jfuzzylite library.

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

Definition at line 45 of file JavaExporter.h.

Constructor & Destructor Documentation

◆ JavaExporter()

fl::JavaExporter::JavaExporter ( bool  usingVariableNames = true)
explicit

◆ ~JavaExporter()

virtual fl::JavaExporter::~JavaExporter ( )
virtual

Member Function Documentation

◆ clone()

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

Creates a clone of the exporter.

Returns
a clone of the exporter

Implements fl::Exporter.

◆ isUsingVariableNames()

virtual bool fl::JavaExporter::isUsingVariableNames ( ) const
virtual

Gets whether variables are exported using their names (e.g., power.setValue(Double.NaN)) instead of numbered identifiers (e.g., inputVariable1.setValue(Double.NaN))

Returns
whether variables are exported using their names

◆ name()

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

Returns the name of the exporter.

Returns
the name of the exporter

Implements fl::Exporter.

◆ setUsingVariableNames()

virtual void fl::JavaExporter::setUsingVariableNames ( bool  usingVariableNames)
virtual

Sets whether variables are exported using their names (e.g., power.setValue(Double.NaN)) instead of numbered identifiers (e.g., inputVariable1.setValue(Double.NaN))

Parameters
usingVariableNamesindicates whether variables are exported using their names

◆ toString() [1/9]

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

virtual std::string fl::JavaExporter::toString ( const InputVariable inputVariable,
const Engine engine 
) const
virtual

Returns a string representation of the InputVariable in the Java programming language.

Parameters
inputVariableis the input variable
engineis the engine in which the input variable is registered
Returns
a string representation of the input variable in the Java programming language

◆ toString() [3/9]

virtual std::string fl::JavaExporter::toString ( const OutputVariable outputVariable,
const Engine engine 
) const
virtual

Returns a string representation of the OutputVariable in the Java programming language.

Parameters
outputVariableis the output variable
engineis the engine in which the output variable is registered
Returns
a string representation of the output variable in the Java programming language

◆ toString() [4/9]

virtual std::string fl::JavaExporter::toString ( const RuleBlock ruleBlock,
const Engine engine 
) const
virtual

Returns a string representation of the RuleBlock in the Java programming language.

Parameters
ruleBlockis the rule block
engineis the engine in which the rule block is registered
Returns
a string representation of the rule block in the Java programming language

◆ toString() [5/9]

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

Returns a string representation of the Term in the Java programming language.

Parameters
termis the term
Returns
a string representation of the term in the Java programming language

◆ toString() [6/9]

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

Returns a string representation of the Activation method in the Java programming language.

Parameters
activationis the activation method
Returns
a string representation of the activation method in the Java programming language

◆ toString() [7/9]

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

Returns a string representation of the Defuzzifier in the Java programming language.

Parameters
defuzzifieris the defuzzifier
Returns
a string representation of the defuzzifier in the Java programming language

◆ toString() [8/9]

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

Returns a string representation of the Norm in the Java programming language.

Parameters
normis the norm
Returns
a string representation of the norm in the Java programming language

◆ toString() [9/9]

virtual std::string fl::JavaExporter::toString ( scalar  value) const
virtual

Returns a string representation of the scalar value in the Java programming language.

Parameters
valueis the scalar value
Returns
a string representation of the scalar value in the Java programming language

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