summaryrefslogtreecommitdiff
path: root/fuzzylite/fl/imex/FisExporter.h
diff options
context:
space:
mode:
Diffstat (limited to 'fuzzylite/fl/imex/FisExporter.h')
-rw-r--r--fuzzylite/fl/imex/FisExporter.h87
1 files changed, 67 insertions, 20 deletions
diff --git a/fuzzylite/fl/imex/FisExporter.h b/fuzzylite/fl/imex/FisExporter.h
index 05d6a22..a7f5d8c 100644
--- a/fuzzylite/fl/imex/FisExporter.h
+++ b/fuzzylite/fl/imex/FisExporter.h
@@ -1,25 +1,17 @@
/*
- Author: Juan Rada-Vilela, Ph.D.
- Copyright (C) 2010-2014 FuzzyLite Limited
- All rights reserved
+ fuzzylite (R), a fuzzy logic control library in C++.
+ Copyright (C) 2010-2017 FuzzyLite Limited. All rights reserved.
+ Author: Juan Rada-Vilela, Ph.D. <jcrada@fuzzylite.com>
This file is part of fuzzylite.
fuzzylite is free software: you can redistribute it and/or modify it under
- the terms of the GNU Lesser General Public License as published by the Free
- Software Foundation, either version 3 of the License, or (at your option)
- any later version.
+ the terms of the FuzzyLite License included with the software.
- fuzzylite is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
- for more details.
-
- You should have received a copy of the GNU Lesser General Public License
- along with fuzzylite. If not, see <http://www.gnu.org/licenses/>.
-
- fuzzyliteâ„¢ is a trademark of FuzzyLite Limited.
+ You should have received a copy of the FuzzyLite License along with
+ fuzzylite. If not, see <http://www.fuzzylite.com/license/>.
+ fuzzylite is a registered trademark of FuzzyLite Limited.
*/
#ifndef FL_FISEXPORTER_H
@@ -39,6 +31,15 @@ namespace fl {
class Proposition;
class Variable;
+ /**
+ 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 FisImporter
+ @see Exporter
+ @since 4.0
+ */
class FL_API FisExporter : public Exporter {
protected:
@@ -52,22 +53,68 @@ namespace fl {
virtual std::string name() const FL_IOVERRIDE;
virtual std::string toString(const Engine* engine) const FL_IOVERRIDE;
-
- virtual std::string toString(const Norm* norm) const;
- virtual std::string toString(const TNorm* tnorm) const; //TODO: delete in v6.0
- virtual std::string toString(const SNorm* snorm) const; //TODO: delete in v6.0
+
+ /**
+ Returns a string representation of the TNorm in the Fuzzy Inference System format
+ @param tnorm is the TNorm
+ @return a string representation of the TNorm in the Fuzzy Inference System format
+ */
+ virtual std::string toString(const TNorm* tnorm) const;
+
+ /**
+ Returns a string representation of the SNorm in the Fuzzy Inference System format
+ @param snorm is the SNorm
+ @return a string representation of the SNorm in the Fuzzy Inference System format
+ */
+ virtual std::string toString(const SNorm* snorm) const;
+
+ /**
+ Returns a string representation of the Defuzzifier in the Fuzzy Inference System format
+ @param defuzzifier is the defuzzifier
+ @return a string representation of the Defuzzifier in the Fuzzy Inference System format
+ */
virtual std::string toString(const Defuzzifier* defuzzifier) const;
+ /**
+ Returns a string representation of the Term in the Fuzzy Inference System format
+ @param term is the term
+ @return a string representation of the term in the Fuzzy Inference System format
+ */
virtual std::string toString(const Term* term) const;
+ /**
+ Returns a string representation of the `[System]` configuration
+ @param engine is the engine
+ @return a string representation of the `[System]` configuration
+ */
virtual std::string exportSystem(const Engine* engine) const;
+ /**
+ Returns a string representation of the `[Input]` configuration
+ @param engine is the engine
+ @return a string representation of the `[Input]` configuration
+ */
virtual std::string exportInputs(const Engine* engine) const;
+ /**
+ Returns a string representation of the `[Output]` configuration
+ @param engine is the engine
+ @return a string representation of the `[Output]` configuration
+ */
virtual std::string exportOutputs(const Engine* engine) const;
+ /**
+ Returns a string representation of the `[Rules]` configuration
+ @param engine is the engine
+ @return a string representation of the `[Rules]` configuration
+ */
virtual std::string exportRules(const Engine* engine) const;
+ /**
+ Returns a string representation for the Rule in the Fuzzy Inference System format
+ @param rule is the rule
+ @param engine is the engine in which the rule is registered
+ @return a string representation for the rule in the Fuzzy Inference System format
+ */
virtual std::string exportRule(const Rule* rule, const Engine* engine) const;
virtual FisExporter* clone() const FL_IOVERRIDE;
};
-
}
#endif /* FL_FISEXPORTER_H */