Artificial Intelligence
Artificial Intelligence
Information

KnowledgeBase.NextFact() method


      Returns the next object of the Fact class.


Namespace : ielib
Assembly : ielib.dll

public Fact NextFact()

Return value

Type : ielib.Fact

An object of the Fact class, if the base is empty or the last object in the base is reached then null will be returned.


Example


KnowledgeBase kb = new KnowledgeBase("MyBase.xml");
Fact f = kb.FirstFact();

while (f != null)
{
If (f.IsLeaf)
      MessageBox.Show(string.Format("This Fact {0} is a leaf of the tree.", f.Name));
f = kb.NextFact();
}