Represents the fact base for a module in the TInferenceEngine component
Namespace: InferenceEngine
TIList
InferenceEngine.TFacts
|
Delphi
|
type
TFacts = class(TIList)
end;
|
|
Name
|
Description
|
|
AsString
|
Returns a string representation of the entire fact list. Each fact is separated by a carraige return/line feed
|
|
Cache
|
Represents property Cache.
|
|
CacheHashCodes
|
Controls whether the TFacts object will cache hash codes for facts being inserted into the fact list.
|
|
Engine
|
Specifies the TInferenceEngine that this class works with
|
|
FactById[Integer]
|
Provides access to the current facts on the fact list using their IDs. Unique IDs are assigned to facts when they are asserted
|
|
FuzzyCache
|
Represents property FuzzyCache.
|
|
ImportCount
|
Returns the number of facts imported from other modules
|
|
Items[Integer]
|
Provides access to the fact (IFact interface) in the fact base at the specified index. If the index is out of bounds, an EListError exception is raised
|
|
LocalsCount
|
Returns the number of "local" facts in the tfact list
|
|
MaxID
|
Tracks the maximum fact id in the list of all the facts
|
|
Module
|
Specifies the Module that owns the class and is considered the local module
|
|
PreserveIDs
|
Controls how the Assign method works. If PreserveIDs is true, the fact list attempts to preserve the IDs of the facts when they are being copied. Otherwise, facts will receive the NewFactId as they are copied
|
|
ToIDString
|
Returns a string representation of the entire fact list. Each fact is displayed with its ID and is separated by a carraige return/line feed
|
|
Updating
|
Represents property Updating.
|
Top
|
|
Name
|
Description
|
|
Add(IFact)
|
Adds a fact (IFact interface) to the fact list and asserts the fact into the inference engine (TInferenceEngine component). This method returns the index in the list of the added fact
|
|
Assign(TPersistent)
|
Represents method Assign(TPersistent).
|
|
AssignLocal(TPersistent)
|
Copy "local" (owned by the Source)Facts to the current list
|
|
AssignTo(TPersistent)
|
Represents method AssignTo(TPersistent).
|
|
Clear
|
Overloaded. Clears the fact list of all facts (IFact interface) and resets the TInferenceEngine component for the current module
|
|
Clear(TConstructScope)
|
Overloaded. Clears the fact list of all imported or local facts (IFact interface) and resets the TInferenceEngine component for the current module
|
|
CreateCache
|
Represents method CreateCache.
|
|
Delete(Integer)
|
Deletes the fact (IFact interface) at the specified index. It also retracts the fact from the inference engine (TInferenceEngine component). If the index is out of bounds, an EListError exception is raised
|
|
FindFact(IFact)
|
Overloaded. Finds a fact (IFact interface) that is equivalent to the AFact parameter.
|
|
FindFact(Integer)
|
Overloaded. Represents method FindFact(Integer).
|
|
GetToIDString
|
Represents method GetToIDString.
|
|
IndexOf(IFact)
|
Returns the index of the fact within the fact list. If the fact cannot be found in the fact list, the method returns -1
|
|
Insert(Integer,IFact)
|
Inserts a fact (IFact interface) to the fact list and asserts the fact into the inference engine (TInferenceEngine component)
|
|
LocalsToString(Boolean)
|
Returns a string representation of the "local" (native to module) fact list. Each fact is separated by a carraige return/line feed
|
|
Remove(IInterface)
|
Deletes the fact (IFact interface) if found. It also retracts the fact from the inference engine (TInferenceEngine component).
|
|
SortByID
|
Sorts the TFacts object by Fact IDs
|
|
ToString
|
Returns a string representation of the entire fact list. Each fact is separated by a carraige return/line feed
|
Top
|
|
Name
|
Description
|
|
FEngine
|
Represents field FEngine.
|
Top
|