Provides the rule base for one defmodule in the TInferenceEngine component
Namespace: InferenceEngine
TRSStringObjectHashTable
InferenceEngine.TRules
|
Delphi
|
type
TRules = class( TRSStringObjectHashTable<TRule> )
end;
|
|
Name
|
Description
|
|
AsString
|
Returns a parsable, string representation of all the rules in the table. Each rule representation is separated by a carraige return and line feed
|
|
Engine
|
Specifies the TInferenceEngine that this class works with
|
|
Module
|
Specifies the Module that owns the class and is considered the local module
|
|
Sorted
|
Represents property Sorted.
|
Top
|
|
Name
|
Description
|
|
Add(TRule)
|
Adds the rule to the hash table using the RuleName as the hash key
|
|
Assign(TPersistent)
|
Represents method Assign(TPersistent).
|
|
AssignTo(TPersistent)
|
Represents method AssignTo(TPersistent).
|
|
Clear
|
Clears the table
|
|
DefineProperties(TFiler)
|
Represents method DefineProperties(TFiler).
|
|
DoAdd(Integer,Integer,String,TRule)
|
Represents method DoAdd(Integer,Integer,String,TRule).
|
|
DoRemove(String,Integer,TCollectionNotification)
|
Represents method DoRemove(String,Integer,TCollectionNotification).
|
|
DoSetValue(Integer,TRule)
|
Represents method DoSetValue(Integer,TRule).
|
|
GenerateToString
|
Represents method GenerateToString.
|
|
LoadRulesProperty(TReader)
|
Represents method LoadRulesProperty(TReader).
|
|
Remove(String,TRule)
|
Overloaded. Removes the value at the specified hash key. It only removes the value IF the value at the key equals the ARule parameter
|
|
StoreRulesProperty(TWriter)
|
Represents method StoreRulesProperty(TWriter).
|
|
ToString
|
Returns a parsable, string representation of all the rules in the table. Each rule representation is separated by a carraige return and line feed
|
Top
|
|
Name
|
Description
|
|
FEngine
|
Represents field FEngine.
|
Top
|
Rules define the "code" of your expert system. They manipulate the facts in the expert system to infer new facts or to perform actions. Rules are basically IF-THEN constructs for reasoning about the domain. The inference engine matches rule conditions (the IF portion) with facts in the expert system and flags rules which have been matched (called a rule activation). After the inference engine has determined all the rule matches, it selects one rule based on its strategy and a rule's salience (priority) and fires that rule. When a rule is fired, its actions (the THEN portion) are executed one by one.
|