Chapter 23
Rules, Inferencing, and Chaining
Describes how G2 invokes rules to perform actions.
- Overview
- Creating a Rule
- Displaying the Table for a Rule
- Cloning a Rule
- Coding the Text of a Rule
- Coding the Antecedent
- Coding the Consequent
- Specifying More than One Action in the Consequent
- Specifying Sequential Execution
- Kinds of Rules
- If Rules
- Initially Rules
- Forms of Initially Rules
- Effects on Rule Scanning
- Unconditionally Rules
- When Rules
- Whenever Rules
- Using Whenever Rules
- Event Expressions
- A Variable, Parameter, or Attribute Receives a Value
- A Variable Fails to Receive a Value
- A Variable Loses Its Value
- An Item Is Created
- An Object is Moved on a Workspace
- An Item is Enabled or Disabled
- An Item is Activated or Deactivated
- Two Items Become or Cease To Be Related by a Specific Relation
- Two Items Become or Cease To Be Related by Any Relation
- Two Items Become or Cease to Be Connected
- Specifying the Scope of the Rule
- Creating Specific Rules
- Indirect Specific Rules
- Local Names in Specific Rules
- Creating Generic Rules
- Two Forms for Generic Rules
- Using Local Names in Generic Rules
- Generic Rules and the Class Hierarchy
- Determining the Number of Generic Rules That are Invoked
- Scanning Generic Rules
- Using Generic Rules with Focal Objects
- Invoking Rules
- Forward Chaining
- Ordering of Rules Invoked by Forward Chaining
- Implementing Loops Using Forward Chaining
- Backward Chaining
- Using Breadth-First Backward Chaining
- Using Depth-First Backward Chaining
- Activating the Parent Workspace of a Rule
- Detecting Events
- Scanning Rules
- Determining the Scan Interval to Use
- Scanning Versus Event Detection
- Scanning Generic Rules
- Focusing on Rules and Invoking Rules by Category
- Focusing on Objects
- Invoking Rules by Category
- Debugging Rules
- Debugging and Tracing Rules
- Highlighting Rules
- Understanding Rule Invocation and Execution
- Prioritizing Rules
- Rules and Scheduler Tasks
- Rule Priorities and Rule Completion
- Propagation of Rule Priorities
- Setting the Timeout Interval for a Rule
- Creating and Managing Rule Invocations
- Evaluating the Antecedent
- Executing Actions in the Consequent in Parallel
- Time-Out Processing
- Single Transaction Scope for All Consequent Actions
- Executing Actions in the Consequent Sequentially
- Time-Out Processing
- One Transaction Scope Per Consequent Action
- The Rule Class
- Actions that Manipulate Rules
- Expressions that Refer to Rules
Copyright © 1997 Gensym Corporation, Inc.