Catalano.Fuzzy
Class Rulebase
- java.lang.Object
-
- Catalano.Fuzzy.Rulebase
-
public class Rulebase extends java.lang.ObjectThe class represents a fuzzy rulebase, a set of fuzzy rules used in a Fuzzy Inference System.
-
-
Constructor Summary
Constructors Constructor and Description Rulebase()Initializes a new instance of the Rulebase class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddRule(Rule rule)Adds a fuzzy rule to the database.voidclearRules()Removes all the fuzzy rules of the database.RulegetRule(java.lang.String ruleName)Get an existing fuzzy rule from the rulebase.Rule[]getRules()Gets all the rules of the rulebase.
-
-
-
Method Detail
-
addRule
public void addRule(Rule rule)
Adds a fuzzy rule to the database.- Parameters:
rule- >A fuzzy Rule to add to the database.
-
clearRules
public void clearRules()
Removes all the fuzzy rules of the database.
-
getRule
public Rule getRule(java.lang.String ruleName)
Get an existing fuzzy rule from the rulebase.- Parameters:
ruleName- Name of the fuzzy Rule to retrieve.- Returns:
- Reference to named Rule.
-
getRules
public Rule[] getRules()
Gets all the rules of the rulebase.- Returns:
- An array with all the rulebase rules.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG