-
Notifications
You must be signed in to change notification settings - Fork 93
/
FuzzyRule.h
executable file
·38 lines (35 loc) · 982 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
37
38
/*
* Robotic Research Group (RRG)
* State University of Piauí (UESPI), Brazil - Piauí - Teresina
*
* FuzzyRule.h
*
* Author: AJ Alves <[email protected]>
* Co authors: Dr. Ricardo Lira <[email protected]>
* Msc. Marvin Lemos <[email protected]>
* Douglas S. Kridi <[email protected]>
* Kannya Leal <[email protected]>
*/
#ifndef FUZZYRULE_H
#define FUZZYRULE_H
// IMPORTING NECESSARY LIBRARIES
#include "FuzzyRuleAntecedent.h"
#include "FuzzyRuleConsequent.h"
class FuzzyRule
{
public:
// CONTRUCTORS
FuzzyRule();
FuzzyRule(int index, FuzzyRuleAntecedent *fuzzyRuleAntecedent, FuzzyRuleConsequent *fuzzyRuleConsequent);
// PUBLIC METHODS
int getIndex();
bool evaluateExpression();
bool isFired();
private:
// PRIVATE VARIABLES
int index;
bool fired;
FuzzyRuleAntecedent *fuzzyRuleAntecedent;
FuzzyRuleConsequent *fuzzyRuleConsequent;
};
#endif