Class FuzzyRule
java.lang.Object
org.episteme.core.mathematics.logic.fuzzy.FuzzyRule
Abstraction for fuzzy rules.
- Version:
- 0.0.1
- Author:
- Levent Bayindir
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intOperator constant for logical AND.static intOperator constant for logical OR. -
Constructor Summary
ConstructorsConstructorDescriptionFuzzyRule(FuzzyEngine engine, String rule) Creates and parses a new FuzzyRule. -
Method Summary
Modifier and TypeMethodDescriptionvoidevaluate()DOCUMENT ME!FuzzyExpression<?>[]DOCUMENT ME!int[]DOCUMENT ME!FuzzyExpression<?>[]DOCUMENT ME!int[]DOCUMENT ME!toString()DOCUMENT ME!
-
Field Details
-
OPERATOR_AND
public static int OPERATOR_ANDOperator constant for logical AND. -
OPERATOR_OR
public static int OPERATOR_OROperator constant for logical OR.
-
-
Constructor Details
-
FuzzyRule
Creates and parses a new FuzzyRule.- Parameters:
engine- the parent enginerule- the rule string (e.g. "IF temp IS hot THEN fan IS high")- Throws:
RuleParsingException- if the rule syntax is invalid
-
-
Method Details
-
getRightFuzzyExpressions
-
getLeftFuzzyExpressions
-
getLeftOperators
public int[] getLeftOperators()DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getRightOperators
public int[] getRightOperators()DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
toString
-
evaluate
public void evaluate()DOCUMENT ME!
-