All Frameworks  Class Hierarchy  This Framework  Previous  Indexes

KnowHow Class CATExpertSolveModeEnum

CATExpertSolveModeEnum
 

Usage: you must use this class as is. You should never derive it.


public class CATExpertSolveModeEnum

Enumerated type for the retrieving of facts needed by the rulebase.
The facts to be given to a rulebase, can be found in two ways :

Optimized
the fact, when created, tells the rulebase it has been created, with the following code :
 CATIInstance_var myFact(myObject);
 if (!!myFact)
 {
   CATITypeDictionary_var myDico = CATGlobalFunctions::GetTypeDictionary();
   CATIType_var myFactType = myFact->Type();
   if (!!myDico && !!myFactType)
     myDico->AdviseInstanciated(myFactType,myFact);
   if (!!myFactType) myFactType->Release();
 }
 
Not optimized
the rule base searches through the roots of facts it has been given.


Enumerated Type Index


o SolveModeEnum
Retrieving of facts for the rulebase, done just before solving the rulebase.

Enumerated Types


o SolveModeEnum
enum SolveModeEnum {
  AutomaticComplete,
  AutomaticOptimized,
  Manual
}
Retrieving of facts for the rulebase, done just before solving the rulebase.
Parameters:
AutomaticComplete
Reacts on creation of new facts by cleaning up all previously found facts and then searching for all facts.
AutomaticOptimized
Reacts on creation of new facts by keeping all previously found facts and adding only new ones.
Manual
Doesn't react on creation of new facts (triggering has to be manual).

This object is included in the file: CATExpertSolveModeEnum.h
If needed, your Imakefile.mk should include the module: CATKWERule

Copyright © 2003, Dassault Systèmes. All rights reserved.