Asserts a fact into the fact base. For non-fuzzy facts (facts with no fuzzy slots), the assert method searches the fact base. If the fact is already in the fact base, the method returns -1. If this is a new fact, the fact is asserted and the new fact id is returned. The new fact is matched against the rules within the expert system and may cause some rules to be activated.
For fuzzy facts, the assert method also searches the fact base. If the fact is found, the old fact and the new fact are combined. The inference engine calculates the union of the two facts based on the FuzzyInference parameter, this is called a conditional assertion. If Unconditional is true, the assertion calculates the intersection of the two facts as the new fact.
Namespace: InferenceEngine
Delphi |
public |
Parameters
Fact
Type: IFact
FuzzyInference
Type: TFuzzyInferenceMethod
Unconditional
Type: Boolean
Type: Integer
Reference |