org.sazonov.fuzzy.engine
Class FuzzyRule

java.lang.Object
  extended byorg.sazonov.fuzzy.engine.FuzzyRule

public class FuzzyRule
extends java.lang.Object

Container for a fuzzy rule. This class contains vectors of left-part and right-part expressions (before and after "then") for a fuzzy rule.

Version:
2000 Original, v0.1, Edward S. Sazonov (esazonov@usa.com)

Constructor Summary
FuzzyRule(java.lang.String name)
          Constructor.
 
Method Summary
 java.lang.String getDescription()
          This method is a start (albeit trivial) to move towards JSR94
 double getEvaluationResult()
          Returns the result of the left part evaluation.
 java.lang.String getName()
          This method is a start (albeit trivial) to move towards JSR94
 boolean isRuleFired()
          Returns true if the rule fired (during executeRule call).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FuzzyRule

public FuzzyRule(java.lang.String name)
Constructor.

Parameters:
name - This rule label.
Method Detail

getEvaluationResult

public double getEvaluationResult()
Returns the result of the left part evaluation.

Returns:
double

isRuleFired

public boolean isRuleFired()
Returns true if the rule fired (during executeRule call).

Returns:
boolean

getName

public java.lang.String getName()
This method is a start (albeit trivial) to move towards JSR94

Returns:
the name of this block of rules

getDescription

public java.lang.String getDescription()
This method is a start (albeit trivial) to move towards JSR94

Returns:
the description of this block of rules