| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (16 out of 17)

The Relation Class

These are the class-specific attributes of the RELATION class.

Attribute Description
First-class
Name of the class of items that participate as the relation source. For example, if a TANK is part-of a SUBSYSTEM, then TANK is the first class.
Allowable values:
Any class name
Default value:
item


Second-class
Name of the class of items that participate as the relation target. For example, if a TANK is part-of a SUBSYSTEM, then SUBSYSTEM is the second class.
Allowable values:
Any class name
Default value:
item


Relation-name
Name of the relation.
Allowable values:
Any valid symbol that is unique within the KB
Default value:
none


Inverse-of-relation
Name of an automatically defined relation that is the inverse of Relation-name. When a relation defines an inverse, concluding the relation also concludes the inverse relation.
Allowable values:
Any valid symbol that is unique within the KB
Default value:
none
Notes:
You can enter an inverse relation only when the relation is not symmetric.


Type-of-relation
Cardinality of the relation.
Allowable values:
one-to-one
one-to-many
many-to-one
many-to-many

Default value:
many-to-many


Relation-is-symmetric
Whether G2 creates an inverse relation of the same name as the relation between items of the second class and items of the first class.
Allowable values:
yes
no

Default value:
no
Notes:
If a relation is symmetric, G2 requires that the Inverse-of-relation attribute contains the value none (that is, the relation name and inverse relation name are the same).


Relation-is-permanent
Determines whether G2 will save the relation through a KB restart and reset operation. For more information, see Using Permanent Relations.
Allowable values:
yes
no

Default value:
no

| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (16 out of 17)

Copyright © 1997 Gensym Corporation, Inc.