Implements the IFuzzyStreamToken interface and represents one token ( string) parsed by a fuzzy logic parser. However, the token can not only represent the string token parsed from a stream, but also provide methods for retrieving and setting its value based on a type. In other words, as the parser compiles more information about a token (possibly based on tokens before or after this token), it can replace the string token with other objects/interfaces, for example, the actual fuzzy set the string token represented.
Namespace: IFuzzyLogic
TBaseStreamToken
IFuzzyLogic.TFuzzyStreamToken
|
Delphi
|
type
TFuzzyStreamToken = class(TBaseStreamToken, IFuzzyStreamToken, IBaseStreamToken, ICloneable, IInterface)
end;
|
|
Name
|
Description
|
|
FuzzySet
|
Gets and Sets the ObjValue as a TFuzzySet
|
|
FuzzySetIntf
|
Allows the token to represent an actual fuzzy set. For example, if the token parsed was the name of a fuzzy set, the parser can replace the string token with the actual fuzzy set.
|
|
IntfValue
|
Allows the token to represent any arbitrary interface
|
|
List
|
Allows the token to represent a list of other tokens
|
|
ObjValue
|
Allows the token to represent any arbitrary object. The token is NOT responsible for freeing the object
|
Top
|
Note that the fuzzy stream token object can also represent a list of tokens (this occurs when the parser determines that the a token's type represents a more complex object such as a function, in which case it parses all of the tokens of the function and puts them in the list.
|