Artificial Intelligence
Artificial Intelligence
Information

KnowledgeBase.CopyFrom(KnowledgeBase) method


      Copy the rules and the fact from another knowledge base.


Namespace : ielib
Assembly : ielib.dll

public void CopyFrom (KnowledgeBase aKBase)

Parameters

Type : ielib.KnowledgeBase

aKBase : represents an object of the class KnowledgeBase.

      Note : You can use this method to duplicate the knowledge base in memory. This method is called by the constructor KnowledgeBase(KnowledgeBase).

Example :

KnowledgeBase Kb = new KnowledgeBase("MyBase.xml");
KnowledgeBase KTmp = new KnowledgeBase();

KTmp.CopyFrom(Kb);



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