|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--rule.FuzzyClause
The FuzzyClause
class implements a clause with a left-hand
side value, an operator, and a righ-hand side value used in both the
antecedent and consequent parts of a rule.
Field Summary | |
(package private) boolean |
consequent
|
(package private) FuzzyRuleVariable |
lhs
|
(package private) int |
op
|
(package private) FuzzySet |
rhs
|
Constructor Summary | |
protected |
FuzzyClause(FuzzyRuleVariable lhs,
int op,
FuzzySet rhs)
Creates a new fuzzy clause with the specified lvalue, operator, and rvalue. |
Method Summary | |
protected double |
eval()
Evaluates the clause. |
protected double |
eval(double truthValue)
Evaluates the clause as a consequent clause. |
FuzzyRuleVariable |
getLhs()
Retrieves the left-hand side of the clause. |
protected int |
getLhsReferent()
Retrieves the referent from the lhs FuzzyRuleVariable object. |
int |
getOp()
Retrieves the operator of the clause. |
java.lang.String |
getOpAsString()
Retrieves the operator as a String object. |
protected int |
getReferent()
Retrieves the referent from the rhs FuzzySet object. |
FuzzySet |
getRhs()
Retrieves the right-hand side of the clause. |
protected int |
getRhsReferent()
Retrieves the referent from the rhs FuzzySet object. |
java.lang.String |
toString()
Retrieve a string describing the contents of the object. |
Methods inherited from class java.lang.Object |
|
Field Detail |
FuzzyRuleVariable lhs
int op
FuzzySet rhs
boolean consequent
Constructor Detail |
protected FuzzyClause(FuzzyRuleVariable lhs, int op, FuzzySet rhs)
lhs
- the FuzzyRuleVariable which is the lvalueop
- the integer operatorrhs
- the FuzzySet which is the rvalueMethod Detail |
protected double eval()
protected double eval(double truthValue)
truthValue
- the double value that represents the truth valuepublic FuzzyRuleVariable getLhs()
public int getOp()
public java.lang.String getOpAsString()
public FuzzySet getRhs()
protected int getReferent()
protected int getLhsReferent()
protected int getRhsReferent()
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |