Artificial Intelligence
Artificial Intelligence
Information

KnowledgeBase.Clear() method


      Removes all the elements of the base.


Namespace : ielib
Assembly : ielib.dll

public void Clear()

      Note: This method removes all the facts and all the rules in the knowledge

base, and resets the counter FactCount and RuleCount.


Example :

KnowledgeBase Kb = new KnowledgeBase(“MyBase.xml”);

Kb.Clear();
Kb.LoadFrom(“OtherBase.xml”); // To change the knowledge base