Fuzzy libray for embedded targets developed by zerokol. Read more on: http://zerokol.com/product/51e93616e84c5571b7000018/2/en edit by Bruno Alfano - corrected deallocation of FuzzyOutput

Fuzzy library by Zerokol. Read more on: http://zerokol.com/product/51e93616e84c5571b7000018/2/en

edit by Bruno Alfano - corrected deallocation bug for FuzzyOutput

Revision:
0:66cd67db4f1b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/FuzzyRule.h	Wed Jun 24 06:30:39 2015 +0000
@@ -0,0 +1,36 @@
+/*
+ * Robotic Research Group (RRG)
+ * State University of Piaui (UESPI), Brazil - Piauí - Teresina
+ *
+ * FuzzyRule.h
+ *
+ *      Author: Msc. Marvin Lemos <marvinlemos@gmail.com>
+ *              AJ Alves <aj.alves@zerokol.com>
+ *          Co authors: Douglas S. Kridi <douglaskridi@gmail.com>
+ *                      Kannya Leal <kannyal@hotmail.com>
+ */
+#ifndef FUZZYRULE_H
+#define FUZZYRULE_H
+
+// IMPORTANDO AS BIBLIOTECAS NECESSÁRIAS
+#include "FuzzyRuleAntecedent.h"
+#include "FuzzyRuleConsequent.h"
+
+class FuzzyRule {
+    public:
+        // CONSTRUTORES
+        FuzzyRule();
+        FuzzyRule(int index, FuzzyRuleAntecedent* fuzzyRuleAntecedent, FuzzyRuleConsequent* fuzzyRuleConsequent);
+        // MÉTODOS PÚBLICOS
+        int getIndex();
+        bool evaluateExpression();
+        bool isFired();
+
+    private:
+        // VARIÁVEIS PRIVADAS
+        int index;
+        bool fired;
+        FuzzyRuleAntecedent* fuzzyRuleAntecedent;
+        FuzzyRuleConsequent* fuzzyRuleConsequent;
+};
+#endif
\ No newline at end of file