Package libai.fuzzy
Class Rule
- java.lang.Object
-
- libai.fuzzy.Rule
-
- All Implemented Interfaces:
XMLSerializer
public class Rule extends java.lang.Object implements XMLSerializer
Created by kronenthaler on 30/04/2017.
-
-
Constructor Summary
Constructors Constructor Description Rule(java.lang.String name, double weight, Operator operator, Antecedent antecedent, Consequent consequent)Rule(java.lang.String name, double weight, Operator operator, libai.fuzzy.Rule.Connector connector, Antecedent antecedent, Consequent consequent)Rule(org.w3c.dom.Node xmlNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetActivationValue(java.util.Map<java.lang.String,java.lang.Double> variables, KnowledgeBase knowledgeBase)java.lang.Iterable<Clause>getConsequentClauses()voidload(org.w3c.dom.Node xmlNode)Initializes the instance with the xml node information.java.lang.StringtoXMLString(java.lang.String indent)Returns the XML representation of this Fuzzy set according with the FML schema definition.
-
-
-
Constructor Detail
-
Rule
public Rule(org.w3c.dom.Node xmlNode)
-
Rule
public Rule(java.lang.String name, double weight, Operator operator, Antecedent antecedent, Consequent consequent)
-
Rule
public Rule(java.lang.String name, double weight, Operator operator, libai.fuzzy.Rule.Connector connector, Antecedent antecedent, Consequent consequent)
-
-
Method Detail
-
toXMLString
public java.lang.String toXMLString(java.lang.String indent)
Description copied from interface:XMLSerializerReturns the XML representation of this Fuzzy set according with the FML schema definition.- Specified by:
toXMLStringin interfaceXMLSerializer- Returns:
- XML representation of this Fuzzy Set.
-
load
public void load(org.w3c.dom.Node xmlNode)
Description copied from interface:XMLSerializerInitializes the instance with the xml node information.- Specified by:
loadin interfaceXMLSerializer- Parameters:
xmlNode- XML node with the information to load the current object with.
-
getActivationValue
public double getActivationValue(java.util.Map<java.lang.String,java.lang.Double> variables, KnowledgeBase knowledgeBase)
-
getConsequentClauses
public java.lang.Iterable<Clause> getConsequentClauses()
-
-