KnowledgeBase.Affect(string, object) method
Assigns a value to a fact specified by its name.
Namespace : ielib
Assembly : ielib.dll
public bool Affect(string aFactName, object aValue)ParamètresType : System.string.
aFactName : represents the name of a fact that receives the value.
Type : System.Object
aValue : represents the value to affect.
Return valueType : System.Boolean.
true If the object of the
Fact class is found and the assignment is made, otherwise
false.
Example :KnowledgeBase Kb = new KnowledgeBase("MyBase.xml");
Fact f = new Fact ("many monuments", Fact.DataType.Bool, null);
Kb.Add(f);
Kb.Affect("many monuments", true);