Defines the tokens used by the rete network (TReteNetwork)
Namespace: IECSInterfaces
Delphi
|
type
IReteToken = interface
['{2D42CCE7-D296-11D3-B9BB-00C04F8EDA5F}']
end;
|
|
Name
|
Description
|
|
AsString
|
Returns a string representation of the token. This string is NOT parsable but details all the important information of the token
|
|
Count
|
Returns the number of facts being tracked by this token and its parent tokens. The fact for this token may be accessed through the Fact property. The facts for the parent tokens can either be obtained by chaining up the Parent property or using the Facts property
|
|
Fact
|
Contains the fact for the token.
|
|
Facts[Integer]
|
Provides access to all the facts in the token chain.
|
|
NegatedCount
|
Returns the number of "not"s before the fact. The rete network uses the NegatedCount property to figure out whether it is pattern matching the the negation of the fact or the presence of the fact
|
|
Parent
|
Returns the ancestor of the current token. The current token when it is created inherits most of its properties from its parent token. The current token keeps its Count property equal to all the tokens in the chain, including itself
|
|
SortCode
|
Used by the rete network to more efficiently traverse the network and to store the tokens within the network
|
|
Strength
|
Returns the strength of the token as it passes through the rete network.
|
|
Tag
|
Describes the purpose of the token with the rete network, what action the TReteNetwork component should take with the token. The Tag property should equal, usually, the parent token's tag value
|
|
ToFactsString
|
Returns a comma delimited string of the fact ids of the Facts in the token chain
|
Top
|
The Rete network is a network or graph structure for efficiently structuring rules and facts so that the pattern matching process in inference is efficient. The IReteTokens are passed around the network to update the network, add to the network, and clear the network. There are a fundamental method for communication within the rete network and track whether facts and whether they are being asserted or retracted.
The TIEToken class implements this interface for the IECS
|