Provides access to all the fact templates for the currently active defmodule within the expert system. Use the Item property to access individual fact templates.
Namespace: InferenceEngine
Delphi |
published |
Property Value
Type: TFactTemplates
Fact templates define unordered facts within the inference engine, similar to the class declaration in object pascal. For example, if you wanted to have a class of facts which define persons who have names, age, height, and weight properties. You would define a fact template with an index of 'person' and slots for names, age, height, and weight. A fact template should be defined before any facts based on that fact template are asserted. You can either create a TFactTemplate and use the Add method to add it, call the CreateFactTemplate method and modify the returned template, or parse a string using the ParseFactTemplate method. |
Reference |