Artificial Intelligence
Artificial Intelligence
Information

KnowledgeBase(KnowledgeBase) constructor


      Initializes a new instance of the KnowledgeBase class from another object of the same class.


Namespace : ielib
Assembly : ielib.dll

public KnowledgeBase(KnowledgeBase aKBase)

Parameters

Type : ielib.KnowledgeBase

aKBase: Knowledge base used to initialize the instance database. This constructor is used to clone a knowledge base.

      Note : This constructor calls the CopyFrom method to copy the facts and the rules of the source base, it will be exactly 2 identical knowledge bases in the memory.


KnowledgeBase kb1 = new KnowledgeBase();
KnowledgeBase kb2;

kb1.LoadFrom("kbase.xml");
kb2 = new KnowledgeBase(kb1);



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