Represents a list of all of the modules (defmodule) in the TInferenceEngine component
Namespace: InferenceEngine
TIList
InferenceEngine.TModules
|
Delphi
|
type
TModules = class(TIList)
end;
|
|
Name
|
Description
|
|
AsString
|
Returns the string representation (module definition) of the all the modules in the list. The module definition includes the module names and comments as well as imports and exports
|
|
EnforceImportOrder
|
Enforces the rule that a module cannot import structures (Defined Types and Fact Templates) that are earlier in the TModules list (created earlier).
|
|
Engine
|
Specifies the TInferenceEngine that this class works with
|
|
Items[Integer]
|
Provides access to the module (IModule interface) in the modules list at the specified index. If the index is out of bounds, an EListError exception is raised
|
Top
|
|
Name
|
Description
|
|
Add(IModule)
|
Adds the specified module to the Modules list.
|
|
Assign(TPersistent)
|
Overloaded. Represents method Assign(TPersistent).
|
|
Assign(TPersistent,TInferenceEngineConstruct)
|
Overloaded. Copies modules and constructs. If the module already exists, this method attempts to assign it without clearing the module first. The Constructs parameter controls what is copied:
iecDefType - copy types
iecDefTemplate - copy types and fact templates
iecFactSet - copy types, fact templates and fact sets
iecFact - copy types, fact templates and facts
iecRule - copy types, fact templates, and rules
|
|
AssignTo(TPersistent)
|
Represents method AssignTo(TPersistent).
|
|
Clear
|
Clears the list
|
|
Delete(Integer)
|
Deletes the item at the specified position from the Modules list
|
|
GetModule(String)
|
Returns the module with the specified name. If it does not exist, an exception is raised
|
|
IndexOf(IModule)
|
Overloaded. Returns the index of the module in the Modules List. If the module is not found, -1 is returned
|
|
IndexOf(String)
|
Overloaded. Returns the index of the module with the specified name in the Modules List. If the module is not found, -1 is returned
|
|
Insert(Integer,IModule)
|
Adds the specified module to the Modules list at the specified index.
|
|
Notify(IInterface,TListNotification)
|
Represents method Notify(IInterface,TListNotification).
|
|
Remove(IModule)
|
Represents method Remove(IModule).
|
|
ToNamesString(String)
|
Returns a string containing all of the names of the modules in the Modules list. The separator string is inserted in between each name
|
|
ToString
|
Returns the string representation (module definition) of the all the modules in the list. The module definition includes the module names and comments as well as imports and exports
|
Top
|
The first Module in the Modules (not FocusStack) list is always the MAIN defmodule. The TInferenceEngine.CurrentModule property tracks which module is the currently focused module being used for inference
DefModules allow you to logically partition the knowledge in your expert system into multiple modules. A DefModule contains its own Type Definitions, Fact Templates, Facts, Rules, Fact Sets, Agenda, and Rete network.
|