Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > IE > InferenceEngine > Classes > TInferenceEngine > Methods

TInferenceEngine.Assert(IFact,Boolean) Method

Scroll Prev Top Next More

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 FuzzyInferenceMethod property, 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

Parameters

Fact

Type: IFact

Unconditional

Type: Boolean

Return Value

Type: Integer

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb