Artificial Intelligence
Artificial Intelligence
Information

KnowledgeBase(string) constructor


      Initializes a new instance of the KnowledgeBase class from an XML file.


Namespace : ielib
Assembly : ielib.dll

public KnowledgeBase(string aXmlFileName)

Parameters

Type : System.String

aXmlFileName: The name of an XML file used to initialize the knowledge base.

      Note : There is no treatment of exception to the XML file does not exist. But can use this class IsEmpty property to test if the base is properly initialized.

Example


KnowledgeBase kb = new KnowledgeBase("MyBase.xml");

if (kb.IsEmpty)
      MessageBox.Show("File MyBase.xml is not found");



Exception: Syntax error in the construction of the object Premise or Conclusion.