Package libai.fuzzy
Class RuleBase
- java.lang.Object
-
- libai.fuzzy.RuleBase
-
- All Implemented Interfaces:
XMLSerializer
public class RuleBase extends java.lang.Object implements XMLSerializer
Created by kronenthaler on 30/04/2017.
-
-
Constructor Summary
Constructors Constructor Description RuleBase(java.lang.String name, ActivationMethod activationMethod, Operator andMethod, Operator orMethod, Rule... rules)RuleBase(java.lang.String name, ActivationMethod activationMethod, Rule... rules)RuleBase(java.lang.String name, Rule... rules)RuleBase(org.w3c.dom.Node xmlNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Double>fire(java.util.Map<java.lang.String,java.lang.Double> variables, KnowledgeBase knowledgeBase, double delta)java.lang.StringgetName()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
-
RuleBase
public RuleBase(org.w3c.dom.Node xmlNode)
-
RuleBase
public RuleBase(java.lang.String name, Rule... rules)
-
RuleBase
public RuleBase(java.lang.String name, ActivationMethod activationMethod, Rule... rules)
-
RuleBase
public RuleBase(java.lang.String name, ActivationMethod activationMethod, Operator andMethod, Operator orMethod, Rule... rules)
-
-
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.
-
fire
public java.util.Map<java.lang.String,java.lang.Double> fire(java.util.Map<java.lang.String,java.lang.Double> variables, KnowledgeBase knowledgeBase, double delta)
-
getName
public java.lang.String getName()
-
-