Package libai.fuzzy
Class Clause
- java.lang.Object
-
- libai.fuzzy.Clause
-
- All Implemented Interfaces:
XMLSerializer
public class Clause extends java.lang.Object implements XMLSerializer
Created by kronenthaler on 27/04/2017.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
eval(double input, KnowledgeBase knowledgeBase)
java.lang.String
getTermName()
java.lang.String
getVariableName()
void
load(org.w3c.dom.Node xmlNode)
Initializes the instance with the xml node information.java.lang.String
toXMLString(java.lang.String indent)
Returns the XML representation of this Fuzzy set according with the FML schema definition.
-
-
-
Constructor Detail
-
Clause
public Clause(org.w3c.dom.Node xmlNode)
-
Clause
public Clause(java.lang.String variable, java.lang.String term)
-
Clause
public Clause(java.lang.String variable, java.lang.String term, Modifier modifier)
-
-
Method Detail
-
toXMLString
public java.lang.String toXMLString(java.lang.String indent)
Description copied from interface:XMLSerializer
Returns the XML representation of this Fuzzy set according with the FML schema definition.- Specified by:
toXMLString
in interfaceXMLSerializer
- Returns:
- XML representation of this Fuzzy Set.
-
load
public void load(org.w3c.dom.Node xmlNode)
Description copied from interface:XMLSerializer
Initializes the instance with the xml node information.- Specified by:
load
in interfaceXMLSerializer
- Parameters:
xmlNode
- XML node with the information to load the current object with.
-
getVariableName
public java.lang.String getVariableName()
-
getTermName
public java.lang.String getTermName()
-
eval
public double eval(double input, KnowledgeBase knowledgeBase)
-
-