Artificial Intelligence
Artificial Intelligence
Information

KnowledgeBase.ResetMemory() method


      Resets the memory of the knowledge base.


Namespace : ielib
Assembly : ielib.dll

public void ResetMemory()

This method resets the memory of all the facts and all rules in the knowledge base:

      Fact.status to Fact.FactStatus.Unknow.

      Fact.Value to null.

      Resets all the rules in the unknown state.


      Note : InferenceEngine.Restart () calls this method to reset the memory of the knowledge base before to run the inference engine.

Example :


InferenceEngine ie = new InferenceEngine("MyKBase.xml");

ChainingResult result = ie.Run();
// To run again once the inference engine.
ie.Restart(); // Reset the memory before execution
result = ie.Run();