Package libai.fuzzy
Class KnowledgeBase
- java.lang.Object
-
- libai.fuzzy.KnowledgeBase
-
- All Implemented Interfaces:
XMLSerializer
public class KnowledgeBase extends java.lang.Object implements XMLSerializer
Created by kronenthaler on 26/04/2017.
-
-
Constructor Summary
Constructors Constructor Description KnowledgeBase(FuzzyVariable... variables)
KnowledgeBase(org.w3c.dom.Node xmlNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FuzzyTerm
getTerm(java.lang.String variableName, java.lang.String termName)
FuzzyVariable
getVariable(java.lang.String name)
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
-
KnowledgeBase
public KnowledgeBase(org.w3c.dom.Node xmlNode)
-
KnowledgeBase
public KnowledgeBase(FuzzyVariable... variables)
-
-
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.
-
getVariable
public FuzzyVariable getVariable(java.lang.String name)
-
getTerm
public FuzzyTerm getTerm(java.lang.String variableName, java.lang.String termName)
-
-