forked from alvesoaj/eFLL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFuzzyRule.h
executable file
·36 lines (33 loc) · 1000 Bytes
/
FuzzyRule.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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