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
FuzzyRule.h@2:460b409e26e8, 2015-06-24 (annotated)
- Committer:
- astaff15
- Date:
- Wed Jun 24 15:08:13 2015 +0000
- Revision:
- 2:460b409e26e8
- Parent:
- 0:66cd67db4f1b
Corrected FuzzyOutput destructor bug
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
astaff15 | 0:66cd67db4f1b | 1 | /* |
astaff15 | 0:66cd67db4f1b | 2 | * Robotic Research Group (RRG) |
astaff15 | 0:66cd67db4f1b | 3 | * State University of Piaui (UESPI), Brazil - Piauí - Teresina |
astaff15 | 0:66cd67db4f1b | 4 | * |
astaff15 | 0:66cd67db4f1b | 5 | * FuzzyRule.h |
astaff15 | 0:66cd67db4f1b | 6 | * |
astaff15 | 0:66cd67db4f1b | 7 | * Author: Msc. Marvin Lemos <marvinlemos@gmail.com> |
astaff15 | 0:66cd67db4f1b | 8 | * AJ Alves <aj.alves@zerokol.com> |
astaff15 | 0:66cd67db4f1b | 9 | * Co authors: Douglas S. Kridi <douglaskridi@gmail.com> |
astaff15 | 0:66cd67db4f1b | 10 | * Kannya Leal <kannyal@hotmail.com> |
astaff15 | 0:66cd67db4f1b | 11 | */ |
astaff15 | 0:66cd67db4f1b | 12 | #ifndef FUZZYRULE_H |
astaff15 | 0:66cd67db4f1b | 13 | #define FUZZYRULE_H |
astaff15 | 0:66cd67db4f1b | 14 | |
astaff15 | 0:66cd67db4f1b | 15 | // IMPORTANDO AS BIBLIOTECAS NECESSÁRIAS |
astaff15 | 0:66cd67db4f1b | 16 | #include "FuzzyRuleAntecedent.h" |
astaff15 | 0:66cd67db4f1b | 17 | #include "FuzzyRuleConsequent.h" |
astaff15 | 0:66cd67db4f1b | 18 | |
astaff15 | 0:66cd67db4f1b | 19 | class FuzzyRule { |
astaff15 | 0:66cd67db4f1b | 20 | public: |
astaff15 | 0:66cd67db4f1b | 21 | // CONSTRUTORES |
astaff15 | 0:66cd67db4f1b | 22 | FuzzyRule(); |
astaff15 | 0:66cd67db4f1b | 23 | FuzzyRule(int index, FuzzyRuleAntecedent* fuzzyRuleAntecedent, FuzzyRuleConsequent* fuzzyRuleConsequent); |
astaff15 | 0:66cd67db4f1b | 24 | // MÉTODOS PÚBLICOS |
astaff15 | 0:66cd67db4f1b | 25 | int getIndex(); |
astaff15 | 0:66cd67db4f1b | 26 | bool evaluateExpression(); |
astaff15 | 0:66cd67db4f1b | 27 | bool isFired(); |
astaff15 | 0:66cd67db4f1b | 28 | |
astaff15 | 0:66cd67db4f1b | 29 | private: |
astaff15 | 0:66cd67db4f1b | 30 | // VARIÁVEIS PRIVADAS |
astaff15 | 0:66cd67db4f1b | 31 | int index; |
astaff15 | 0:66cd67db4f1b | 32 | bool fired; |
astaff15 | 0:66cd67db4f1b | 33 | FuzzyRuleAntecedent* fuzzyRuleAntecedent; |
astaff15 | 0:66cd67db4f1b | 34 | FuzzyRuleConsequent* fuzzyRuleConsequent; |
astaff15 | 0:66cd67db4f1b | 35 | }; |
astaff15 | 0:66cd67db4f1b | 36 | #endif |