| Prev | Next | Previous Chapter | End of Chapter | Contents | Glossary | Index | Comments | (1 out of 17)

Chapter 18

Relations


Describes how to associate items in a non-graphical way.

Overview
Using Relation Definitions and Relations
Creating a Relation Definition
Choosing a Relation Name
Using Permanent Relations
Understanding How G2 Saves Relations
Complying to Permanency
Maintaining Permanent Relations
Restoring Permanent Relations
Specifying the Cardinality of Relations
Defining an Inverse Relation
Defining a Symmetric Relation
Creating a Relation
Using Conclude to Create Relations
Example of Creating a Relation Between Two Items
Example of Creating a Relation Between an Item and a Class
Using a Sequence to Conclude a Relation
Example of Creating a Relation with a Sequence
Removing a Relation
Removing Relations by Deleting Items
Replacing a Relation
Using the Now Syntax
Example of Replacing a One-to-one Relation
Example of Replacing Multiple One-to-one Relations
Example of Replacing a Many-to-one Relation
Example of Replacing a One-to-many Relation
Invoking Rules using Relations
Using Whenever Rules to Detect Relatedness
Using Whenever Rules To Detect Cessation of Relations
Invoking Rules When a Relation is Created
Invoking Rules when a Relation is Deleted
Invoking Rules that Test whether a Relation Exists
Invoking Rules that Refer to Items with Relations
Invoking Rules that Refer to Variables with Relations
Working with Transient Items
Working with Deactivated and Disabled Items
Updating Relations While a KB is Running
Updating the First Class and Second Class
Updating the Type of Relation
Updating Symmetric Relations
Updating Relations While Executing Procedures
Updating a Relation While a Rule is Executing
Updating a Relation When Saving a KB Snapshot File
Expressions Involving Relations
Event Expressions
Logical Expressions
Relation Participation Expressions
Obtaining the Relationships of an Item
Obtaining Items Participating in a Relation
Generic Item References
The Relation Class
Describing the Items that Participate in a Relation
| Prev | Next | Previous Chapter | End of Chapter | Contents | Glossary | Index | Comments | (1 out of 17)

Copyright © 1997 Gensym Corporation, Inc.